RE: [linux-usb-devel] A better way to load the pheripheral controller driver during developement time?

2005-09-22 Thread Andy Chuo
Hi alan, Ok here's the revised version: static void /*__exit or __init? */ __exit cleanup(void) { struct socle_lp2a_udc *dev = the_controller; if (!dev) return; udc_disable(dev); remove_proc_files(); usb_gadget_unregister_driver(dev->driver)

[linux-usb-devel] [patch 12/12] stop exporting two functions

2005-09-22 Thread David Brownell
We don't really want to export these any more, especially now that the HCDs don't need them. The way we're looking at USB suspend lately doesn't expect drivers to call usb_suspend_device() or usb_resume_device() directly; that'll be implicit when no interfaces are in use. This patch removes those

[linux-usb-devel] [patch 11/12] ISP116x PM updates

2005-09-22 Thread David Brownell
Compiles, untested; these patches resemble those needed in OHCI and EHCI. This makes the isp116x driver stop using usb_suspend_device() and usb_resume_device() ... usbcore now calls to the root hub methods, removing the need for this. It also switches from keventd to khubd for remote wakeup.

[linux-usb-devel] [patch 10/12] UHCI PM updates

2005-09-22 Thread David Brownell
Compiles, but untested. This removes suspend and resume path recursion in UHCI. Signed-off-by: David Brownell <[EMAIL PROTECTED]> --- g26.orig/drivers/usb/host/uhci-hcd.c 2005-09-22 16:44:58.0 -0700 +++ g26/drivers/usb/host/uhci-hcd.c 2005-09-22 22:15:21.0 -0700 @@ -774,11 +774,

[linux-usb-devel] [patch 9/12] EHCI PM updates

2005-09-22 Thread David Brownell
Fixes some regressions in recent kernels, and handles another special case observed when restoring a swsusp snapshot. This fixes some bugs in EHCI suspend/resume that joined us over the past few releases (as usbcore, PCI, pmcore, and other components evolved): - Removes suspend and resume recur

[linux-usb-devel] [patch 6/12] usbcore PCI glue updates for PM

2005-09-22 Thread David Brownell
This streamlines the PCI glue code for suspend/resume, matching expectations from previous root hub updates. This updates the PCI glue to address the new and simplified usbcore suspend semantics, where CONFIG_USB_SUSPEND becomes irrelevant to HCDs because hcd->hub_suspend() will always be called.

[linux-usb-devel] [patch 8/12] update PCI early-handoff handling for OHCI

2005-09-22 Thread David Brownell
The PCI-wide quirks really should match the OHCI driver ... The PCI "early usb handoff" quirk logic didn't work like "ohci-hcd" ... This patch makes it do so by: - Resetting the controller after kicking BIOS off, matching the normal "chip in hardware reset" startup mode; - Reporting any

[linux-usb-devel] [patch 3/12] all HCDs provide root hub suspend/resume methods

2005-09-22 Thread David Brownell
This just connecting the dots using existing code that previously wasn't always enabled. This cleans up a small recent FIXME, ensuring that all the HCDs provide root hub suspend/resume methods. It also wraps the calls to those root suspend routines just like on the PCI "USB_SUSPEND not defined"

[linux-usb-devel] [patch 0/12] USB updates, mostly for suspend/resume

2005-09-22 Thread David Brownell
Here are a bunch of USB updates, many making power management become simpler, for 2.6.15.early merging. They go on top of 2.6.14-rc2 with the patches already in Greg's queue [1]. The patches can be grouped roughly into three subsequences: * Stuff that's pretty isolated; the first two listed h

[linux-usb-devel] [patch 2/12] EHCI, split out PCI glue

2005-09-22 Thread David Brownell
From Matt Porter, who observed how much PCI-specific stuff has accumulated over time; thanks! From: Matt Porter <[EMAIL PROTECTED]> Date: Mon, 19 Sep 2005 09:34:14 -0700 This splits BIOS and PCI specific support out of ehci-hcd.c into ehci-pci.c. It follows the model already used in the OHCI dr

[linux-usb-devel] [patch 7/12] OHCI PM updates

2005-09-22 Thread David Brownell
This catches up to the root hub suspend changes, and uses the new functions to make autosuspend/autoresume work again. (Recent kernels have had serious unreported regresssions...) This simplifies the OHCI root hub suspend logic: - Uses new usbcore root hub calls to make autosuspend work again:

