langwell_udc: STALL the bad setFeature/clearFeature request
authorLi Wenji <wenji.li@intel.com>
Fri, 2 Mar 2012 03:52:06 +0000 (11:52 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 13 Mar 2012 13:11:15 +0000 (06:11 -0700)
commitaf066539fe8964b0d0a7ffb22800d336b7004480
tree0917a45b15fba32a25b12290f20187e525ce0351
parent1f436d701ceaad6e5d83ca7198263c1e54e14f0c
langwell_udc: STALL the bad setFeature/clearFeature request

BZ: 26747

As the USB spec request, a SetFeature() or ClearFeature() that
references a feature that cannot be set or that does not exist
should causes STALL to be returned in the Status stage of the
request.

Change-Id: I118d32bd7e5f4e66f4c23d109c9186c8898657a7
Signed-off-by: Li Wenji <wenji.li@intel.com>
Reviewed-on: http://android.intel.com:8080/37939
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/gadget/langwell_udc.c