[PATCH v2] realtek: ensure output drivers are enabled in RTL8231

Sander Vanheule sander at svanheule.net
Thu Sep 30 11:09:29 PDT 2021


Hi Paul,

Thanks for the update, looks good to me.

On Thu, 2021-09-30 at 20:15 +0300, Paul Fertser wrote:
> The bootloader can leave the GPIO expander in a state which doesn't have
> output drivers enabled so GPIOs will properly work for input but output
> operations will have no effect.
> 
> To avoid disrupting the boot in case the bootloader left direction and
> data registers in an inconsistent state (e.g. pulling SoC's reset to 0)
> reconfigure everything as input.
> 
> Signed-off-by: Paul Fertser <fercerpav at gmail.com>

Reviewed-by: Sander Vanheule <sander at svanheule.net>

Best,
Sander





More information about the openwrt-devel mailing list