[linux-usb-devel] [patch 5/12] root hub updates (greater half)

2005-09-22 Thread David Brownell
These are the changes which start making CONFIG_USB_SUSPEND mean a *LOT* less ... so most of usbcore and the HCDS won't care any more, and we'll have fewer ways for things to go wrong in the future. This patch associates hub suspend and resume logic (including for root hubs) with CONFIG_PM -- i

[linux-usb-devel] [patch 4/12] root hub changes (lesser half)

2005-09-22 Thread David Brownell
These small updates help later patches, notably the OHCI patches to let autosuspend work again. This patch collects various small updates related to root hubs, to shrink later patches which build on them. - For root hub suspend/resume support: * Make the existing usb_hcd_resume_root_hub()

[linux-usb-devel] [patch 1/12] one less word in struct device

2005-09-22 Thread David Brownell
... use the normal device refcount ... This saves a word from "struct device" ... there's a refcounting mechanism stub that's rather ineffective (the values are never even tested!), which can safely be deleted. With this patch it uses normal device refcounting, so any potential users of the pm_

Re: [linux-usb-devel] Re: CDC-ACM class driver/driver development

2005-09-22 Thread Oliver Neukum
Am Freitag, 23. September 2005 00:49 schrieb David Kubicek: > On Fri, Sep 23, 2005 at 12:07:23AM +0200, Oliver Neukum wrote: > > Am Mittwoch, 21. September 2005 20:04 schrieb David Kubicek: > > > On Wed, Sep 21, 2005 at 06:32:05PM +0200, Oliver Neukum wrote: > > > > Am Mittwoch, 21. September 2005

[linux-usb-devel] [Patch] new driver for Moschip MCS7780 IrDA dongle.

2005-09-22 Thread Brian Pugh
Here is a patch for USB IrDA dongles made with the MosChip mcs7780 chipset. I and Judy Fischback have taken Lukasz Stelmach's shiny 0.2alpha.3 release and added in the code for the MIR and FIR speeds. The patch has been tested on the 2.6.13 kernel. Please CC any comments directly back to me as I

Re: [linux-usb-devel] Re: CDC-ACM class driver/driver development

2005-09-22 Thread David Kubicek
On Fri, Sep 23, 2005 at 12:07:23AM +0200, Oliver Neukum wrote: > Am Mittwoch, 21. September 2005 20:04 schrieb David Kubicek: > > On Wed, Sep 21, 2005 at 06:32:05PM +0200, Oliver Neukum wrote: > > > Am Mittwoch, 21. September 2005 14:51 schrieb David Kubicek: > > > > This is in interrupt. Please u

Re: [linux-usb-devel] Re: CDC-ACM class driver/driver development

2005-09-22 Thread Oliver Neukum
Am Mittwoch, 21. September 2005 20:04 schrieb David Kubicek: > On Wed, Sep 21, 2005 at 06:32:05PM +0200, Oliver Neukum wrote: > > Am Mittwoch, 21. September 2005 14:51 schrieb David Kubicek: > > This is in interrupt. Please use the simple form of the locks. > I'd like to find out the difference be

RE: [linux-usb-devel] A better way to load the pheripheral controller driver during developement time?

2005-09-22 Thread Alan Stern
On Thu, 22 Sep 2005, Andy Chuo wrote: > Hi Alan, > For some reasons, I still can't get it to work. > The following is the init part of my code: > static int __init myudc_init (void) > { > struct socle_lp2a_udc *dev; > int retval; > > INFO(KERN_DEBUG "%s: version %s\n"

Re: [linux-usb-devel] bmAttributes USB_CONFIG_ATT_WAKEUP bit significance

2005-09-22 Thread Alan Stern
On Thu, 22 Sep 2005, Greg Lee wrote: > What is the significance of the bmAttributes USB_CONFIG_ATT_WAKEUP bit? I > recently received a firmware update to one of the devices I use and now it > does not work with my 2.4.19 and 2.4.31 based embedded targets, however, it > does work on a 2.6.12 based

RE: [linux-usb-devel] A better way to load the pheripheral controller driver during developement time?

2005-09-22 Thread Andy Chuo
Hi Alan, For some reasons, I still can't get it to work. The following is the init part of my code: static int __init myudc_init (void) { struct socle_lp2a_udc *dev; int retval; INFO(KERN_DEBUG "%s: version %s\n", driver_name, DRIVER_VERSION); /* all

Re: [linux-usb-devel] Regarding wMaxPacketSize

