Re: [PATCH net] net: phy: fix interrupt handling in non-started states

2019-02-13 Thread David Miller
From: Heiner Kallweit 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 Andre

Re: [PATCH net] net: phy: fix interrupt handling in non-started states

2019-02-13 Thread Florian Fainelli
On 2/12/2019 10:56 AM, Heiner Kallweit wrote: > 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

Re: [PATCH net] net: phy: fix interrupt handling in non-started states

2019-02-13 Thread Andrew Lunn
On Tue, Feb 12, 2019 at 07:56:15PM +0100, Heiner Kallweit wrote: > 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 An

Re: [PATCH net] net: phy: fix interrupt handling in non-started states

2019-02-12 Thread Heiner Kallweit
On 12.02.2019 20:37, Andrew Lunn wrote: > On Tue, Feb 12, 2019 at 07:56:15PM +0100, Heiner Kallweit wrote: >> 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

Re: [PATCH net] net: phy: fix interrupt handling in non-started states

2019-02-12 Thread Andrew Lunn
On Tue, Feb 12, 2019 at 07:56:15PM +0100, Heiner Kallweit wrote: > 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 An

[PATCH net] net: phy: fix interrupt handling in non-started states

2019-02-12 Thread Heiner Kallweit
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(),