Re: [PATCH 11/16] spi: bcm63xx-hsspi: Add prepend feature support
From: Mark Brown
Date: Thu Jan 12 2023 - 12:38:01 EST
On Wed, Jan 11, 2023 at 11:42:57AM -0800, William Zhang wrote:
> On 01/10/2023 01:18 PM, Mark Brown wrote:
> > spi_replace_transfers().
> Okay I saw this function is used by spi_split_transfers_maxsize which a few
> drivers use to limit the transfer size and it make sense. I can come up
> something like spi_merge_transfers to be used by my driver's prepend
> function. But it has the same issue I mentioned early as the these tx, rx
> transfers have the dependency on the order they present in the original
> transfer list for my prepend function to work. And for the same reason, it
> won't be generally useful for other drivers.
I wouldn't be surprised if something else turned up which had similar
constraints, SPI isn't the most complex thing ever so there's a lot of
patterns in controlers that get reproduced.
Attachment:
signature.asc
Description: PGP signature