From: David S. Miller Date: Wed, 18 Mar 2020 03:58:22 +0000 (-0700) Subject: Merge branch 'net-phy-improve-phy_driver-callback-handle_interrupt' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=362d3d88809bbadc20856cf38d6a574099c8bc67;p=linux.git 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 --- 362d3d88809bbadc20856cf38d6a574099c8bc67