Commit fc39c2c3 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB Gadget: Use proper BCD values

This updates an earlier patch that added bcdDevice values for a new
USB peripheral controller.  The values weren't valid BCD numbers.
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent feaf68d7
...@@ -2320,7 +2320,7 @@ eth_bind (struct usb_gadget *gadget) ...@@ -2320,7 +2320,7 @@ eth_bind (struct usb_gadget *gadget)
} else if (gadget_is_lh7a40x(gadget)) { } else if (gadget_is_lh7a40x(gadget)) {
device_desc.bcdDevice = __constant_cpu_to_le16 (0x0209); device_desc.bcdDevice = __constant_cpu_to_le16 (0x0209);
} else if (gadget_is_n9604(gadget)) { } else if (gadget_is_n9604(gadget)) {
device_desc.bcdDevice = __constant_cpu_to_le16 (0x020a); device_desc.bcdDevice = __constant_cpu_to_le16 (0x0210);
} else { } else {
/* can't assume CDC works. don't want to default to /* can't assume CDC works. don't want to default to
* anything less functional on CDC-capable hardware, * anything less functional on CDC-capable hardware,
......
...@@ -3736,7 +3736,7 @@ static int __init check_parameters(struct fsg_dev *fsg) ...@@ -3736,7 +3736,7 @@ static int __init check_parameters(struct fsg_dev *fsg)
else if (gadget_is_lh7a40x(fsg->gadget)) else if (gadget_is_lh7a40x(fsg->gadget))
mod_data.release = __constant_cpu_to_le16 (0x0309); mod_data.release = __constant_cpu_to_le16 (0x0309);
else if (gadget_is_n9604(fsg->gadget)) else if (gadget_is_n9604(fsg->gadget))
mod_data.release = __constant_cpu_to_le16 (0x030a); mod_data.release = __constant_cpu_to_le16 (0x0310);
else { else {
WARN(fsg, "controller '%s' not recognized\n", WARN(fsg, "controller '%s' not recognized\n",
fsg->gadget->name); fsg->gadget->name);
......
...@@ -1189,7 +1189,7 @@ zero_bind (struct usb_gadget *gadget) ...@@ -1189,7 +1189,7 @@ zero_bind (struct usb_gadget *gadget)
} else if (gadget_is_lh7a40x(gadget)) { } else if (gadget_is_lh7a40x(gadget)) {
device_desc.bcdDevice = __constant_cpu_to_le16 (0x0209); device_desc.bcdDevice = __constant_cpu_to_le16 (0x0209);
} else if (gadget_is_n9604(gadget)) { } else if (gadget_is_n9604(gadget)) {
device_desc.bcdDevice = __constant_cpu_to_le16 (0x020a); device_desc.bcdDevice = __constant_cpu_to_le16 (0x0210);
} else { } else {
/* gadget zero is so simple (for now, no altsettings) that /* gadget zero is so simple (for now, no altsettings) that
* it SHOULD NOT have problems with bulk-capable hardware. * it SHOULD NOT have problems with bulk-capable hardware.
......
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