linux-stable/drivers/staging
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
..
android staging/android: Add kerneldoc to one function in alarm-dev.c 2013-09-17 07:47:40 -07:00
bcm Staging: bcm: PHSModule.c: Matching the function definition with function declaration 2013-09-25 16:25:41 -07:00
btmtk_usb
ced1401
comedi staging: comedi: ni_at_ao: fix namespace clash of 'RSI' define 2013-09-30 18:33:13 -07:00
cptm1217
crystalhd Staging: crystalhd: Fix assignment of 0/1 to bool variables 2013-09-25 16:48:45 -07:00
cxt1e1 staging: cxt1e1: linux.c: Return negative error codes 2013-09-30 18:48:41 -07:00
dgap staging: dgap: tty.c: removes smatch warnings "redundant null check" 2013-09-25 16:18:10 -07:00
dgnc staging: dgnc: Remove KERNEL_VERSION check 2013-09-30 18:47:00 -07:00
dgrp staging: dgrp: Remove casting the return value which is a void pointer 2013-09-17 07:47:43 -07:00
dwc2 staging: dwc2: Make dwc2_hw_params.host_channels large enough 2013-10-03 13:50:54 -07:00
echo
et131x staging: et131x: Add some items to the TODO list 2013-09-17 07:47:43 -07:00
frontier
ft1000
fwserial Staging: fwserial: wrap a line that exceeds 80 characters 2013-09-17 07:47:44 -07:00
gdm72xx
gdm724x staging: gdm724x: Remove version.h header inclusion in netlink_k.c 2013-08-27 22:53:22 -07:00
goldfish
iio Second set of new functionality for IIO in the 3.13 cycle - with bug fixes for first set. 2013-09-29 13:12:23 -07:00
imx-drm staging: imx-drm: Remove redundant of_match_ptr 2013-09-30 18:47:00 -07:00
keucr
line6 staging: line6: add bounds check in snd_toneport_source_put() 2013-09-17 07:39:28 -07:00
lustre staging: lustre: fix bug with LL_MRF_RETURN in loop_make_request 2013-09-30 20:46:36 -07:00
media
netlogic drivers: staging: netlogic.h: removed WARNING: extern prototypes should be avoided in .h files 2013-09-25 16:22:31 -07:00
nvec staging: nvec: fix space after if statement in nvec.c 2013-10-02 10:29:48 -07:00
octeon staging: octeon: Fix typo in staging/octeon 2013-09-25 16:25:40 -07:00
octeon-usb staging: octeon-usb: cvmx-usb.h: make comments to fit into 80 columns 2013-10-03 13:38:12 -07:00
olpc_dcon staging/olpc: fix dependencies to fix build errors 2013-09-30 18:47:00 -07:00
ozwpan staging: ozwpan: Return error, if PD is not connected. 2013-08-28 15:18:40 -07:00
panel
phison
quickstart Staging / quickstart: remove reduplicate if(acpi_disabled) check 2013-09-25 16:48:45 -07:00
rtl8187se Staging: rtl8187se: fixed coding style issues 2013-09-30 18:42:06 -07:00
rtl8188eu Merge 3.12-rc3 into staging-next 2013-09-29 18:42:21 -07:00
rtl8192e staging: rtl8192e: Remove redundant pci_set_drvdata 2013-09-25 16:45:19 -07:00
rtl8192u Merge 3.12-rc3 into staging-next 2013-09-29 18:42:21 -07:00
rtl8712 staging: rtl8712: remove unneeded NULL check 2013-09-30 18:42:06 -07:00
rts5139
sb105x
sbe-2t3e3
sep
serqt_usb2
silicom staging: silicom: fix space prohibited before semicolon 2013-10-02 16:22:01 -07:00
slicoss Staging: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-17 07:47:44 -07:00
sm7xxfb Staging: sm7xxfb: fixed line break coding style issues 2013-09-30 18:47:00 -07:00
speakup staging: speakup: str initialization replaced with NULL where it was initialized with int 2013-10-03 13:50:54 -07:00
ste_rmi4
tidspbridge
usbip staging: usbip: Fix man-pages for usbip userspace utilities 2013-09-25 16:58:32 -07:00
vme
vt6655 staging: vt6655: don't leak when returning -EOPNOTSUPP in vt6655_hostap_ioctl 2013-09-30 18:34:00 -07:00
vt6656 staging: vt6656: covert RXvMngWorkItem to work queue 2013-09-30 18:33:14 -07:00
winbond Staging: winbond: reg: white space deleted 2013-09-25 16:41:22 -07:00
wlags49_h2
wlags49_h25
wlan-ng staging: wlan-ng: cfg80211.c: replaced printk() with netdev_warn() 2013-09-17 07:47:44 -07:00
xgifb staging: xgifb: Remove redundant pci_set_drvdata 2013-09-25 16:45:19 -07:00
xillybus staging: xillybus: fix format string usage 2013-09-17 07:39:27 -07:00
zram Revert "staging: zram: Add auto loading of module if user opens /dev/zram." 2013-09-17 07:39:28 -07:00
zsmalloc
Kconfig
Makefile
staging.c