Re: [PATCH net v3] net: pcs: rzn1-miic: Reset PRCMD state before unprotect sequence

From: Simon Horman

Date: Fri Sep 25 2026 - 09:11:17 EST


On Fri, Sep 18, 2026 at 04:30:16AM +0000, Yoshihisa Yamamoto wrote:
> On RZ/T2H MIIC, writing 0x0000 to PRCMD resets the command state
> machine to the IDLE state.
>
> Reset PRCMD before issuing the unprotect sequence so that it always
> starts from a known state, regardless of any previous PRCMD activity.
>
> Fixes: 419747319e3a ("net: pcs: rzn1-miic: Add per-SoC control for MIIC register unlock/lock")
> Signed-off-by: Yoshihisa Yamamoto <yoshihisa.yamamoto.xn@xxxxxxxxxxx>
> ---
> v3:
> - Add Fixes tag
>
> v2: https://lore.kernel.org/all/TYCPR01MB748157ECB6B92D8E3FFD433BA4B82@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> - Fix indentation
>
> v1: https://lore.kernel.org/all/TYCPR01MB748139F059DF2459B9813416A4B92@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Reviewed-by: Simon Horman <horms@xxxxxxxxxx>