From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Subject: Re: [PATCH v2 1/8] iopoll: Add dealy to read poll Date: Fri, 1 May 2020 02:33:17 +0530 Message-ID: References: <20200430070412.12499-1-jagan@amarulasolutions.com> <20200430070412.12499-2-jagan@amarulasolutions.com> <20200430144628.GU4468@bill-the-cat> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200430144628.GU4468@bill-the-cat> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+glpar-linux-rockchip=m.gmane-mx.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Tom Rini Cc: Patrick Wildt , "open list:ARM/Rockchip SoC..." , Simon Glass , Kever Yang , U-Boot-Denx , Suniel Mahesh , Philipp Tomsich , linux-amarula List-Id: linux-rockchip.vger.kernel.org On Thu, Apr 30, 2020 at 8:16 PM Tom Rini wrote: > > On Thu, Apr 30, 2020 at 12:34:05PM +0530, Jagan Teki wrote: > > > Some drivers and other bsp code not only poll the > > register with timeout but also required to delay > > on each transaction. > > > > This patch add that requirement by adding sleep_us > > variable so-that read_poll_timeout now support > > delay as well. > > > > Cc: Tom Rini > > Signed-off-by: Jagan Teki > > This (and 2/8) need to say what kernel commit you're taking this from, > thanks. Linux supports sleep_us at the beginning where read_poll_timeout supports, i.e. the reason I didn't add the sha1. If that works, I will add the same sha1 and apply via my tree (since it has some SPI changes dependency patch)? Jagan. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Fri, 1 May 2020 02:33:17 +0530 Subject: [PATCH v2 1/8] iopoll: Add dealy to read poll In-Reply-To: <20200430144628.GU4468@bill-the-cat> References: <20200430070412.12499-1-jagan@amarulasolutions.com> <20200430070412.12499-2-jagan@amarulasolutions.com> <20200430144628.GU4468@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Apr 30, 2020 at 8:16 PM Tom Rini wrote: > > On Thu, Apr 30, 2020 at 12:34:05PM +0530, Jagan Teki wrote: > > > Some drivers and other bsp code not only poll the > > register with timeout but also required to delay > > on each transaction. > > > > This patch add that requirement by adding sleep_us > > variable so-that read_poll_timeout now support > > delay as well. > > > > Cc: Tom Rini > > Signed-off-by: Jagan Teki > > This (and 2/8) need to say what kernel commit you're taking this from, > thanks. Linux supports sleep_us at the beginning where read_poll_timeout supports, i.e. the reason I didn't add the sha1. If that works, I will add the same sha1 and apply via my tree (since it has some SPI changes dependency patch)? Jagan.