RE: [PATCH v2] drivers: soc: xilinx: Call InitFinalize from late_initcall_sync instead of probe

2020-09-11 Thread Rajan Vaja
es Cook ; Dmitry > Torokhov ; Rajan Vaja ; > Linux ARM ; linux- > ker...@vger.kernel.org; Tejas Patel ; Jolly Shah > ; Rajan Vaja > Subject: Re: [PATCH v2] drivers: soc: xilinx: Call InitFinalize from > late_initcall_sync instead of probe > > > > On 10. 09. 20 10:35,

Re: [PATCH v2] drivers: soc: xilinx: Call InitFinalize from late_initcall_sync instead of probe

2020-09-11 Thread Michal Simek
On 10. 09. 20 10:35, Arnd Bergmann wrote: > On Thu, Sep 10, 2020 at 8:50 AM Michal Simek wrote: >>> @@ -246,6 +245,23 @@ static int zynqmp_pm_remove(struct platform_device >>> *pdev) >>> return 0; >>> } >>> >>> +static int __init do_init_finalize(void) >>> +{ >>> + struct device_nod

Re: [PATCH v2] drivers: soc: xilinx: Call InitFinalize from late_initcall_sync instead of probe

2020-09-10 Thread Arnd Bergmann
On Thu, Sep 10, 2020 at 8:50 AM Michal Simek wrote: > > @@ -246,6 +245,23 @@ static int zynqmp_pm_remove(struct platform_device > > *pdev) > > return 0; > > } > > > > +static int __init do_init_finalize(void) > > +{ > > + struct device_node *np; > > + > > + np = of_find_compatible_

Re: [PATCH v2] drivers: soc: xilinx: Call InitFinalize from late_initcall_sync instead of probe

2020-09-09 Thread Michal Simek
Hi Arnd, On 10. 09. 20 1:10, Amit Sunil Dhamne wrote: > From: Rajan Vaja > > Initially all devices are in power up state. Firmware expect that > processor should call InitFinalize API once it have requested devices > which are required so that it can turn off all unused devices and > save power.

[PATCH v2] drivers: soc: xilinx: Call InitFinalize from late_initcall_sync instead of probe

2020-09-09 Thread Amit Sunil Dhamne
From: Rajan Vaja Initially all devices are in power up state. Firmware expect that processor should call InitFinalize API once it have requested devices which are required so that it can turn off all unused devices and save power. From Linux, PM driver calls InitFinalize to inform the firmware th