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

Mark Kettenis mark.kettenis at xs4all.nl
Sat May 13 20:31:10 UTC 2017


> 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>

Also fixes the Firefly-RK3399.

Reviewed-by: Mark Kettenis <kettenis at openbsd.org>
Tested-by: Mark Kettenis <kettenis at openbsd.org>

>  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



More information about the U-Boot mailing list