]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: aquantia: implement generic .handle_interrupt() callback
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sun, 1 Nov 2020 12:51:04 +0000 (14:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Nov 2020 00:32:00 +0000 (16:32 -0800)
commit3f5e7c4cc265f025b6a7c4d3246e87ab5ec125de
tree202877502dd5d800ff3bae49cd3872ae14e39307
parent69ec21cf08c1635605a48c884878cdaf5cc7eafd
net: phy: aquantia: implement generic .handle_interrupt() callback

In an attempt to actually support shared IRQs in phylib, we now move the
responsibility of triggering the phylib state machine or just returning
IRQ_NONE, based on the IRQ status register, to the PHY driver. Having
3 different IRQ handling callbacks (.handle_interrupt(),
.did_interrupt() and .ack_interrupt() ) is confusing so let the PHY
driver implement directly an IRQ handler like any other device driver.
Make this driver follow the new convention.

Cc: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/aquantia_main.c