From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v3 next-next] drivers: net: davinci_mdio: prevent spurious timeout Date: Thu, 10 May 2018 17:23:39 -0400 (EDT) Message-ID: <20180510.172339.458302745153151907.davem@davemloft.net> References: <20180509154515.5968-1-nsekhar@ti.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: grygorii.strashko@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, andrew@lunn.ch To: nsekhar@ti.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:37486 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104AbeEJVXp (ORCPT ); Thu, 10 May 2018 17:23:45 -0400 In-Reply-To: <20180509154515.5968-1-nsekhar@ti.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Sekhar Nori Date: Wed, 9 May 2018 21:15:15 +0530 > 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 > Signed-off-by: Sekhar Nori Applied.