]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: fec_mxc_init(): do not ignore return status of fec_open()
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 11 Sep 2024 09:58:23 +0000 (11:58 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 24 Sep 2024 19:41:21 +0000 (13:41 -0600)
commit104e890fc0ccac1963b893fb6e4841e688fbda89
tree8b24731befcfb3a32f3bb5761eee072f30966fd6
parent0ebbed66b07cd3acd08a072b225c738c986d35a9
net: fec_mxc_init(): do not ignore return status of fec_open()

The fec_mxc_init() function currently always returns 0. This does not
allow the callers to detect when for instance the PHY initialization
failed due to the port being unconnected. Fix that by returning the
status of fec_open().

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/net/fec_mxc.c