net: stmmac: wol register clear

clear the wol register by reading it.

Change-Id: I4b127b569c6278680f9d8dc16b4e4c3e367c1c98
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
This commit is contained in:
Suraj Jaiswal 2020-08-12 15:40:12 +05:30 • committed by Gerrit - the friendly Code Review server
commit c3d8f28033

View file

@ -757,6 +757,13 @@ static void ethqos_handle_phy_interrupt(struct qcom_ethqos *ethqos)
ETHQOSDBG("MICREL PHY Intr EN Reg (%#x) = %#x\n",
DWC_ETH_QOS_MICREL_PHY_INTCS, micrel_intr_status);
/**
* Call ack interrupt to clear the WOL
* interrupt status fields
*/
if (priv->phydev->drv->ack_interrupt)
priv->phydev->drv->ack_interrupt(priv->phydev);
/* Interrupt received for link state change */
if (phy_intr_status & LINK_STATE_MASK) {
if (micrel_intr_status & MICREL_LINK_UP_INTR_STATUS)