From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 3 Aug 2018 11:09:13 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Fabio Estevam Cc: Stefan Wahren , Krummsdorf Michael , Michael Turquette , Stephen Boyd , Sascha Hauer , Fabio Estevam , Shawn Guo , linux-clk Subject: Re: [PATCH] clk: mxs: ensure that i.MX28's ref_io clks are not operated too fast Message-ID: <20180803090913.3lqwfowtyluzsamp@pengutronix.de> References: <20170503185625.10297-1-u.kleine-koenig@pengutronix.de> <20180726143232.ds22exgxiv6zlsn5@pengutronix.de> <10f5e651-caf4-3fe0-87c0-fe42ccdc6349@i2se.com> <20180801093113.wnjeg5a3rjbh7yc4@pengutronix.de> <20180802083318.qzsqchrf46oh2ne3@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <20180802083318.qzsqchrf46oh2ne3@pengutronix.de> List-ID: On Thu, Aug 02, 2018 at 10:33:18AM +0200, Uwe Kleine-König wrote: > Hello, > > On Wed, Aug 01, 2018 at 11:31:13AM +0200, Uwe Kleine-König wrote: > > On Thu, Jul 26, 2018 at 12:02:42PM -0300, Fabio Estevam wrote: > > > On Thu, Jul 26, 2018 at 11:50 AM, Stefan Wahren wrote: > > > > > > > I only want to note that we are using this ugly hack for Duckbill to avoid > > > > this issue: > > > > > > > > https://github.com/I2SE/linux/commit/e457d5e0309c07e30e8dd8b17c32f7b3cbdd9547 > > > > > > Do you see the problem on TQMa28L with Stefan's hack applied? > > > > With this change by Stefan the bug is not reproducible. Your change to > > set the bypass bits only later doesn't help though. > > I wanted to try without DMA (by just removing dem dma properties in the > mmc node) but this makes the driver fail to probe :-| I tested with diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index 3d216b950b41..36374e71d80a 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c @@ -401,7 +401,7 @@ static int mxs_spi_transfer_one(struct spi_master *master, * DMA only: 2.164808 seconds, 473.0KB/s * Combined: 1.676276 seconds, 610.9KB/s */ - if (t->len < 32) { + if (t->len < 32 || 1) { writel(BM_SSP_CTRL1_DMA_ENABLE, ssp->base + HW_SSP_CTRL1(ssp) + STMP_OFFSET_REG_CLR); which effectively disables DMA, the problem is still there. So DMA can be ruled out. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |