aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/misc
AgeCommit message (Collapse)AuthorFilesLines
2007-10-12USB: SisUSB2VGA: Mis-spelled wordFelipe Balbi1-1/+1
Trivial fix Signed-off-by: Felipe Balbi <[email protected]> Cc: Thomas Winischhofer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-10-12USB: SisUSB2VGA: Remove if 0'ed codeFelipe Balbi4-197/+1
Unused code should be removed. We don't need to increase the size of the file with dead code inside if 0 statements. Signed-off-by: Felipe Balbi <[email protected]> Cc: Thomas Winischhofer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-10-12USB: SisUSB2VGA: Whitespace CleanupsFelipe Balbi5-20/+20
This patches clean some trailing whitespaces in sisusb2vga driver. Signed-off-by: Felipe Balbi <[email protected]> Cc: Thomas Winischhofer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-09-11usb/misc/sisusbvga: add product ID of TARGUS/MCT devicesamson yeung1-0/+1
Device is Targus ACP50US which includes a Magic Control Technologies usb vga device using the SiS315(E) or compatible. Signed-off-by: Samson Yeung <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-22Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlightLinus Torvalds1-2/+2
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight: leds: cr_bllcd.c: build fix backlight: Convert from struct class_device to struct device backlight: Fix order of Kconfig entries
2007-07-19USB: misc: uss720: clean up urb->status usageGreg Kroah-Hartman1-2/+3
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: usbtest: clean up urb->status usageGreg Kroah-Hartman1-2/+2
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: usblcd: clean up urb->status usageGreg Kroah-Hartman1-5/+6
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: phidgetmotorcontrol: clean up urb->status usageGreg Kroah-Hartman1-6/+7
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: phidgetkit: clean up urb->status usageGreg Kroah-Hartman1-6/+7
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: legousbtower: clean up urb->status usageGreg Kroah-Hartman1-13/+15
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: ldusb: clean up urb->status usageGreg Kroah-Hartman1-9/+11
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: iowarrior: clean up urb->status usageGreg Kroah-Hartman1-9/+12
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: ftdi-elan: clean up urb->status usageGreg Kroah-Hartman1-3/+5
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: auerswald: clean up urb->status usageGreg Kroah-Hartman1-10/+15
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: appledisplay: clean up urb->status usageGreg Kroah-Hartman1-4/+5
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: misc: adtux: clean up urb->status usageGreg Kroah-Hartman1-11/+13
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: use mutex instead of semaphore in the FTDI ELAN driverMatthias Kaehlcke1-6/+7
The FTDI ELAN driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-19USB: use mutex instead of semaphore in the Adutux driverMatthias Kaehlcke1-17/+18
The Adutux driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-17drivers/*: mark variables with uninitialized_var()Jeff Garzik1-1/+1
Mark variables in drivers/* with uninitialized_var() if such a warning appears, and analysis proves that the var is initialized properly on all paths it is used. Signed-off-by: Jeff Garzik <[email protected]>
2007-07-17drivers/usb/misc/auerswald: fix status check, remove redundant checkJeff Garzik1-1/+1
1) We should only set 'actual_length' output variable if usb length is known to be good. 2) No need to check actual_length for NULL. The only caller always passes non-NULL value. Signed-off-by: Jeff Garzik <[email protected]>
2007-07-16backlight: Convert from struct class_device to struct deviceRichard Purdie1-2/+2
Convert the backlight and LCD classes from struct class_device to struct device since class_device is scheduled for removal. One nasty API break is the backlight power attribute has had to be renamed to bl_power and the LCD power attribute has had to be renamed to lcd_power since the original names clash with the core. I can't see a way around this. Signed-off-by: Richard Purdie <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]>
2007-07-12USB: Support Blackberry Pearl with berry_chargeJeremy Katz1-0/+35
The Blackberry Pearl (8100) needs similar tweaks as older Blackberry models to be able to charge when connected via USB. The Pearl also adds an additional need to go into a separate mode for fully accessing the device; do that by default as well. Changes based on the changes from bcharge in the barry project (http://barry.sf.net) Signed-off-by: Jeremy Katz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-12USB: autosuspend for usblcdOliver Neukum1-3/+43
this patch implements autosuspend for the usblcd driver. It uses the new usb_anchor infrastructure. Many thanks to Georges for testing. Signed-off-by: Oliver Neukum <[email protected]> Cc: Georges Toth <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-12USB: prevent char device open/deregister raceAlan Stern10-198/+62
This patch (as908) adds central protection in usbcore for the prototypical race between opening and unregistering a char device. The spinlock used to protect the minor-numbers array is replaced with an rwsem, which can remain locked across a call to a driver's open() method. This guarantees that open() and deregister() will be mutually exclusive. The private locks currently used in several individual drivers for this purpose are no longer necessary, and the patch removes them. The following USB drivers are affected: usblcd, idmouse, auerswald, legousbtower, sisusbvga/sisusb, ldusb, adutux, iowarrior, and usb-skeleton. As a side effect of this change, usb_deregister_dev() must not be called while holding a lock that is acquired by open(). Unfortunately a number of drivers do this, but luckily the solution is simple: call usb_deregister_dev() before acquiring the lock. In addition to these changes (and their consequent code simplifications), the patch fixes a use-after-free bug in adutux and a race between open() and release() in iowarrior. Signed-off-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-06potential compiler error, irqfunc caller sites updateYoann Padioleau1-1/+1
In 7d12e780e003f93433d49ce78cfedf4b4c52adc5 David Howells performed this evolution: "IRQ: Maintain regs pointer globally rather than passing to IRQ handlers" He correctly updated many of the function definitions that were using this extra regs pointer parameter but forgot to update some caller sites of those functions. The reason the modifications was not properly done on all drivers is that some drivers were rarely compiled because they are for AMIGA, or that some code sites were inside #ifdefs where the option is not set or inside #if 0. Here is the semantic patch that found the occurences and fixed the problem. @ rule1 @ identifier fn; identifier irq, dev_id; typedef irqreturn_t; @@ static irqreturn_t fn(int irq, void *dev_id) { ... } @@ identifier rule1.fn; expression E1, E2, E3; @@ fn(E1, E2 - ,E3 ) Signed-off-by: Yoann Padioleau <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jeff Garzik <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-06-25USB: usblcd doesn't limit memory consumption during writeOliver Neukum1-4/+18
usblcd currently has no way to limit memory consumption by fast writers. This is a security problem, as it allows users with write access to this device to drive the system into oom despite resource limits. Here's the fix taken from the modern skeleton driver. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-06-25USB: memory leak in iowarrior.cOliver Neukum1-3/+4
this is a classical memory leak in the ioctl handler. The buffer is simply never freed. This fixes it the obvious way. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-05-22USB: ldusb bugfixOliver Neukum1-4/+31
This patch fixes a problem reported with consecutive reads in the ldusb driver. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-05-22USB: auerswald: fix file release handlerAndrew Morton1-8/+2
If this down_interruptible() does fail due to signal_pending() then the state of the driver will get trashed in interesting ways, because userspace cannot and will not retry the close(). Cc: Jiri Slaby <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-05-22USB: fix more ftdi-elan/u132-hcd #include lossageDavid Brownell1-4/+8
Partial fix for bogosity in the ftdi-elan and u132-hcd drivers ... these have no business including with the internals of other drivers, much less doing so in a broken way!! A previous patch resolved one build fix, this resolves another... Signed-off-by: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-05-09Fix occurrences of "the the "Michael Opdenacker1-1/+1
Signed-off-by: Michael Opdenacker <[email protected]> Signed-off-by: Adrian Bunk <[email protected]>
2007-05-08SIS USB2VGA Warning fixWANG Cong1-1/+1
drivers/usb/misc/sisusbvga/sisusb_con.c:1436: warning: initialization from incompatible pointer type Signed-off-by: WANG Cong <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Cc: Jan Engelhardt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-05-08header cleaning: don't include smp_lock.h when not usedRandy Dunlap4-4/+0
Remove includes of <linux/smp_lock.h> where it is not used/needed. Suggested by Al Viro. Builds cleanly on x86_64, i386, alpha, ia64, powerpc, sparc, sparc64, and arm (all 59 defconfigs). Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-04-27USB: iowarrior.c: timeouts too small in usb_control_msg callsEberhard Fahle1-8/+6
The driver uses usb_control_msg() for exchanging data with the device. When the driver lived freeley _outside_ the kernel tree (pre 2.6.21) the timeouts for these calls where set to 5*HZ for reading, 1HZ for writing. (These timeouts seemed to work fine for all users of the driver, at least nobody complained in the last 2 years. The current code (2.6.21-rc5) removed the 'HZ' from the timeouts and left the driver with 5 jiffies for reading and 1 jiffy for writing. My new machine is fast, but not that fast. The patch also removes a useless debug statement, which was left over from testing a broken firmware version From: Eberhard Fahle <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-04-27USB: add picdem device to ldusbJoey Goncalves1-0/+3
Hi Greg: I have found that /drivers/usb/misc/ldusb.c works with the "PICDEM Full Speed USB" http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en021940 Signed-off-by: Joey S Goncalves <[email protected]> Cc: Michael Hund <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-04-27USB: Remove duplicate define of OHCI_QUIRK_ZFMICROS.Caglar Onur1-1/+0
Remove duplicate define of OHCI_QUIRK_ZFMICRO from ftdi-elan.c, its already defined in drivers/ush/host/ohci.c Signed-off-by: "S.Caglar Onur" <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-04-27USB Elan FTDI: check for driver registration statusCyrill Gorcunov1-7/+11
Add checking of driver registration status and release allocated resources if it failed. Signed-off-by: Cyrill Gorcunov <[email protected]> Cc: Pete Zaitcev <[email protected]> Cc: "Luiz Fernando N. Capitulino" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-04-27USB: cleanup ofd adutuxOliver Neukum1-20/+28
this driver does - ignore errors during open - submit a running urb - use down_interruptible not handling signals - GFP_KERNEL with a spinlock held Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-04-27USB: cypress_cy7c63: race disconnect/sysfs read-write leading to following ↵Oliver Neukum1-1/+3
NULL pointer this driver sets intfdata to NULL while it still can be read and happily followed. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-04-27USB: iowarrior.c: fix NULL dereferenceOliver Neukum1-2/+4
Am Montag, 19. 2007 10:25 schrieb Adrian Bunk: > The Coverity checker spotted the following NULL dereference: And this fixes an oops upon allocation failures. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-04-27USB: kill BKL in usblcdOliver Neukum1-2/+5
this patch removes usage of BKL from usblcd, which got it from the old skeleton driver. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-03-19USB: berry_charge: correct dbg string for second magic commandKen L Johnson1-1/+1
I was testing the berry_charge module with my Blackberry 8700c and had great success, thanks. Looking at the code for my own learning I noticed the following cut and paste error... just a nit. Signed-off-by: Ken L Johnson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-03-09USB Elan FTDI: check for workqueue creationCyrill Gorcunov1-2/+16
Avoid NULL pointer usage if workqueue creation failed. Signed-off-by: Cyrill Gorcunov <[email protected]> Cc: Pete Zaitcev <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-02-23USB: add driver for iowarrior devices.Greg Kroah-Hartman3-0/+940
The ioctl is commented out for now, until we verify some userspace application issues. Cc: Christian Lucht <[email protected]> Cc: Robert Marquardt <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-02-20backlight: Separate backlight properties from backlight ops pointersRichard Purdie1-5/+6
Per device data such as brightness belongs to the indivdual device and should therefore be separate from the the backlight operation function pointers. This patch splits the two types of data and allows simplifcation of some code. Signed-off-by: Richard Purdie <[email protected]>
2007-02-20backlight: Fix external uses of backlight internal semaphoreRichard Purdie1-6/+0
backlight_device->sem has a very specific use as documented in the header file. The external users of this are using it for a different reason, to serialise access to the update_status() method. backlight users were supposed to implement their own internal serialisation of update_status() if needed but everyone is doing things differently and incorrectly. Therefore add a global mutex to take care of serialisation for everyone, once and for all. Locking for get_brightness remains optional since most users don't need it. Also update the lcd class in a similar way. Signed-off-by: Richard Purdie <[email protected]>
2007-02-20backlight: Remove unneeded owner fieldRichard Purdie1-1/+0
Remove uneeded owner field from backlight_properties structure. Nothing uses it and it is unlikely that it will ever be used. The backlight class uses other means to ensure that nothing references unloaded code. Based on a patch from Dmitry Torokhov <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
2007-02-19Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6Linus Torvalds3-0/+152
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (39 commits) USB: at91-ohci, handle extra at91sam9261 ahb clock USB: another id for cp2101 driver USB: ueagle-atm.c needs sched.h USB: at91_udc, shrink runtime footprint usbnet: add missing Kconfig for KC2190 cables usbnet: init fault (oops) cleanup, whitespace fixes usbnet: recognize SiteCom CN-124 usb: Remove Airprime device from option.c USB: change __init to __devinit for isp116x_probe USB: ps3: don't call ps3_system_bus_driver_register on other platforms USB: hid-core.c: Removes GTCO CalComp Interwrite IPanel PIDs from blacklist USB: kernel-doc fixes USB: quirky device for cdc-acm USB: cdc-acm: fix incorrect throtteling, make set_control optional USB: unconfigure devices which have config 0 USB: make usb_iso_packet_descriptor.status signed USB: fix g_serial small error USB: use __u32 rather than u32 in userspace ioctls in usbdevice_fs.h USB Storage: US_FL_IGNORE_RESIDUE needed for Aiptek MP3 Player USB: Fix misspelled "USBNET_MII" kernel config option. ...
2007-02-16Pull misc-for-upstream into release branchLen Brown1-2/+2
Conflicts: drivers/usb/misc/appledisplay.c Signed-off-by: Len Brown <[email protected]>