Merge branch 'net-phy-improve-phy_driver-callback-handle_interrupt'
authorDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 03:58:22 +0000 (20:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 03:58:22 +0000 (20:58 -0700)
commit362d3d88809bbadc20856cf38d6a574099c8bc67
treef644db3d63eed30670b1a79b2a25a6bcb63f5ded
parent225fc22388e5154b37c9d67732f5b01a6db5bc22
parentc4474fe121c975d7b3629cab1ec639dec1f55cb6
Merge branch 'net-phy-improve-phy_driver-callback-handle_interrupt'

Heiner Kallweit says:

====================
net: phy: improve phy_driver callback handle_interrupt

did_interrupt() clears the interrupt, therefore handle_interrupt() can
not check which event triggered the interrupt. To overcome this
constraint and allow more flexibility for customer interrupt handlers,
let's decouple handle_interrupt() from parts of the phylib interrupt
handling. Custom interrupt handlers now have to implement the
did_interrupt() functionality in handle_interrupt() if needed.

Fortunately we have just one custom interrupt handler so far (in the
mscc PHY driver), convert it to the changed API and make use of the
benefits.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>