• Ioana Ciornei's avatar
    net: phy: micrel: remove the use of .ack_interrupt() · c0c99d0c
    Ioana Ciornei authored
    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: Divya Koppera <Divya.Koppera@microchip.com>
    Cc: Oleksij Rempel <o.rempel@pengutronix.de>
    Cc: Philippe Schenker <philippe.schenker@toradex.com>
    Cc: Marek Vasut <marex@denx.de>
    Cc: Antoine Tenart <atenart@kernel.org>
    Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    c0c99d0c
micrel.c 36.5 KB