Re: [linux-usb-devel] Question about hub_thread

2007-08-10 Thread Alan Stern
On Fri, 10 Aug 2007, jidong xiao wrote: > Here are the piece of code from 2.6.22.1, > >2817 static int hub_thread(void *__unused) >2818 { >2819 do { >2820 hub_events(); >2821 wait_event_interruptible(khubd_wait, >2822

Re: [linux-usb-devel] question about running linux USB ether gadget driver on Cirrus ep9315A development board

2007-08-04 Thread David Brownell
On Friday 03 August 2007, Lorenzo T. Flores wrote: > > Anyways, for a while now, I've been trying to get the ethernet gadget > driver working on a Cirrus EP9315A development board contains the > Phillips ISP1581 usb device controller. There is no drivers/usb/gadget/isp1581.c driver ... > The

Re: [linux-usb-devel] Question about struct usb_hub

2007-07-04 Thread Alan Stern
On Wed, 4 Jul 2007, jidong xiao wrote: > Still consider following piece of code, I see there is a change in > this part of code,here showed the same part of code but came from > different kernel version,one is sampled from kernel 2.6.10,while > another is sampled from kernel 2.6.21. > > inside hu

Re: [linux-usb-devel] Question about struct usb_hub

2007-07-03 Thread jidong xiao
Still consider following piece of code, I see there is a change in this part of code,here showed the same part of code but came from different kernel version,one is sampled from kernel 2.6.10,while another is sampled from kernel 2.6.21. inside hub_events() sampled from drivers/usb/core/hub.c, 2.6.

Re: [linux-usb-devel] Question about struct usb_hub

2007-07-03 Thread Felipe Balbi
On 7/3/07, Alan Stern <[EMAIL PROTECTED]> wrote: > On Tue, 3 Jul 2007, Felipe Balbi wrote: > > > Hi Allan, > > > > let me get this same thread to ask you the following > > > How could I force my usb host controller to re-enumerate everything > > attached on the bus through userspace?? would it be s

Re: [linux-usb-devel] Question about struct usb_hub

2007-07-03 Thread Alan Stern
On Tue, 3 Jul 2007, Felipe Balbi wrote: > Hi Allan, > > let me get this same thread to ask you the following > How could I force my usb host controller to re-enumerate everything > attached on the bus through userspace?? would it be some sort of > control message??? The easiest way is to unbind

Re: [linux-usb-devel] Question about struct usb_hub

2007-07-03 Thread Felipe Balbi
Hi Allan, let me get this same thread to ask you the following On 7/3/07, Alan Stern <[EMAIL PROTECTED]> wrote: > On Tue, 3 Jul 2007, jidong xiao wrote: > > > What's the difference between event_bits and change_bits? > > I just cannot understand why we need two variables. > > > > > > 188 stru

Re: [linux-usb-devel] Question about struct usb_hub

2007-07-03 Thread Alan Stern
On Tue, 3 Jul 2007, jidong xiao wrote: > What's the difference between event_bits and change_bits? > I just cannot understand why we need two variables. > > > 188 struct usb_hub { > ... > 205 unsigned long event_bits[1]; /* status > change bitmask */ > 206

Re: [linux-usb-devel] question on ehci's memory needs

2007-06-29 Thread Oliver Neukum
Am Freitag, 29. Juni 2007 schrieb David Brownell: > On Friday 29 June 2007, Oliver Neukum wrote: > > Hi, > > > > I am trying to calculate worst cases memory requirements of EHCI. > > For bulk transfers it seems to me that you need size/16384 (rounded up) > > qtd and one qh. Is it really that easy?

Re: [linux-usb-devel] question on ehci's memory needs

2007-06-29 Thread David Brownell
On Friday 29 June 2007, Oliver Neukum wrote: > Hi, > > I am trying to calculate worst cases memory requirements of EHCI. > For bulk transfers it seems to me that you need size/16384 (rounded up) > qtd and one qh. Is it really that easy? ISTR, yes. And interrupt transfers are the same. > What ab

Re: [linux-usb-devel] question on the lifecycle of struct ed in ohci driver

2007-06-28 Thread David Brownell
On Thursday 28 June 2007, Oliver Neukum wrote: > Am Donnerstag, 28. Juni 2007 schrieb David Brownell: > > On Thursday 28 June 2007, Oliver Neukum wrote: > > > Hi, > > > > > > am I seeing this correctly that struct ed is allocated the first time an > > > URB > > > is submitted for the ed's endpoin

Re: [linux-usb-devel] question on the lifecycle of struct ed in ohci driver

2007-06-28 Thread Oliver Neukum
Am Donnerstag, 28. Juni 2007 schrieb David Brownell: > On Thursday 28 June 2007, Oliver Neukum wrote: > > Hi, > > > > am I seeing this correctly that struct ed is allocated the first time an URB > > is submitted for the ed's endpoint and is freed when the endpoint is > > disabled? > > That's the

Re: [linux-usb-devel] question on the lifecycle of struct ed in ohci driver

2007-06-28 Thread David Brownell
On Thursday 28 June 2007, Oliver Neukum wrote: > Hi, > > am I seeing this correctly that struct ed is allocated the first time an URB > is submitted for the ed's endpoint and is freed when the endpoint is disabled? That's the idea. > > Regards > Oliver > ---

Re: [linux-usb-devel] Question about a basic usb concept

2007-06-27 Thread Oliver Neukum
Am Mittwoch, 27. Juni 2007 schrieb jidong xiao: > What's the difference between configuration and setting?Can anybody > show me any real examples, thank you. device -> configuration -> interface -> setting A device has configurations. A configuration determines which interfaces are available. A c

Re: [linux-usb-devel] Question about usb sg handling

2007-06-19 Thread jidong xiao
Calm down. We should discuss this problem in a rational way. I believe there should be more stories behind this mail. Even though I am not quite clear about what happened before, but I guess probably you argued on this some time back. So what are the current status? Regards Jason Xiao On 6/20/07,

Re: [linux-usb-devel] Question about usb sg handling

2007-06-19 Thread Oliver Neukum
Am Dienstag, 19. Juni 2007 schrieb Pete Zaitcev: > On Tue, 19 Jun 2007 09:26:15 +0200, Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > > The main problem is that the URB does not have an s/g list. If it > > > did, the whole library would be unnecessary. Nonetheless, we still > > > > And that from

Re: [linux-usb-devel] Question about usb sg handling

2007-06-19 Thread Pete Zaitcev
On Tue, 19 Jun 2007 09:26:15 +0200, Oliver Neukum <[EMAIL PROTECTED]> wrote: > > The main problem is that the URB does not have an s/g list. If it > > did, the whole library would be unnecessary. Nonetheless, we still > > And that from the man who complained about 24 more bytes in struct urb ;-)

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread David Brownell
On Tuesday 22 May 2007, Alan Stern wrote: > On Tue, 22 May 2007, David Brownell wrote: > > > > > 2) What happens if the device terminates the transfer during the 4KB > > > > (after say 3700 bytes received, with a short packet)? > > > > > > > > Thus: > > > > urb->transfer_buffer_length = 4096 >

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread Alan Stern
On Tue, 22 May 2007, David Brownell wrote: > > > 2) What happens if the device terminates the transfer during the 4KB > > > (after say 3700 bytes received, with a short packet)? > > > > > > Thus: > > > urb->transfer_buffer_length = 4096 > > > urb->actual_length = 3700 > > > > > > I be

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread David Brownell
On Tuesday 22 May 2007, Alan Stern wrote: > On Tue, 22 May 2007, Curran, Dominic wrote: > > > > > Lets say the Hosts Mass Storage driver wants to READ 12K: > > > > I believe that the Host Controller driver (e.g. ehci_hcd) might see > > something like this coming from usbcore: > > > > 1) BULK OU

