]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: meson-g12a-usb2: fix ret check on power_domain_get
authorGuillaume La Roque <glaroque@baylibre.com>
Tue, 17 Oct 2023 18:57:25 +0000 (20:57 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 18 Oct 2023 07:45:48 +0000 (09:45 +0200)
commitf699cb1dd5f4c55aa3f593c226ec797730d02f10
tree6d3ceb859a6b96e7ef18289f536bc4b3838ea269
parente65b5d35c9116485366bb08138043d51220551da
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: 5533c883ce10 ("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>
drivers/phy/meson-g12a-usb2.c