Re: [PATCH RFC 1/7] spi: Add 'rx_sampling_delay_ns' parameter for clock to RX delay
From: Frank Li
Date: Tue Mar 03 2026 - 16:04:45 EST
From: Frank Li (AI-BOT) <frank.li@xxxxxxx>
> + * @rx_sampling_delay_ns: spi clk to spi rx data delay
Comment is too terse. Expand to clarify the unit and purpose:
"clock-to-RX-data delay in nanoseconds; see tCLQV in device datasheets"
> + /* Transfer characteristics */
> + u32 rx_sampling_delay_ns; /* clk to rx data delay */
The inline comment duplicates the field name. Remove it or expand the
block comment above to explain when/how drivers should use this field.
Also: is u32 the right type? Consider if negative values or larger
ranges are possible, or if this should be `struct spi_delay` for
consistency with cs_setup, cs_hold, cs_inactive above.
> + struct spi_delay cs_inactive;
> + /* Transfer characteristics */
The comment "Transfer characteristics" is vague. Either name it more
specifically (e.g., "RX sampling configuration") or fold it into the
existing block comment at the top of the struct.
---
AI bot review and may be useless.