# \[RESEND PATCH v2 1/2\] soc: amlogic: add Meson GX VPU Domains driver

- From: Kevin Hilman \<khilman@baylibre.com\>
- Date: 2017-10-30 16:56:37 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2017/10/5120572
- Thread: https://ratatoskr.run/linux-amlogic/2017/10/5120572/t.md

```text
Ulf Hansson [ref] writes:

> Hi Neil,
>
> [...]
>
>> +
>> +       pm_genpd_init(&vpu_hdmi_pd.genpd, &simple_qos_governor,
>> +                     meson_gx_pwrc_vpu_get_power(&vpu_hdmi_pd));
>> +
>
> This means that you may initialize the genpd in powered on state.
>
> For that scenario, I think you will hit a clock unprepare/disable
> in-balance issue when genpd calls your ->power_off() callback, simply
> because you didn't call clk_prepare_enable() for the clocks first.

Yup, in my testing, I definitely hit this.

Kevin
```
