Re: [PATCH 4/9] usb: add device descriptor for usb 3.1 root hub

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09.12.2015 20:35, Sergei Shtylyov wrote:
Hello.

On 12/09/2015 09:22 PM, Mathias Nyman wrote:

Signed-off-by: Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx>
---
  drivers/usb/core/hcd.c | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)

diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index ff3073d..fb0a9c2 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -128,6 +128,27 @@ static inline int is_root_hub(struct usb_device *udev)
  #define KERNEL_REL    bin2bcd(((LINUX_VERSION_CODE >> 16) & 0x0ff))
  #define KERNEL_VER    bin2bcd(((LINUX_VERSION_CODE >> 8) & 0x0ff))

+/* usb 3.1 root hub device descriptor */
+static const u8 usb31_rh_dev_descriptor[18] = {
+    0x12,       /*  __u8  bLength; */
+    0x01,       /*  __u8  bDescriptorType; Device */

    Please use USB_DT_DEVICE here as is now done in all the other such places in this file.

[...]

MBR, Sergei


Sure, will resend

-Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux