wifi: rt2x00: add OF bindings + cleanup
Subsystems (3)
v4 cover wifi: rt2x00: add OF bindings + cleanup
It doesn't even compile. Added OF bindings, documentation, and other stuff to hopefully this doesn't happen again.
v2: move all of 2x00soc to 2800soc. I didn't realize only two functions remained for no good reason.
Fixed typos.
Slightly changed probe for clarity.
v3: fix wrong compatible in Documentation.
v4: renamed documentation file as there's only a single compatible.
Rosen Penev (7):
wifi: rt2x00: add COMPILE_TEST
wifi: rt2x00: remove mod_name from platform_driver
wifi: rt2800soc: allow loading from OF
wifi: rt2800: move 2x00soc to 2800soc
wifi: rt2x00: soc: modernize probe
MIPS: dts: ralink: mt7620a: add wifi
dt-bindings: net: wireless: rt2800: add
.../bindings/net/wireless/ralink,rt2800.yaml | 47 ++++++ arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 ++ drivers/net/wireless/ralink/rt2x00/Kconfig | 7 +- drivers/net/wireless/ralink/rt2x00/Makefile | 1 - .../net/wireless/ralink/rt2x00/rt2800soc.c | 102 +++++++++++- .../net/wireless/ralink/rt2x00/rt2x00soc.c | 151 ------------------ .../net/wireless/ralink/rt2x00/rt2x00soc.h | 29 ---- 7 files changed, 156 insertions(+), 191 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml delete mode 100644 drivers/net/wireless/ralink/rt2x00/rt2x00soc.c delete mode 100644 drivers/net/wireless/ralink/rt2x00/rt2x00soc.h
Signature · 1 line
2.50.0
PATCH v4 1/7 wifi: rt2x00: add COMPILE_TEST
While this driver is for a specific arch, there is nothing preventing it from being compiled on other platforms.
Allows the various bots to test compilation and complain if a patch is bad.
--- drivers/net/wireless/ralink/rt2x00/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ralink/rt2x00/Kconfig +1 -1
@@ -202,7 +202,7 @@ endif config RT2800SOC tristate "Ralink WiSoC support" - depends on SOC_RT288X || SOC_RT305X || SOC_MT7620 + depends on SOC_RT288X || SOC_RT305X || SOC_MT7620 || COMPILE_TEST select RT2X00_LIB_SOC select RT2X00_LIB_MMIO select RT2X00_LIB_CRYPTO
Signature · 1 line
2.50.0
PATCH v4 2/7 wifi: rt2x00: remove mod_name from platform_driver
In reply to Rosen Penevmod_name is a legacy debugging feature with no real modern use. An analysis of the underlying MIPS setup code reveals it to also be unused.
--- drivers/net/wireless/ralink/rt2x00/rt2800soc.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/ralink/rt2x00/rt2800soc.c +0 -1
@@ -246,7 +246,6 @@ static int rt2800soc_probe(struct platform_device *pdev)static struct platform_driver rt2800soc_driver = { .driver = { .name ="rt2800_wmac" , - .mod_name =KBUILD_MODNAME , }, .probe = rt2800soc_probe, .remove = rt2x00soc_remove,
Signature · 1 line
2.50.0