linux/drivers/staging
David Matlack 36bf51acc8 staging: slicoss: fix occasionally writing out only half of a dma address
curaddrupper caches the last written upper 32-bits of a dma address
(the device has one register for the upper 32-bits of all dma
address registers). The problem is, not every dma address write
checks and sets curaddrupper. This causes the driver to occasionally
not write the upper 32-bits of a dma address to the device when it
really should.

I've seen this manifest particularly when the driver is trying to
read config data from the device (RCONFIG) in order to checksum the
device's eeprom. Since the device writes its config data to the
wrong DMA address the driver reads 0 as the eeprom size and the
eeprom checksum fails.

This patch fixes the issue by removing curaddrupper and always
writing the upper 32-bits of dma addresses.

Signed-off-by: David Matlack <dmatlack@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-05-13 16:13:24 -07:00
..
android android, lmk: avoid setting TIF_MEMDIE if process has already exited 2015-05-10 15:22:10 +02:00
board Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
clocking-wizard staging: clocking-wizard: Handle invalid clk in notifier 2015-01-17 16:06:20 -08:00
comedi staging: comedi: ni_mio_common: fix build warning 2015-05-13 11:48:34 -07:00
dgap staging: dgap: remove unused code 2015-05-10 15:17:50 +02:00
dgnc staging: dgnc: remove redundant check 2015-05-08 09:24:01 +02:00
emxx_udc Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
fbtft Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
fsl-mc staging: fsl-mc: Remove redundant initalization of the .owner field 2015-05-08 09:24:11 +02:00
ft1000 staging: ft1000: Drop unneeded cast on netdev_priv 2015-04-03 14:00:14 +02:00
fwserial Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
gdm72xx Staging: gdm72xx: use !x instead of x == NULL 2015-03-16 16:28:47 +01:00
gdm724x Staging: gdm724x: replace pr_* with dev_* 2015-03-18 11:21:33 +01:00
goldfish staging/goldfish/goldfish_audio: Fix annotations 2015-03-20 14:13:17 +01:00
gs_fpgaboot staging: Remove <linux/moduleparam.h> header. 2015-03-01 17:09:52 -08:00
iio First round of new drivers, functionality and cleanups for the 4.2 cycle 2015-05-09 18:15:50 +02:00
lustre staging: lustre: cl_page: delete empty macros 2015-05-10 15:05:50 +02:00
media staging: dt3155v4l: remove unused including <linux/version.h> 2015-05-08 09:24:08 +02:00
mt29f_spinand staging: mt29f_spinand: remove pointer to pointer cast in function argument 2015-03-15 18:41:11 +01:00
netlogic staging: netlogic: allocate right size in devm_kzalloc 2015-03-20 14:13:17 +01:00
nvec Staging driver patches for 4.1-rc1 2015-04-13 17:37:33 -07:00
octeon staging: octeon-ethernet: update boilerplate comments 2015-04-30 17:06:09 +02:00
octeon-usb Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
olpc_dcon staging/olpc: drop pci dependencies 2015-04-03 13:56:03 +02:00
ozwpan staging: ozwpan: implement error handling in ozwpan_init() 2015-03-26 13:13:13 +01:00
panel staging: panel: remove duplicate code 2015-04-30 17:10:51 +02:00
rtl8188eu rtl8188eu: don't duplicate ieee80211 constants for status/reason 2015-05-08 09:24:13 +02:00
rtl8192e staging: rtl8192e: Change cpu_to_le16 to le16_to_cpu 2015-05-10 15:00:41 +02:00
rtl8192u staging: rtl8192u: don't redefine container_of() 2015-05-08 09:24:16 +02:00
rtl8712 rtl8712: don't duplicate ieee80211 constants for status/reason 2015-05-08 09:24:13 +02:00
rtl8723au Staging: rtl8723au: hal: Remove trailing whitespace in odm.c 2015-05-08 09:24:09 +02:00
rts5208 Staging: rts5208: Replace timeval with timespec64 2015-05-08 09:24:16 +02:00
skein Staging: skein: Remove do-while(0) from single statement macros 2015-03-15 18:41:15 +01:00
slicoss staging: slicoss: fix occasionally writing out only half of a dma address 2015-05-13 16:13:24 -07:00
sm7xxfb staging: sm7xxfb: remove unused functions 2015-05-08 09:24:12 +02:00
sm750fb Staging: sm750fb: Fix spelling error in TODO 2015-05-08 09:23:59 +02:00
speakup staging: speakup: Fix warning of line over 80 characters. 2015-04-03 13:43:45 +02:00
ste_rmi4 Staging: ste_rmi4: Use SIMPLE_DEV_PM_OPS() macro 2015-03-20 13:37:31 +01:00
unisys staging: unisys: uislib.h: Remove unused cache allocation prototypes 2015-05-08 15:27:33 +02:00
vme staging: vme: mmap() support for vme_user 2015-03-06 17:03:22 -08:00
vt6655 staging: vt6655: Checkpatch fix: lines longer than 80 columns 2015-05-08 09:24:12 +02:00
vt6656 Merge 4.0-rc5 into staging-testing 2015-03-23 21:36:48 +01:00
wlan-ng Staging: wlan-ng: Remove typedef prism2sta_accesslist_t 2015-03-23 22:41:16 +01:00
xgifb staging: xgifb: remove extra parentheses around right bit shift operations 2015-03-06 15:22:43 -08:00
Kconfig staging: remove i2o subsystem 2015-05-10 14:54:38 +02:00
Makefile staging: remove i2o subsystem 2015-05-10 14:54:38 +02:00
staging.c Staging: workaround build system bug 2008-10-13 14:32:52 -07:00