Re: [linux-usb-devel] Question regarding short transfers

2007-05-22 Thread Alan Stern
On Tue, 22 May 2007, Curran, Dominic wrote: > Hi > I have two questions regarding short transfers. > My questions are best illustrated by a scenario: > > Lets say the Hosts Mass Storage driver wants to READ 12K: > > I believe that the Host Controller driver (e.g. ehci_hcd) might see > something

Re: [linux-usb-devel] Question about EHCI PCI/platform drivers

2007-05-17 Thread David Brownell
On Thursday 17 May 2007, Tzachi Perelstein wrote: > Besides arguing with me if I have a buggy PCI or not, you couldn't > explain _why_ this is the appropriate handling. I was pointing out to you that there's nothing particularly wrong about it. And it has the virtues of being straightforward ...

Re: [linux-usb-devel] Question about EHCI PCI/platform drivers

2007-05-17 Thread Tzachi Perelstein
David Brownell wrote: > On Tuesday 15 May 2007, Tzachi Perelstein wrote: >> David Brownell wrote: >>> On Sunday 13 May 2007, Tzachi Perelstein wrote: Hello, I'm working on EHCI HC glue port for Marvell Orion SoC. The Orion has a PCI/PCIE interfaces as well as an integrated USB c

Re: [linux-usb-devel] Question about EHCI PCI/platform drivers

