[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <04376A3D786BD947B28569C998A374A62E280DF4@NA-MBX-02.mgc.mentorg.com>
Date: Thu, 1 Oct 2015 00:08:59 +0000
From: "Bondarenko, Anton" <Anton_Bondarenko@...tor.com>
To: Robin Gong <b38343@...escale.com>
CC: "broonie@...nel.org" <broonie@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-spi@...r.kernel.org" <linux-spi@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"Wang, Jiada (ESD)" <Jiada_Wang@...tor.com>,
"Zapolskiy, Vladimir" <Vladimir_Zapolskiy@...tor.com>
Subject: Re: [PATCH v2 2/8] spi: imx: replace fixed timeout with calculated
one
On 30.09.2015 10:31, Robin Gong wrote:
> On Fri, Sep 25, 2015 at 07:57:09PM +0200, Anton Bondarenko wrote:
>> @@ -957,8 +988,10 @@ static int spi_imx_dma_transfer(struct spi_imx_data *spi_imx,
>> dmaengine_terminate_all(master->dma_tx);
>> dmaengine_terminate_all(master->dma_rx);
>> } else {
>> + transfer_timeout = spi_imx_calculate_timeout(spi_imx,
>> + spi_imx->wml * 2);
> *2 again here? Although spi_imx_calculate_timeout has double it.
WIll be fixed in V3
>> timeout = wait_for_completion_timeout(
>> - &spi_imx->dma_rx_completion, IMX_DMA_TIMEOUT);
>> + &spi_imx->dma_rx_completion, transfer_timeout);
>> if (!timeout) {
>> pr_warn("%s %s: I/O Error in DMA RX\n",
>> dev_driver_string(&master->dev),
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists