Re: [PATCH net-next] net: dsa: sja1105: adapt to a SPI controller with a limited max transfer size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 20, 2021 at 04:50:31PM +0300, Vladimir Oltean wrote:

> Only that certain SPI controllers, such as the spi-sc18is602 I2C-to-SPI
> bridge, cannot keep the chip select asserted for that long.
> The spi_max_transfer_size() and spi_max_message_size() functions are how
> the controller can impose its hardware limitations upon the SPI
> peripheral driver.

You should respect both, frankly I don't see any advantage to using
cs_change for something like this - just do a bunch of async SPI
transfers and you'll get the same effect in terms of being able to keep
the queue for the controller primed with more robust support since it's
not stressing edge cases.  cs_change is more for doing things that are
just very non-standard.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux