[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2ca3a71d-7363-db6f-8887-889836accbe0@ti.com>
Date: Wed, 9 May 2018 15:36:48 -0500
From: Grygorii Strashko <grygorii.strashko@...com>
To: Sekhar Nori <nsekhar@...com>,
"David S . Miller" <davem@...emloft.net>
CC: <linux-omap@...r.kernel.org>, <netdev@...r.kernel.org>,
Andrew Lunn <andrew@...n.ch>
Subject: Re: [PATCH v3 next-next] drivers: net: davinci_mdio: prevent spurious
timeout
On 05/09/2018 10:45 AM, Sekhar Nori wrote:
> A well timed kernel preemption in the time_after() loop
> in wait_for_idle() can result in a spurious timeout
> error to be returned.
>
> Fix it by using readl_poll_timeout() which takes care of
> this issue.
>
> Reviewed-by: Andrew Lunn <andrew@...n.ch>
> Signed-off-by: Sekhar Nori <nsekhar@...com>
> ---
> v3: simplify return path based on comment from Andrew
>
> The issue has not been personally observed by me, but has
> been reported by users. Sending for next-next given the
> non-critical nature. There is seems to be no easy way to
> reproduce this.
>
Reviewed-by: Grygorii Strashko <grygorii.strashko@...com>
--
regards,
-grygorii
Powered by blists - more mailing lists