net: phy: marvell: remove the use of .ack_interrupt()
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 13 Nov 2020 16:52:14 +0000 (18:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 19:36:59 +0000 (11:36 -0800)
commit1f6d0f267a1476ae89ddf3cf6b7aab5ec1ead2da
tree30020addd419065cefd4c89b1152946c1018763e
parenta0723b375f9387f82e65382239144dc89c5175e1
net: phy: marvell: remove the use of .ack_interrupt()

In preparation of removing the .ack_interrupt() callback, we must replace
its occurrences (aka phy_clear_interrupt), from the 2 places where it is
called from (phy_enable_interrupts and phy_disable_interrupts), with
equivalent functionality.

This means that clearing interrupts now becomes something that the PHY
driver is responsible of doing, before enabling interrupts and after
clearing them. Make this driver follow the new contract.

Cc: Maxim Kochetkov <fido_max@inbox.ru>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/marvell.c