Re: [PATCH v5 2/3] irqchip/gic-pm: update driver to use clk_bulk APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/03/2019 12:13, Sameer Pujar wrote:
> gic-pm driver is using pm-clk framework to manage clock resources, where
> clocks remain always ON. This happens on Tegra devices which use BPMP
> co-processor to manage the clocks. Calls to BPMP are always blocking and
> hence it is necessary to enable/disable clocks during prepare/unprepare
> phase respectively. When pm-clk is used, prepare count of clock is not
> balanced until pm_clk_remove() happens. Clock is prepared in the driver
> probe() and thus prepare count of clock remains non-zero, which in turn
> keeps clock ON always.
> 
> Please note that above mentioned behavior is specific to Tegra devices
> using BPMP for clock management and this should not be seen on other
> devices. Though this patch uses clk_bulk APIs to address the mentioned
> behavior, this works fine for all devices.
> 
> To simplify gic_get_clocks() API is removed and instead probe can do
> necessary setup.
> 
> Suggested-by: Mohan Kumar D <mkumard@xxxxxxxxxx>
> Signed-off-by: Sameer Pujar <spujar@xxxxxxxxxx>
Reviewed-by: Jon Hunter <jonathanh@xxxxxxxxxx>
Tested-by: Jon Hunter <jonathanh@xxxxxxxxxx>

Cheers
Jon

-- 
nvpublic



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux