]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: tegra210-quad: Add runtime autosuspend support
authorVishwaroop A <va@nvidia.com>
Tue, 24 Feb 2026 09:24:52 +0000 (09:24 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 24 Feb 2026 15:22:17 +0000 (15:22 +0000)
commit7c12f6ead4672cb08b74e6f6115eb04dca8ccfa4
tree235f10c9dc349241ad2f212adfb41a7bf4a64b73
parent507a071d9868cb60e4e76f8a06fc8eb014f59ae4
spi: tegra210-quad: Add runtime autosuspend support

Using Tegra234, it was found that it takes about 10us to disable clocks
and 20us to enable clocks, adding about 30us overhead per operation.
For a 4MB firmware update with 16,384 page programs, this results in
~491ms total overhead (12% impact).

With Tegra234, flash operations were observed to occur in bursts with
50-200μs gaps between page programs. Testing on Tegra234 with various
operation patterns shows 500ms delay provides optimal balance, and for
longer operations (>500ms), the overhead is negligible. Therefore,
update the driver to use pm-runtime autosuspend with the default timeout
of 500ms to reduce the clock gating overhead during consecutive QSPI
transfers.

Signed-off-by: Vishwaroop A <va@nvidia.com>
Link: https://patch.msgid.link/20260224092452.1482800-1-va@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra210-quad.c