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

ohci-s3c2410: use HUB_CHAR_*

Fix using the bare numbers to set the 'wHubCharacteristics' field of the Hub
Descriptor while the values are #define'd in <linux/usb/ch11.h>.

While at it, stop setting already set HUB_CHAR_INDV_PORT_LPSM once again.

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
dd709764 db42a4c9

+3 -3
+3 -3
drivers/usb/host/ohci-s3c2410.c
··· 249 249 */ 250 250 251 251 desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM); 252 - desc->wHubCharacteristics |= cpu_to_le16(0x0001); 252 + desc->wHubCharacteristics |= cpu_to_le16( 253 + HUB_CHAR_INDV_PORT_LPSM); 253 254 254 255 if (info->enable_oc) { 255 256 desc->wHubCharacteristics &= ~cpu_to_le16( 256 257 HUB_CHAR_OCPM); 257 258 desc->wHubCharacteristics |= cpu_to_le16( 258 - 0x0008 | 259 - 0x0001); 259 + HUB_CHAR_INDV_PORT_OCPM); 260 260 } 261 261 262 262 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",