[PATCH 1/3] soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom function

Nícolas F. R. A. Prado nfraprado at collabora.com
Wed Mar 30 16:29:17 PDT 2022


Hi Angelo,

On Tue, Mar 29, 2022 at 05:22:43PM +0200, AngeloGioacchino Del Regno wrote:
> @@ -1303,7 +1297,8 @@ static int pwrap_read32(struct pmic_wrapper *wrp, u32 adr, u32 *rdata)
>  		pwrap_writel(wrp, ((msb << 30) | (adr << 16)),
>  			     PWRAP_WACS2_CMD);
>  
> -		ret = pwrap_wait_for_state(wrp, pwrap_is_fsm_vldclr);
> +		ret = readx_poll_timeout(pwrap_is_fsm_idle, wrp, tmp, tmp,

Should be pwrap_is_fsm_vldclr.

Thanks,
Nícolas

> +					 PWRAP_POLL_DELAY_US, PWRAP_POLL_TIMEOUT_US);
>  		if (ret)
>  			return ret;
>  



More information about the Linux-mediatek mailing list