net: phy: smsc: remove the use of .ack_interrupt()
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 13 Nov 2020 16:52:22 +0000 (18:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 19:37:00 +0000 (11:37 -0800)
commit824ef51f0871b7d11bd6c9e43d753f4062053435
tree7d33df5377843dbb9450cef4b7b9c75fd7cf76e7
parent36b25c26e2caab6c494215b9b5951b44a4f2f60c
net: phy: smsc: 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: Andre Edich <andre.edich@microchip.com>
Cc: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/smsc.c