lineage_android_kernel_sams.../drivers/usb/dwc3
Huang Rui f53fd451ad usb: dwc3: fix wrong bit mask in dwc3_event_devt
commit 06f9b6e59661cee510b04513b13ea7927727d758 upstream.

Around DWC USB3 2.30a release another bit has been added to the
Device-Specific Event (DEVT) Event Information (EvtInfo) bitfield.

Because of that, what used to be 8 bits long, has become 9 bits long.

Per dwc3 2.30a+ spec in the Device-Specific Event (DEVT), the field of
Event Information Bits(EvtInfo) uses [24:16] bits, and it has 9 bits
not 8 bits. And the following reserved field uses [31:25] bits not
[31:24] bits, and it has 7 bits.

So in dwc3_event_devt, the bit mask should be:
event_info	[24:16]		9 bits
reserved31_25	[31:25]		7 bits

This patch makes sure that newer core releases will work fine with
Linux and that we will decode the event information properly on new
core releases.

[ balbi@ti.com : improve commit log a bit ]

Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06 07:51:44 -07:00
..
Kconfig usb: dwc3: depend on both Host and Gadget stacks 2011-12-12 11:48:14 +02:00
Makefile usb: dwc3: Add Exynos Specific Glue layer 2012-03-02 12:11:28 +02:00
core.c usb: dwc3: Free event buffers array 2012-04-10 19:11:46 +03:00
core.h usb: dwc3: fix wrong bit mask in dwc3_event_devt 2014-05-06 07:51:44 -07:00
debug.h usb: dwc: remove "All rights reserved" statement. 2011-10-04 10:25:52 -07:00
debugfs.c usb: dwc3: debugfs: fix off by one when entering testmode 2012-02-10 12:14:53 +02:00
dwc3-exynos.c usb: dwc3: Add Exynos Specific Glue layer 2012-03-02 12:11:28 +02:00
dwc3-omap.c usb: dwc3: linux/module.h included twice 2012-03-02 12:12:00 +02:00
dwc3-pci.c usb: dwc3: add support for Merrifield 2014-04-14 06:44:28 -07:00
ep0.c usb: dwc3: fix implementation of endpoint wedge 2013-12-20 07:34:20 -08:00
gadget.c usb: dwc3: gadget: free trb pool only from epnum 2 2014-04-14 06:44:26 -07:00
gadget.h usb: dwc3: changes for v3.4 merge window 2012-03-02 15:56:33 -08:00
host.c usb: dwc3: host: align on host device name 2012-02-06 11:48:42 +02:00
io.h usb: dwc3: fix few coding style problems 2011-12-12 11:48:29 +02:00