wifi: rt2x00: add OF bindings + cleanup
Subsystems (5)
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.
Rosen Penev (6):
wifi: rt2x00: fix compilation
wifi: rt2x00: remove mod_name from platform_driver
wifi: rt2800soc: allow loading from OF
wifi: rt2x00: soc: move and modernize probe
dt-bindings: net: wireless: rt2800: add
MIPS: dts: ralink: mt7628a: add wifi binding
.../bindings/net/wireless/ralink,rt2800.yaml | 49 +++++++++ arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 ++ drivers/net/wireless/ralink/rt2x00/Kconfig | 2 +- .../net/wireless/ralink/rt2x00/rt2800soc.c | 75 ++++++++++++- .../net/wireless/ralink/rt2x00/rt2x00soc.c | 104 ------------------ .../net/wireless/ralink/rt2x00/rt2x00soc.h | 2 +- 6 files changed, 133 insertions(+), 109 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml
Signature · 1 line
2.50.0
PATCH 1/6 wifi: rt2x00: fix compilation
The .remove prototype commits seem to have missed this driver. Probably because COMPILE_TEST is missing.
This is a mess anyway. These non static functions will be moved to their proper place.
--- drivers/net/wireless/ralink/rt2x00/Kconfig | 2 +- drivers/net/wireless/ralink/rt2x00/rt2x00soc.c | 4 +--- drivers/net/wireless/ralink/rt2x00/rt2x00soc.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-)
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
drivers/net/wireless/ralink/rt2x00/rt2x00soc.c +1 -3
@@ -108,7 +108,7 @@ int rt2x00soc_probe(struct platform_device *pdev, const struct rt2x00_ops *ops) }EXPORT_SYMBOL_GPL (rt2x00soc_probe); -int rt2x00soc_remove (struct platform_device *pdev) +void rt2x00soc_remove (struct platform_device *pdev) {struct ieee80211_hw *hw =platform_get_drvdata (pdev);struct rt2x00_dev *rt2x00dev = hw->priv;
@@ -119,8 +119,6 @@ int rt2x00soc_remove(struct platform_device *pdev)rt2x00lib_remove_dev (rt2x00dev);rt2x00soc_free_reg (rt2x00dev);ieee80211_free_hw (hw); - -return 0 ; }EXPORT_SYMBOL_GPL (rt2x00soc_remove);
drivers/net/wireless/ralink/rt2x00/rt2x00soc.h +1 -1
@@ -17,7 +17,7 @@* SoC driver handlers. */ int rt2x00soc_probe (struct platform_device *pdev,const struct rt2x00_ops *ops); -int rt2x00soc_remove (struct platform_device *pdev); +void rt2x00soc_remove (struct platform_device *pdev);#ifdef CONFIG_PM int rt2x00soc_suspend (struct platform_device *pdev,pm_message_t state);int rt2x00soc_resume (struct platform_device *pdev);
Signature · 1 line
2.50.0
PATCH 2/6 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
PATCH 3/6 wifi: rt2800soc: allow loading from OF
In reply to Rosen PenevAdd a single bindng to help the already present dts files load the driver. More are possible but there doesn't seem to be a significant difference between them to justify this.
Use wifi name per dtschema requirements.
The data field will be used to remove the custom non static probe function and use of_device_get_match_data.
--- drivers/net/wireless/ralink/rt2x00/rt2800soc.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/wireless/ralink/rt2x00/rt2800soc.c +7 -0
@@ -243,9 +243,16 @@ static int rt2800soc_probe(struct platform_device *pdev)return rt2x00soc_probe (pdev, &rt2800soc_ops); } +static const struct of_device_id rt2880_wmac_match[] = { + { .compatible ="ralink,rt2880-wifi" , .data = &rt2800soc_ops }, + {}, +}; +MODULE_DEVICE_TABLE (of, rt2880_wmac_match); +static struct platform_driver rt2800soc_driver = { .driver = { .name ="rt2800_wmac" , + .of_match_table = rt2880_wmac_match, }, .probe = rt2800soc_probe, .remove = rt2x00soc_remove,
Signature · 1 line
2.50.0
PATCH 4/6 wifi: rt2x00: soc: move and modernize probe
In reply to Rosen PenevBy moving functions from rt2x00soc to rt2800soc, the driver benefits with potentially smaller compiled size. It also becomes much easier to remove a bunch of manual memory management and use devm.
--- .../net/wireless/ralink/rt2x00/rt2800soc.c | 67 +++++++++++- .../net/wireless/ralink/rt2x00/rt2x00soc.c | 102 ------------------ 2 files changed, 65 insertions(+), 104 deletions(-)
drivers/net/wireless/ralink/rt2x00/rt2800soc.c +65 -2
@@ -18,6 +18,7 @@#include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/platform_device.h> #include "rt2x00.h"
@@ -240,7 +241,69 @@ static const struct rt2x00_ops rt2800soc_ops = {static int rt2800soc_probe (struct platform_device *pdev) { -return rt2x00soc_probe (pdev, &rt2800soc_ops); +const struct rt2x00_ops *ops =of_device_get_match_data (&pdev->dev); +struct rt2x00_dev *rt2x00dev; +struct ieee80211_hw *hw; +int retval; + + hw =ieee80211_alloc_hw (sizeof (struct rt2x00_dev ), ops->hw); +if (!hw) { +rt2x00_probe_err ("Failed to allocate hardware\n" ); +return -ENOMEM ; + } + +platform_set_drvdata (pdev, hw); + + rt2x00dev = hw->priv; + rt2x00dev->dev = &pdev->dev; + rt2x00dev->ops = ops; + rt2x00dev->hw = hw; + rt2x00dev->irq =platform_get_irq (pdev,0 ); + rt2x00dev->name = pdev->dev.driver->name; + rt2x00dev->clk =devm_clk_get_optional (&pdev->dev,NULL ); + +rt2x00_set_chip_intf (rt2x00dev,RT2X00_CHIP_INTF_SOC ); + + rt2x00dev->csr.base =devm_platform_ioremap_resource (pdev,0 ); +if (IS_ERR (rt2x00dev->csr.base)) { + retval =PTR_ERR (rt2x00dev->csr.base); + goto exit_free_device; + } + + rt2x00dev->eeprom =devm_kzalloc (&pdev->dev, rt2x00dev->ops->eeprom_size,GFP_KERNEL ); +if (!rt2x00dev->eeprom) { + retval = -ENOMEM ; + goto exit_free_device; + } + + rt2x00dev->rf =devm_kzalloc (&pdev->dev, rt2x00dev->ops->rf_size,GFP_KERNEL ); +if (!rt2x00dev->rf) { + retval = -ENOMEM ; + goto exit_free_device; + } + + retval =rt2x00lib_probe_dev (rt2x00dev); +if (retval) + goto exit_free_device; + +return 0 ; + +exit_free_device: +ieee80211_free_hw (hw); + +return retval; +} + +static void rt2800soc_remove (struct platform_device *pdev) +{ +struct ieee80211_hw *hw =platform_get_drvdata (pdev); +struct rt2x00_dev *rt2x00dev = hw->priv; + +/* +* Free all allocated data. +*/ +rt2x00lib_remove_dev (rt2x00dev); +ieee80211_free_hw (hw); }static const struct of_device_id rt2880_wmac_match[] = {
@@ -255,7 +318,7 @@ static struct platform_driver rt2800soc_driver = { .of_match_table = rt2880_wmac_match, }, .probe = rt2800soc_probe, - .remove = rt2x00soc_remove, + .remove = rt2800soc_remove, .suspend = rt2x00soc_suspend, .resume = rt2x00soc_resume, };
drivers/net/wireless/ralink/rt2x00/rt2x00soc.c +0 -102
108 lines not on this page · raw message
Signature · 1 line
2.50.0
PATCH 5/6 dt-bindings: net: wireless: rt2800: add
In reply to Rosen PenevAdd device-tree bindings for the RT2800 SOC wifi device found in older Ralink/Mediatek devices.
--- .../bindings/net/wireless/ralink,rt2800.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml
Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml new file +49 -0
@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/wireless/ralink,rt2800.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ralink RT2800 wireless devices + +maintainers: + - Stanislaw Gruszka <[email protected]> + +description: | + This node provides properties for configuring RT2800 SOC wifi device. + The node is expected to be specified as a root node of the device. + +allOf: + - $ref: ieee80211.yaml# + +properties: + compatible: + enum: + - ralink,rt2800-wifi + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupt-parent: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + wifi@110180000 { + compatible = "ralink,rt2880-wifi"; + reg = <0x10180000 0x40000>; + clocks = <&sysc 16>; + interrupt-parent = <&cpuintc>; + interrupts = <6>; + };
Signature · 1 line
2.50.0
PATCH 6/6 MIPS: dts: ralink: mt7628a: add wifi binding
In reply to Rosen PenevMT7620A devices all contain a wifi device as part of the SOC. Add it here to get it working.
--- arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/mips/boot/dts/ralink/mt7620a.dtsi +10 -0
@@ -62,4 +62,14 @@ uartlite@c00 { reg-shift = <2>; }; }; + + wmac: wifi@10180000 { + compatible = "ralink,rt2880-wifi"; + reg = <0x10180000 0x40000>; + + clocks = <&sysc 16>; + + interrupt-parent = <&cpuintc>; + interrupts = <6>; + }; };
Signature · 1 line
2.50.0
Rob Herring (Arm)
maintainerRe: [PATCH 5/6] dt-bindings: net: wireless: rt2800: add
In reply to Rosen PenevQuoted 9 lines · Rosen Penev
Add device-tree bindings for the RT2800 SOC wifi device found in older Ralink/Mediatek devices.
Signed-off-by Rosen Penev <[email protected]>--- .../bindings/net/wireless/ralink,rt2800.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:./Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml:43:5: [warning] wrong indentation: expected 2 but found 4 (indentation)
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: ignoring, error in schema: examples /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: examples: 'wifi@110180000 { compatible = "ralink,rt2880-wifi"; reg = <0x10180000 0x40000>; clocks = <&sysc 16>; interrupt-parent = <&cpuintc>; interrupts = <6>; };' is not of type 'array'
from schema $id: http://json-schema.org/draft-07/schema#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: examples: 'wifi@110180000 { compatible = "ralink,rt2880-wifi"; reg = <0x10180000 0x40000>; clocks = <&sysc 16>; interrupt-parent = <&cpuintc>; interrupts = <6>; };' is not of type 'array'
from schema $id: http://devicetree.org/meta-schemas/base.yaml#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: properties:interrupt-parent: False schema does not allow {'maxItems': 1}
from schema $id: http://devicetree.org/meta-schemas/interrupts.yaml#
Error: Documentation/devicetree/bindings/net/wireless/ralink,rt2800.example.dts:19.5-6 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [scripts/Makefile.dtbs:131: Documentation/devicetree/bindings/net/wireless/ralink,rt2800.example.dtb] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1525: dt_binding_check] Error 2
make: *** [Makefile:248: __sub-make] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Re: [PATCH 5/6] dt-bindings: net: wireless: rt2800: add
Quoted 18 lines · Rob Herring (Arm)
Quoted 9 lines · Rosen Penev
Add device-tree bindings for the RT2800 SOC wifi device found in older Ralink/Mediatek devices.
Signed-off-by Rosen Penev <[email protected]>--- .../bindings/net/wireless/ralink,rt2800.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yamlMy bot found errors running 'make
dt_binding_check' on your patch:yamllint warnings/errors:
./Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml:43:5: [warning] wrong indentation: expected 2 but found 4 (indentation)
Quoted 14 lines
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: ignoring, error in schema: examples /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: examples: 'wifi@110180000 { compatible = "ralink,rt2880-wifi"; reg = <0x101800000x40000>; clocks = <&sysc 16>; interrupt-parent = <&cpuintc>; interrupts = <6>; };' is not of type 'array'
from schema $id: http://json-schema.org/draft-07/schema#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: examples: 'wifi@110180000 { compatible = "ralink,rt2880-wifi"; reg = <0x101800000x40000>; clocks = <&sysc 16>; interrupt-parent = <&cpuintc>; interrupts = <6>; };' is not of type 'array'
from schema $id: http://devicetree.org/meta-schemas/base.yaml#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/wireless/ralink,rt2800.yaml: properties:interrupt-parent: False schema does not allow {'maxItems': 1}
from schema $id: http://devicetree.org/meta-schemas/interrupts.yaml#
Error: Documentation/devicetree/bindings/net/wireless/ralink,rt2800.example.dts:19.5-6 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [scripts/Makefile.dtbs:131:Documentation/devicetree/bindings/net/wireless/ralink,rt2800.example.dtb] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1525:dt_binding_check] Error 2
make: *** [Makefile:248: __sub-make] Error 2
forgot to run dt_binding_check. Will fix in v2.
Quoted 18 lines
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make
dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that
DT_SCHEMA_FILEScan be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Johannes Berg
maintainerQuoted 6 lines · Rosen Penev
It doesn't even compile. Added OF bindings, documentation, and other stuff to hopefully this doesn't happen again.
Rosen Penev (6):
wifi: rt2x00: fix compilation
That was half covered by Felix already, and really shouldn't do two things at the same time anyway.
Also please add [PATCH wireless] or [PATCH wireless-next] prefix when you submit patches, to make it clear where the series is targeted. In this case, you probably should've split it up, but Felix already covered the immediate bug.
johannes
Quoted 11 lines · Johannes Berg
Quoted 6 lines · Rosen Penev
It doesn't even compile. Added OF bindings, documentation, and other stuff to hopefully this doesn't happen again.
Rosen Penev (6):
wifi: rt2x00: fix compilationThat was half covered by Felix already, and really shouldn't do two things at the same time anyway.
Just saw what you're talking about. That's gonna be annoying though. The COMPILE_TEST commit will cause compilation to fail and the bot to complain before Felix' patch gets merged.
Quoted 5 lines
Also please add [PATCH wireless] or [PATCH wireless-next] prefix when you submit patches, to make it clear where the series is targeted. In this case, you probably should've split it up, but Felix already covered the immediate bug.
Will do.
Quoted 2 lines
johannes
Johannes Berg
maintainerQuoted 10 lines · Rosen Penev
Quoted 9 lines · Johannes Berg
Quoted 6 lines · Rosen Penev
It doesn't even compile. Added OF bindings, documentation, and other stuff to hopefully this doesn't happen again.
Rosen Penev (6):
wifi: rt2x00: fix compilation
Quoted 6 lines
Quoted 2 lines
That was half covered by Felix already, and really shouldn't do two things at the same time anyway.
Just saw what you're talking about. That's gonna be annoying though. The
COMPILE_TESTcommit will cause compilation to fail and the bot to complain before Felix' patch gets merged.
Yeah well. That doesn't really mean it should be merged together though, and we can pretty easily make that work by just putting the further work in after net/wireless is merged back.
johannes
Quoted 14 lines · Johannes Berg
Quoted 12 lines · Rosen Penev
Quoted 11 lines · Johannes Berg
Quoted 6 lines · Rosen Penev
It doesn't even compile. Added OF bindings, documentation, and other stuff to hopefully this doesn't happen again.
Rosen Penev (6):
wifi: rt2x00: fix compilationThat was half covered by Felix already, and really shouldn't do two things at the same time anyway.
Quoted 8 lines
Quoted 4 lines
Just saw what you're talking about. That's gonna be annoying though. The
COMPILE_TESTcommit will cause compilation to fail and the bot to complain before Felix' patch gets merged.Yeah well. That doesn't really mean it should be merged together though, and we can pretty easily make that work by just putting the further work in after net/wireless is merged back.
Looking at it again, I'm effectively removing rt2x00soc.c . Meaning Felix' patch is mostly useless here.
It might make more sense to submit this series at a later time.
Quoted 2 lines
johannes
Re: [PATCH 6/6] MIPS: dts: ralink: mt7628a: add wifi binding
In reply to Rosen PenevQuoted 7 lines · Rosen Penev
MT7620A devices all contain a wifi device as part of the SOC. Add it here to get it working.
Signed-off-by Rosen Penev <[email protected]>--- arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
The commit title
MIPS: dts: ralink: mt7628a: add wifi binding
seems wrong as the commit (correctly) touches mt7620a.dtsi and not mt7628a.dtsi (which would be wrong as the WiFi part of MT7628A is already supported by the mt76 driver and part of the device tree). Also the word 'binding' seems wrong in this context, you are adding a node to the device tree, not to the device tree bindings.
I'd hence suggest to change the commit title to
MIPS: dts: ralink: mt7620a: add wifi
Re: [PATCH 6/6] MIPS: dts: ralink: mt7628a: add wifi binding
Quoted 5 lines · Daniel Golle
Quoted 3 lines · Rosen Penev
MT7620A devices all contain a wifi device as part of the SOC. Add it here to get it working.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Rosen Penev <[email protected]>--- arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)The commit title
MIPS: dts: ralink: mt7628a: add wifi binding
That is embarrassing. I'm blaming my new Linux setup.
Quoted 10 lines
seems wrong as the commit (correctly) touches
mt7620a.dtsiand notmt7628a.dtsi(which would be wrong as the WiFi part of MT7628A is already supported by the mt76 driver and part of the device tree). Also the word 'binding' seems wrong in this context, you are adding a node to the device tree, not to the device tree bindings.I'd hence suggest to change the commit title to
MIPS: dts: ralink: mt7620a: add wifi
Will do
Johannes Berg
maintainerQuoted 6 lines · Rosen Penev
Quoted 4 lines
Yeah well. That doesn't really mean it should be merged together though, and we can pretty easily make that work by just putting the further work in after net/wireless is merged back.
Looking at it again, I'm effectively removing
rt2x00soc.c. Meaning Felix' patch is mostly useless here.
But we're not going to put your changes into 6.16. They're not even entirely ready yet, from what I see in the thread.
Quoted 2 lines
It might make more sense to submit this series at a later time.
By end of the week Felix's patch should be in wireless-next too, if I get all the things done right...
johannes
Re: [PATCH 1/6] wifi: rt2x00: fix compilation
In reply to Rosen PenevQuoted 7 lines · Rosen Penev
The .remove prototype commits seem to have missed this driver. Probably because
COMPILE_TESTis missing.This is a mess anyway. These non static functions will be moved to their proper place.
Quoted 6 lines
Signed-off-by Rosen Penev <[email protected]>--- drivers/net/wireless/ralink/rt2x00/Kconfig | 2 +- drivers/net/wireless/ralink/rt2x00/rt2x00soc.c | 4 +--- drivers/net/wireless/ralink/rt2x00/rt2x00soc.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-)
Best regards,
Sergio Paracuellos
Re: [PATCH 2/6] wifi: rt2x00: remove mod_name from platform_driver
In reply to Rosen PenevQuoted 8 lines · Rosen Penev
mod_nameis a legacy debugging feature with no real modern use. An analysis of the underlying MIPS setup code reveals it to also be unused.Signed-off-by Rosen Penev <[email protected]>--- drivers/net/wireless/ralink/rt2x00/rt2800soc.c | 1 - 1 file changed, 1 deletion(-)
Best regards,
Sergio Paracuellos
Re: [PATCH 3/6] wifi: rt2800soc: allow loading from OF
In reply to Rosen PenevQuoted 4 lines · Rosen Penev
Add a single bindng to help the already present dts files load the driver. More are possible but there doesn't seem to be a significant difference between them to justify this.
typo: s/bindng/binding
Quoted 10 lines
Use wifi name per dtschema requirements.
The data field will be used to remove the custom non static probe function and use
of_device_get_match_data.Signed-off-by Rosen Penev <[email protected]>--- drivers/net/wireless/ralink/rt2x00/rt2800soc.c | 7 +++++++ 1 file changed, 7 insertions(+)
With the typo fixed:
Best regards,
Sergio Paracuellos
Re: [PATCH 4/6] wifi: rt2x00: soc: move and modernize probe
In reply to Rosen PenevQuoted 10 lines · Rosen Penev
By moving functions from rt2x00soc to rt2800soc, the driver benefits with potentially smaller compiled size. It also becomes much easier to remove a bunch of manual memory management and use devm.
Signed-off-by Rosen Penev <[email protected]>--- .../net/wireless/ralink/rt2x00/rt2800soc.c | 67 +++++++++++- .../net/wireless/ralink/rt2x00/rt2x00soc.c | 102 ------------------ 2 files changed, 65 insertions(+), 104 deletions(-)
Best regards,
Sergio Paracuellos