mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
net: fec: defer probe if regulator is not ready
[ Upstream commit 3f38c68303 ]
Defer probe if regulator is not ready. E.g. some regulator is fixed
regulator controlled by i2c expander gpio, the i2c device may be probed
after the driver, then it should handle the case of defer probe error.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9043779527
commit
e7e73b10d6
@@ -3458,6 +3458,10 @@ fec_probe(struct platform_device *pdev)
|
||||
goto failed_regulator;
|
||||
}
|
||||
} else {
|
||||
if (PTR_ERR(fep->reg_phy) == -EPROBE_DEFER) {
|
||||
ret = -EPROBE_DEFER;
|
||||
goto failed_regulator;
|
||||
}
|
||||
fep->reg_phy = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user