mbox series

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

Message ID 20230320092041.1656-1-wsa+renesas@sang-engineering.com (mailing list archive)
Headers show
Series smsc911x: fix issues when interface is not up yet | expand

Message

Wolfram Sang March 20, 2023, 9:20 a.m. UTC
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(-)