On Wed, Mar 04, 2026 at 01:00:13AM +0800, Ng, Boon Khai wrote:
> Hi Conor, Tom,
> 
> > > Why would this be inappropraite for the Linux kernel, once the system is
> > > fully supported in Linux is the first question to answer. Thanks.
> 
> As Conor mentioned, the bits_per_word setting is obtained from the
> controller and validated at runtime.
> 
> Additionally, bits_per_word can also be sourced from ACPI, as shown in the
> Linux SPI driver code
> 
> https://github.com/torvalds/linux/blob/af4e9ef3d78420feb8fe58cd9a1ab80c501b3c08/drivers/spi/spi.c#L2739C7-L2739C20
> 
> > in its spi_device struct. I don't know if u-boot has similar
> > functionality in its code, but looking at dm_spi_slave_plat which I
> > think is your version of spi_device, that information is not there.
> > 
> Currently, U-Boot only supports an hardcoded 8-bit bits_per_word
> configuration.

Thanks. And can we reasonably follow what Linux does here instead?

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to