[linux-usb-devel] Re: [RFC][PATCH] USB touch screen driver, all-in-one

2006-03-14 Thread Jan-Benedict Glaw
On Tue, 2006-03-14 09:10:13 +0800, Lanslott Gish <[EMAIL PROTECTED]> wrote: > i fixed some codes and add swap_x & swap_y functions. > and test your patch passed for my touchset hrdware. > here is the patch only for your usbtouchscreen.c > could you help to apply this? > thank you. > > Regards, >

[linux-usb-devel] problems with usb header files?

2006-03-14 Thread Andreas Jellinghaus
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356778 openct does not compile on amd64 they want to tell me, but it compiles fine on mine (kubuntu amd64). So I need to find out - guess that debian build system has issues with header files. since I'm only including the linux/usbdevice_fs.h file,

[linux-usb-devel] ISP1362-hcd

2006-03-14 Thread Vishal Oliyil Kunnil
Hi, I am trying to port the isp1362-hcd driver on a custom PXA-255 board, and am unable to make register read/write. ISP1362 is on CS2 ie DEX_USB_HOST_PHYS is defined as PXA_CS2_PHYS. I am attaching the platform file . thanks in advance, Regards, Vishal static struct map_desc dex_io_desc[] __

[linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Stephen Liu
Hi folks, Would it be possible installing USB pendrive as Hard drive, running Grub to boot? I have been trying couple days making DSL 2.2b running on a pendrive as a Hard drive using Grub to boot the device without success. The motherboard supports USB-ZIP/USB-HDD/USB-FDD/SCSI/etc.booting. The p

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Ken Cobler
Stephen Liu wrote: Hi folks, Would it be possible installing USB pendrive as Hard drive, running Grub to boot? I have been trying couple days making DSL 2.2b running on a pendrive as a Hard drive using Grub to boot the device without success. The motherboard supports USB-ZIP/USB-HDD/USB-FDD/S

Re: [linux-usb-devel] [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
On Tue, 2006-03-14 at 00:06 +0100, Oliver Neukum wrote: > > > It does usb_get_intf() before it passes the reference to the tty layer. > > > > Yeah, that looks sane, the odd thing is on the disconnect path you > > disconnect the control interface too. Bob, this problem has not yet been properly di

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Alan Stern
On Mon, 13 Mar 2006, Paul Fulghum wrote: > Pete Zaitcev wrote: > > On Mon, 13 Mar 2006 16:31:35 -0600, Paul Fulghum <[EMAIL PROTECTED]> wrote: > > > > > > sysfs_remove_link(&class_dev->kobj, "device"); > > sysfs_remove_link(&class_dev->dev->kobj, class_name); > > > > >

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
On Tue, 2006-03-14 at 10:42 -0500, Alan Stern wrote: > Psul, the best way to approach a problem like this is by massive debugging > printks. That's what I have been doing, and I just posted another such patch for Bob to test. I don't have any of the equipment to test this myself, so I am relying

Re: [linux-usb-devel] USB2 hub regression after 2.6.16-rc4

2006-03-14 Thread Alan Stern
On Mon, 13 Mar 2006, Will Dyson wrote: > I've run into a problem with the high-speed usb hub integrated into > my Dell 1905 flatpanel when upgrading from 2.6.16-rc4 to 2.6.15-rc6. > > My system is debian unstable amd64. My motherboard is nforce3-based. I > am attatching the monitor's hub to one

Re: [linux-usb-devel] Support for Interface Association Descriptors

2006-03-14 Thread Alan Stern
On Mon, 13 Mar 2006, Craig W. Nadler wrote: > I've put together a patch demonstrating how Interface Association > Descriptors could be supported with a minimal amount of changes the > current USB stack. When a USB device is enumerated the descriptors are > parsed by the code in drivers/usb/cor

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Alan Stern
On Tue, 14 Mar 2006, Ken Cobler wrote: > Stephen Liu wrote: > > >Hi folks, > > > >Would it be possible installing USB pendrive as Hard drive, running > >Grub to boot? > > > >I have been trying couple days making DSL 2.2b running on a pendrive as > >a Hard drive using Grub to boot the device witho

Re: [linux-usb-devel] [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Bob Copeland
On 3/14/06, Paul Fulghum <[EMAIL PROTECTED]> wrote: > Bob, this problem has not yet been properly diagnosed. > Can you help by running with this patch and returning > the syslog output (with the oops also)? Will do, though it will probably have to wait until this evening; my kernel tree is fluxxy.

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Greg KH
On Tue, Mar 14, 2006 at 09:58:52AM -0600, Paul Fulghum wrote: > On Tue, 2006-03-14 at 10:42 -0500, Alan Stern wrote: > > Psul, the best way to approach a problem like this is by massive debugging > > printks. > > That's what I have been doing, and I just posted another > such patch for Bob to tes

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
On Tue, 2006-03-14 at 09:05 -0800, Greg KH wrote: > Ah, wait, that's the issue right there. You need to increment the > reference count of the object on open and then decrement it on close. > That way the last close will drop the last reference, and you do that > _after_ the tty cleanup. acm_prob

Re: [linux-usb-devel] [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
On Tue, 2006-03-14 at 11:52 -0500, Bob Copeland wrote: > Will do, though it will probably have to wait until this evening; Thanks, being able to reproduce it every time is a real plus. > my kernel tree is fluxxy. You should probably have a doctor look at that. -- Paul Fulghum Microgate System

Re: [linux-usb-devel] USB2 hub regression after 2.6.16-rc4

2006-03-14 Thread Will Dyson
On 3/14/06, Alan Stern <[EMAIL PROTECTED]> wrote: > On Mon, 13 Mar 2006, Will Dyson wrote: > > > I've run into a problem with the high-speed usb hub integrated into > > my Dell 1905 flatpanel when upgrading from 2.6.16-rc4 to 2.6.15-rc6. > This is an odd sort of error. > > Particular places to l

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Pete Zaitcev
On Tue, 14 Mar 2006 11:40:09 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > 1. You have to have entries in your initrd's filesystem for /dev/sda > and /dev/sda1. Otherwise you won't have any way to access the USB > device. Or you have to have udev running. I think this is

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Alan Stern
On Tue, 14 Mar 2006, Pete Zaitcev wrote: > On Tue, 14 Mar 2006 11:40:09 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> > wrote: > > > 1. You have to have entries in your initrd's filesystem for /dev/sda > > and /dev/sda1. Otherwise you won't have any way to access the USB > > device.

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Greg KH
On Tue, Mar 14, 2006 at 12:07:54PM -0600, Paul Fulghum wrote: > On Tue, 2006-03-14 at 09:05 -0800, Greg KH wrote: > > Ah, wait, that's the issue right there. You need to increment the > > reference count of the object on open and then decrement it on close. > > That way the last close will drop th

Re: [linux-usb-devel] problems with usb header files?

2006-03-14 Thread Greg KH
On Tue, Mar 14, 2006 at 12:12:24PM +0100, Andreas Jellinghaus wrote: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356778 > > openct does not compile on amd64 they want to tell me, > but it compiles fine on mine (kubuntu amd64). So I need > to find out - guess that debian build system has iss

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Pete Zaitcev
On Tue, 14 Mar 2006 13:30:02 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > For almost all devices it can be a lot faster. However usb-storage has a > built-in delay that defaults to 5 seconds. The delay length can be > changed by setting the delay_use= module parameter. But you don't c

[linux-usb-devel] TEST 14

2006-03-14 Thread Marc Singer
Test 14 is returnng an error 22, EINVAL. It looks like this is due to the parameters used in that test: usbtest 2-2:3.0: TEST 14: 1000 ep0out, 1..512 vary 512 The call is being made with the parameters (dev, param->iterations, param->length, param->vary) and in the code, it checks for va

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
On Tue, 2006-03-14 at 10:40 -0800, Greg KH wrote: > Well, we have a "used" count that is trying to handle the cleanup > properly for us when we have the port open yet it is gone already. But > it really would be easier to reference count the whole thing, but I'll > wait for what you find out with

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Oliver Neukum
Am Dienstag, 14. März 2006 20:29 schrieb Paul Fulghum: > > acm_disconnect intf=cefb6760 acm= usb_dev=ce24f4b8 > acm_disconnect, no interface data so do nothing (why no data?) That's the second (data) interface. It is disconnected anyway, so we ignore it. This is necessary to handle disconn

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Alan Stern
On Tue, 14 Mar 2006, Paul Fulghum wrote: > > usb 1-2: USB disconnect, address 6 > Unplug detected > > > acm_disconnect intf=ce99f720 acm=ce24eca0 usb_dev=ce24f4b8 > > acm_disconnect acm->used=1 acm->dev=ce24f4b8 acm->tty=cd254af8 > acm_disconnect > acm->used is 1 (tty open, defer acm_tty_unregist

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Alan Stern
On Tue, 14 Mar 2006, Alan Stern wrote: > > > acm_tty_close tty=cd254af8 filp=ce96511c acm=ce24eca0 > > > acm_tty_close acm->used=1 acm->dev= > > atm_tty_close called from tty_io.c:release_dev() > > acm->used=1 on entry, decrements to zero == final close > > acm->dev is NULL (unplugged) so

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Oliver Neukum
Am Dienstag, 14. März 2006 22:24 schrieb Alan Stern: > On Tue, 14 Mar 2006, Alan Stern wrote: > > > > > acm_tty_close tty=cd254af8 filp=ce96511c acm=ce24eca0 > > > > acm_tty_close acm->used=1 acm->dev= > > > atm_tty_close called from tty_io.c:release_dev() > > > acm->used=1 on entry, decre

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
On Tue, 2006-03-14 at 16:18 -0500, Alan Stern wrote: > The disconnect routine shouldn't need to set acm->dev to NULL. The fact > that the first disconnect has already occurred can be detected by the fact > that acm = usb_get_intfdata(intf) will itself be NULL. > > Will everything work if you sim

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Alan Stern
On Tue, 14 Mar 2006, Oliver Neukum wrote: > Am Dienstag, 14. März 2006 22:24 schrieb Alan Stern: > > On Tue, 14 Mar 2006, Alan Stern wrote: > > > > > > > acm_tty_close tty=cd254af8 filp=ce96511c acm=ce24eca0 > > > > > acm_tty_close acm->used=1 acm->dev= > > > > atm_tty_close called from t

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Oliver Neukum
Am Dienstag, 14. März 2006 22:47 schrieb Alan Stern: > On Tue, 14 Mar 2006, Oliver Neukum wrote: > > > Am Dienstag, 14. März 2006 22:24 schrieb Alan Stern: > > > On Tue, 14 Mar 2006, Alan Stern wrote: > > > > > > > > > acm_tty_close tty=cd254af8 filp=ce96511c acm=ce24eca0 > > > > > > acm_tty_clos

Re: [linux-usb-devel] Re: [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
On Tue, 2006-03-14 at 23:04 +0100, Oliver Neukum wrote: > > What Paul needs to track is the refcount for acm->dev. It should be > > incremented and decremented appropriately -- which means that acm->dev had > > better not be NULL when acm_tty_unregister runs. > > The devices's control interface

[linux-usb-devel] Re: HP CDRW CD4E hasn't worked since 2.6.11

2006-03-14 Thread Daniel Drake
Greg KH wrote: On Tue, Mar 14, 2006 at 02:25:39PM +1100, Peter Chubb wrote: Hi Greg, The changes to the usb/storage/shuttle_usbat.c to accomodate flash drives appears to have broken CD R/W support. Sorry it took me so long to report this; I don't use this particular device very often.

[linux-usb-devel] Re: HP CDRW CD4E hasn't worked since 2.6.11

2006-03-14 Thread Peter Chubb
> "Daniel" == Daniel Drake <[EMAIL PROTECTED]> writes: Daniel> Greg KH wrote: >> On Tue, Mar 14, 2006 at 02:25:39PM +1100, Peter Chubb wrote: >>> Hi Greg, The changes to the usb/storage/shuttle_usbat.c to >>> accomodate flash drives appears to have broken CD R/W support. >>> >>> Sorry it took

[linux-usb-devel] Re: HP CDRW CD4E hasn't worked since 2.6.11

2006-03-14 Thread Daniel Drake
Peter Chubb wrote: Patch appended. Thats very intrusive. Please try a more simplistic approach, and send new logs if it is still detected as a disk :) Daniel --- linux/drivers/usb/storage/shuttle_usbat.c.orig 2006-03-14 23:36:57.0 + +++ linux/drivers/usb/storage/shuttle_usb

[linux-usb-devel] Re: HP CDRW CD4E hasn't worked since 2.6.11

2006-03-14 Thread Daniel Drake
Daniel Drake wrote: --- linux/drivers/usb/storage/shuttle_usbat.c.orig 2006-03-14 23:36:57.0 + +++ linux/drivers/usb/storage/shuttle_usbat.c 2006-03-14 23:37:18.0 + @@ -855,6 +855,9 @@ static int usbat_identify_device(struct return rc; msleep(500);

Re: [linux-usb-devel] Support for Interface Association Descriptors

2006-03-14 Thread Greg KH
On Mon, Mar 13, 2006 at 09:11:11PM -0500, Craig W. Nadler wrote: > I've put together a patch demonstrating how Interface Association > Descriptors could be supported with a minimal amount of changes the > current USB stack. When a USB device is enumerated the descriptors are > parsed by the cod

[linux-usb-devel] Re: 2.6.16-rc6: known regressions

2006-03-14 Thread Tom Seeley
Jiri Slaby wrote: Greg KH wrote: On Mon, Mar 13, 2006 at 09:05:44PM +0100, Adrian Bunk wrote: Subject: Stradis driver udev brekage References : http://bugzilla.kernel.org/show_bug.cgi?id=6170 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=181063 http://lkml.o

Re: [linux-usb-devel] [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Bob Copeland
On 3/14/06, Bob Copeland <[EMAIL PROTECTED]> wrote: > On 3/14/06, Paul Fulghum <[EMAIL PROTECTED]> wrote: > > Bob, this problem has not yet been properly diagnosed. > > Can you help by running with this patch and returning > > the syslog output (with the oops also)? > Here's the long awaited dmesg

Re: [linux-usb-devel] [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
Bob Copeland wrote: Here's the long awaited dmesg... if needed I can also recompile with the acm debugging on -- some of that may be useful in the probe stage if this doesn't narrow it down. Please do, as the logging does not show what I thought it would. I'm going to make another printk patch

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Stephen Liu
Hi Ken, Tks for your advice and link. - snip - > I have configured a 256M USB hard drive as a bootable device, loaded > a basic linux 2.6 OS and able to get it to boot. I use the device as > a loader to configure computers that have no image on their hard > drive. My case maybe differs to your

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Stephen Liu
Hi Alan, Tks for your advice. - snip - > It looks like there are two key issues: > > 1. You have to have entries in your initrd's filesystem for > /dev/sda > and /dev/sda1. Otherwise you won't have any way to access the USB > device. It did not to come to step yet because t

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Stephen Liu
Hi Pete, Tks fo your advice. - snip - > > 1. You have to have entries in your initrd's filesystem for > /dev/sda > > and /dev/sda1. Otherwise you won't have any way to access the USB > > device. > > Or you have to have udev running. Whether I need to install "udev" on the pendriv

Re: [linux-usb-devel] How to boot an USB pendrive with Grub

2006-03-14 Thread Stephen Liu
HI Alan, > > > 1. You have to have entries in your initrd's filesystem for > /dev/sda > > > and /dev/sda1. Otherwise you won't have any way to access the > USB > > > device. > > > > Or you have to have udev running. I think this is what Fedora does. > > Peter Jones said he was booting

Re: [linux-usb-devel] [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Paul Fulghum
OK, here is another printk patch. Leave the previous one in place. --- linux-2.6.16-rc6/drivers/base/class.c 2006-03-14 20:13:59.0 -0600 +++ b/drivers/base/class.c 2006-03-14 20:13:35.0 -0600 @@ -666,7 +666,13 @@ void class_device_del(struct class_devic if (cl

[linux-usb-devel] TEST 14 and USBMON

2006-03-14 Thread Marc Singer
On Tue, Mar 14, 2006 at 11:07:02AM -0800, Marc Singer wrote: > Test 14 is returnng an error 22, EINVAL. It looks like this is due to > the parameters used in that test: > > usbtest 2-2:3.0: TEST 14: 1000 ep0out, 1..512 vary 512 > > The call is being made with the parameters > >(dev, para

Re: [linux-usb-devel] [PATCH] cdc-acm tty register and close fixes

2006-03-14 Thread Bob Copeland
On Tue, Mar 14, 2006 at 08:28:57PM -0600, Paul Fulghum wrote: > OK, here is another printk patch. > Leave the previous one in place. Here you go. This one also adds USB debugging but not, apparently, whatever cdc-acm uses (CONFIG_DEBUG_DRIVER?)... usbcore: registered new driver cdc_acm drivers/

[linux-usb-devel] Re: [RFC][PATCH] USB touch screen driver, all-in-one

2006-03-14 Thread Lanslott Gish
did you mean like that? thx. regards, Lanslott Gish === --- linux-2.6.16-rc6.patched/drivers/usb/input/usbtouchscreen.c +++ linux-2.6.16-rc6/drivers/usb/input/usbtouchscreen.c @@ -49,6 +49,13 @@ static int swap_xy; module_param(swa

Re: [linux-usb-devel] TEST 14 and USBMON

2006-03-14 Thread Pete Zaitcev
On Tue, 14 Mar 2006 19:33:19 -0800, Marc Singer <[EMAIL PROTECTED]> wrote: > e0865c40 984311403 S Co:057:00 s 01 0b 0 > e0865c40 984318037 C Co:057:00 0 0 > e0865c40 984320233 S Co:057:00 s 40 5b 0100 256 = 00010203 > 04050607 08090a0b 0c0d0e0f 10111213 14151617 181

Re: [linux-usb-devel] TEST 14 and USBMON

2006-03-14 Thread Marc Singer
On Tue, Mar 14, 2006 at 09:44:10PM -0800, Pete Zaitcev wrote: > On Tue, 14 Mar 2006 19:33:19 -0800, Marc Singer <[EMAIL PROTECTED]> wrote: > > > e0865c40 984311403 S Co:057:00 s 01 0b 0 > > e0865c40 984318037 C Co:057:00 0 0 > > e0865c40 984320233 S Co:057:00 s 40 5b

[linux-usb-devel] Re: Printer Gadget / "Device Class" Driver

2006-03-14 Thread Craig W. Nadler
Craig W. Nadler wrote: >Craig W. Nadler wrote: > > > >> I have a Beta version of a Printer Gadget driver that I'd like to >>submit. The patch file included contains all the changes, the main C file >>printer.c and the documentation file gadget_printer.txt are also attached >>so that they're vi