e444af408a84a4e4ee0ea17d474d72a3fe4282ea
[openwrt/staging/lynxis.git] /
1 From 9b297faabe3fc35741746aca39128fbb12e28113 Mon Sep 17 00:00:00 2001
2 From: Li Jun <b47624@freescale.com>
3 Date: Wed, 12 Nov 2014 15:16:33 +0800
4 Subject: [PATCH] MLK-9829 usb: core: print suggested message if failed to get
5 device descriptor
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 This is required for USB OTG and EH compliance test 6.7.22(A-UUT “Device No
11 Response” for connection timeout). When the connected usb device(PET) does
12 not response to transactions, host will fail to get device descriptor.
13
14 Signed-off-by: Li Jun <jun.li@freescale.com>
15 (cherry picked from commit 86d0bd661ecbbdf97dd9a8ddbaf0d3811de7f39e)
16 (cherry picked from commit 858af83637291d2ececfc7b2b4b17e3a371b53f3)
17 ---
18 drivers/usb/core/hub.c | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
20
21 --- a/drivers/usb/core/hub.c
22 +++ b/drivers/usb/core/hub.c
23 @@ -4731,7 +4731,8 @@ hub_port_init(struct usb_hub *hub, struc
24 }
25 if (r) {
26 if (r != -ENODEV)
27 - dev_err(&udev->dev, "device descriptor read/64, error %d\n",
28 + dev_err(&udev->dev,
29 + "device no response, device descriptor read/64, error %d\n",
30 r);
31 retval = -EMSGSIZE;
32 continue;