Re: [PATCH] net: cadence: macb: disable NAPI on error

2020-06-10 Thread David Miller
From: Corentin Labbe Date: Wed, 10 Jun 2020 09:53:44 + > When the PHY is not working, the macb driver crash on a second try to > setup it. > [ 78.545994] macb e000b000.ethernet eth0: Could not attach PHY (-19) ... > This is due to NAPI left enabled if macb_phylink_connect() fail. > > Fixe

[PATCH] net: cadence: macb: disable NAPI on error

2020-06-10 Thread Corentin Labbe
When the PHY is not working, the macb driver crash on a second try to setup it. [ 78.545994] macb e000b000.ethernet eth0: Could not attach PHY (-19) ifconfig: SIOCSIFFLAGS: No such device [ 78.655457] [ cut here ] [ 78.656014] kernel BUG at /linux-next/include/linux/ne