]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: broadcom: remove use of ack_interrupt()
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sun, 1 Nov 2020 12:51:07 +0000 (14:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Nov 2020 00:32:39 +0000 (16:32 -0800)
commite5f9d933f4663e775942477c09b04b058c02125e
treeb1e58936a78a19703c0ac9b888d88515d27451a5
parentd770ceca525ddcbebd62a47d0aa3c382cbb90298
net: phy: broadcom: remove 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: Michael Walle <michael@walle.cc>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/bcm-cygnus.c
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/bcm54140.c
drivers/net/phy/bcm63xx.c
drivers/net/phy/bcm87xx.c
drivers/net/phy/broadcom.c