OpenCloudOS-Kernel/drivers/staging/dwc2
Matthijs Kooijman 2d1155478f staging: dwc2: Make dwc2_hw_params.host_channels large enough
The hardware offers a 4-bit register containing the number of host
channels. However, the values of these register mean 1-16 host channels,
not 0-15. Since the dwc2_hw_params struct stores the actual number of
host channels supported instead of the raw register value, it should be
5 bits wide instead of 4.

Before this commit, hardware with 16 host channels would overflow the
field, making it appear as 0 channels.

This bug was introduced in commit 9badec2 (staging: dwc2: interpret all
hwcfg and related register at init time).

Reported-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-03 13:50:54 -07:00
..
Kconfig staging: dwc2: remove use of bus_to_virt() 2013-07-23 14:54:49 -07:00
Makefile staging: dwc2: add platform device bindings 2013-04-23 10:37:55 -07:00
TODO staging: dwc2: add TODO file 2013-09-25 16:49:54 -07:00
core.c Staging: dwc2: core: coding style - indentation should use tabs 2013-09-25 16:49:54 -07:00
core.h staging: dwc2: Make dwc2_hw_params.host_channels large enough 2013-10-03 13:50:54 -07:00
core_intr.c staging: dwc2: interpret all hwcfg and related register at init time 2013-08-30 14:14:53 -07:00
hcd.c staging: dwc2: add microframe scheduler from downstream Pi kernel 2013-09-25 16:48:46 -07:00
hcd.h staging: dwc2: add microframe scheduler from downstream Pi kernel 2013-09-25 16:48:46 -07:00
hcd_ddma.c staging: dwc2: add microframe scheduler from downstream Pi kernel 2013-09-25 16:48:46 -07:00
hcd_intr.c staging: dwc2: add microframe scheduler from downstream Pi kernel 2013-09-25 16:48:46 -07:00
hcd_queue.c staging: dwc2: add microframe scheduler from downstream Pi kernel 2013-09-25 16:48:46 -07:00
hw.h staging: dwc2: validate the value for phy_utmi_width 2013-08-30 14:14:53 -07:00
pci.c staging: dwc2: add microframe scheduler from downstream Pi kernel 2013-09-25 16:48:46 -07:00
platform.c Staging driver fixes for 3.10-rc2 2013-05-23 09:27:49 -07:00