From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePkNV-0002L7-Ib for barebox@lists.infradead.org; Fri, 15 Dec 2017 07:25:56 +0000 Date: Fri, 15 Dec 2017 08:25:31 +0100 From: Sascha Hauer Message-ID: <20171215072531.zas5242xsgrsctoq@pengutronix.de> References: <1513241754-1754-1-git-send-email-akurz@blala.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1513241754-1754-1-git-send-email-akurz@blala.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] spi: imx: make xchg_single timeout value compatible for older boards To: Alexander Kurz Cc: barebox@lists.infradead.org, Uwe Kleine-Koenig On Thu, Dec 14, 2017 at 09:55:54AM +0100, Alexander Kurz wrote: > A call of xchg_single will issue the transfer of 24 data bits with a given > maximum frequency. Since there exist some i.MX based boards with > spi-max-frequency = <100000>, change the xchg_single timeout to still > support those boards. > > Fixes: 1439cdf7c6fc ("spi: imx: add timeout to xchg_single") > Signed-off-by: Alexander Kurz > --- > drivers/spi/imx_spi.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) Applied, thanks Sascha > > diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c > index 7819879..0827de7 100644 > --- a/drivers/spi/imx_spi.c > +++ b/drivers/spi/imx_spi.c > @@ -32,8 +32,11 @@ > #include > #include > > -/* time to wait for STAT_RR getting set */ > -#define IMX_SPI_RR_TIMEOUT 10000 /* ns */ > +/* > + * time to wait for STAT_RR getting set, should allow the transfer > + * of 24 bits at spi-max-frequency of 100kHz > + */ > +#define IMX_SPI_RR_TIMEOUT 250000 /* ns */ > > struct imx_spi { > struct spi_master master; > -- > 2.1.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox