Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ehci-hub: use USB_DT_HUB

Fix using the bare number to set the 'bDescriptorType' field of the Hub
Descriptor while the value is #define'd in <linux/usb/ch11.h>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sergei Shtylyov and committed by
Greg Kroah-Hartman
625a4c59 51a114bc

+1 -1
+1 -1
drivers/usb/host/ehci-hub.c
··· 688 688 int ports = HCS_N_PORTS (ehci->hcs_params); 689 689 u16 temp; 690 690 691 - desc->bDescriptorType = 0x29; 691 + desc->bDescriptorType = USB_DT_HUB; 692 692 desc->bPwrOn2PwrGood = 10; /* ehci 1.0, 2.3.9 says 20ms max */ 693 693 desc->bHubContrCurrent = 0; 694 694