]> git.baikalelectronics.ru Git - uboot.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)
commitb6120c2db4c42c4b100c105d59ce409707f159ae
treebc4b6bb2f6b400a38c0cf0feab9cecde80d03369
parent7d20d6c7f45bc902b40957459e7c81ebb6dd38cd
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: 1c711ad6f9af ("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