brcmfmac: Transform compatible string for FW loading
authorMatthias Brugger <mbrugger@suse.com>
Wed, 1 Jul 2020 11:22:00 +0000 (13:22 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Jul 2020 09:50:43 +0000 (12:50 +0300)
commit29e354ebeeecaee979e6fe22cd6272682d7552c9
tree416c47644805b02d7f6bb3560bbd9cec991787b7
parent2fa8085fc6daa255c591e754f66ba98035b797c3
brcmfmac: Transform compatible string for FW loading

The driver relies on the compatible string from DT to determine which
FW configuration file it should load. The DTS spec allows for '/' as
part of the compatible string. We change this to '-' so that we will
still be able to load the config file, even when the compatible has a
'/'. This fixes explicitly the firmware loading for
"solidrun,cubox-i/q".

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Hans deGoede <hdegoede@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200701112201.6449-1-matthias.bgg@kernel.org
drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c