[PATCH v3 net-next 1/8] arm64: dts: mediatek: mt7986: add support for RX Wireless Ethernet Dispatch

Lorenzo Bianconi lorenzo at kernel.org
Thu Nov 3 10:58:52 PDT 2022


> Il 03/11/22 10:28, Lorenzo Bianconi ha scritto:
> > Similar to TX Wireless Ethernet Dispatch, introduce RX Wireless Ethernet
> > Dispatch to offload traffic received by the wlan interface to lan/wan
> > one.
> > 
> > Co-developed-by: Sujuan Chen <sujuan.chen at mediatek.com>
> > Signed-off-by: Sujuan Chen <sujuan.chen at mediatek.com>
> > Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
> 
> Hello Lorenzo,
> thanks for the patch! However, there's something to improve...
> 
> > ---
> >   arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 75 +++++++++++++++++++++++
> >   1 file changed, 75 insertions(+)
> > 
> > diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
> > index 72e0d9722e07..b0a593c6020e 100644
> > --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
> > +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
> 
> ..snip..
> 
> > @@ -226,6 +252,12 @@ ethsys: syscon at 15000000 {
> >   			 reg = <0 0x15000000 0 0x1000>;
> >   			 #clock-cells = <1>;
> >   			 #reset-cells = <1>;
> > +
> > +			ethsysrst: reset-controller {
> 
> That's not right. It works, yes, but your ethsys rightfully declares #reset-cells,
> because it is supposed to also be a reset controller (even though I don't see any
> reset controller registering action in clk-mt7986-eth.c).
> 
> Please document the ethernet reset in the appropriate dt-bindings header and
> register the reset controller in clk-mt7986-eth.c.
> 
> Finally, you won't need any "ti,syscon-reset" node, and resets will look like
> 
> 	resets = <&ethsys MT7986_ETHSYS_SOMETHING_SWRST>;
> 
> If you need any hint about how to do that, please check clk-mt8195-infra_ao.c.

Hi Angelo,

Thx for the review. This is not strictly related to the wed rx support added in this
series, anyway I will look into it in the next revision.

Regards,
Lorenzo

> 
> Regards,
> Angelo
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20221103/773dd9df/attachment.sig>


More information about the Linux-mediatek mailing list