summaryrefslogtreecommitdiff
path: root/drivers/staging/rts5139
AgeCommit message (Collapse)Author
2012-04-10Staging: rts5139: a couple off by one fixesDan Carpenter
Inside the array we check ms_start_idx[seg_no + 1] so on the last round through we end up going past the end of the array. Also if we don't break out of the loop early then we are beyond the end of the array there as well. With this change, if we don't find what we are looking for, we end on the last element of the array. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-24staging: Update TODO for rts5139 and rts_pstorChris Ball
These are each >20k LOC drivers that embed an entire SD stack, and present SD cards as if they were SCSI devices; both drivers should be rewritten to be small hooks that connect the PCI (for rts_pstor) or USB (for rts5139) hardware into Linux's MMC/xD/memorystick stacks. Signed-off-by: Chris Ball <cjb@laptop.org> Cc: edwin_rong <edwin_rong@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-09staging: rts5139: fix pointer coding styleMárton Németh
This will remove the following checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Márton Németh <nm127@freemail.hu> Acked-by: edwin_rong <edwin_rong@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-01-09Merge branch 'staging-next' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging * 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (466 commits) net/hyperv: Add support for jumbo frame up to 64KB net/hyperv: Add NETVSP protocol version negotiation net/hyperv: Remove unnecessary kmap_atomic in netvsc driver staging/rtl8192e: Register against lib80211 staging/rtl8192e: Convert to lib80211_crypt_info staging/rtl8192e: Convert to lib80211_crypt_data and lib80211_crypt_ops staging/rtl8192e: Add lib80211.h to rtllib.h staging/mei: add watchdog device registration wrappers drm/omap: GEM, deal with cache staging: vt6656: int.c, int.h: Change return of function to void staging: usbip: removed unused definitions from header staging: usbip: removed dead code from receive function staging:iio: Drop {mark,unmark}_in_use callbacks staging:iio: Drop buffer mark_param_change callback staging:iio: Drop the unused buffer enable() and is_enabled() callbacks staging:iio: Drop buffer busy flag staging:iio: Make sure a device is only opened once at a time staging:iio: Disallow modifying buffer size when buffer is enabled staging:iio: Disallow changing scan elements in all buffered modes staging:iio: Use iio_buffer_enabled instead of open coding it ... Fix up conflict in drivers/staging/iio/adc/ad799x_core.c (removal of module_init due to using module_i2c_driver() helper, next to removal of MODULE_ALIAS due to using MODULE_DEVICE_TABLE instead).
2011-12-13Staging: remove version.h includes in drivers/staging/rts5139Devendra Naga
This was reported by "make versioncheck" Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-18USB: convert drivers/staging/* to use module_usb_driver()Greg Kroah-Hartman
This converts the drivers in drivers/staging/* to use the module_usb_driver() macro which makes the code smaller and a bit simpler. Added bonus is that it removes some unneeded kernel log messages about drivers loading and/or unloading. Cc: "David Täht" <d@teklibre.com> Cc: Marek Belisko <marek.belisko@gmail.com> Cc: Al Cho <acho@novell.com> Cc: Forest Bond <forest@alittletooquiet.net> Cc: Pavel Machek <pavel@ucw.cz> Cc: Huajun Li <huajun.li.lee@gmail.com> Cc: Zac Storer <zac.3.14159@gmail.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: edwin_rong <edwin_rong@realsil.com.cn> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: Julia Lawall <julia@diku.dk> Cc: Ilia Mirkin <imirkin@alum.mit.edu> Cc: Joe Perches <joe@perches.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-31staging: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/staging users.Paul Gortmaker
Lots of drivers have in the past expected the presence of basic things like THIS_MODULE and EXPORT_SYMBOL. With the header cleanup, they wont have these. Call out the include explicitly. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2011-08-26staging: fix rts5139 depends & buildRandy Dunlap
RTS5139 should depend on USB, not USB_SUPPORT, to fix build errors. USB_SUPPORT can be enabled for gadget-only support or when PCI is not enabled. ERROR: "usb_reset_endpoint" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_kill_urb" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_deregister_dev" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_unlink_urb" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_deregister" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_register_dev" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_free_coherent" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_submit_urb" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_sg_cancel" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_find_interface" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_sg_init" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_register_driver" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_alloc_coherent" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_free_urb" [drivers/staging/rts5139/rts5139.ko] undefined! ERROR: "usb_alloc_urb" [drivers/staging/rts5139/rts5139.ko] undefined! Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Cc: Edwin Rong <edwin_rong@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-24staging: rts5139: add vmalloc.h to some files to fix the build.Greg Kroah-Hartman
This is needed to fix the build on alpha and ppc at the least. Reported-by: Andrew Morton <akpm@linux-foundation.org> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: edwin_rong <edwin_rong@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-23Staging: add driver for Realtek RTS5139 cardreaderedwin_rong
This driver is used for Realtek RTS5139 USB cardreader, which supports many cards, such as SD, MS, XD series cards. Signed-off-by: edwin_rong <edwin_rong@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>