]> git.baikalelectronics.ru Git - uboot.git/commit
usb: ehci-mx6: Do not fail when 'reg' is not found
authorFabio Estevam <festevam@denx.de>
Sun, 20 Jun 2021 15:00:52 +0000 (12:00 -0300)
committerMarek Vasut <marex@denx.de>
Thu, 24 Jun 2021 18:23:23 +0000 (20:23 +0200)
commit551c8608a6892c33f33f67503598e0155c3dcb64
tree48849f10fe3a63b1bc8e75a917b996fe438c33c6
parent504633ae481fa7e75202906f738693a6475fd7e3
usb: ehci-mx6: Do not fail when 'reg' is not found

Unlike imx6, on imx7 the USB PHY is described as:

usbphynop1: usbphynop1 {
compatible = "usb-nop-xceiv";
clocks = <&clks IMX7D_USB_PHY1_CLK>;
clock-names = "main_clk";
#phy-cells = <0>;
};

which does not have the 'reg' property.

Do not return an error when the 'reg' property is not found
for the USB PHY.

This fixes USB gadget regression on a imx7s-warp board.

Successfully tested the "ums 0 mmc 0" command on two boards:
imx7s-warp and imx6dl-pico-pi.

Signed-off-by: Fabio Estevam <festevam@denx.de>
drivers/usb/host/ehci-mx6.c