From: andi@etezian.org
To: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com,
krzk@kernel.org, linux-spi@vger.kernel.org, broonie@kernel.org,
kgene@kernel.org, linux-arm-kernel@lists.infradead.org,
m.szyprowski@samsung.com
Subject: Re: [PATCH 6/6] spi: spi-s3c64xx: Allow higher transfer lengths in polling IO mode
Date: Tue, 17 Apr 2018 04:19:42 +0900 [thread overview]
Message-ID: <93a6b80d599a40a39ae396f5dcd7c5b7@etezian.org> (raw)
In-Reply-To: <20180416154021.25626-6-s.nawrocki@samsung.com>
Hi Sylwester,
On 17.04.2018 00:40, Sylwester Nawrocki wrote:
> Some variants of the SPI controller have no DMA support, in such case
> SPI transfers longer than the FIFO length are not currently properly
> handled by the driver. Fix it by doing multiple transfers in the
> s3c64xx_spi_transfer_one() function if the SPI transfer length exceeds
> the FIFO size.
this patch is a mix of cosmetics and what you are actually describing
in the commit log...
> @@ -634,11 +634,15 @@ static int s3c64xx_spi_transfer_one(struct
> spi_master *master,
> struct spi_transfer *xfer)
> {
> struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master);
> + const unsigned int fifo_len = (FIFO_LVL_MASK(sdd) >> 1) + 1;
> + const void *tx_buf = NULL;
> + void *rx_buf = NULL;
> + int target_len = 0, origin_len = 0;
> + bool use_dma = false;
> int status;
> u32 speed;
> u8 bpw;
> unsigned long flags;
> - int use_dma;
... for example 'use_dma' bool instead of int or the 'fifo_len'. I agree
with these changes and, even though they are trivial, I would prefer
having them in separate patches.
Thanks,
Andi
next prev parent reply other threads:[~2018-04-16 19:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180416154055epcas2p4c08bb2254e79368a29eb481cddc59855@epcas2p4.samsung.com>
2018-04-16 15:40 ` [PATCH 1/6] spi: spi-s3c64xx: Remove unused driver data structure tgl_spi field Sylwester Nawrocki
[not found] ` <CGME20180416154109epcas2p1696b9cdc72403fe5abdd0a2117067c8d@epcas2p1.samsung.com>
2018-04-16 15:40 ` [PATCH 2/6] spi: spi-s3c64xx: Remove unused s3c64xx_spi_hwinit() function argument Sylwester Nawrocki
2018-04-16 19:06 ` andi
2018-04-17 6:28 ` Krzysztof Kozlowski
[not found] ` <CGME20180416154122epcas1p1ae714af12f8da08783c47fcd820c40e7@epcas1p1.samsung.com>
2018-04-16 15:40 ` [PATCH 3/6] spi: spi-s3c64xx: Drop unused enable_datapath() " Sylwester Nawrocki
2018-04-16 19:09 ` andi
2018-04-17 10:02 ` Sylwester Nawrocki
2018-04-17 10:51 ` Krzysztof Kozlowski
2018-04-17 6:28 ` Krzysztof Kozlowski
[not found] ` <CGME20180416154130epcas1p492c86e911db645acf32d960281e8b297@epcas1p4.samsung.com>
2018-04-16 15:40 ` [PATCH 4/6] spi: spi-s3c64xx: Do not ignore timeout errors in polling I/O mode Sylwester Nawrocki
2018-04-16 19:12 ` andi
2018-04-17 6:30 ` Krzysztof Kozlowski
2018-04-17 10:02 ` Mark Brown
[not found] ` <CGME20180416154158epcas2p3120ff2617db98504c4e48d5cc4c42036@epcas2p3.samsung.com>
2018-04-16 15:40 ` [PATCH 5/6] spi: spi-s3c64xx: Fix indentation in the register offset definitions Sylwester Nawrocki
2018-04-16 19:14 ` andi
2018-04-17 6:30 ` Krzysztof Kozlowski
[not found] ` <CGME20180416154208epcas1p1774dd679e3564be916901a180315943b@epcas1p1.samsung.com>
2018-04-16 15:40 ` [PATCH 6/6] spi: spi-s3c64xx: Allow higher transfer lengths in polling IO mode Sylwester Nawrocki
2018-04-16 19:19 ` andi [this message]
2018-04-17 9:07 ` Sylwester Nawrocki
2018-04-16 19:04 ` [PATCH 1/6] spi: spi-s3c64xx: Remove unused driver data structure tgl_spi field andi
2018-04-17 6:27 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=93a6b80d599a40a39ae396f5dcd7c5b7@etezian.org \
--to=andi@etezian.org \
--cc=b.zolnierkie@samsung.com \
--cc=broonie@kernel.org \
--cc=kgene@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=s.nawrocki@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).