]> www.infradead.org Git - nvme.git/commit
net: stmmac: dwmac-stm32: update err status in case different of stm32mp13
authorChristophe Roullier <christophe.roullier@foss.st.com>
Mon, 1 Jul 2024 06:48:38 +0000 (08:48 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Jul 2024 13:47:13 +0000 (15:47 +0200)
commitf8dbe58e2f1a3c091531b3f8ef86b393ceee67d1
tree51a70bea02cd20d629d28f49fcff0a614de52c89
parent3cd1d4651cebe9776a0142ade36ff9f2e3545436
net: stmmac: dwmac-stm32: update err status in case different of stm32mp13

The mask parameter of syscfg property is mandatory for MP13 but
optional for all other cases.
The function should not return error code because for non-MP13
the missing syscfg phandle in DT is not considered an error.
So reset err to 0 in that case to support existing DTs without
syscfg phandle.

Fixes: 50bbc0393114 ("net: stmmac: dwmac-stm32: add management of stm32mp13 for stm32")
Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Tested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c