commit | 5999914f227b20addf01297b3df24be6b4161f69 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <felipe.balbi@linux.intel.com> | Thu Sep 22 12:25:28 2016 +0300 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Mon Oct 31 11:15:34 2016 +0200 |
tree | aec10869581a784f575a6e6c15228b90d4e3a54a | |
parent | 6b9018d4c1e5c958625be94a160a5984351d4632 [diff] |
usb: dwc3: gadget: properly check ep cmd The cmd argument we pass to dwc3_send_gadget_ep_cmd() could contain extra arguments embedded. When checking for StartTransfer command, we need to make sure to match only lower 4 bits which contain the actual command and ignore the rest. Reported-by: Janusz Dziedzic <januszx.dziedzic@intel.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>