Thread (6 messages) flat view 6 messages, 4 authors, 2021-10-19

Re: [PATCH net] net: dsa: mt7530: correct ds->num_ports

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-10-17 02:36:35
Also in: linux-mediatek, lkml, netdev, stable


On 10/15/2021 11:24 PM, DENG Qingfang wrote:
Setting ds->num_ports to DSA_MAX_PORTS made DSA core allocate unnecessary
dsa_port's and call mt7530_port_disable for non-existent ports.

Set it to MT7530_NUM_PORTS to fix that, and dsa_is_user_port check in
port_enable/disable is no longer required.

Cc: stable@vger.kernel.org
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Do you really want to target the net tree for this change?
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help