Skip to content

Commit 8592eb9

Browse files
diandersandersson
authored andcommitted
spi: spi-qcom-qspi: Set an autosuspend delay of 250 ms
In commit cff8064 ("spi: spi-qcom-qspi: Add interconnect support") the spi_geni_runtime_suspend() and spi_geni_runtime_resume() became a bit slower. Measuring on my hardware I see numbers in the hundreds of microseconds now. Let's use autosuspend to help avoid some of the overhead. Now if we're doing a bunch of transfers we won't need to be constantly chruning. The number 250 ms for the autosuspend delay was picked a bit arbitrarily, so if someone has measurements showing a better value we could easily change this. Fixes: cff8064 ("spi: spi-qcom-qspi: Add interconnect support") Signed-off-by: Douglas Anderson <[email protected]> Acked-by: Mark Brown <[email protected]> Reviewed-by: Rajendra Nayak <[email protected]> Tested-by: Rajendra Nayak <[email protected]> Reviewed-by: Mukesh Kumar Savaliya <[email protected]> Reviewed-by: Akash Asthana <[email protected]> Link: https://lore.kernel.org/r/20200709075113.v2.2.I3c56d655737c89bd9b766567a04b0854db1a4152@changeid Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 2124331 commit 8592eb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spi-qcom-qspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@ static int qcom_qspi_probe(struct platform_device *pdev)
553553
goto exit_probe_master_put;
554554
}
555555

556+
pm_runtime_use_autosuspend(dev);
557+
pm_runtime_set_autosuspend_delay(dev, 250);
556558
pm_runtime_enable(dev);
557559

558560
ret = spi_register_master(master);

0 commit comments

Comments
 (0)