]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: Stop SFP polling and interrupt handling during shutdown
authorRobert Hancock <hancock@sedsystems.ca>
Fri, 7 Jun 2019 16:42:35 +0000 (10:42 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 02:25:59 +0000 (19:25 -0700)
commit2f3d5e0ceaa5be51ff588c9031dfa2d360358d7a
treecfbe3dd22ff0b75d7e06866517479619c720b97d
parent02494304f3cdb07901d3734469e9f5031e3ac30c
net: sfp: Stop SFP polling and interrupt handling during shutdown

SFP device polling can cause problems during the shutdown process if the
parent devices of the network controller have been shut down already.
This problem was seen on the iMX6 platform with PCIe devices, where
accessing the device after the bus is shut down causes a hang.

Free any acquired GPIO interrupts and stop all delayed work in the SFP
driver during the shutdown process, so that we ensure that no pending
operations are still occurring after the SFP shutdown completes.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c