[PATCH v2 2/6] spi: Export spi_set_cs() function
Heiko Stübner
heiko at sntech.de
Fri Nov 13 05:56:33 PST 2026
Am Freitag, 13. November 2026, 14:50:13 Mitteleuropäische Normalzeit schrieb Heiko Stuebner:
> From: Heiko Stuebner <heiko.stuebner at cherry.de>
>
> While spi_set_cs is currently only used when the SPI framework manages
> the core transfer function, it contains a lot of functionality that
> can be used for the upcoming atomic transfers, where a driver implementing
> that atomic transfer could profit from not having to duplicate the
> chip-select functionality.
>
> The only sleeping part was the spi_delay_exec function doing the
> chip-select delays, which can now also run in atomic contexts.
>
> So export the function.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner at cherry.de>
> ---
Dang, overlooked spi_toggle_csgpiod() called in spi_set_cs(), which does
gpiod_set_value_cansleep().
More information about the Linux-rockchip
mailing list