OSDN Git Service

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)
commit257c25598584f9f7aaccbcd7b9a6faf23aec3156
treecfbe3dd22ff0b75d7e06866517479619c720b97d
parent5270041d342de6f1e6a3b6634c1ceaa67d1f87ea
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