[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <uib7it3noxnkekza4p4ngf5w677fizrb7j5ov7ekos2vinge5x@sh24m63gmkrr>
Date: Thu, 12 Sep 2024 12:02:04 +0200
From: Andi Shyti <andi.shyti@...nel.org>
To: Mukesh Kumar Savaliya <quic_msavaliy@...cinc.com>
Cc: konrad.dybcio@...aro.org, andersson@...nel.org,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org, linux-i2c@...r.kernel.org,
quic_vdadhani@...cinc.com, vkoul@...nel.org
Subject: Re: [PATCH] i2c: i2c-qcom-geni: Serve transfer during early resume
stage
Hi Mukesh,
Is this patch still needed? Can anyone active in the Qualcomm
drivers take a look?
On Tue, Apr 02, 2024 at 03:57:41PM GMT, Mukesh Kumar Savaliya wrote:
> pm_runtime_get_sync() function fails during PM early resume and returning
> -EACCES because runtime PM for the device is disabled at the early stage
> causing i2c transfer to fail. Make changes to serve transfer with force
> resume.
>
> 1. Register interrupt with IRQF_EARLY_RESUME and IRQF_NO_SUSPEND flags
> to avoid timeout of transfer when IRQ is not enabled during early stage.
> 2. Do force resume if pm_runtime_get_sync() is failing after system
> suspend when runtime PM is not enabled.
> 3. Increment power usage count after forced resume to balance
> it against regular runtime suspend.
>
> Co-developed-by: Viken Dadhaniya <quic_vdadhani@...cinc.com>
> Signed-off-by: Viken Dadhaniya <quic_vdadhani@...cinc.com>
> Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@...cinc.com>
Should this be considered a fix?
Thanks,
Andi
Powered by blists - more mailing lists