diff options
| author | Lukas Wunner <[email protected]> | 2022-05-12 10:42:07 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-05-13 11:35:46 +0100 |
| commit | 1e7b81edebc1466d4154c5e716eb87468f3eeee2 (patch) | |
| tree | 71519b28b5b18538fe857eb9d9057b269b16bb19 /lib/mpi/generic_mpih-rshift.c | |
| parent | 7e8b617eb93f9fcaedac02cd19edcad31c767386 (diff) | |
net: phy: smsc: Cope with hot-removal in interrupt handler
If reading the Interrupt Source Flag register fails with -ENODEV, then
the PHY has been hot-removed and the correct response is to bail out
instead of throwing a WARN splat and attempting to suspend the PHY.
The PHY should be stopped in due course anyway as the kernel
asynchronously tears down the device.
Tested-by: Oleksij Rempel <[email protected]> # LAN9514/9512/9500
Tested-by: Ferry Toth <[email protected]> # LAN9514
Signed-off-by: Lukas Wunner <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/generic_mpih-rshift.c')
0 files changed, 0 insertions, 0 deletions