Re: [PATCH] spi: cadence-quadspi: Fix clock enable underflows due to runtime PM

From: Dutta, Anurag

Date: Fri Dec 12 2025 - 02:14:38 EST



On 12-12-2025 11:37, Mark Brown wrote:
On Fri, Dec 12, 2025 at 10:04:47AM +0530, Dutta, Anurag wrote:

Let me send a patch with pm_runtime_get_sync(). If changes are required,
please let me know.
BTW note that we do need to have a clock disable for the case where
CQSPI_DISABLE_RUNTIME_PM is quirked in as well as the with/without
runtime PM cases.
ok, will remove this :

if (!(ddata && (ddata->quirks & CQSPI_DISABLE_RUNTIME_PM)))
because pm_runtime_get_sync() >=0 will be true even if
pm_runtime_enable() is never invoked.