greybus: es2: Send cport-id in wValue field to usb_control_msg()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 9 Nov 2015 09:35:03 +0000 (15:05 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 12 Nov 2015 23:49:12 +0000 (15:49 -0800)
commit69166d252536b644f82782840cf31e6d685616dc
treea70b2c88b3d471a200ae77abdc593260410cfe9a
parentf6c6c1388ad3ea9adc0ec2652d2b5ef9ad4ae166
greybus: es2: Send cport-id in wValue field to usb_control_msg()

wIndex field has a special meaning, as that can be used by the core to
index into the possible USB interfaces. And that specifically broke with
gbsim, as it has a single USB interface.

Other similar requests (REQUEST_LATENCY_TAG_{EN|DIS}) are already using
wValue field for passing cport-id.

Fix cport_reset() by sending the cport-id in wValue field instead of
wIndex.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c