[PATCH RFC 6/7] spi: spi-mem: Call spi_set_rx_sampling_point() for each op

Frank Li Frank.Li at nxp.com
Tue Mar 3 13:01:11 PST 2026


From: Frank Li (AI-BOT) <frank.li at nxp.com>

Subject: Re: [PATCH RFC 6/7] spi: spi-mem: Call spi_set_rx_sampling_point()
 for each op

> +	op->max_freq = spi_set_rx_sampling_point(mem->spi, op->max_freq);

Does spi_set_rx_sampling_point() return an error code? If so, you need to
check for it. If it can fail, silently ignoring the return value may cause
timing violations. Suggest adding error handling or documenting why failure
is acceptable here.

Also, the blank line before this statement is unnecessary. Remove it to keep
the function compact.

---

AI bot review and may be useless.



More information about the linux-mtd mailing list