2005-09-22 Thread Greg KH
On Thu, Sep 22, 2005 at 10:23:13AM +0530, Savita H. Neelannava wrote: > Hi All, > > I have a Scanner device which has 3 Endpoints. wMaxPacketSize of all 3 > is 0x200. In the driver also i was allocating memory of 0x200 bytes > for each Endpoint. i have bulk-in Endpoint where i will get scanned >

[linux-usb-devel] More about isp 1161

2005-09-22 Thread Cristian Chiarello
Hi @ all. I'm working on a custom EP7311 board with isp1161A1 and linux-2.4.21-rmk1. Another people have made porting of kernel to this board but now I have problem with data tranfert in ISO mode with a webcam logitech 4000pro: some frame is often loss. The driver I use I think is the same menti

[linux-usb-devel] [patch 18/18] USB: Update Documentation/usb/URB.txt

2005-09-22 Thread Greg KH
From: Alan Stern <[EMAIL PROTECTED]> This patch (as564) updates Documentation/usb/URB.txt, bringing it roughly up to the current level. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/usb/URB.txt | 76 +++--

[linux-usb-devel] [patch 15/18] usb/serial/option.c: Increase input buffer size

2005-09-22 Thread Greg KH
From: Matthias Urlichs <[EMAIL PROTECTED]> The card sometimes sends >2000 bytes in one single chunk. Ouch. Signed-Off-By: Matthias Urlichs <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/option.c |4 +++- 1 file changed, 3 insertions(+), 1 de

[linux-usb-devel] [patch 17/18] ub: Comment out unconditional stall clear

2005-09-22 Thread Greg KH
From: Pete Zaitcev <[EMAIL PROTECTED]> This code appears to be more trouble than it's worth, considering that no normal users reload drivers. So, we comment it for now. It is not removed outright for the benefit of hackers (that is, myself). Signed-off-by: Pete Zaitcev <[EMAIL PROTECTED]> Signed-

[linux-usb-devel] [patch 05/18] PCI: remove unused "scratch"

2005-09-22 Thread Greg KH
From: Bjorn Helgaas <[EMAIL PROTECTED]> Unused variable. Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/pci/hotplug.c |4 1 file changed, 4 deletions(-) --- scsi-2.6.orig/drivers/pci/hotplug.c 2005-09-20 05:59:55.

[linux-usb-devel] [patch 16/18] USB: Add Novatel CDMA Wireless PC card IDs to airprime

2005-09-22 Thread Greg KH
From: David Hollis <[EMAIL PROTECTED]> USB: Add device id's for Novatel Wireless CDMA wireless PC card. The Novatel CDMA card behaves the same as the AirPrime by providing a USB serial port. Signed-off-by: David Hollis <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTE

[linux-usb-devel] [patch 07/18] fix drivers/pci/probe.c warning

2005-09-22 Thread Greg KH
From: Amos Waterland <[EMAIL PROTECTED]> This function expects an unsigned 32-bit type as its third argument: static u32 pci_size(u32 base, u32 maxbase, u32 mask) However, given these definitions: #define PCI_BASE_ADDRESS_MEM_MASK (~0x0fUL) #define PCI_ROM_ADDRESS_MASK (~0x7ffUL) these two

[linux-usb-devel] [patch 14/18] USB: fix pegasus driver

2005-09-22 Thread Greg KH
From: Kevin Vigor <[EMAIL PROTECTED]> Addresses some small bugs in the pegasus ethernet-over-USB driver. Specifically, malformed long packets from the adapter could cause a kernel panic; the interrupt interval calculation was inappropriate for high-speed devices; the return code from read_mii_wor

[linux-usb-devel] [patch 12/18] USB: fix pxa2xx_udc compile warnings

2005-09-22 Thread Greg KH
From: Richard Purdie <[EMAIL PROTECTED]> This patch fixes several types in the PXA25x udc driver and hence fixes several compiler warnings. Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- d

[linux-usb-devel] [patch 11/18] USB: ftdi_sio: allow baud rate to be changed without raising RTS and DTR

2005-09-22 Thread Greg KH
From: Peter Favrholdt <[EMAIL PROTECTED]> I'm using a 2 port USB RS232 dongle to connect to a serial-IR cradle for a bar code reader). Detecting the baudrate of the serial-IR involves keeping DTR low while changing baudrate. This works using normal 16550A serial ports as well as the FTDI driver v

