Re: [PATCH V6 4/6] scsi: ufs: qcom: Align unipro clk attributes configuration as per HPG

From: Nitin Rawat
Date: Mon Sep 04 2023 - 10:44:44 EST


On 9/1/2023 9:13 PM, Bjorn Andersson wrote:
On Fri, Sep 01, 2023 at 05:13:34PM +0530, Nitin Rawat wrote:
Currently CORE_CLK_1US_CYCLES, PA_VS_CORE_CLK_40NS_CYCLES are configured
in clk scaling post change ops.

Move this to clk scaling pre change ops to align completely with hardware
specification. This doesn't bring any functionality change.


How can applying the clock scaling configuration, and "aligning with
hardware specification" not "bring any functionality change"?

If the code is called in a way where there is no difference between pre
and post callbacks, then state that - but it begs the question, why do
we have this "flexible" (complex) callback scheme if it doesn't matter.

Regards,
Bjorn

Hi Bjorn,

Here my intention is to align the sequence completely with HPG. Functionality w.r.t to clock scaling is not impacted here.
I'll update the commit text to capture more details in next patchset.

Thanks,
Nitin