1
0
Fork 0
remarkable-linux/drivers/net
Eirik Schultz d4e7e07a39 brcmfmac: Use request_firmware_direct for the clm_blob
from patchwork.kernel.org:

The linux-firmware brcmfmac firmware files contain an embedded table with
per country allowed channels and strength info.

These versions of the firmware are specially build for linux-firmware,
the firmware files directly available from Broadcom / Cypress rely on
a separate clm_blob file for this info.

For some unknown reason Broadcom / Cypress refuse to provide the standard
firmware files + clm_blob files it uses elsewhere for inclusion into
linux-firmware, instead relying on these special builds with the clm_blob
info embedded. This means that the linux-firmware firmware versions often
lag behind, but I digress.

The brcmfmac driver does support the separate clm_blob file and always
tries to load this. Currently we use request_firmware for this. This means
that on any standard install, using the standard combo of linux-kernel +
linux-firmware, we will get a warning:
"Direct firmware load for ... failed with error -2"

On top of this, brcmfmac itself prints: "no clm_blob available (err=-2),
device may have limited channels available" and we will get a slow
fallback to the userspace firmware loading mechanism.

This commit fixes both almost any brcmfmac device logging the warning
(leaving the brcmfmac info message in pace), as well as the slow and
unnecesary fallback by switching to request_firmware_direct for
the clm_blob.
2020-11-06 09:19:41 +01:00
..
appletalk net/appletalk: fix minor pointer leak to userspace in SIOCFINDIPDDPRT 2018-09-29 03:06:00 -07:00
arcnet
bonding bonding: fix warning message 2018-10-18 09:16:20 +02:00
caif
can MLK-20166 can: flexcan: fix CAN can't wakeup system during suspend 2018-11-26 17:54:01 +08:00
cris
dsa net: dsa: bcm_sf2: Fix unbind ordering 2018-10-18 09:16:19 +02:00
ethernet MLK-20190-01 ptp: fec: add clock rate zero check 2018-11-07 15:39:10 +08:00
fddi
fjes
hamradio net: hamradio: use eth_broadcast_addr 2018-08-24 13:09:02 +02:00
hippi hippi: Fix a Fix a possible sleep-in-atomic bug in rr_close 2018-02-25 11:08:04 +01:00
hyperv hv_netvsc: fix schedule in RCU context 2018-10-18 09:16:22 +02:00
ieee802154 ieee802154: fakelb: switch from BUG_ON() to WARN_ON() on problem 2018-08-24 13:09:14 +02:00
ipvlan ipvlan: call dev_change_flags when ipvlan mode is reset 2018-08-24 13:09:11 +02:00
phy MLK-19952 net: phy: tja110x: avoid PHY driver resume methods to take phydev->lock mutex 2018-10-29 11:10:38 +08:00
plip
ppp pppoe: fix reception of frames with no mac header 2018-09-29 03:06:00 -07:00
slip slip: Check if rstate is initialized before uncompressing 2018-04-19 08:56:16 +02:00
team team: Forbid enslaving team device to itself 2018-10-18 09:16:19 +02:00
usb qmi_wwan: Added support for Gemalto's Cinterion ALASxx WWAN interface 2018-10-18 09:16:18 +02:00
vmxnet3 vmxnet3: use DMA memory barriers where required 2018-05-25 16:17:25 +02:00
wan wan/fsl_ucc_hdlc: use IS_ERR_VALUE() to check return value of qe_muram_alloc 2018-09-26 08:38:03 +02:00
wimax
wireless brcmfmac: Use request_firmware_direct for the clm_blob 2020-11-06 09:19:41 +01:00
xen-netback xen-netback: fix input validation in xenvif_set_hash_mapping() 2018-10-13 09:27:23 +02:00
Kconfig ivshmem-net: virtual network device for Jailhouse 2018-10-29 11:10:38 +08:00
LICENSE.SRC
Makefile ivshmem-net: virtual network device for Jailhouse 2018-10-29 11:10:38 +08:00
Space.c
dummy.c
eql.c
geneve.c net: fix use-after-free in GRO with ESP 2018-07-22 14:28:44 +02:00
gtp.c
ifb.c
ivshmem-net.c ivshmem-net: Refactor and comment ivshm_net_state_change 2018-10-29 11:10:38 +08:00
loopback.c
macsec.c
macvlan.c macvlan: fix use-after-free in macvlan_common_newlink() 2018-05-30 07:52:02 +02:00
macvtap.c
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c net: in virtio_net_hdr only add VLAN_HLEN to csum_start if payload holds vlan 2018-06-26 08:06:28 +08:00
tun.c tuntap: fix use after free during release 2018-09-19 22:43:48 +02:00
veth.c veth: set peer GSO values 2018-03-19 08:42:54 +01:00
virtio_net.c net: in virtio_net_hdr only add VLAN_HLEN to csum_start if payload holds vlan 2018-06-26 08:06:28 +08:00
vrf.c vrf: Fix use after free and double free in vrf_finish_output 2018-04-12 12:32:24 +02:00
vsockmon.c
vxlan.c vxlan: fix default fdb entry netlink notify ordering during netdev create 2018-07-28 07:55:43 +02:00
xen-netfront.c xen/netfront: don't bug in case of too many frags 2018-09-29 03:06:03 -07:00