[PATCH net v2 0/2] smsc911x: fix issues when interface is not up yet

From: Wolfram Sang
Date: Mon Mar 20 2023 - 05:21:53 EST


Similar to upstream commit 7f5ebf5dae42 ("ravb: avoid PHY being resumed
when interface is not up"), here is the fix for SMSC911x (patch 2).
Also, I saw a splat running 'ifconfig' when interface was not up. Patch
1 fixes it. Thank to Geert for a comment on this one.

Patches are based on v6.2-rc3 and tested on a Renesas APE6-EK.

Changes since v1:
* patch 1 is not a revert but a proper fix this time


Wolfram Sang (2):
smsc911x: only update stats when interface is up
smsc911x: avoid PHY being resumed when interface is not up

drivers/net/ethernet/smsc/smsc911x.c | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)

--
2.30.2