1
0
Fork 0

MLK-9829 usb: core: print suggested message if failed to get device descriptor

This is required for USB OTG and EH compliance test 6.7.22(A-UUT “Device No
Response” for connection timeout). When the connected usb device(PET) does
not response to transactions, host will fail to get device descriptor.

Signed-off-by: Li Jun <jun.li@freescale.com>
(cherry picked from commit 86d0bd661ecbbdf97dd9a8ddbaf0d3811de7f39e)
(cherry picked from commit 858af83637291d2ececfc7b2b4b17e3a371b53f3)
5.4-rM2-2.2.x-imx-squashed
Li Jun 2014-11-12 15:16:33 +08:00 committed by Dong Aisheng
parent 5f0ebd9dfc
commit d984b04bc4
1 changed files with 2 additions and 1 deletions

View File

@ -4705,7 +4705,8 @@ hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1,
}
if (r) {
if (r != -ENODEV)
dev_err(&udev->dev, "device descriptor read/64, error %d\n",
dev_err(&udev->dev,
"device no response, device descriptor read/64, error %d\n",
r);
retval = -EMSGSIZE;
continue;