[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190213.204457.524014533603151603.davem@davemloft.net>
Date: Wed, 13 Feb 2019 20:44:57 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: hkallweit1@...il.com
Cc: andrew@...n.ch, f.fainelli@...il.com, netdev@...r.kernel.org,
linux@...linux.org.uk
Subject: Re: [PATCH net] net: phy: fix interrupt handling in non-started
states
From: Heiner Kallweit <hkallweit1@...il.com>
Date: Tue, 12 Feb 2019 19:56:15 +0100
> phylib enables interrupts before phy_start() has been called, and if
> we receive an interrupt in a non-started state, the interrupt handler
> returns IRQ_NONE. This causes problems with at least one Marvell chip
> as reported by Andrew.
> Fix this by handling interrupts the same as in phy_mac_interrupt(),
> basically always running the phylib state machine. It knows when it
> has to do something and when not.
> This change allows to handle interrupts gracefully even if they
> occur in a non-started state.
>
> Fixes: 2b3e88ea6528 ("net: phy: improve phy state checking")
> Reported-by: Andrew Lunn <andrew@...n.ch>
> Signed-off-by: Heiner Kallweit <hkallweit1@...il.com>
Applied, thanks Heiner.
Powered by blists - more mailing lists