]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: fix freeing unused SERDES IRQ
authorVivien Didelot <vivien.didelot@gmail.com>
Wed, 28 Aug 2019 18:55:11 +0000 (14:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 00:23:54 +0000 (17:23 -0700)
commit4f07a543cd386a2a6023f2d779faef2672ecbca1
tree569e6f1ea2606aaee9a0109f0e4955788ee616ad
parente35b3bdca4de50f774b59e4bc5ffe6ff8002280d
net: dsa: mv88e6xxx: fix freeing unused SERDES IRQ

Now mv88e6xxx does not enable its ports at setup itself and let
the DSA core handle this, unused ports are disabled without being
powered on first. While that is expected, the SERDES powering code
was assuming that a port was already set up before powering it down,
resulting in freeing an unused IRQ. The patch fixes this assumption.

Fixes: 0a9fc39ab7a3 ("net: dsa: mv88e6xxx: enable SERDES after setup")
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c