Thread (40 messages) 40 messages, 5 authors, 2018-12-18

Re: [PATCH V2 09/21] clk: tegra: dfll: add protection for find_vdd_map APIs

From: Joseph Lo <hidden>
Date: 2018-12-14 07:42:50
Also in: linux-clk, linux-tegra

On 12/13/18 8:46 PM, Jon Hunter wrote:
On 13/12/2018 09:34, Joseph Lo wrote:
quoted
The DFLL hardware supports both I2C and PWM based regulator. SW driver
only touches I2C regulator when generating LUT. And shouldn't touch it
anymore once the DFLL is enabled.
I am not sure that the last two sentences are above are relevant and
confused me a little at first. I would be tempted to drop them.
Indeed, they are irrelevant. Just want to describe that once we created 
LUT table, it means we cached the regulator output table in driver. Then 
we don't need to query voltage data from regulator again. This is 
specific to the I2C mode only and happens in driver initialization time. 
Which means the two APIs we add the WARN here maybe not really 
necessary. Because this is suggested by Peter.

Hi Peter,

Just want to double confirm again, do we really need to add a WARN here? 
Since we don't and shouldn't access these two APIs once the driver is 
working, all the voltage query should be via LUT. So I think add WARN 
here is not really necessary.

Thanks,
Joseph
quoted
This patch adds the protection for the APIs that only work with I2C mode
to avoid they could be called accidentally.

Signed-off-by: Joseph Lo <redacted>
Furthermore, I would be tempted to squash this into patch #7. I am not
sure another patch is warranted here.

Cheers
Jon
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help