Commit dd709764 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Greg Kroah-Hartman

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: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent db42a4c9
...@@ -249,14 +249,14 @@ static int ohci_s3c2410_hub_control( ...@@ -249,14 +249,14 @@ static int ohci_s3c2410_hub_control(
*/ */
desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM); desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM);
desc->wHubCharacteristics |= cpu_to_le16(0x0001); desc->wHubCharacteristics |= cpu_to_le16(
HUB_CHAR_INDV_PORT_LPSM);
if (info->enable_oc) { if (info->enable_oc) {
desc->wHubCharacteristics &= ~cpu_to_le16( desc->wHubCharacteristics &= ~cpu_to_le16(
HUB_CHAR_OCPM); HUB_CHAR_OCPM);
desc->wHubCharacteristics |= cpu_to_le16( desc->wHubCharacteristics |= cpu_to_le16(
0x0008 | HUB_CHAR_INDV_PORT_OCPM);
0x0001);
} }
dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment