Re: [linux-usb-devel] Re: UHCI power management patch (as92) for 2.6.0

2003-09-18 Thread Martin Schwenke
> "Alan" == Alan Stern <[EMAIL PROTECTED]> writes: >> [...] Logs follow... they look a bit different... :-) Alan> Progress, anyway. :-) >> Sep 18 11:16:04 localhost kernel: hub 1-0:0: port 1, status 301, change 1, 1.5 Mb/s Alan> That "change 1" indicates a connection cha

[linux-usb-devel] Re: [patch 2.6.0-test5] usb_set_configuration() rework

2003-09-18 Thread Greg KH
On Mon, Sep 15, 2003 at 03:42:05PM -0700, David Brownell wrote: > * Use device_del() not device_unregister(), which matches > with using device_add() to create the devices instead of > device_register() ... resolves one refcounting problem. Hm, how does it do that? If you wan

Re: [linux-usb-devel] Re: PATCH: (as98) Changes to core/config.c (1 of 9)

2003-09-18 Thread Greg KH
On Wed, Sep 17, 2003 at 02:19:57PM -0700, Greg KH wrote: > On Mon, Sep 15, 2003 at 03:30:28PM -0400, Alan Stern wrote: > > > > This first patch makes only trivial changes. Excess whitespace at the end > > of lines is removed and return codes are altered from -1 to symbolic error > > values. The

[linux-usb-devel] Re: PATCH: (as104) Changes to core/config.c (7 of 9)

2003-09-18 Thread Greg KH
On Mon, Sep 15, 2003 at 03:35:46PM -0400, Alan Stern wrote: > This patch changes the usb_parse_interface() routine so that it only > handles a single interface/altsetting descriptor at a time, rather than > trying to handle all the altsettings for an interface at once. Besides > shrinking the code

[linux-usb-devel] Re: PATCH: (as105) Changes to core/config.c (8 of 9)

2003-09-18 Thread Greg KH
On Mon, Sep 15, 2003 at 03:37:23PM -0400, Alan Stern wrote: > This patch adds some extra error checking. The patch-comments list most > it. Particularly worth noting is the check on the endpoint addresses. > Since these addresses are used as indexes for the epmaxpacketin and > epmaxpacketout

[linux-usb-devel] Re: PATCH: (as106) Changes to core/config.c (9 of 9)

2003-09-18 Thread Greg KH
On Mon, Sep 15, 2003 at 03:37:40PM -0400, Alan Stern wrote: > This patch implements the change discussed last weekend. Rather than > allocating separate memory areas for the "extra" descriptors and copying > the descriptor contents, it simply makes the "extra" pointers refer to > memory within

[linux-usb-devel] Re: PATCH: (as108) "container_of" regarded as harmful (USB suspend)

2003-09-18 Thread Greg KH
On Thu, Sep 18, 2003 at 04:57:01PM -0400, Alan Stern wrote: > Greg: > > Here's another bug you can chalk up to the evils of "container_of". > > After fixing this, with appropriate debugging messages added I saw that > during an APM suspend, the UHCI driver was suspended _before_ the devices > on

[linux-usb-devel] PATCH: (as108) "container_of" regarded as harmful (USB suspend)

2003-09-18 Thread Alan Stern
Greg: Here's another bug you can chalk up to the evils of "container_of". After fixing this, with appropriate debugging messages added I saw that during an APM suspend, the UHCI driver was suspended _before_ the devices on its bus. Is this a known problem? If it isn't, could you forward this to

[linux-usb-devel] Re: [patch 2.6.0-test5] usb_set_configuration() rework

2003-09-18 Thread Alan Stern
On Wed, 17 Sep 2003, David Brownell wrote: > I see them as different in the following way: switching configurations > retains the same "struct usb_device". Morphing the device, after a > DFU style firmware update (host-initiated reset) or an EZ-USB style > one ("Renumeration(tm)", device initia

Re: [linux-usb-devel] Re: UHCI power management patch (as92) for 2.6.0

2003-09-18 Thread Alan Stern
On Thu, 18 Sep 2003, Martin Schwenke wrote: > > "Alan" == Alan Stern <[EMAIL PROTECTED]> writes: > > Alan> Martin, please try again after applying this one-liner on > Alan> top of all those other patches. > > Hmmm... Would you believe no improvement? Logs follow... they look > a b

Re: [linux-usb-devel] A question about USB program interface

2003-09-18 Thread Greg KH
On Thu, Sep 18, 2003 at 01:18:50AM +, zhihua Li wrote: > Hi, > I am really a freshman of Linux USB. If my question looks like silly, > please do not laugh at me. > > Now I am trying to make my USB device can work on Linux, SO > 1. I will develop a USB driver > 2. An application to function my

Re: [linux-usb-devel] Re: ONLCR broken on pl2303 and mct_u232

2003-09-18 Thread Greg KH
On Thu, Sep 18, 2003 at 07:35:30PM +0900, Shin-ichiro KAWASAKI wrote: > > Greg KH wrote: > > >On Fri, Sep 12, 2003 at 01:31:28PM +0900, Shin-ichiro KAWASAKI wrote: > > > >>I wish pl2303.c would accept write request while the device is busy. > > > > > >Patches are always welcome :) > > I tried to

Re: [linux-usb-devel] USB-Spec: length of endpoint descriptor

2003-09-18 Thread Alan Stern
On Thu, 18 Sep 2003, Robert Schwebel wrote: > Hi, > > According to the USB 2.0 specification Endpoint Descriptors must have a > length of 7 bytes; linux/usb.h defines two additional bytes (bRefresh, > bSynchAddress) and extra + extralen. Can anybody explain why these have > been added? Read th

Re: [linux-usb-devel] USB-Spec: length of endpoint descriptor

2003-09-18 Thread Randy.Dunlap
On Thu, 18 Sep 2003 16:55:07 +0200 Robert Schwebel <[EMAIL PROTECTED]> wrote: | Hi, | | According to the USB 2.0 specification Endpoint Descriptors must have a | length of 7 bytes; linux/usb.h defines two additional bytes (bRefresh, | bSynchAddress) and extra + extralen. Can anybody explain why

Re: [linux-usb-devel] make pdfdocs fails

2003-09-18 Thread Randy.Dunlap
On Thu, 18 Sep 2003 11:37:33 +0530 "Arun Prasad" <[EMAIL PROTECTED]> wrote: | Hello, | | I wanted to get the gadget.pdf file. | | I have got the latest linux source (linux-2.6.0-test5) from kernel.org. | | I did | # make pdfdocs | from linux base source tree /usr/src/linux-2.6.0-test5 | | It g

[linux-usb-devel] USB-Spec: length of endpoint descriptor

2003-09-18 Thread Robert Schwebel
Hi, According to the USB 2.0 specification Endpoint Descriptors must have a length of 7 bytes; linux/usb.h defines two additional bytes (bRefresh, bSynchAddress) and extra + extralen. Can anybody explain why these have been added? Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.

Re: [linux-usb-devel] A question about USB program interface

2003-09-18 Thread Daniel Drake
I'm in a similar situation myself. Except that I've never written code for the kernel before starting on some USB things. Greg KH (the main USB maintainer) has written some quite detailed docs on both the USB code system in general and also a guide on writing USB device drivers. Just "make htmldo

Re: [linux-usb-devel] Re: ONLCR broken on pl2303 and mct_u232

2003-09-18 Thread Shin-ichiro KAWASAKI
Greg KH wrote: On Fri, Sep 12, 2003 at 01:31:28PM +0900, Shin-ichiro KAWASAKI wrote: I wish pl2303.c would accept write request while the device is busy. Patches are always welcome :) I tried to make my wish come true on 2.4. Here's the patch. Five functions including pl2303_write() and pl2303

Re: Re: [linux-usb-devel] Two SL811 USB Host controller in one source

2003-09-18 Thread henry . ne
Thanks Soewono for this idea! I am working on it yust in this time. Henry --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ [EMAIL PROTECTED] To u

Re: [linux-usb-devel] Two SL811 USB Host controller in one source

2003-09-18 Thread Soewono Effendi
Hallo Henry, > Question: > Its a genaral problem for all USB drivers. How can I install a second controller at > the same time. > Hint: Controller is connected on ISA-bus, not on PCI and not PCMCIA. Yes, it is. You have to improve the USB drivers. Have a look for example at ne_probe_*() in driv

Re: Re: [linux-usb-devel] Two SL811 USB Host controller in one source

2003-09-18 Thread henry . ne
> If you want more than the 2.6 kerneldoc, use the 2.6 sources. > I have read all this. I have read also some other sources of UHCI drivers. And not found answers. Kernel 2.4.20, 2.5.75 and 2.6.0 use all the same base driver hc_sl811.c + hc_sl811_rh.c, 2.6.0 only moved into subdirectory and ren