]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: host: dwc3: fix phys init
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 25 Apr 2018 09:39:08 +0000 (11:39 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 26 Apr 2018 12:03:13 +0000 (14:03 +0200)
commit003659bda94a1444ebdfefea3f0928f8e90f9d8f
treebc4b6bb2f6b400a38c0cf0feab9cecde80d03369
parenta61f9d1fbbca3c5e59b907ad3071db70ef174872
usb: host: dwc3: fix phys init

When no PHYs are declared in the dwc3 node, the phy init fails.
This patch checks if the "phys" property is presend and reports
the error returned by dev_count_phandle_with_args().

This patchs also fixes the styles issues added in last commit.

This patch should fix the DWC3 support on the UniPhier SoC family.

Fixes: 7c839ea70c49 ("usb: host: dwc3: Add support for multiple PHYs")
Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/usb/host/xhci-dwc3.c