[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1400484704.1464.4.camel@iivanov-dev>
Date: Mon, 19 May 2014 10:31:44 +0300
From: "Ivan T. Ivanov" <iivanov@...sol.com>
To: Andy Gross <agross@...eaurora.org>
Cc: Mark Brown <broonie@...nel.org>, linux-spi@...r.kernel.org,
linux-arm-msm@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Bjorn Andersson <bjorn.andersson@...ymobile.com>
Subject: Re: [PATCH 2/4] spi: qup: Correct selection of FIFO/Block mode
On Tue, 2014-05-13 at 16:34 -0500, Andy Gross wrote:
> This patch fixes the calculation for determining whether to use FIFO or BLOCK
> mode.
<snip>
> @@ -368,7 +368,7 @@ static int spi_qup_io_config(struct spi_device *spi, struct spi_transfer *xfer)
> n_words = xfer->len / w_size;
> controller->w_size = w_size;
>
> - if (n_words <= controller->in_fifo_sz) {
> + if (n_words <= (controller->in_fifo_sz / sizeof(u32))) {
Wouldn't be better to divide by w_size? Probably will not make
too much difference, but..
> mode = QUP_IO_M_MODE_FIFO;
Regards,
Ivan
--
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