]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: adin: remove the use of the .ack_interrupt()
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 13 Nov 2020 16:52:26 +0000 (18:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 19:37:09 +0000 (11:37 -0800)
commit43e9fa50dd3c2b1af0b996d09b44c9432a4bbec1
tree46e46a06c83d81b6531c569f8cc967a8fda4b7fe
parent2c3924f70309e2be422d0159facb45bf65aad0f7
net: phy: adin: 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>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/adin.c