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)
committerFelipe Balbi <balbi@kernel.org>
Wed, 17 Feb 2016 08:32:09 +0000 (10:32 +0200)
commit62943b7dfa35887a40f71f698deec4488bf73036
tree2fa89d1d3842c58033fcd72d8b4df924ed5fe7b6
parent3142a16b9816c24501103a92010a283eb6e2766c
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.

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>
drivers/usb/dwc2/hcd_ddma.c
drivers/usb/dwc2/hcd_intr.c