Re: [PATCH 1/2] net: axienet: recheck condition after timeout in mdio_wait()

2018-10-31 Thread Kurt Kanzenbach
On Tue, Oct 30, 2018 at 11:25:11AM -0700, David Miller wrote: > From: Kurt Kanzenbach > Date: Tue, 30 Oct 2018 10:31:38 +0100 > > > The function could report a false positive if it gets preempted between > > reading > > the XAE_MDIO_MCR_OFFSET register and checking for the timeout. In such a >

[PATCH 1/2] net: axienet: recheck condition after timeout in mdio_wait()

2018-10-30 Thread Kurt Kanzenbach
The function could report a false positive if it gets preempted between reading the XAE_MDIO_MCR_OFFSET register and checking for the timeout. In such a case, the condition has to be rechecked to avoid false positives. Therefore, check for expected condition even after the timeout occurred. Sign