RTEMS | SPI framework does not conform to the Linux interface (#5116)
Kinsey Moore (@opticron)
gitlab at rtems.org
Mon Aug 12 15:15:39 UTC 2024
Kinsey Moore created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5116
## Summary
The SPI framework message interface (struct spi_ioc_transfer) does not match the usage of the Linux equivalent (struct spi_transfer). The fields rx_nbits and tx_nbits are supposed to be used to determine the width of the SPI interface (single, dual, quad), but instead these are provided as part of the mode member which does not appear in the Linux variant of the structure. The mode variable as used in the spi_ioc_transfer structure is a duplicate of the device's (struct spi_bus) mode member.
It appears as if the mode variable was added to allow more flexibility of configuration on a per-message basis than the Linux API allows, but this has allowed 2 different mechanisms to set the SPI interface width.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5116
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240812/817ce40a/attachment.htm>
More information about the bugs
mailing list