mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
phy: meson-g12a-usb2: fix ret check on power_domain_get
Patch which add A1 SoC support create a regression on khadas vim3/vim3l
boards when we try to use fastboot command:
=> fastboot usb 0
failed to get power domain
failed to get power domain
No USB device found
USB init failed: -19
Add ENOENT check on ret in probe function.
Fixes: 5533c883ce
("phy: support Amlogic A1 family")
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on vim3
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20231017185725.809524-1-glaroque@baylibre.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
This commit is contained in:
parent
e65b5d35c9
commit
f699cb1dd5
1 changed files with 3 additions and 3 deletions
|
@ -328,12 +328,12 @@ int meson_g12a_usb2_phy_probe(struct udevice *dev)
|
|||
|
||||
#if CONFIG_IS_ENABLED(POWER_DOMAIN)
|
||||
ret = power_domain_get(dev, &priv->pwrdm);
|
||||
if (ret < 0 && ret != -ENODEV) {
|
||||
pr_err("failed to get power domain\n");
|
||||
if (ret < 0 && ret != -ENODEV && ret != -ENOENT) {
|
||||
pr_err("failed to get power domain : %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (ret != -ENODEV) {
|
||||
if (ret != -ENODEV && ret != -ENOENT) {
|
||||
ret = power_domain_on(&priv->pwrdm);
|
||||
if (ret < 0) {
|
||||
pr_err("failed to enable power domain\n");
|
||||
|
|
Loading…
Reference in a new issue