]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: national: remove the use of the .ack_interrupt()
authorIoana Ciornei <ioana.ciornei@nxp.com>
Mon, 23 Nov 2020 15:38:12 +0000 (17:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Nov 2020 19:18:37 +0000 (11:18 -0800)
commit39994b445b3bafd427b8a42b5392678e9f170e97
tree66de64b41f293e0ccab8099b2f1bbad198b59358
parent09c6e94d64cc8362a989bff0b99d308acc284887
net: phy: national: remove the use of the .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.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/national.c