Re: [PATCH 0/2] net: xlinx: mdio: recheck condition after timeout
From: Andrew Lunn
Date: Tue Oct 30 2018 - 08:08:48 EST
On Tue, Oct 30, 2018 at 10:31:37AM +0100, Kurt Kanzenbach wrote:
> Hi,
>
> the Xilinx mdio wait functions may return false positives under certain
> circumstances: If the functions get preempted between reading the corresponding
> mdio register and checking for the timeout, they could falsely indicate a
> timeout.
Hi Kurt
I wonder if it would be possible to add a readx_poll_timeout() which
passes two parameters to op()?
I keep seeing this basic problem in various drivers, and try to point
people towards readx_poll_timeout(), but it is not the best of fit.
Otherwise, could you add a axienet_ior_read_mcr(lp), and use
readx_poll_timeout() as is?
Andrew