UPSTREAM: usb: dwc2: host: fix the data toggle error in full speed descriptor dma
authorTang, Jianqiang <jianqiang.tang@intel.com>
Tue, 16 Feb 2016 23:02:07 +0000 (15:02 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:48:03 +0000 (18:48 +0800)
commit5e15b8c2edaa4f5dcc644843c1789ed6832eab2f
treef155a167219784408e9bdd5417aacbe2abbb4379
parentb1f6eec7616f81034567633206c0b3c011d28104
UPSTREAM: usb: dwc2: host: fix the data toggle error in full speed descriptor dma

There will be data toggle error happen for full speed buld-out transfer.
The data toggle bit is saved in qh for non-control transfers, it is wrong
to  check the qtd for that case.

Also fix one static analysis tool issue after fix the data toggle error.

John Youn:
* Added WARN() to warn on improper usage of the
  dwc2_hcd_save_data_toggle() function.

Change-Id: I9d0efcbf96aa65e7255397aa54af15d8b99d06a5
Signed-off-by: Dyson Lee <dyson.lee@intel.com>
Signed-off-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 62943b7dfa35887a40f71f698deec4488bf73036)
drivers/usb/dwc2/hcd_ddma.c
drivers/usb/dwc2/hcd_intr.c