[U-Boot] [PATCH] power: rk8xx: fix auto-allocation of priv

Jacob Chen jacobchen110 at gmail.com
Sun May 7 11:00:19 UTC 2017


Hi,

2017-05-06 3:28 GMT+08:00 Philipp Tomsich
<philipp.tomsich at theobroma-systems.com>:
> The recent changes to the RK808 driver caused our BSP to sync-abort in
> the regulator framework, when setting (or rather 'auto-setting') some
> of the LDOs.
>
> Turns out that the auto-allocation of the priv-structure in the rk8xx
> driver was never properly wired up... this commit fixes this issue
> by setting the .priv_auto_alloc_size-field in the driver structure.
>
> X-AffectedPlatforms: RK3399-Q7
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
>
> ---
>
>  drivers/power/pmic/rk8xx.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
> index 394e2ff..ff3bff0 100644
> --- a/drivers/power/pmic/rk8xx.c
> +++ b/drivers/power/pmic/rk8xx.c
> @@ -115,4 +115,5 @@ U_BOOT_DRIVER(pmic_rk8xx) = {
>  #endif
>         .probe = rk8xx_probe,
>         .ops = &rk8xx_ops,
> +       .priv_auto_alloc_size = sizeof(struct rk8xx_priv),
>  };
> --
> 1.9.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot

Sorry for untest patches.
Kever had send a same patch, "rockchip: rk8xx: allocate priv structure
for driver".


More information about the U-Boot mailing list