[linux-usb-devel] [patch 10/18] USB: more device IDs for Option card driver

2005-09-22 Thread Greg KH
From: Matthias Urlichs <[EMAIL PROTECTED]> Added support for HUAWEI E600 and Audiovox AirCard User reports say that these devices work without driver modification. Signed-off-by: Matthias Urlichs <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/

[linux-usb-devel] [patch 13/18] USB: sl811-hcd minor fixes

2005-09-22 Thread Greg KH
From: David Brownell <[EMAIL PROTECTED]> Three minor sl811-hcd fixes: - Elminate memory leak on one (rare) disable/shutdown path. - For periodic transfers that don't need to be scheduled, update urb->start_frame to represent the transfer phase correctly. - Report the (single) port as remo

[linux-usb-devel] [patch 06/18] PCI: convert kcalloc to kzalloc

2005-09-22 Thread Greg KH
From: Pekka Enberg <[EMAIL PROTECTED]> This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/pci/hotplug/sgi

[linux-usb-devel] [patch 09/18] ub: fix burning cds

2005-09-22 Thread Greg KH
From: Pete Zaitcev <[EMAIL PROTECTED]> This patch fixes a few problems with ub and cleans up a couple of things: - Bump UB_MAX_REQ_SG, this allows to burn CDs - Drop initialization of urb.transfer_flags, now that URB_UNLINK_ASYNC is gone - Add forgotten processing of stalls at GetMaxLUN -

[linux-usb-devel] [patch 08/18] PCI Hotplug: Fix buffer overrun in rpadlpar_sysfs.c

2005-09-22 Thread Greg KH
From: Linda Xie <[EMAIL PROTECTED]> Signed-off-by: Linda Xie <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/pci/hotplug/rpadlpar_sysfs.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- scsi-2.6.orig/drivers/pci/hotplug/rpadlpar_sysfs.c 2

[linux-usb-devel] [patch 00/18] USB and PCI Fixes for 2.6.14-rc2

2005-09-22 Thread Greg KH
Hi, Here are a number of USB and PCI fixes for 2.6.14-rc2. There's also a patch in here to remove me as the I2C maintainer, as Jean is doing such a good job that I don't need to be listed there anymore. I'll still be the conduit for the i2c and hwmon patches into the main kernel tree, but Jean w

[linux-usb-devel] [patch 03/18] fix class symlinks in sysfs

2005-09-22 Thread Greg KH
From: Bill Nottingham <[EMAIL PROTECTED]> The class symlinks in sysfs don't properly handle changing device names. To demonstrate, rename your network device from eth0 to eth1. Your pci (or usb, or whatever) device will still have a 'net:eth0' link, except now it points to /sys/class/net/eth1. T

[linux-usb-devel] [patch 01/18] Driver Core: fis bus rescan devices race

2005-09-22 Thread Greg KH
From: Daniel Ritz <[EMAIL PROTECTED]> bus_rescan_devices_helper() does not hold the dev->sem when it checks for !dev->driver(). device_attach() holds the sem, but calls again device_bind_driver() even when dev->driver is set. What happens is that a first device_attach() call (module insertion ti

[linux-usb-devel] [patch 04/18] I2C: remove me from the MAINTAINERS file for i2c

2005-09-22 Thread Greg Kroah-Hartman
Remove my name from the I2C maintainer, Jean is more than capable of handling it all now. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> Signed-off-by: Jean Delvare <[EMAIL PROTECTED]> --- MAINTAINERS |2 -- 1 file changed, 2 deletions(-) --- scsi-2.6.orig/MAINTAINERS 2005-09-20

[linux-usb-devel] [patch 02/18] Driver Core: add helper device_is_registered()

2005-09-22 Thread Greg KH
From: Daniel Ritz <[EMAIL PROTECTED]> [PATCH] driver core: add helper device_is_registered() add the helper and use it instead of open coding the klist_node_attached() check (which is a layering violation IMHO) idea by Alan Stern. Signed-off-by: Daniel Ritz <[EMAIL PROTECTED]> Cc: Alan Stern <[

Re: [linux-usb-devel] new unusual_devs entry

2005-09-22 Thread dust
would be nice if you do it. I'm not into generating official patches and are to busy to learn it at the moment. thx! Stefan Phil Dibowitz wrote: > Stefan Werner wrote: > > Hi, > > I had to add the following code to unusual_devs in order to get my device > > (flash mp3 player) working! I hope it