[PATCH v3 net-next 01/10] net: korina: Fix MDIO functions

2021-04-14 Thread Thomas Bogendoerfer
Fixed MDIO functions to work reliable and not just by accident. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/korina.c | 54 +++ 2 files changed, 36 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethern

Re: [PATCH v3 net-next 01/10] net: korina: Fix MDIO functions

2021-04-15 Thread Andrew Lunn
> +static int korina_mdio_wait(struct korina_private *lp) > +{ > + u32 value; > + > + return readl_poll_timeout_atomic(&lp->eth_regs->miimind, > + value, value & ETH_MII_IND_BSY, > + 1, 1000); > +} > + > +static int k