2007-05-16 Thread David Brownell
On Tuesday 15 May 2007, Tzachi Perelstein wrote: > David Brownell wrote: > > On Sunday 13 May 2007, Tzachi Perelstein wrote: > >> Hello, > >> > >> I'm working on EHCI HC glue port for Marvell Orion SoC. The Orion has > >> a PCI/PCIE interfaces as well as an integrated USB controller. > >> > >> Whil

Re: [linux-usb-devel] Question about EHCI PCI/platform drivers

2007-05-15 Thread Tzachi Perelstein
David Brownell wrote: > On Sunday 13 May 2007, Tzachi Perelstein wrote: >> Hello, >> >> I'm working on EHCI HC glue port for Marvell Orion SoC. The Orion has >> a PCI/PCIE interfaces as well as an integrated USB controller. >> >> While looking at ehci-hcd.c it looks like there's some kind of depend

Re: [linux-usb-devel] Question about EHCI PCI/platform drivers

2007-05-14 Thread David Brownell
On Sunday 13 May 2007, Tzachi Perelstein wrote: > Hello, > > I'm working on EHCI HC glue port for Marvell Orion SoC. The Orion has > a PCI/PCIE interfaces as well as an integrated USB controller. > > While looking at ehci-hcd.c it looks like there's some kind of dependency > between PCI_DRIVER an

Re: [linux-usb-devel] question about usbtest.c, test.sh and testusb.c?

2007-04-12 Thread David Brownell
> > > > The buffer is created in usbtest.c:iso_alloc_urb(), at the point where it > > calls usb_buffer_alloc(). > > Actually cant i fill this buffer in user space? No. > it is more logic to fill the buffer in the user-space (testusb.c) > then let the usbtest.c module send the iso-packet that c

Re: [linux-usb-devel] question about usbtest.c, test.sh and testusb.c?

2007-04-12 Thread Wael Adel
On 4/8/07, Alan Stern <[EMAIL PROTECTED]> wrote: > On Sun, 8 Apr 2007, nesta wrote: > > > hello guys, > > i want to test the iso packets written by the host so > > i should write : ./test.sh -t15 > > everything is fine uptill now but my question is: > > > > where is the buffer that is filled by the

Re: [linux-usb-devel] question about usbtest.c, test.sh and testusb.c?

