Skip to content

Commit 9f56ff5

Browse files
decsnynashif
authored andcommitted
drivers: mdio: Clear interrupt signal in ISR
Apparently, disabling the intterupt is not enough, because without clearing the flag, some errors are occurring. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent 5474b61 commit 9f56ff5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mdio/mdio_nxp_enet.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ static void nxp_enet_mdio_isr_cb(const struct device *dev)
170170
{
171171
struct nxp_enet_mdio_data *data = dev->data;
172172

173+
data->base->EIR |= ENET_EIR_MII_MASK;
174+
173175
/* Signal that operation finished */
174176
k_sem_give(&data->mdio_sem);
175177

0 commit comments

Comments
 (0)