Messages in this thread | | | Date | Wed, 30 Mar 2022 19:29:17 -0400 | From | Nícolas F. R. A. Prado <> | Subject | Re: [PATCH 1/3] soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom function |
| |
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; >
| |