2007-04-08 Thread Alan Stern
On Sun, 8 Apr 2007, nesta wrote: > hello guys, > i want to test the iso packets written by the host so > i should write : ./test.sh -t15 > everything is fine uptill now but my question is: > > where is the buffer that is filled by the iso-packets? > > i have searched for it in testusb.c and usb

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-24 Thread Oliver Neukum
Am Samstag, 24. März 2007 04:30 schrieb Alan Stern: > Regular files work like that.  If a program has a file named "foo" open > when you do "rm foo", the open file reference won't prevent you from > creating a new file named "foo" in the same directory.  There will be no > conflict or confusion

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Greg KH
On Fri, Mar 23, 2007 at 01:30:45PM -0700, John wrote: > > Those aren't serial numbers in the USB sense. > > > Consider any FT 232R device, which is assigned > > one from the factory > > I see. So, aparently, Till wanted to query > for the manufacturer's assigned serial number > and somehow rememb

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Alan Stern
On Fri, 23 Mar 2007, Greg KH wrote: > > I don't buy the argument about needing to keep the number in use merely > > because the device node is still open. Once the node has been > > unregistered it is no longer visible to userspace. Only the existing open > > file references can be used, and a n

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Greg KH
On Fri, Mar 23, 2007 at 11:30:16PM -0400, Alan Stern wrote: > On Fri, 23 Mar 2007, Greg KH wrote: > > > On Fri, Mar 23, 2007 at 12:36:11PM -0700, John wrote: > > > Here two solutions are possible: > > > 1. Keep port range (ttyUSB0 and ttyUSB1 in this case) > > > reserved until all files are closed

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Alan Stern
On Fri, 23 Mar 2007, Greg KH wrote: > On Fri, Mar 23, 2007 at 12:36:11PM -0700, John wrote: > > Here two solutions are possible: > > 1. Keep port range (ttyUSB0 and ttyUSB1 in this case) > > reserved until all files are closed. > > This is what the current code attempts to do. > > But this means t

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Greg KH
On Fri, Mar 23, 2007 at 07:18:50PM -0700, John wrote: > > --- Greg KH <[EMAIL PROTECTED]> wrote: > > > As for applications that foolishly use ttyUSB0 only, > > well, they kind of deserve the breakage. > > It is pretty trivial to work around that issue > > with udev if they want to (and it's rec

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread John
--- Greg KH <[EMAIL PROTECTED]> wrote: > As for applications that foolishly use ttyUSB0 only, > well, they kind of deserve the breakage. > It is pretty trivial to work around that issue > with udev if they want to (and it's recommended > that they fix it that way...) In this case somebody sho

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Greg KH
On Fri, Mar 23, 2007 at 01:35:44PM -0700, John wrote: > > I say #1 as I implemented it :) > > > > If userspace still has the device node open, then we > > need to keep the > > number still in use. > > OK, if this behavior is by design > (and it is hard to tell what is by design > and what is by a

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread John
> I say #1 as I implemented it :) > > If userspace still has the device node open, then we > need to keep the > number still in use. OK, if this behavior is by design (and it is hard to tell what is by design and what is by accident when you look at a code without any documentation), then I will

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Oliver Neukum
Am Freitag, 23. März 2007 21:18 schrieb David Brownell: > > > > It seems to me that if we cannot guarantee that > > > > the devices are identical, we must make sure they > > > > have different numbers. > > That means the numbers "x" in ttyUSBx will almost never > be re-used. To me that sounds lik

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread John
> Those aren't serial numbers in the USB sense. > Consider any FT 232R device, which is assigned > one from the factory I see. So, aparently, Till wanted to query for the manufacturer's assigned serial number and somehow remember which ttyUSBx port we assigned to it and assign the same number nex

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Greg KH
On Fri, Mar 23, 2007 at 08:42:28PM +0100, Till Harbaum / Lists wrote: > Hi, > > Am Freitag, 23. M?rz 2007 20:36 schrieb John: > > It seems to me that if we cannot guarantee that > > the devices are identical, we must make sure they > > have different numbers. > What about devices that have serial

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Greg KH
On Fri, Mar 23, 2007 at 12:36:11PM -0700, John wrote: > Here two solutions are possible: > 1. Keep port range (ttyUSB0 and ttyUSB1 in this case) > reserved until all files are closed. > This is what the current code attempts to do. > But this means that if the same device is re-plugged, > it will b

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread David Brownell
> > > It seems to me that if we cannot guarantee that > > > the devices are identical, we must make sure they > > > have different numbers. That means the numbers "x" in ttyUSBx will almost never be re-used. To me that sounds like something that will break lots of userspace code. > > What about

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Till Harbaum / Lists
Hi, Am Freitag, 23. März 2007 20:58 schrieb John: > I am not sure what you mean as > "devices that have serial numbers?" USB devices can include a unique serial number allowing even devices of the same kind to be distinguished. Thus you would know that exactly the same device has been plugged in.

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread John
> > It seems to me that if we cannot guarantee that > > the devices are identical, we must make sure they > > have different numbers. > What about devices that have serial numbers? > Wouldn't it at least > be a good idea to make their file usage persistant? I am not sure what you mean as "devices

Re: [linux-usb-devel] Question about usb-serial port registration

2007-03-23 Thread Till Harbaum / Lists
Hi, Am Freitag, 23. März 2007 20:36 schrieb John: > It seems to me that if we cannot guarantee that > the devices are identical, we must make sure they > have different numbers. What about devices that have serial numbers? Wouldn't it at least be a good idea to make their file usage persistant? T

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 17:29 schrieb David Howells: > How about the following: > > > INTERRUPT HANDLING > -- > > Execution of the interrupt handler chain for an interrupt not bound to a CPU > is bounded by a lock/unlock at either side. Furthermore, recurrence of that > in

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread David Howells
Oliver Neukum <[EMAIL PROTECTED]> wrote: > + (*) entering and returning from interrupt handlers implies a full barrier That shouldn't really be under the "MISCELLANEOUS FUNCTIONS" subheading as it's not precisely describing a callable function that has barrier effects. Hmmm... also it isn't quit

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 10:39 schrieb Robert Marquardt: > Oliver Neukum wrote: > > >>> OK, thanks. I am relieved. > >>> Should I add a section concerning this to Documentation? > >> Is that a trick question? :-) > > > > No. > > Your question if it should be documented bears itself the answ

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Robert Marquardt
Oliver Neukum wrote: >>> OK, thanks. I am relieved. >>> Should I add a section concerning this to Documentation? >> Is that a trick question? :-) > > No. Your question if it should be documented bears itself the answer. Of course! If an expert has doubts then lesser experts and common folk do n

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 09:57 schrieb Robert Marquardt: > Oliver Neukum wrote: > > > OK, thanks. I am relieved. > > Should I add a section concerning this to Documentation? > > Is that a trick question? :-) No. Regards Oliver ---

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Robert Marquardt
Oliver Neukum wrote: > OK, thanks. I am relieved. > Should I add a section concerning this to Documentation? Is that a trick question? :-) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 09:16 schrieb Greg KH: > On Wed, Mar 14, 2007 at 08:44:22PM +0100, Oliver Neukum wrote: > > It is called in interrupt and uses no locking. What happens if the next > > irq is processed on another cpu? Is that cpu guaranteed to see the updates > > to the incremented var

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Mittwoch, 14. März 2007 23:44 schrieb David Howells: > Pete Zaitcev <[EMAIL PROTECTED]> wrote: > > > I think he is concerned about CPU A executing an interrupt handler, its > > stores getting stuck in its store buffer or its write-back cache, the IRQ > > finished, IRQ get migrated to CPU B, CPU

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread David Howells
Pete Zaitcev <[EMAIL PROTECTED]> wrote: > I think he is concerned about CPU A executing an interrupt handler, its > stores getting stuck in its store buffer or its write-back cache, the IRQ > finished, IRQ get migrated to CPU B, CPU B taking next interrupt and seeing > old RAM state. I don't see

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Oliver Neukum
Am Mittwoch, 14. März 2007 22:21 schrieb Pete Zaitcev: > On Wed, 14 Mar 2007 20:59:29 +, David Howells <[EMAIL PROTECTED]> wrote: > > > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > > > It is called in interrupt and uses no locking. What happens if the next > > > irq is processed on another

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Pete Zaitcev
On Wed, 14 Mar 2007 20:59:29 +, David Howells <[EMAIL PROTECTED]> wrote: > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > It is called in interrupt and uses no locking. What happens if the next > > irq is processed on another cpu? Is that cpu guaranteed to see the updates > > to the increment

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Oliver Neukum
Am Mittwoch, 14. März 2007 21:59 schrieben Sie: > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > It is called in interrupt and uses no locking. What happens if the next > > irq is processed on another cpu? Is that cpu guaranteed to see the updates > > to the incremented variables? > > I thought t

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread David Howells
Oliver Neukum <[EMAIL PROTECTED]> wrote: > It is called in interrupt and uses no locking. What happens if the next > irq is processed on another cpu? Is that cpu guaranteed to see the updates > to the incremented variables? I thought that possibility was prevented by IRQ_INPROGRESS. David -

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Alan Stern
On Wed, 14 Mar 2007, Oliver Neukum wrote: > Hi, > > I am looking at this code: > > if (new_msr & > (MOS_MSR_DELTA_CTS | MOS_MSR_DELTA_DSR | MOS_MSR_DELTA_RI | >MOS_MSR_DELTA_CD)) { > icount = &mos7840_port->icount; > > /* update input line

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Gene Heskett
On Saturday 10 March 2007, Adam Kropelin wrote: >Jiri Kosina wrote: >> I am still however pretty far from being convinced that this will make >> your application work. But as I absolutely don't know what your >> application is expecting to obtain from serial port and how does this >> compare to wha

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Gene Heskett
On Saturday 10 March 2007, Jiri Kosina wrote: >On Sat, 10 Mar 2007, Gene Heskett wrote: >> >I think there is alternative for you that can be done completely in >> >userland, without seeding mess into the kernel driver - do you think >> > it would be feasible that you create a trivial and small libr

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Gene Heskett
On Saturday 10 March 2007, Jiri Kosina wrote: >On Sat, 10 Mar 2007, Gene Heskett wrote: >> >So these broken programs think that while talking to hiddev device, >> > they are in fact receiving data from serial port, right? >> >> I believe that to be the case, this code is very old and moldy. > >That

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Adam Kropelin
Jiri Kosina wrote: > I am still however pretty far from being convinced that this will make > your application work. But as I absolutely don't know what your > application is expecting to obtain from serial port and how does this > compare to what it is getting from usb hiddev, it's just wild guess

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Jiri Kosina
On Sat, 10 Mar 2007, Gene Heskett wrote: > >I think there is alternative for you that can be done completely in > >userland, without seeding mess into the kernel driver - do you think it > >would be feasible that you create a trivial and small library, that > I'm not up to writing a library. 15

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Jiri Kosina
On Sat, 10 Mar 2007, Gene Heskett wrote: > >So these broken programs think that while talking to hiddev device, they > >are in fact receiving data from serial port, right? > I believe that to be the case, this code is very old and moldy. That's quite sad. In fact, it would quite surprise me if th

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Gene Heskett
On Saturday 10 March 2007, Jiri Kosina wrote: >On Thu, 8 Mar 2007, Gene Heskett wrote: >> I believe the problem to be that when their version of upsd is trying >> to open the /dev/name its given, it is assuming and hard coded to do >> the ioctl's to set the ports speed in baudrate, width of word, p

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Gene Heskett
On Saturday 10 March 2007, Jiri Kosina wrote: >On Fri, 9 Mar 2007, Gene Heskett wrote: >> Oh? I wasn't aware of that. What other data paths can it use besides >> a usb port? > >Until 2.6.20, HID in kernel was USB-only thing. In 2.6.20 I have > distilled the generic HID layer, which is now also ho

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Jiri Kosina
On Fri, 9 Mar 2007, Gene Heskett wrote: > Oh? I wasn't aware of that. What other data paths can it use besides a > usb port? Until 2.6.20, HID in kernel was USB-only thing. In 2.6.20 I have distilled the generic HID layer, which is now also hooked by the Bluetooth code, as there are many Blu

Re: [linux-usb-devel] Question re hiddev

2007-03-10 Thread Jiri Kosina
On Thu, 8 Mar 2007, Gene Heskett wrote: > I believe the problem to be that when their version of upsd is trying to > open the /dev/name its given, it is assuming and hard coded to do the > ioctl's to set the ports speed in baudrate, width of word, parity etc. Hi Gene, first, sorry for replying

Re: [linux-usb-devel] Question re hiddev

2007-03-09 Thread Gene Heskett
On Friday 09 March 2007, Adam Kropelin wrote: >Gene Heskett wrote: >> On Thursday 08 March 2007, Gene Heskett wrote: >>> Greetings; >>> >>> Belkin is being non-responsive to requests for updated drivers for >>> their line of UPS's, all of which now have a USB port which is the >>> Belkin recommende

Re: [linux-usb-devel] Question re hiddev

2007-03-09 Thread Pete Zaitcev
On Fri, 09 Mar 2007 19:28:24 -0500, Gene Heskett <[EMAIL PROTECTED]> wrote: > > should. Try to resend to <[EMAIL PROTECTED]> and cc: to linux-kernel. HID > > is not specific to USB. > I did just now send a message to jiri, but it bounced at approximately C > speed, plus or minus a few percent. >

Re: [linux-usb-devel] Question re hiddev

2007-03-09 Thread Gene Heskett
On Friday 09 March 2007, Adam Kropelin wrote: >Gene Heskett wrote: >> On Thursday 08 March 2007, Gene Heskett wrote: >>> Greetings; >>> >>> Belkin is being non-responsive to requests for updated drivers for >>> their line of UPS's, all of which now have a USB port which is the >>> Belkin recommende

Re: [linux-usb-devel] Question re hiddev

2007-03-09 Thread Gene Heskett
On Friday 09 March 2007, Pete Zaitcev wrote: >On Fri, 09 Mar 2007 01:03:32 -0500, Gene Heskett <[EMAIL PROTECTED]> wrote: >> Its been about a day now, and no one has commented. Am I an idiot or >> ?? > >I think it means that Jiri Kosina is not on this list. I haven't got >a clue if what you propo

Re: [linux-usb-devel] Question re hiddev

2007-03-09 Thread Adam Kropelin
Gene Heskett wrote: > On Thursday 08 March 2007, Gene Heskett wrote: >> Greetings; >> >> Belkin is being non-responsive to requests for updated drivers for >> their line of UPS's, all of which now have a USB port which is the >> Belkin recommended way to talk to these things. >> >> Unforch, the bel

Re: [linux-usb-devel] Question re hiddev

2007-03-09 Thread Pete Zaitcev
On Fri, 09 Mar 2007 01:03:32 -0500, Gene Heskett <[EMAIL PROTECTED]> wrote: > Its been about a day now, and no one has commented. Am I an idiot or ?? I think it means that Jiri Kosina is not on this list. I haven't got a clue if what you propose is a good idea... Although in theory I should. Try

Re: [linux-usb-devel] Question re hiddev

2007-03-08 Thread Gene Heskett
On Thursday 08 March 2007, Gene Heskett wrote: >Greetings; > >Belkin is being non-responsive to requests for updated drivers for their >line of UPS's, all of which now have a USB port which is the Belkin >recommended way to talk to these things. > >Unforch, the belkin supplied *nix stuff was last c

Re: [linux-usb-devel] question on usb_suspend_interface()

2007-02-12 Thread Oliver Neukum
Am Montag, 12. Februar 2007 19:22 schrieb Alan Stern: > driver.c:usb_unbind_interface(), which calls usb_autoresume_device().   > That would force it to wait until usb_suspend_interface() finished. I had overlooked that. Thanks. > The other way is to call usb_driver_release_interface().  I assume

Re: [linux-usb-devel] question on usb_suspend_interface()

2007-02-12 Thread Alan Stern
On Mon, 12 Feb 2007, Oliver Neukum wrote: > Hi, > > concerning this code from usb_suspend_interface(), what keeps "driver" > valid? I can see pm_lock protecting against usb_claim_interface(), but > what about driver (un)registration? > > driver = to_usb_driver(intf->dev.driver); > >

Re: [linux-usb-devel] Question on UDC driver for the Alchemy Au1550

2006-12-15 Thread Sergei Shtylyov
Hello. elmar gerdes wrote: > to make this short: > Is anybody working on a UDC driver for the Alchemy Au1550 > (MIPS-based)? > If you are interested in details, please read on: > I'm working with an Au1550-based board and would like to run it as a USB > device. There have been a few driver

Re: [linux-usb-devel] question regarding usb_bulk_read() and EAGAIN

2006-12-14 Thread Garrett D'Amore
Alan Stern wrote: > On Wed, 13 Dec 2006, Garrett D'Amore wrote: > > >> I've done some more debugging. I've not had success in getting a debug >> kernel built that will boot my system (Ubuntu) yet, and I don't know why >> _that_ is a problem, but it takes ~4 hours per attempt (compiling Linux >>

Re: [linux-usb-devel] question regarding usb_bulk_read() and EAGAIN

2006-12-14 Thread Alan Stern
On Wed, 13 Dec 2006, Garrett D'Amore wrote: > I've done some more debugging. I've not had success in getting a debug > kernel built that will boot my system (Ubuntu) yet, and I don't know why > _that_ is a problem, but it takes ~4 hours per attempt (compiling Linux > is _slow_ on this Via 1GHz sy

Re: [linux-usb-devel] question regarding usb_bulk_read() and EAGAIN

2006-12-13 Thread Garrett D'Amore
I've done some more debugging. I've not had success in getting a debug kernel built that will boot my system (Ubuntu) yet, and I don't know why _that_ is a problem, but it takes ~4 hours per attempt (compiling Linux is _slow_ on this Via 1GHz system), so I took a different tack. I started using t

Re: [linux-usb-devel] question regarding usb_bulk_read() and EAGAIN

2006-12-08 Thread Alan Stern
On Thu, 7 Dec 2006, Garrett D'Amore wrote: > I'm developing a USB "transport protocol" (for a thin-client > application, that basically allows a remote server to access the USB bus > on a thin-client device, e.g. so you can access your USB thumbdrive > using your thin-client.) We have this workin

Re: [linux-usb-devel] question about the Cypress Semiconductor serial driver

2006-11-01 Thread Vladimir Volovich
"SV" == Sergey Vlasov writes: >> Report Descriptors: ** UNAVAILABLE ** SV> To get full "lsusb -v" output for a HID device, you need to SV> unload the usbhid module. Be careful if you also have an USB SV> keyboard - you will need to enter all commands on one line: SV>rmmod usbhid; lsusb

Re: [linux-usb-devel] question about the Cypress Semiconductor serial driver

2006-11-01 Thread Sergey Vlasov
On Wed, Nov 01, 2006 at 02:57:42AM +0300, Vladimir Volovich wrote: > i have a UPS drive (Ippon Smart Power Pro 2000) which has a usb and a > serial interface, but my mainboard doesn't have an external serial port, > and i'd like to manage the UPS via the USB port. > > the USB interface is based on

Re: [linux-usb-devel] question on module's symbols

2006-08-10 Thread Greg KH
On Thu, Aug 10, 2006 at 12:50:22PM +0200, Oliver Neukum wrote: > Hi, > > I've a tester who cannot load a modul due to a missing symbol. > How can he find out which symbol is missing? Look in the kernel log, it will say which symbol was missing. thanks, greg k-h

Re: [linux-usb-devel] question on module's symbols

2006-08-10 Thread Luiz Fernando N. Capitulino
Hi Oliver, Em Thu, 10 Aug 2006 12:50:22 +0200 Oliver Neukum <[EMAIL PROTECTED]> escreveu: | Hi, | | I've a tester who cannot load a modul due to a missing symbol. | How can he find out which symbol is missing? I think you can use depmod for that. -- Luiz Fernando N. Capitulino ---

Re: [linux-usb-devel] Question about CDC Ethernet/EEM descriptors

2006-05-23 Thread Ethan Du
Dave: Thanks a lot. I still have question here : ) > 2. EEM doesn't have specific descriptor, so how could host control those > broadcast and power filters? What filters are you talking about? The EEM spec doesn't provide any details about such things, so it looks to me like there aren't

Re: [linux-usb-devel] Question about CDC Ethernet/EEM descriptors

2006-05-22 Thread David Brownell
On Monday 22 May 2006 4:31 am, Ethan Du wrote: > 1. why should device pass a MAC address to Host through "Ethernet Networking > Functional Descriptor"? Can usenet.c decide one by itself? It's better if MAC addresses don't need local/probabalistic allocation. > 2. EEM doesn't have specific desc

Re: [linux-usb-devel] Question about choosing configurations

2006-05-02 Thread Alan Stern
On Mon, 1 May 2006, David Brownell wrote: > I'd go for just removing all the "is it bus powered" logic, given that > peripheral firmware doesn't seem to handle it reliably enough. A comment > about those firmware bugs would be useful. Okay. > On Monday 01 May 2006, Alan Stern wrote: > > Now the

Re: [linux-usb-devel] Question about choosing configurations

2006-05-01 Thread David Brownell
I'd go for just removing all the "is it bus powered" logic, given that peripheral firmware doesn't seem to handle it reliably enough. A comment about those firmware bugs would be useful. On Monday 01 May 2006, Alan Stern wrote: > Now there's a bugzilla report (6448) in which it turns out that an

Re: [linux-usb-devel] Question about choosing configurations

2006-05-01 Thread Alan Stern
On Mon, 1 May 2006, Duncan Sands wrote: > Hi Alan, > > > So here's the question: Is it better to remove the Get-Device-Status > > request, and along with it, the commented-out test for self-powered > > configs on a bus-powered device, or should I keep the request and > > reinstate the test (th

Re: [linux-usb-devel] Question about choosing configurations

2006-05-01 Thread Duncan Sands
Hi Alan, > So here's the question: Is it better to remove the Get-Device-Status > request, and along with it, the commented-out test for self-powered > configs on a bus-powered device, or should I keep the request and > reinstate the test (thereby making that MP3 player and my USB keyboard > d

Re: [linux-usb-devel] Question on use of DISCSIGNAL

2006-01-15 Thread Alan Stern
On Sun, 15 Jan 2006, Lonnie Mendez wrote: > http://sourceforge.net/mailarchive/message.php?msg_id=1445726 > > Does anyone have an answer for this? > >I tried passing an opaque pointer by context field of > usbdevfs_disconnectsignal but the function called on the signal always > shows: > >

Re: [linux-usb-devel] [QUESTION] HCD and remote wake-up

2006-01-06 Thread Alan Stern
On Fri, 6 Jan 2006, Franck wrote: > I was suspending both paths since I can't suspend a device, if its > interfaces are not suspended. > > $ echo -n 3 > /sys/bus/usb/devices/2-2\:1.0/power/state > $ cat /sys/bus/usb/devices/2-2\:1.0/power/state > 3 > $ echo -n 3 > /sys/bus/usb/devices/2-2/power/s

Re: [linux-usb-devel] [QUESTION] HCD and remote wake-up

2006-01-06 Thread Franck
2006/1/6, Alan Stern <[EMAIL PROTECTED]>: > For example, on my system here's the path to the power-state file for one > of my root hubs: > > /sys/devices/pci:00/:00:1d.7/usb1/power/state > > and here's the power-state file for the hub's interface: > > /sys/devices/pci:0

Re: [linux-usb-devel] [QUESTION] HCD and remote wake-up

2006-01-06 Thread Alan Stern
On Fri, 6 Jan 2006, Franck wrote: > 2006/1/6, Alan Stern <[EMAIL PROTECTED]>: > > Maybe you're missing some patches? The power state value should be set > > back to 0 (PMSG_ON) in drivers/usb/core/hub.c:finish_device_resume(). > > > > Or maybe you're not using the correct path in sysfs? > > I do

Re: [linux-usb-devel] [QUESTION] HCD and remote wake-up

2006-01-06 Thread Franck
2006/1/6, Alan Stern <[EMAIL PROTECTED]>: > Maybe you're missing some patches? The power state value should be set > back to 0 (PMSG_ON) in drivers/usb/core/hub.c:finish_device_resume(). > > Or maybe you're not using the correct path in sysfs? I don't think so since I can suspend the device corre

Re: [linux-usb-devel] [QUESTION] HCD and remote wake-up

2006-01-06 Thread Alan Stern
On Fri, 6 Jan 2006, Franck wrote: > Anyways I noticed something weird when testing remote wakeup. I > plugged a mouse and then suspend it through sysfs: > > $ echo -n 3 > /sys/bus/usb/devices/.../power/state > $ cat /sys/bus/usb/devices/.../power/state > 3 > > mouse is suspended. I p

  1   2   3   4   >