greybus: es1-ap-usb: fix svc control pipe flags
authorMatt Porter <mporter@linaro.org>
Mon, 22 Sep 2014 19:51:48 +0000 (15:51 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 22 Sep 2014 20:23:05 +0000 (13:23 -0700)
commit648cb6cb75a1ef09200a24b280a2932caef88597
tree1e186e23047deb19c93f7992a70188444f3161cb
parent4a833fdb7fc73039b06c1d879d896ebab0df7bd9
greybus: es1-ap-usb: fix svc control pipe flags

The control message flags currently indicate USB_DIR_IN, which
doesn't allow the data phase carrying the SVC message to be
send to the device. Change this to USB_DIR_OUT so our SVC
message buffer reaches the device.

Also, the recipient is USB_RECIP_OTHER but almost all real devices
that handle vendor setup requests seem to set this as
USB_RECIP_INTERFACE. As a result, functionfs-based gadgets don't handle
vendor setup requests with a recipient of OTHER. Change this to
USB_RECIP_INTERFACE to work with the functionfs-based emulator and
this should be no issue for the firmware to implement to match.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c