diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2018-04-25 11:39:08 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-04-26 14:03:13 +0200 |
commit | 003659bda94a1444ebdfefea3f0928f8e90f9d8f (patch) | |
tree | bc4b6bb2f6b400a38c0cf0feab9cecde80d03369 /include | |
parent | a61f9d1fbbca3c5e59b907ad3071db70ef174872 (diff) |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions