Re: [PATCH 2/3] spi: spi-geni-qcom: Set an autosuspend delay of 250 ms

From: Akash Asthana
Date: Tue Jul 07 2020 - 06:19:50 EST



On 7/2/2020 6:15 AM, Douglas Anderson wrote:
In commit 0e3b8a81f5df ("spi: spi-geni-qcom: 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.

Reviewed-by: Akash Asthana<akashast@xxxxxxxxxxxxxx>

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project