Re: [Linux-usb-users] Dynamic usb ids support and modprobe
On Thu, Dec 06, 2007 at 06:23:14PM +0100, jbd wrote: Hello everybody, I don't know if it's the right place to ask but i have a em2821 video device which is not recognized by default (eb1a:2821) To make it work with mplayer for example, i have to do the following : $ modprobe em28xx card=9 #(which correspong to the DVC90 device) $ echo eb1a 2821 /sys/bus/usb/drivers/em28xx/new_id # now i can use the device with mplayer $ mplayer tv:// -tv driver=v4l2:outfmt=yuy2 It works well. Since i load the em28xx kernel with the card=9 option, it seems to me that i can't use other em28xx hardware at the same time, but i'm not well aware of that kind of things. Until today, i was used to patch the kernel source to add the product id 2821 to the em28xx_id_table in media/video/em28xx/em28xx-cards.c but i'd like to find a smoother solution. I thought i found it with the dynamic id support trick ;) Any idea is welcome ! Just send a patch that adds your new device ids to the driver source, as per the documentation in Documentation/SubmittingPatches and we will be glad to add it so that you do not have to do this in the future. thanks, greg k-h - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [usb-storage] [PATCH] Another SanDisk USB stick with a cdrom scsi lun
On Mon, Dec 03, 2007 at 08:54:09PM -0800, Matthew Dharm wrote: On Fri, Nov 30, 2007 at 05:14:42PM -0800, Greg KH wrote: If anyone has the git id for the current U3 patch, I'll be glad to revert it. Greg -- Are you reverting this or should someone generate a patch? I'll revert this, it's in my queue, I'm just stuck in meetings until Thursday, so it will not be until next week before I can apply this. thanks, greg k-h - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [usb-storage] [PATCH] Another SanDisk USB stick with a cdrom scsi lun
On Fri, Nov 30, 2007 at 07:56:09PM -0500, Ben Collins wrote: On Fri, 2007-11-30 at 12:46 -0800, Matthew Dharm wrote: (Adding Ben Collins, who put another U3 patch into the system.) On Fri, Nov 30, 2007 at 08:40:25PM +0100, Hans de Goede wrote: David Brown wrote: On Fri, Nov 30, 2007 at 10:55:09AM -0800, Matthew Dharm wrote: This is overly complex, and doesn't really solve anything. The fake CD-ROM is there. Who knows what's on it? If the desktop wants to ignore it, that's fine... but as a transport-oriented driver, usb-storage should cleanly transport the commands as much as possible. It is also possible to change the data that is on the fake CD-ROM, so this could conceivably be used for something from Linux as well. I don't know if anyone has figured out how to change the CD-ROM image from Linux, but it is certainly a possibility. I understand, well then someone needs to file an RFE for this against hal and we all need to help to get a list of ids of u3 deviced in hal. We should also find out why there is another U3 patch in the kernel. It came in with a patch that referred to some Ubuntu bugs. Ben, can you clarify what bug that was, and what the original report was? Not sure if that was an Ubuntu bug. Pretty sure that was a stick I had, and added to the list to get rid of the cdrom lun. I agree with Matt, this should not be done in the kernel. If you don't like seeing the additional LUN, which is really present in the device, do something in HAL or your window manager. That kind of policy should not be in the usb-storage driver. If anyone has the git id for the current U3 patch, I'll be glad to revert it. thanks, greg k-h - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] The linux-usb-users mailing list is shutting down!
On Fri, Nov 30, 2007 at 09:37:42AM +, Phil Endecott wrote: Greg KH wrote: On Thu, Nov 29, 2007 at 11:04:26PM +, Phil Endecott wrote: I can't see a daily digest feature on the new list server. Is this correct? Is it deliberate? I do not know if majordomo supports this or not, sorry. Try asking the postmaster of vger if you really want that kind of interface. Matti Aarnio [EMAIL PROTECTED] wrote: That is true. We have no digest processing available. Hmmm. That's not great. I don't suppose anyone will miss me, but I won't be subscribing to the new list (at least, not permanently). It's availble on gmane and other archives if you want to just read it that way. Sorry to see you go, greg k-h - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] The linux-usb-users mailing list is shutting down!
On Thu, Nov 29, 2007 at 11:04:26PM +, Phil Endecott wrote: Greg KH wrote: This mailing list is being shut down and has been replaced with a new list located on the vger.kernel.org servers. I can't see a daily digest feature on the new list server. Is this correct? Is it deliberate? I do not know if majordomo supports this or not, sorry. Try asking the postmaster of vger if you really want that kind of interface. thanks, greg k-h - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] subscribing problem
On Tue, Nov 20, 2007 at 08:17:49AM -0500, James Finnall wrote: I had problems subscribing to the new list at vger.kernel.org. My mail would just sit in the mail queue on my mail server until it timed out after 15 minutes. Then it was returned to me as undeliverable. The reason stated was a greylist policy. I went to their website to the link provided and was not really instructed what the particular problem was. My mail does authenticate through my server. My mail server is properly configured, even by AOL standards and whitelisted with AOL as well. I was able to finally get the subscribe and confirmation through but it took me almost an hour just to get two messages through. When these worked they were accepted in seconds. Anyone know what greylisting policy is looking at in the mail messages? And why it would work sometimes and fail others? Please contact [EMAIL PROTECTED] if you have questions about the mail policies in place there, as the people on this old sf.net list have nothing to do with running vger. good luck, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
[Linux-usb-users] linux-usb-users mailing list is moving to vger.kernel.org
The linux-usb-users mailing list is moving away from sf.net to vger.kernel.org. The new mailing list has already been set up. Information on how to subscribe to it can be found at: http://vger.kernel.org/vger-lists.html#linux-usb If you have questions on how to interact with the majordomo list server, please see: http://vger.kernel.org/majordomo-info.html Note, there will not be a split between the -devel and -users mailing list anymore for Linux USB stuff, let's just keep it all together on the same list. If you wish to remain on the linux-usb mailing lists, you must sign up for the new list on your own, no addresses will be automatically migrated. This sf.net mailing list will be shut down in a few weeks, to give people time to move over to the new one. thanks, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] handling timeouts on usb_bulk_msg
On Mon, Nov 05, 2007 at 09:00:10PM +, Andrew Greensted wrote: Hi All, I've written a custom device driver based on the usb-skeleton.c file in the kernel source. I want the driver to act in a similar way to when you read from a serial port. ie, when you do this: cat /dev/ttyS0 Why not just use the usb-serial core for this instead of trying to roll your own code? That is what it is there for :) thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [linux-usb-devel] partial message via usb serial console
On Tue, Oct 30, 2007 at 12:05:32PM -0500, Paul B Schroeder wrote: Oh, and ttyUSB0 doesn't end up functioning as a console whatsoever once init starts up.. That should work properly, do you have your inittab set up correct for that? That is required. The only inittab entry that I've added is to run agetty to use it as a login console.. That works fine.. i.e. I added: a0:2345:once:/sbin/agetty /dev/ttyS1 -t 60 115200 I'm not getting output from the initscripts though.. Is there something else I need to add to my inittab?? I wasn't aware of anything else I needed to add.. Take a look at Documentation/serial-console.txt You need to modify inittab to spawn on ttyUSB0 not ttyS1, as that's not where the usb-serial console is at :) Oops.. My mistake.. I copied and pasted the wrong line.. This is actually what I have in my inittab: a0:2345:once:/sbin/agetty /dev/ttyS1 -t 60 115200 a1:2345:once:/sbin/agetty /dev/ttyUSB0 -t 60 115200 That part works just fine.. I can log in no problem.. Great. I understand that getting the kernel messages via a USB console isn't reliable. But I can't get the system/rc/initscripts startup stuff via ttyUSB0 either. Or is this just as unreliable.. The only way I get system/rc/initscripts startup stuff via ttyUSB0 is if I set 'CONSOLE=/dev/ttyUSB0' on my kernel command line.. And in that case the baud rate gets changed from 115200 to 9600.. i.e. The issue I'm trying to solve now, is with these messages via ttyUSB0: That's up to your init system, which is specific to your distro. That CONSOLE= line is probably what init is reading to do what you need it to do. I don't know about the baud rate issue, sorry, try reading the documentation for your distro about this. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [NOKIA-DKU2] howto make working again with linux 2.6.23?
On Thu, Oct 25, 2007 at 04:20:48PM +0200, Dirk Meul wrote: Hello, can someone give me a hint how to make attached module working again? With linux kernel 2.6.16.55 everything is fine but with 2.6.18.8 kobject_add fails and with 2.6.23 the driver OOPS in nokia_probe. The problems are for example serial-interface-altsetting[0].endpoint[0].desc.bEndpointAddress and serial-interface-altsetting[1].endpoint[0].desc.bEndpointAddress. I think i oversaw the changes in the diffs between the kernel versions. Hm, any reason why this driver isn't in the main kernel tree? What is the specific oops message? Any objection to me adding it to the kernel.org tree? thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [linux-usb-devel] partial message via usb serial console
On Tue, Oct 23, 2007 at 01:57:59PM -0500, Paul B Schroeder wrote: I'm trying to get console messages from both a typical serial port and via a USB serial device using the io_ti driver. You can see my kernel command line in the messages below. Using kernel version 2.6.19-1.2895 which is basically a Fedora Core 6 kernel with my kernel config. Compiled in: # # USB Serial Converter support # CONFIG_USB_SERIAL=y CONFIG_USB_SERIAL_CONSOLE=y CONFIG_USB_SERIAL_EDGEPORT_TI=y Something strange is happening on the USB serial console. It starts getting messages, stops, and then starts picking them up again towards the end. You can see where it gets cut off while printing the line Enabling fast FPU save and restore... done. Yeah, usb-serial as a boot console is a joke (code was written on a dare), and due to buffer sizes, and the lateness of the USB code getting initialized, doesn't really work very well. There's really nothing you can do about it, but it seems to work for some people, and they like it, so we aren't going to remove it :) Oh, and ttyUSB0 doesn't end up functioning as a console whatsoever once init starts up.. That should work properly, do you have your inittab set up correct for that? That is required. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] OHCI root_port_reset() deadly loop...
On Tue, Oct 16, 2007 at 03:06:31PM -0700, David Miller wrote: From: Alan Stern [EMAIL PROTECTED] Date: Tue, 16 Oct 2007 11:23:58 -0400 (EDT) Unfortunately that simply isn't possible. No matter what you do, the user can always unload ehci-hcd and then load it back in again. Yes we can, by making OHCI and EHCI one module with a top-level dispatch. If you enable both OHCI and EHCI, the top-level module will dispatch the host initializations in the correct order. This is what I've suggested from the beginning. Wait, you can have hardware with both EHCI and UHCI too. Does that mean we should merge all three together? I don't think so :) But perhaps we can order the hardware init stuff from all three together like this into a separate module they all depend on. In a way, that's what the lock tried to do, right? Are we just not catching all places we could have hardware being talked to by two modules at the same time? thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usb-serial does not return read errors after disconnect
On Thu, Aug 30, 2007 at 03:33:36PM -0400, Mike Frysinger wrote: i noticed that while using minicom on a usb-serial device (PL2303), disconnecting it would make minicom spike using all the cpu. looking into it, minicom does a simple select()/read() on the fd on the device, but those functions werent returning errors so it kept on looping. a simple test program shows similar behavior: open a usb serial device, set the fd to nonblocking, and then in a loop just keep doing a read(). while the usb cable is plugged in, you get back the normal EAGAIN. but when you unplug the device, read() just returns 0 rather than ENODEV or EIO. You should get a tty hangup sent on the filedescriptor, right? And read returning 0 is just fine, I don't see why that is illegal, as it's the tty layer returning that information. You need to handle the tty hangup event (and so should minicom, which I find hard to believe it doesn't...) What kernel version are you seeing this on? thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] PROBLEM: Linux-2.6.23 / USB_ZD1201: Kernel panic with zd1201 driver
On Fri, Oct 12, 2007 at 05:55:29PM +0200, Christian Heinz wrote: [1.] One line summary of the problem: Linux-2.6.23 / USB_ZD1201: Kernel panic with zd1201 driver I suggest asking the developers of the zd1201 driver, they would know better than we would. good luck, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Why is this list so spam-prone
On Tue, Oct 09, 2007 at 10:06:22AM +0200, Uwe Bonnes wrote: Hallo, most of the mailing list manage to filter out a lot of spam. This list doesn't, as can be seen in the gmane archive. A better filtering would be appreciated. Any mailman filters to help this would be appreciated. Otherwise, I suggest running a client-side email spam filter. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] OHCI root_port_reset() deadly loop...
On Mon, Oct 08, 2007 at 09:47:27PM -0700, David Miller wrote: From: Greg KH [EMAIL PROTECTED] Date: Mon, 8 Oct 2007 21:39:09 -0700 No, nothing cute in udev itself, but it seems that all distros that I know of have a load these modules now type setting in their init scripts that can be used here. I can't think of a way to enforce this load order on the modules themselves due to the fact that OHCI might not even be needed for EHCI devices on UHCI (Intel) based chipsets :( Can anyone else? The three modules perhaps should be a bundle of whatever ones you have enabled, and internally we can dispatch the initialization to occur in the correct order from a top-level module_init(). If the devices need to be initialized in a certain order in a situation like this, it really seems like it is the kernel's job to enforce it. I agree. Here's some information from Intel about where they have seen this happen for UHCI controllers, so it's not just an OHCI issue :( thanks, greg k-h We had a logic analyzer attached to the bus going to the ESB (ICH) which has the USB controller in it. In the passing case we would see no accesses to UHCI IO registers while EHCI initialized and sets its config flag. The EHCI Port Status Control registers were then read and then we see a write to the EHCI Port Status Control registers port owner bit for the low speed devices (keyboard mouse). This turns control back over to the companion UHCI controller.=20 In our most prevalent failing case (#1 below) we never saw the write to port owner bit on the ports with the low speed devices. In the passing case we see the write to the port owner bit. I do not see how this would have anything to do with flakey hardware especially since we can reproduce this on all of our systems and the same device (USB controller) is used on multiple products.=20 I really believe that this has to do with the UHCI and EHCI drivers running on top of each other. This seems to be happening fairly often on our systems. If the EHCI driver runs first then we do not see the failure. If they are running at the same time then we see different failure symptoms.=20 1) We see that the ports with low speed devices are still in EHCI mode (port owner bit not written to in EHCI driver). In our analyzer captures we see the reads from the Port Status Control register and it is indicating that there are low speed devices on the ports. Can you tell us why the driver would not be doing the write to the port owner bit when it sees that low speed devices are attached to that port? Is there something specific that it looks for and decides not to do the write? 2) In other cases we see that the ports with the low speed devices are back in UHCI mode but the ports are disabled. In this case we see from the analyzer traces that the UHCI driver has completed setting up the port. It has actually enabled that port in UHCI mode. We then see the EHCI driver comes in and it resets everything. The driver then gives control back to the UCHI controller (by setting the port owner bit) but...since the UHCI driver has already setup this port once it seems that it does not go back and set it up again. In this case we do not think that the UHCI driver has completed running when the EHCI driver comes in and does the reset. Can you tell us if the UHCI driver was interrupted in the middle but after the ports with the low speed devices had been enabled would the UHCI driver ever go back and reinitialize the ports with the low speed devices? 3) In some cases we see errors in the DMESG log but it seems to recover. So we really do believe that it has to do with the EHCI driver running in the middle of the UHCI driver running. And then dependent upon when the EHCI driver comes in, while the UHCI driver is running, we see the different failures. And since by default these drivers are not forced to run sequentially we are susceptible to the failure.=20 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] OHCI root_port_reset() deadly loop...
On Tue, Oct 09, 2007 at 12:01:54PM -0400, Alan Stern wrote: On Mon, 8 Oct 2007, David Miller wrote: As coicidence would have it I finally found a recipe for triggering the issue, and it ties into what you're talking about here. It happens only if I make sure OHCI gets loaded first and then EHCI right afterwards. It seems that indeed it is important for EHCI to get loaded first, and in-kernel this is ensured by the link ordering. However, when both OHCI and EHCI are built as modules (or, similarly I guess, OHCI is built-in and EHCI is modular) there appears to be nothing in userspace which makes sure EHCI gets loaded first. When this triggers, in OHCI's root_port_reset(), the port status register reads 0x111 in that inner-loop and the value never changes. It stays like this forever. I agree with Ben; the best way to solve this is in the kernel. Even if you did manage to make sure that modules were loaded in the right order initially, that wouldn't help if somebody starts unloading and loading modules by hand. The underlying cause of the problem appears to be related to the fact that it is impossible in principle to detect a disconnect while a full/low-speed reset is in progress. However the hardware shouldn't rely on this, and it should fail gracefully when an unexpected disconnect does occur. For example, what would the controller do if the user unplugged the USB cable right in the middle of a reset? Anyway, it certainly would be easy enough to make port resets mutually exclusive with EHCI initialization. That would work on any platform, PCI or not. That's a good idea, any thoughts as to how to do this? I think I can find some Intel and Dell people who would be glad to test this out if you have a proposed patch. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] OHCI root_port_reset() deadly loop...
On Tue, Oct 09, 2007 at 01:41:16PM -0700, David Miller wrote: From: David Brownell [EMAIL PROTECTED] Date: Tue, 09 Oct 2007 09:38:27 -0700 What values do you see for portstat? 0x111 That's unfortunately useless ... PPS, PRS, CCS (meaning powered, resetting, connected). In short, there is *no* indication from the OHCI hardware that a disconnect happened. But it's an excellent example of why my patch is mandatory. I agree. David Brownell, unless you strongly object, I'll take David Miller's patch and add it to my tree. And if you do object, can you respond to the objection with a version of the patch that you would accept? :) thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] OHCI root_port_reset() deadly loop...
On Mon, Oct 08, 2007 at 04:54:20PM -0700, David Miller wrote: From: David Miller [EMAIL PROTECTED] Date: Sun, 07 Oct 2007 00:51:56 -0700 (PDT) From: David Brownell [EMAIL PROTECTED] Date: Sun, 07 Oct 2007 00:31:41 -0700 Are the other ports still behaving? Is EHCI maybe trying to switch ownership of that port? Is maybe the (newish) autosuspend stuff kicking in? I wouldn't know, the machine hangs and doesn't get any further. To add some more information here, I think the EHCI idea might hold some water. What I have here are two NEC OHCI USB interfaces and one NEC EHCI USB interface on PCI. Aparently they all go through a shared USB hub, mapped like this: HUB Port 1: OHCI #1, EHCI HUB Port 2: OHCI #2, EHCI HUB Port 3: OHCI #1, EHCI HUB Port 4: OHCI #2, EHCI HUB Port 5: OHCI #1, EHCI The OHCI ports go out to external USB connectors on the back panel of the machine, whereas the EHCI is connected up to an internal USB storage CDROM device and what appears to be another USB hub. The problem seems to be very strongly tied to timing. For example simply adding ignore_loglevel to the kernel boot command line can make the problem go away. This got me thinking about your EHCI comment. If these controllers are going through the same HUB, things might go south if OHCI initialized first, then khubd et al. are asynchronously accessing the segments behind OHCI at the same time that the EHCI driver is initializing. Perhaps, this is the kind of sequence of events which makes one of the root ports reset in such a way that the the reset bit never clears. Given that this machine has 64 cpus, the likelyhood for such parallel accesses is very likely :-) Does this make any sense? Yes it does, I'm seeing reports from some hardware companies of the very same thing. If you serialize and load the ehci driver first, and then the ohci driver, that should fix the problem. Does that also work for you? Or are these drivers built into the kernel? thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] OHCI root_port_reset() deadly loop...
On Mon, Oct 08, 2007 at 08:42:36PM -0700, David Miller wrote: From: David Brownell [EMAIL PROTECTED] Date: Mon, 08 Oct 2007 20:34:12 -0700 However, when both OHCI and EHCI are built as modules (or, similarly I guess, OHCI is built-in and EHCI is modular) there appears to be nothing in userspace which makes sure EHCI gets loaded first. The old /etc/hotplug/usb.rc script made sure to load those modules in the correct order: EHCI first. I expected to find something cute attempting to handle this under /etc/udev, I have failed so far :-) No, nothing cute in udev itself, but it seems that all distros that I know of have a load these modules now type setting in their init scripts that can be used here. I can't think of a way to enforce this load order on the modules themselves due to the fact that OHCI might not even be needed for EHCI devices on UHCI (Intel) based chipsets :( Can anyone else? thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usb_sl811.h versus usb/sl811.h
On Sat, Oct 06, 2007 at 07:19:45AM -0400, Robert P. J. Day wrote: curious: $ grep -r include.*sl811 * arch/blackfin/mach-bf537/boards/pnav10.c:#include linux/usb_sl811.h arch/blackfin/mach-bf537/boards/generic_board.c:#include linux/usb_sl811.h arch/blackfin/mach-bf537/boards/stamp.c:#include linux/usb_sl811.h drivers/usb/host/sl811_cs.c:#include linux/usb/sl811.h drivers/usb/host/sl811-hcd.c:#include linux/usb/sl811.h drivers/usb/host/sl811-hcd.c:#include sl811.h -rw-rw-r-- 1 rpjday rpjday 706 2007-08-28 06:11 ./include/linux/usb_sl811.h -rw-rw-r-- 1 rpjday rpjday 701 2007-08-28 06:11 ./include/linux/usb/sl811.h i'm assuming one of those is redundant, yes? Yes, the include/linux/ one, it's now been fixed in my tree with a patch from David. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usb 1 tera byte mass storage device not detecting
On Wed, Sep 26, 2007 at 06:35:22PM +0530, Deepak Katagade wrote: Hi Greg, Thanks for the reply. My problem is that i cannot upgrade the kernel from 2.6.10 to the later version.Since I am having some technical issues. The community does not support kernels that are 3 years old as it is an impossible task. Especially ones that have been heavily patched by a distro. Please work with your distro, using your support contract to fix this problem, that is what they are there for, and why you have paid for this service. I checked with fedora 3 (2.6.10 kernel), here also I was not able to detect 1 Tera byte Western Digital usb disk. I patched this with patch-2.6.11.gz and was now able to detect the device.The patch which I applied has made lot of changes in the kernel. Can u please tell me which changes made in the usb and scsi subsystem will make my device get detected.Since there has been a lot of changes made in scsi and usb subsystem i could not make out. Again, this was three years ago, and hundreds of thousands of kernel changes ago. You have access to all of the individual changesets and descriptions. I suggest you look through them to determine the proper one. good luck, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usb 1 tera byte mass storage device not detecting
On Tue, Sep 25, 2007 at 10:51:34AM +0530, Deepak Katagade wrote: Hi , I am not able to detect the Western Digital(My Book Pro Edition 2) 1 tera byte usb mass storage device.I am using Montavista Linux 2.6.10 kernel.But I am able to detect this device with 2.6.12 kernel. I want to know any patch should be added to 2.6.10 kernel to make my usb device to be detected. I suggest discussing this with Montavista, as they are the only ones that can do this, as they know what they have added to the 2.6.10 kernel. Also note the age of that kernel release (almost 3 years old). A lot has changed since then, I suggest you move to a newer one. good luck, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] ?^?H?G Re: [linux-usb-devel] Please pull 'ssb-drivers' branch of wireless-2.6 -- aln.
On Fri, Sep 21, 2007 at 10:58:37AM +0800, [EMAIL PROTECTED] wrote: Hi Greh, hm, I don't know of anyone by that name :) You might not want to take over a totally different thread for your question, it doesn't make much sense that way... I donot know how to ask question to u, so use this reply. We are focusing on 2.4.20 to make use of usbserial driver work for Notevel U740, but it would crash after long run, seem the Interrupt stopped, and can't send down, stoped at generic_write func call alwways return with busy. And could you tell us some idea or how to debug the code, when we open the usb debug, it would crash quickly, since the printk have huge messages, is there good idea to debug or how to go? No one supports 2.4.20 anymore, sorry. I suggest you move to the 2.6 kernel tree instead. good luck, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] ?^?H?G Re: ?^?H?G Re: [linux-usb-devel] Please pull 'ssb-drivers' branch of wireless-2.6 -- aln.
On Sat, Sep 22, 2007 at 10:28:23PM +0800, [EMAIL PROTECTED] wrote: Hi Greg, It should be the right name now, apologize for the typo., anyway, glad to get the response from u. I think the usbserial crash, or the printk crash is a small bug, likely interrupt handling, but since I have no much idea for the driver, so I need some helpful advice to debug on, And also for now, we have no much time to move from 2.4 to 2.6, since the time to market is no room for us, which means the full integration for other feature points. Again, no one supports 2.4 anymore, so you are on your own. Remember, the 2.4.20 kernel was released almost 5 _years_ ago. There are numerous security holes in that kernel, as well as bugs that have been fixed in newer releases. If you insist on using that release, you are on your own. good luck, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [PATCH 2/2] ELAN U132 Host Controller Driver: convert scheduler_lock to mutex
On Fri, Sep 07, 2007 at 03:10:54PM +0200, Matthias Kaehlcke wrote: A corrected version of the patch, the first one contained context removed by the first patch of this serie This patch for some reason did not apply cleanly. Care to redo it after the next -mm releae that has your first patch in it (that looked fine.) thanks, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] A question about interrupt of USB device driver
On Wed, Aug 15, 2007 at 10:12:23AM +0800, peter meng wrote: Hi,All I'm a beginner of USB . I have a question about USB device driver on Linux . I know all device driver need use request_irq to register interrupt handler . For example I could not find the driver which use it under drivers/usb/net/ directory . How the usb device driver process the interrupt ? Anybody can explain this ? USB drivers do not get interrupts like PCI devices do, they submit urbs and get called back when they are completed. Try reading the chapter on USB drivers in the book, Linux Device Drivers, third edition, free online, to learn more about the USB driver model. If you have further questions, please ask them on the linux-usb-devel mailing list. good luck, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] PDIUSB12 driver
On Mon, Aug 13, 2007 at 01:23:20PM +0200, Marcin G??ogowski wrote: Hi everybody, I have to rewrite/create my own Linux driver for the PDIUSB12 usb chip (USB storage). Why? Doesn't the current usb-storage driver work for it? What about the ub driver? Don't we have enough usb storage drivers in the tree already? :) I would like to know whether somebady has such example/driver or how to write a DMA command and data to USB device. You can't do that directly, sorry. I have look at the edb931x-usb.c code and I saw that there is a communication via registers. My chip doesn't support registers only DMA commands/data, but as I mentioned don't know how to use those commands (I don't know them). I would be very grateful for any help. The PDF to chip that I use is at: www.nxp.com/acrobat_download/various/PDIUSBD12_PROGRAMMING_GUIDE.pdf http://www.nxp.com/acrobat_download/various/PDIUSBD12_PROGRAMMING_GUIDE.pdf Wait, is this a USB host controller, a device controller, or do you need a driver on the host to control the device? confused, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] New device for cp2101 usb serial
On Sun, Aug 05, 2007 at 03:34:06PM -0500, David Hooker wrote: Hi- I have a device which has a CP2102 chip in it, and I see that the kernel I'm using (2.6.22.1-27.fc7) has a usb serial driver for the chip. My question is: how do I bind this driver to the device? Do I have to add the device's product/vendor ID's to the id_table in the code and rebuild my kernel? Or is there a way to associate the driver with the device from the command line? You can echo the vendor and device id to the new_id file in the /sys/bus/usb-serial/drivers/cp2102/ directory. And you can send me a patch for the kernel so that it will be supported automatically in the future. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] problems with usb/serial converter
On Fri, Aug 03, 2007 at 01:27:55PM -0400, Mark Matties wrote: Hi Greg, Thanks for your response. I figured that pl2303 should load, but it just doesn't. I have another pl23o3o device - a Holux GM-210 GPS (native usb) that works just fine. The pl2303 module autoloads with no problem. I downloaded kernel source, added the Vendor and Product Ids for the RS USB/Serial converter to pl2303.h (I think it was) and recompiled, but that didn't seem to work either. (I don;t want to make a habit of it, though. I've compiled many kernels in my time. But now, I like the stability of the FC kernel RPMs on my production laptop.) You need to also add it to the table in the pl2303.c file in order for it to work properly. Try that and let me know. When searching for info, I came across references to a file called usb.ids. Is it just a reference file for which vendor/product IDs are currently in the USB modules related header files? Or can I put that info somewhere else and have the device just work? No, the usb.ids file is for userspace only, it has nothing to do with the kernel. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] problems with usb/serial converter
On Mon, Jul 30, 2007 at 01:02:37PM -0400, Mark Matties wrote: Hi, After some googling and searching the archive of this list with no luck, I have a question for you. I bought a Radio Shack USB / Serial converter cable (Model: 26-183) that my kernel does not recognize. I think it should, but it doesn't. I don't think it's the hardware because I have a Belkin USB/Serial converter that works just fine with my Linux laptop, and the new RS one tested fine under Windows. Any help would be much appreciated! This looks like it might be a pl2303 device. Do you know how to add a new device id to a USB driver? If so, try adding it to the pl2303 driver and see if that works, if not, I can make up a patch for you to test if you want. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Mapping a usbfs device to the corresponding sysfs device.
On Sun, Jul 29, 2007 at 02:17:31AM -0400, Dave Mielke wrote: [quoted lines by Greg KH on 2007/07/28 at 23:04 -0700] It's easier to go from a sysfs device to a usbfs device, but I don't understand the question really. You want to know how to do it on newer kernels but not older ones? The mapping is still the same, nothing has changed, you can still just look up the bus and device number from the usbfs name and then walk sysfs to get the device. That will work with all kernel versions, right? Yes, I suppose so, but we used to be able to go directly to it via /sys/class/usb_device/usbdevbus.dev. Is there a reason that's gone away (without special configuration)? Without it our code needs to become more complex, which is always something I'd rather avoid. There is a kernel configuration option to retain this if you really need it. Right now the information is already availble in sysfs in a different location (/sys/bus/usb/devices) so having this is redundant. And yes, you can use /sys/bus/usb/devices on older kernels as well. thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Mapping a usbfs device to the corresponding sysfs device.
On Fri, Jul 27, 2007 at 10:08:21AM -0400, Dave Mielke wrote: Given that the default kernel options seem to be excluding /sys/class/usb_device/ these days, what's the best way on a newer kernel to map a usbfs device to its corresponding sysfs device? Please understand that it's not reasonable, at least to us, to require that every user of a USB-connected braille display rebuild his kernel. Is there still a way to do the mapping? It's easier to go from a sysfs device to a usbfs device, but I don't understand the question really. You want to know how to do it on newer kernels but not older ones? The mapping is still the same, nothing has changed, you can still just look up the bus and device number from the usbfs name and then walk sysfs to get the device. That will work with all kernel versions, right? thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [usb-storage] transport indicates command failure when hot-plugging a USB device
On Fri, Jul 27, 2007 at 09:24:15AM +0200, Jean-Claude Repetto wrote: Alan Stern a ?crit : On Thu, 26 Jul 2007, Jean-Claude Repetto wrote: Alan Stern wrote: On Wed, 25 Jul 2007, Jean-Claude Repetto wrote: Hi, I have a device (a TomTom GPS) that is seen as a memory device when connected via USB. s If I plug the device before booting the PC, it is detected and accessible via /dev/sdb . But, if I plug the device after the PC has booted, the device is not accessible (the /dev/sdb device is not created). Idem if I disconnect and reconnect the device. I am using a x86 Gentoo system with kernel 2.6.22 (but I have also tested kernels 2.6.20 and 2.6.21). I have already asked for help on the Gentoo forums, but I got no useful answer. I hope I'll be more lucky here ! BTW, I have tested the same device on the same computer with Ubuntu 7.04, What version of the kernel does that use? Do you have a usb-storage log showing what happens when you plug the device in after booting? The kernel is ubuntu-2.6.20-16 . Here is the log (but not in debug mode) : Jul 25 22:06:56 ubuntu kernel: [ 229.509634] usb 1-2: new full speed USB device using uhci_hcd and address 2 Jul 25 22:06:56 ubuntu kernel: [ 229.688469] usb 1-2: configuration #1 chosen from 1 choice Jul 25 22:06:57 ubuntu kernel: [ 229.801681] usbcore: registered new interface driver libusual Jul 25 22:06:57 ubuntu kernel: [ 229.824119] Initializing USB Mass Storage driver... Jul 25 22:06:57 ubuntu kernel: [ 229.824212] scsi2 : SCSI emulation for USB Mass Storage devices Jul 25 22:06:57 ubuntu kernel: [ 229.824274] usbcore: registered new interface driver usb-storage Jul 25 22:06:57 ubuntu kernel: [ 229.824278] USB Mass Storage support registered. Jul 25 22:07:02 ubuntu kernel: [ 234.824612] scsi 2:0:0:0: Direct-Access TomTom ONE PQ: 0 ANSI: 2 Jul 25 22:07:02 ubuntu kernel: [ 234.829627] sd 2:0:0:0: Attached scsi removable disk sdb Jul 25 22:07:02 ubuntu kernel: [ 234.829682] sd 2:0:0:0: Attached scsi generic sg1 type 0 Jul 25 22:07:02 ubuntu kernel: [ 235.003342] SCSI device sdb: 4019200 512-byte hdwr sectors (2058 MB) Jul 25 22:07:02 ubuntu kernel: [ 235.006335] sdb: Write Protect is off Jul 25 22:07:02 ubuntu kernel: [ 235.013324] SCSI device sdb: 4019200 512-byte hdwr sectors (2058 MB) Jul 25 22:07:02 ubuntu kernel: [ 235.016321] sdb: Write Protect is off Jul 25 22:07:02 ubuntu kernel: [ 235.016769] sdb: That all looks normal. Yes, on Ubuntu it is working. If you create the device node by hand, does it work? The command is mknod /dev/sdb b 8 16 On Gentoo : # mknod /dev/sdb b 8 16 mknod: `/dev/sdb': File exists That means it is working properly, have you tried to just mount the device? thanks, greg k-h - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] /dev/bus/usb/ has vanished under 2.6.22.1?
On Mon, Jul 16, 2007 at 03:21:33PM +0100, ael wrote: I reported two days ago that libusb could not find an usb scanner when run from a member of the scanner group, but that the scanner was found when run by root. This happened under kernel 2.6.22.1 but was fine under 2.6.21.*. I now discover that /dev/bus/usb/ exists and is populated under 2.6.21.6 but is not created under 2.6.22.1. I am hazy about how udev creates these files, and now suspect that this is the root cause of the original problem. I will need to read some udev documentation, I guess, but can anyone confirm this or suggest what may be wrong. Hm, do you have CONFIG_USB_DEVICE_CLASS disabled? If so, and you enable it, does that solve your problem? What distro are you using? thanks, greg k-h - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] HID driver
On Thu, Jul 12, 2007 at 04:58:51AM -0700, Marcel Meerstetter wrote: Hello all, i need help with the USB HID driver. I am running kernel version 2.6.12. When I attach a USB keyboard, it is recognized That is a very old kernel (over 2 years old), you might try a newer one. # usb 1-1: new low speed USB device using s3c2410-ohci and address 2 usb 1-1: Product: HP Basic USB Keyboard usb 1-1: Manufacturer: CHICONY however no device is created under /dev. Keyboards do not get a /dev node by default. Perhaps you want to enable the evdev input module so you can see this kind of information? As a result, I can also not open the device and read what is being entered. I have looked into the HID code, but don't see any place where a device name is given. When I press a key, however, the driver does respond and I track the response all the way to input_event() in input.c. What I would like to is for my user-space application to receive the input , i.e. be able to read the key that was pressed. Under Ubuntu kernel 2.6.17, the device works fine. Then use a newer kernel version :) good luck, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB Serial Support on embedded device
On Mon, Jul 09, 2007 at 11:32:16PM -0600, Peter Warrick wrote: I'm not sure what to look for. This is what it's saying when I plug in the device now. Dec 31 19:47:53 host user.debug kernel: hub 1-0:1.0: state 5 ports 2 chg evt 0002 Dec 31 19:47:53 host user.debug kernel: tangox-ehci-hcd tangox-ehci-hcd: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT Dec 31 19:47:53 host user.debug kernel: hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s Dec 31 19:47:53 host user.debug kernel: hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501 Dec 31 19:47:53 host user.debug kernel: tangox-ehci-hcd tangox-ehci-hcd: port 1 full speed -- companion Dec 31 19:47:53 host user.debug kernel: tangox-ehci-hcd tangox-ehci-hcd: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECT Dec 31 19:47:53 host user.debug kernel: hub 1-0:1.0: port 1 not reset yet, waiting 50ms Dec 31 19:47:53 host user.debug kernel: tangox-ehci-hcd tangox-ehci-hcd: GetStatus port 1 status 003002 POWER OWNER sig=se0 CSC Dec 31 19:47:53 host user.debug kernel: hub 1-0:1.0: state 5 ports 2 chg evt 0002 Dec 31 19:47:53 host user.debug kernel: hub 2-0:1.0: state 5 ports 2 chg evt 0002 Dec 31 19:47:53 host user.debug kernel: tangox-ohci-hcd tangox-ohci-hcd: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS Dec 31 19:47:53 host user.debug kernel: hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s Dec 31 19:47:53 host user.debug kernel: hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101 Dec 31 19:47:53 host user.debug kernel: tangox-ohci-hcd tangox-ohci-hcd: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS Dec 31 19:47:53 host user.info kernel: usb 2-1: new full speed USB device using tangox-ohci-hcd and address 2 Dec 31 19:47:54 host user.debug kernel: tangox-ohci-hcd tangox-ohci-hcd: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS Dec 31 19:47:54 host user.debug kernel: usb 2-1: ep0 maxpacket = 8 Dec 31 19:47:54 host user.debug kernel: usb 2-1: default language 0x0409 Dec 31 19:47:54 host user.debug kernel: usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=3 Dec 31 19:47:54 host user.info kernel: usb 2-1: Product: USB Serial Converter Dec 31 19:47:54 host user.info kernel: usb 2-1: Manufacturer: FTDI Dec 31 19:47:54 host user.info kernel: usb 2-1: SerialNumber: FTDCJBUZ Dec 31 19:47:54 host user.debug kernel: usb 2-1: hotplug Dec 31 19:47:54 host user.debug kernel: usb 2-1: adding 2-1:1.0 (config #1, interface 0) Dec 31 19:47:54 host user.debug kernel: usb 2-1:1.0: hotplug Dec 31 19:47:54 host user.debug kernel: usbserial_generic 2-1:1.0: usb_probe_interface Dec 31 19:47:54 host user.debug kernel: usbserial_generic 2-1:1.0: usb_probe_interface - got id Dec 31 19:47:54 host user.debug kernel: drivers/usb/core/inode.c: creating file '002' It definitely sees it and knows its an FTDI which I do have the driver compiled in. But the driver is not binding to the device properly. You should see something in the system log saying that if it is true. Perhaps your device ids do not match the device ids in the ftdi_sio driver just yet? thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Plantronics USB headset mike works in Ubuntu but not Fedora
On Wed, Jul 04, 2007 at 05:00:48PM +0100, Iain Cheyne wrote: I am trying to transition to Fedora 7, and so far it's been easy, but I can't get my new USB headset's mike working in Skype. It's a Plantronics .Audio 500 USB. Both less /proc/asound/cards and less /proc/asound/devices show that it is detected fine. I can get the headphones to work by setting the usb devices in the Skype settings, but not the mike. I used the same config in Ubuntu Feisty and it worked perfectly. Any ideas? Try asking on the fedora specific lists, as they know their kernel much better. If you have problems with the kernel.org releases, we can help you out here. good luck, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB Serial Support on embedded device
On Mon, Jul 09, 2007 at 09:21:28PM -0600, Peter Warrick wrote: Ok, now I've gotten it to be recognized by the kernel and it sees that it is an FTDI type device. It creates the file in /proc/bus/usb as well. I have setup all my devices using mknod /dev/usb/ttyUSB0 c 188 0 etc.. But when I try to do an stty -F /dev/usb/ttyUSB0 all I get is... stty: /dev/usb/ttyUSB0: No such device Did I miss a step? Does the kernel say that it saw the device and properly bound it to the ttyUSB device? thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Linux drivers for T232BL
On Sat, Jun 30, 2007 at 11:55:24AM +0200, Radovid Drobnjak wrote: Hi. I am trying to make work in Linux a usb dongle based on the FTDI T232BL chip. The device ID is 0403:d738. I've tried to use the drivers built in my kernel 2.6.20, but it doesn't work. I've tried to force the driver (according to the driver's documentation) to use the ID of my product, but it didn't help much. The drivers I used, which are compiled in the kernel as modules, are: USB_SERIAL_FTDI_SIO [=m] USB_SERIAL [=m] USB_SERIAL_GENERIC [=y] What happened when you added your device id to the ftdi_sio driver? What were the kernel log messages? thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Autosuspend problem - some explanation needed.
On Tue, Jun 19, 2007 at 10:28:24AM -0400, Alan Stern wrote: On Mon, 18 Jun 2007, Greg KH wrote: I believe usbfs does a little-native endian conversion on a couple of the 2-byte device descriptor fields (the vendour and product ids, if my memory is working correctly today). It'd be okay with me if that weren't done, although it'd be nice if it were so as to minimize the effort to convert applications like lsusb. No, the kernel does not do any conversion from little-native anymore, it's up to the different drivers to do that on their own if they want to use those fields. That's true for the in-memory data structures. However the information sent to userspace when a process reads a usbfs file does have some of the fields switched to native byte order. This is because usbfs started out that way, and being a user API it could not be changed later. Yeah, I remember the confusion that happened when the internal structures were changed :) The sysfs binary attributes I proposed would use the standard USB little-endian byte order. They would simply export the raw descriptor data directly. Ok, I have no objection to that. thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Stable identification of identical USB hardware
On Mon, Jun 18, 2007 at 08:35:35AM -0700, Joerg Pommnitz wrote: Hello all, I want to be able to distinguish between two (or more) mostly identical USB serial devices. The devices in question are UMTS modems. AFAIK they are identical except for the SIM card and the point of attachment. Externally the cards are CardBus devices with an integrated USB host adapter. The actual UMTS device is (internally) connected to the USB host adapter. If I have to cardbus sockets, how do I get from what I know (the card is in socket 0) to I have to talk to ttyUSB2 to talk to the card? I suspect I have to follow the thread from /sys/bus/pci to /sys/bus/usb/devices, but how exactly? Walk up the chain of devices in sysfs and in udev. The udev man pages and documentation should show you how to do this. If you have specific questions about this, please ask them on the linux-hotplug-devel mailing list. hope this helps, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Autosuspend problem - some explanation needed.
On Mon, Jun 18, 2007 at 01:00:01PM -0400, Alan Stern wrote: On Mon, 18 Jun 2007, Dave Mielke wrote: [quoted lines by Alan Stern on 2007/06/18 at 12:03 -0400] I shouldn't think it would be too much harder to read several sysfs files than a single usbfs file. Except that it starts to get messy if each system call is protected with error checking and each piece of data read in as text is tested for validity. Perhaps some or all such carefulness isn't necessary, but it does tend to protect against unforeseen problems. It's much simpler to read it all in at once. Do you really need anything other than the vendor ID, the product ID, and perhaps the bcdDevice value? That's mostly true for device selection. Once we know we have the right device, though, we do use the string index fields to fetch the strings for logging. I know the strings teemselves are in sysfs, but to keep that code portable we read the string desccriptors from the selected device. It was just an idea which would make switching back to a truly passive device descriptor read (like it has been before autosuspend) easy, not only for us but also for other applications. Greg, what do you think? Is it reasonable to add a binary sysfs attribute file containing the device descriptor? (And perhaps also one containing the current configuration descriptor, and the interface descriptors in their individual subdirectories. Maybe even the endpoint descriptors too.) No, we DO NOT PUT DEVICE NODES IN SYSFS! Sorry for yelling, but this comes up every 3-4 months or so for the past 4-5 years and it's getting a bit annoying :) Device nodes go in /dev/ That's what the LSB specifies and to do something else will just wreck havoc with the system (permissions, acls, security, etc.) Even though the binary descriptors are available in usbfs, when a device's usbfs file is opened the device is automatically resumed. This means that a program looking for a particular device will wake up a bunch of unrelated devices. With sysfs there is no such problem. Then use the device information from sysfs to determine which usbfs file to open. Or, help out with the usbfs2 code which uses the device endpoints and should allow you to have a better mapping from sysfs usb device to usbfs2 endpoint and device. thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Autosuspend problem - some explanation needed.
On Mon, Jun 18, 2007 at 05:24:12PM -0400, Alan Stern wrote: On Mon, 18 Jun 2007, Greg KH wrote: Greg, what do you think? Is it reasonable to add a binary sysfs attribute file containing the device descriptor? (And perhaps also one containing the current configuration descriptor, and the interface descriptors in their individual subdirectories. Maybe even the endpoint descriptors too.) No, we DO NOT PUT DEVICE NODES IN SYSFS! Sorry for yelling, but this comes up every 3-4 months or so for the past 4-5 years and it's getting a bit annoying :) Device nodes go in /dev/ That's what the LSB specifies and to do something else will just wreck havoc with the system (permissions, acls, security, etc.) You misunderstood. We're not talking about device nodes. The question is whether there should be a binary read-only attribute file in the device's sysfs directory containing the device descriptor. What do you mean by, device descriptor? The binary configuration data from the device itself? Kind of like the pci config file is in sysfs? If so, then no, I have no objection to including that in sysfs, but call it the configuration, not a device descriptor, which is usually read as a device node by people like me :) It would duplicate information that is already available in sysfs in text form, spread out among several attribute files -- but in a more-convenient, easier-to-parse package. You mean binary package, right? thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Autosuspend problem - some explanation needed.
On Mon, Jun 18, 2007 at 05:19:46PM -0400, Dave Mielke wrote: [quoted lines by Greg KH on 2007/06/18 at 13:36 -0700] No, we DO NOT PUT DEVICE NODES IN SYSFS! Sorry for yelling, but this comes up every 3-4 months or so for the past 4-5 years and it's getting a bit annoying :) Device nodes go in /dev/ That's what the LSB specifies and to do something else will just wreck havoc with the system (permissions, acls, security, etc.) But we aren't discussing device files. We're discussing files which do no more than return kernel-resident data in response to reads.. No need for writes, ioctls, or even reads out on the bus. Just files which return data in the format that many applications would like to see it in so that they don't have to piece the information together from multiple sources, convert from text to binary, etc. With this in mind, do you still think it's a bad idea? What specific data do you want to see be being returned here? The USB configuration data? Like you read from the binary usbfs file if you open and read from it? If so, then I have no objection to that, as long as you are taking data directly from the device and not parsing it at all in the kernel and passing it on to userspace. That's the only way we allow a binary file in sysfs. Look at the PCI file called config in sysfs and see if that is what you are looking for. thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Autosuspend problem - some explanation needed.
On Mon, Jun 18, 2007 at 10:34:03PM -0400, Dave Mielke wrote: [quoted lines by Greg KH on 2007/06/18 at 18:55 -0700] What specific data do you want to see be being returned here? Every USB device has a piece of top-level static data known as a device descriptor. It's cached by the kernel when the device is connected, and is returned as the first 18 bytes read from a usbfs file descriptor. It's this same data which I'd like to read via sysfs so as to avoid resuming any devices (which is what happens when opening a usbfs file). This device descriptor is, among other things, what one must inspect in order to find the device you're looking for as it contains things like vendour and product identifiers. Yeah, I know a little bit about those things, sorry, was used to calling them configuration due to moving between the PCI and USB specs all the time :) A USB device also has descriptors at lower levels for components such as its interfaces and endpoints. These, too, are static pieces of data. For completeness, although we ourselves don't need sysfs support for them, it'd be logical to provide sysfs files for each of them as well. The USB configuration data? Like you read from the binary usbfs file if you open and read from it? Yes. What you get when you read a usbfs file is the device descriptor followed by all of the interface and endpoint descriptors for the currently selected device configuration. If so, then I have no objection to that, as long as you are taking data directly from the device and not parsing it at all in the kernel and passing it on to userspace. I believe usbfs does a little-native endian conversion on a couple of the 2-byte device descriptor fields (the vendour and product ids, if my memory is working correctly today). It'd be okay with me if that weren't done, although it'd be nice if it were so as to minimize the effort to convert applications like lsusb. No, the kernel does not do any conversion from little-native anymore, it's up to the different drivers to do that on their own if they want to use those fields. Look at the PCI file called config in sysfs and see if that is what you are looking for. It's probably the same in concept, but it doesn't contain the actual data. I'm not familiar with how PCI works, but the data in that ifle is probably relevant for describing and/or accessing the device at the PCI level. Perhaps it was in another message wherein you asked if the file could be called configuration rather than descriptor. The problem with this is that the term configuration has a very well-defined meaining with respect to USB devices. The generic USB term for this data really is descriptor, and, especially if this information were to be provided at all levels, that would be the intuitive term to use. Ok, make it called descriptor, that's fine with me. Just make sure you document it properly in the Documentation/ABI directory when you send me a patch adding this to the kernel :) thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Huawei E220 modem tends to fail on hot connect, also sometimes in bad state at boot
On Sat, Jun 16, 2007 at 01:41:44AM +0100, Mikhail Ramendik wrote: Hello, I am using a Huawei E220 3G/HSDPA modem. As advised here, to raise the speed I upgraded the kernel to 2.6.21. Now the modem works faster, and also it is detected automatically - in 2.6.18 I had to use modprobe. However, I still have a problem. The modem only works 100% if it's connected when the machine boots up and stays connected. Unfortunately, sometimes when I boot up the modem is put into a strange state where the signal indicator does not flash, and while the modem responds a connection is never established. I am not sure if the kernel or the BIOS is at fault here - how do I check? This state is resolved by reconnecting the modem - but the driver dos not always work when reconnecting! The device /dev/ttyUSB0 is visible but does note respond. And if the modem was not connected on boot-up, attaching it later never works, the device does not become available. I have looked into /var/log/messages . On bootup the relevant content is: Jun 16 01:07:19 localhost kernel: usbcore: registered new interface driver usbserial Jun 16 01:07:19 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic Jun 16 01:07:19 localhost kernel: usbserial_generic 1-1:1.0: generic converter detected Jun 16 01:07:19 localhost kernel: usb 1-1: generic converter now attached to ttyUSB0 How is the generic driver binding to this device automatically? Do you have a modprobe config file adding your device id to that driver? If so, try removing it and using a newer kernel that should support this device automatically and properly. thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Huawei E220 modem tends to fail on hot connect, also sometimes in bad state at boot
On Sat, Jun 16, 2007 at 07:40:02PM +0100, Mikhail Ramendik wrote: On Saturday 16 June 2007 17:42, Greg KH wrote: How is the generic driver binding to this device automatically? Do you have a modprobe config file adding your device id to that driver? I did. Thanks! I removed it but I still have some of the same problems as before. The kernel is 2.6.21.1. On bootup, the option driver connects to the modem as ttyUSB0, 1 and 2, and the ting works (unless locked up). However, when the modem is hotplugged in, most times only ttyUSB0 is connected and the moedm does not respond. (Whether the modem was plugged in at boot and then reconnected, or was not plugged in at boot at all, does not change things now). As I still have these unexplaied modem hangs at bootup sometimes, being able to reconnecting the modem is essential; besides, should USB be hotpluggable by nature?.. In Windows, hotplugging the modem usually works. Yes, this should work properly in Linux :) Can you enable CONFIG_USB_DEBUG and send us the output when you plug this in after booting and the device is not recognized properly? thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usbserial device speed?
On Thu, Jun 07, 2007 at 04:27:11PM +0400, [EMAIL PROTECTED] wrote: Hello, I am using a Huawei E220 mobile modem (3G/HSDPA, USB2) with Debian Etch, kernel 2.6.18. I have set it up as a usbserial device (I have to do a modprobe usbserial vendor=0x12d1 product=0x1003). In pppd's configuration I use a speed of 460800 and the device name is dev/ttyUSB0. The modem works fine but the speed seems limited to about 460 kbps, even though under Windows (with the driver that was supplied by the provider, Three Ireland) I get about a megabit/s. I tried putting in 921600 as the speed but then pppd fails sometimes, and when it succeeds the speed is no gtreater than with the usual setting of 460800. Is there any way to increase the communication speed? If so, what is it? Use a newer kernel which uses the proper driver for this device instead of the generic usb-serial driver which is not very fast at all. thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usbserial device speed?
On Thu, Jun 07, 2007 at 06:56:16PM +0400, [EMAIL PROTECTED] wrote: Greg KH wrote: Use a newer kernel which uses the proper driver for this device instead of the generic usb-serial driver which is not very fast at all. Thanks, I will do this. Question: does the speed setting (via pppd) actually matter, or is it just the slowness of the driver? slowness of the driver, the pppd setting doesn't matter at all. Somewhat off topic question: to which mailing list should I go for the modem stuff itself, i.e. looking for GSM-related commands, people who have reverse engineered the GSM-related processes when necessary, etc.? I'd like to access the GSM-related parts includign signal strength, and would do some coding if necessary (non-kernel), but would want to check what other people did before. What device do you have again (vendor and product id)? I might have some specs around here for it... thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [PATCH 2.6.21] Usb Serial Keyspan: add support for USA-49WG USA-28XG
On Tue, May 15, 2007 at 03:32:18PM -0700, Lucy McCoy wrote: Add support for Keyspan adapters: USA-49WG and USA-28XG Yeah! Thanks for doing this, I was beginning to wonder about these devices as I had a few users ask about them recently. Signed-off-by: Lucy P. McCoy [EMAIL PROTECTED] --- diff -uprN -X linux-2.6.21-vanilla/Documentation/dontdiff linux-2.6.21-vanilla/drivers/usb/serial/keyspan.c linux-2.6.21-lpm/drivers/usb/serial/keyspan.c --- linux-2.6.21-vanilla/drivers/usb/serial/keyspan.c2007-04-25 20:08:32.0 -0700 +++ linux-2.6.21-lpm/drivers/usb/serial/keyspan.c2007-05-04 13:35:23.0 -0700 Ugh, somehow your email client word-wrapped everything and stripped out all of the tabs from your patch :( Can you try resending this to me, and in worse case, as an attachment? thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Regarding to the USB2.0 high speed test.
On Tue, May 15, 2007 at 12:58:07AM +0800, Cheney Peng wrote: Dear Sir , Great questions, care to ask this on the linux-usb-devel mailing list and CC me? That way it can be answered in public to enable everyone else to know the answer, and let the search engines pick it up. thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usblp error handling broken
On Mon, May 07, 2007 at 01:35:27PM +0200, Jochen Karrer wrote: Hi, The error handling in usblp_write is broken. Try bringing this up on the linux-usb-devel mailing list. The developers there should be able to help you out. Also please note which kernel version you are looking at. thanks, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] How to check the USB device existence
On Tue, Apr 24, 2007 at 03:53:55PM +0530, Babu, Narendra (GE Healthcare) wrote: Hi All, I am a application developer on Linux. Currently I am working on an USB application where I need to check whether the device is connected or not. Use HAL to determine if it is present or not. Description: Linux kernel version 2.4 Ugh, that's not a supported kernel version anymore, and USB has lots of known issues in the 2.4 tree that are only fixed in 2.6. good luck, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] How to check the USB device existence
On Tue, Apr 24, 2007 at 04:42:11PM +0530, Babu, Narendra (GE Healthcare) wrote: Hi Karl, Thanks for the information. Unfortunately my application will know only the mount points like /mnt/usb It will not know which usb device is attached to this mount point. Ah, yeah, that's not going to be able to be easily determined on the 2.4 kernel, you need to use 2.6 to be able to properly determine this. good luck, greg k-h - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Console over usb serial gadget
On Wed, Apr 04, 2007 at 02:48:46PM +0530, pradeep.sawlani wrote: Hi all, I am working on samsung board after testing the usb serial gadget support, i wanted to redirect the console over usb serial gadget. After going through source code, i found usb serial gadget is not registered as console driver hence it cannot be used. That is correct, you will have to add that support if you wish to do that. good luck, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] can't get USB-serial console to work properly (or is it normal)?
On Wed, Feb 21, 2007 at 10:58:54AM +0100, Tomasz Chmielewski wrote: So far, I've been using a normal serial console with a device running Linux. I configured it in two places: - kernel command line to see kernel messages: console=ttyS0,115200 - /etc/inittab: T0:23:respawn:/sbin/getty -L ttyS0 115200 vt102 (to be able to log in) As to use that serial console I have to open the device, I decided I will use a USB-serial console instead. The changes seemed trivial: - compile all USB/console related stuff in the kernel - kernel command line to see kernel messages: console=ttyUSB0,115200 - /etc/inittab: T0:23:respawn:/sbin/getty -L ttyUSB0 115200 vt102 However, this doesn't work as I expected: 1) I don't see any initial kernel messages on the USB-serial console: Linux version 2.6.20 ([EMAIL PROTECTED]) (gcc version 4.1.1) #56 PREEMPT Tue Feb 20 18:14:38 CET 2007 CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=397f Machine: Freecom FSG-3 (...) I guess that's because kernel didn't initialize USB-subsystem yet? 2) After loading the kernel, my system is set up to wait for 10 seconds before continuing and loading the proper init. 10 seconds should be far more than necessary for the system to see all USB devices? Still, when the system loads, I don't see any kernel messages, system loading etc. on ttyUSB0 (I saw these things with console=ttyS0,115200). 3) As soon as the system loads completely, I get a login prompt on ttyUSB0 (started by getty). From this point on, I will get kernel messages onto ttyUSB0. Why do I get kernel messages logged on the USB-serial console that late, only after the system is fully loaded and after I get a login prompt on ttyUSB0? Because that is when the USB serial port is finally found by the kernel. I wouldn't use usb serial devices for console devices to see the kernel logs, due to the lateness of discovery and the need for interrupts to work properly (so it will not show crash dumps.) But for just normal logins, it should work fine. good luck, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB host controller testing in linux
On Wed, Feb 07, 2007 at 12:23:03PM +0530, Deepak Katagade wrote: Hi All, We have written usb host controller driver for our arm board which does not have any pci interface.We are trying to test the this usb host controller with the usb test driver provided in the linux kernel.We tried to test the host controller with an mass storage device but it is giving error. What is the error? Without that, it's really hard to guess what is going on here :) Do you have a pointer to the code you have written so that others may be able to help you out? thanks, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Matching usb port with device file
On Mon, Feb 05, 2007 at 05:29:15PM +0800, [EMAIL PROTECTED] wrote: Thank you greg, and thank you for your excellent work on udev. I tried, but finally gave up because I'm using a embedded system with a highly modified uClinux 2.4.22. Is there any chance to solve this problem with devfs? Or can udev run under such a platform without performance loss? No, devfs will not provide this kind of information, and there is no sysfs in the 2.4 kernel so udev will not work on that. But yes, udev works just fine on tiny platforms, if you are using the 2.6 kernel. good luck, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Matching usb port with device file
On Mon, Feb 05, 2007 at 09:23:45AM +0800, [EMAIL PROTECTED] wrote: Hi, I need to locate the device file by every usb port. Could anyone give me a hint? The background is I have two usb ports. On each port, there is a usb mass storage device. I need to mount corresponding device file when application chose the usb port. I know the device files are /dev/scsi/host0/bus0/target0/lun0/disc and /dev/scsi/host1/bus0/target0/lun0/disc. But I don't know which is from usb port1. Try using udev to map this properly, it will show you this information if you use the udevinfo program. good luck, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] (no subject)
On Mon, Jan 22, 2007 at 05:22:25AM -0800, Radha Mohan wrote: Hi , How can I know the name of usb HDD or mass-storage device and its partition on the linux machine without help of dmesg? Suppose I have connected a Kingston 1GB pendrive to my system I should be able to know the name of device connected as Kingston mass storage drive and its partition is /dev/sda1 Use 'udevinfo' it will show up this kind of information: $ udevinfo --query=all --name=sdb1 P: /block/sdb/sdb1 N: sdb1 S: disk/by-id/usb-SanDisk_Cruzer_Mini_20041100831b0d536fba-part1 S: disk/by-path/pci-:00:1d.2-usb-0:2.3:1.0-scsi-0:0:0:0-part1 S: disk/by-uuid/3B69-1AFD S: disk/by-label/GREGKH-GIG E: ID_VENDOR=SanDisk E: ID_MODEL=Cruzer_Mini E: ID_REVISION=0.1 E: ID_SERIAL=SanDisk_Cruzer_Mini_20041100831b0d536fba E: ID_TYPE=disk E: ID_BUS=usb E: ID_PATH=pci-:00:1d.2-usb-0:2.3:1.0-scsi-0:0:0:0 E: ID_FS_USAGE=filesystem E: ID_FS_TYPE=vfat E: ID_FS_VERSION=FAT16 E: ID_FS_UUID=3B69-1AFD E: ID_FS_LABEL=GREGKH-GIG E: ID_FS_LABEL_SAFE=GREGKH-GIG Hope this helps, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [PATCH 2.6.20-rc3 01/01] usb: Sierra Wireless auto set D0
On Mon, Jan 15, 2007 at 05:33:28PM -0800, Kevin Lloyd wrote: from: Kevin Lloyd [EMAIL PROTECTED] This patch ensures that the device is turned on when inserted into the system (which mostly affects the EM5725 and MC5720. It also adds more VID/PIDs and matches the N_OUT_URB with the airprime driver. Signed-off-by: Kevin Lloyd [EMAIL PROTECTED] --- --- linux-2.6.20-rc5/drivers/usb/serial/sierra.c.orig 2007-01-15 15:17:15.0 -0800 +++ linux-2.6.20-rc5/drivers/usb/serial/sierra.c 2007-01-15 15:41:56.0 -0800 @@ -14,9 +14,31 @@ Whom based his on the Keyspan driver by Hugh Blemings [EMAIL PROTECTED] History: +v.1.0.6: + klloyd + Added more devices and added Vendor Specific USB message to make sure + that devices are in D0 state when they start. This is very important for + MC5720 and EM5625 modules that go between Windows and Non-Windows + machines. +v.1.0.5: + Greg KH + This saves over 30 lines and fixes a warning from sparse and allows + debugging to work dynamically like all other usb-serial drivers. + klloyd + Changed versioning to v.x.y.z +v.1.04: + klloyd + Adds significant throughput increase to the Sierra driver (uses multiple + urgs for download link). This patch also updates the current sierra.c + driver so that it supports both 3-port Sierra devices and 1-port legacy + devices and removes Sierra's references in other related files (Kconfig + and airprime.c). +v.1.03 + klloyd + Adds DTR line control support and impliments urb control. This is not needed, nor recommended. The changelog information in the kernel provides this information. -#define DRIVER_VERSION v.1.0.5 +#define DRIVER_VERSION v.1.0.6 #define DRIVER_AUTHOR Kevin Lloyd [EMAIL PROTECTED] #define DRIVER_DESC USB Driver for Sierra Wireless USB modems @@ -31,14 +53,14 @@ static struct usb_device_id id_table [] = { + { USB_DEVICE(0x1199, 0x0017) }, /* Sierra Wireless EM5625 */ { USB_DEVICE(0x1199, 0x0018) }, /* Sierra Wireless MC5720 */ { USB_DEVICE(0x1199, 0x0020) }, /* Sierra Wireless MC5725 */ - { USB_DEVICE(0x1199, 0x0017) }, /* Sierra Wireless EM5625 */ { USB_DEVICE(0x1199, 0x0019) }, /* Sierra Wireless AirCard 595 */ - { USB_DEVICE(0x1199, 0x0218) }, /* Sierra Wireless MC5720 */ You are dropping support for this device id. Is that correct? Are you sure? It was reported to me by Peter Kucmeroski and Jason Ganovsky, and you were CCed when the patch went into the kernel that added this id. @@ -123,6 +145,7 @@ static int sierra_send_setup(struct usb_ return usb_control_msg(serial-dev, usb_rcvctrlpipe(serial-dev, 0), 0x22,0x21,val,0,NULL,0,USB_CTRL_SET_TIMEOUT); + } return 0; Is this change really needed? :) @@ -396,6 +419,8 @@ static int sierra_open(struct usb_serial struct usb_serial *serial = port-serial; int i, err; struct urb *urb; + int result; + __u16 set_mode_dzero = 0x; //Set mode to D0 // comments are not recommended in the kernel, especially for something as trivial as a variable name. portdata = usb_get_serial_port_data(port); @@ -442,6 +467,11 @@ static int sierra_open(struct usb_serial port-tty-low_latency = 1; + //set mode to D0 Use /* */ please. Care to resubmit this? thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] fedora core 6 and PL2303 Serial Port
On Mon, Jan 08, 2007 at 05:38:33PM +0200, Gregory Machin wrote: Hi Please could you help me, I have a Mecer USB to RS232 converter that the os detects but does not work, the led does not come on and minicom using /dev/ttyUSB0 does return any display / input when i plug in into the admin port on my router device.. The kernel detects is and /var/log/messages reports Jan 8 17:30:49 greg kernel: ohci_hcd :00:13.0: wakeup Jan 8 17:30:49 greg kernel: usb 1-3: new full speed USB device using ohci_hcd and address 4 Jan 8 17:30:49 greg kernel: usb 1-3: configuration #1 chosen from 1 choice Jan 8 17:30:49 greg kernel: pl2303 1-3:1.0: pl2303 converter detected Jan 8 17:30:49 greg kernel: usb 1-3: pl2303 converter now attached to ttyUSB0 Try enabling debugging in the driver: modprobe pl2303 debug=1 and see if data really is going through the device. Odds are you just don't have the line settings setup properly in minicom (hardware flow control set?) thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB device enumeration question
On Tue, Jan 02, 2007 at 07:06:48PM -0500, Ron Gage wrote: Greg KH wrote: On Mon, Jan 01, 2007 at 08:00:05PM -0500, Ron Gage wrote: Steve Bangert wrote: Check out the udev page at: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html Steve Steve: Thanks for the reply. I must be unusually dense tonight as I don't see anything that provides a working answer to my question. I see tons of stuff about hotplug and node naming, but nothing about tying the device info to the device node. Greg: try: man udevinfo it can show you this information. For example: $ udevinfo --query=all --name=/dev/sdc P: /block/sdc N: sdc S: disk/by-id/usb-Lexar_Media_Inc._CF_20030128160726900 S: disk/by-path/pci-:00:1d.7-usb-0:5:1.0-scsi-0:0:0:1 E: ID_VENDOR=Lexar E: ID_MODEL=Media_Inc._CF E: ID_REVISION=009E E: ID_SERIAL=Lexar_Media_Inc._CF_20030128160726900 E: ID_TYPE=disk E: ID_BUS=usb E: ID_PATH=pci-:00:1d.7-usb-0:5:1.0-scsi-0:0:0:1 Hope this helps, greg k-h Uggg - no joy [EMAIL PROTECTED]:/etc/udev# udevinfo --query=all --name=/dev/sda P: /block/sda N: sda What does: tree /sys/block/sda/ show? thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB device enumeration question
On Mon, Jan 01, 2007 at 08:00:05PM -0500, Ron Gage wrote: Steve Bangert wrote: Check out the udev page at: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html Steve Steve: Thanks for the reply. I must be unusually dense tonight as I don't see anything that provides a working answer to my question. I see tons of stuff about hotplug and node naming, but nothing about tying the device info to the device node. try: man udevinfo it can show you this information. For example: $ udevinfo --query=all --name=/dev/sdc P: /block/sdc N: sdc S: disk/by-id/usb-Lexar_Media_Inc._CF_20030128160726900 S: disk/by-path/pci-:00:1d.7-usb-0:5:1.0-scsi-0:0:0:1 E: ID_VENDOR=Lexar E: ID_MODEL=Media_Inc._CF E: ID_REVISION=009E E: ID_SERIAL=Lexar_Media_Inc._CF_20030128160726900 E: ID_TYPE=disk E: ID_BUS=usb E: ID_PATH=pci-:00:1d.7-usb-0:5:1.0-scsi-0:0:0:1 Hope this helps, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB/Floppy controller source?
On Mon, Jan 01, 2007 at 08:36:59PM -0500, Minuk Choi wrote: Hey guys, I'm trying to use the stepper motor found in USB Floppy drives... and am having a hard time finding the source code for the linux usb/floppy driver files. Can anyone give me a few links as to how I can download/or locate the source for linux? The Linux kernel source can be found at kernel.org. USB floppy drives use the usb-storage driver, which uses the scsi core. I don't think there is any capability in the USB storage spec to allow direct access to the stepper motor in a USB floppy drive, but you should check the specs at the www.usb.org site just to make sure. good luck, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Stable API for USB programming
On Wed, Dec 13, 2006 at 03:23:31PM +, Phil Endecott wrote: Dear USB Experts, I am trying to understand the relative merits of the various programming interfaces to the Linux USB system. As far as I can see, the current or planned options include: 1. The kernel device-driver interface (i.e. usb_register()). This looks like a fairly simple interface, documented in the kerneldocs (though something went wrong when I tried to make a PDF) and also at http://www.lrr.in.tum.de/Par/arch/usb/usbdoc/usbdoc.html, which seems accurate despite being seveal years old. Lots of example drivers to learn from in the kernel source. Seems unlikely to change much anytime soon. Being a kernel interface rather than a user-space interface has obvious advantages and disadvantages. The future GPL only issue will matter in some cases. What cases would it matter? 2. The usbfs interface. Described in Documentation/usb/proc_usb.txt, referring to the lightly-commented header file for details of the ioctls. Can anyone point to any more docs or examples? The header file is the best example. It's not a very complex interface. 3. The lots of ioctls design of usbfs seems unpopular with some and searching the lists suggests that there may be other technical problems with the current design, hence a proposed future usbfs2. This will be more like gadgetfs with one inode per endpoint. So is the current usbfs not recommended for new designs? Is waiting for usbfs2 suggested? Is there a useable usbfs2 patch available now? It's being slowly worked on. Right now it is a senior project for a college student, so it might be a while before it shows up in the tree. Or you are more than welcome to help out with the effort to get it moving faster. 3. There are numerous usb files in sysfs. Is there any documentation for any of this, apart from the generic notes in Documentation/kobject.txt and Documentation/filesystems/sysfs.txt? The USB FAQ explains the 1-1.3.1:1.0 style of pathnames, but I don't know what the files in the leaf directories do. Can I read and write them to communicate with the device? No. You can only read the different attributes of the device, and in some cases, change some of the different configuation values of the device. You don't have raw USB data access through sysfs. 4. libusb. Documentation at http://libusb.sourceforge.net/doc. Apparently it is geared towards USB1.1. Doesn't support asynchronous IO. The current v0.1 API will soon be obsoleted by a new v1.0. LGPL license. It works just fine for 2.0 devices too. If you have questions about this, please ask it on the libusb mailing list. Are there other options? I am currently more concerned about the medium/long term stability of the interface and the quality of documentation than the technical features. Why? If you are interested in that, I would suggest the usbfs interface, it's not going away any year soon. (Having said that, the lack of any asynchronous IO in libusb worries me, and I don't think any of the user-space interfaces have a mechanism to get notifications of new devices like the kernel's probe callbacks; presumably I need to cooperate with udev to make this work.) Why, what exactly are you trying to do? Perhaps explaining what you are trying to accomplish would help us out in suggesting what you should use Any advice would be much appreciated. try posting follow-up stuff on the linux-usb-devel mailing list, not the -user list. thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Associating a given usb apparatus with a predefined device?
On Mon, Dec 11, 2006 at 11:18:19AM +0100, Bas Schulte wrote: Hi, well, got USB running fine on 2.6.18, now my next question: how can I make sure my Garmin gps ends up at a predefined device? As it is, it'll appear on /dev/ttyUSB?. I assume I need to do something with the usb device and interface (being 091e:0003 for my particular gps), and tell hotplug to associate this one with, say, /dev/gps. How do I go about that? Use udev, it was created just for that task. If you have questions configuring udev after reading the documentation for it, just ask on the linux-hotplug-devel mailing list. thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Usb loading order
On Tue, Dec 05, 2006 at 12:00:31PM +0100, Marian Boboc wrote: Hi all, I have a Linux box with attached 10 gprs modems (multitech), it works fine, the only problem is that the order of the serial device created is generated by the order the modems are plugged into the box. If by any reason I need to reboot the box the order changes. Use udev to name the devices in a persistent way and you will always have them show up in the proper order. Hope this helps, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] spam is no longer funny on this and other lists
On Mon, Oct 23, 2006 at 11:50:34AM -0700, Miles Lane wrote: On 10/23/06, Dave Hylands [EMAIL PROTECTED] wrote: Just deleted 34 spam emails leaving 8 real ones on the 2 usb lists. That's no longer funny. I know, local spam filters... I use one but with modern spams (image only or meaningless collection of words) it is getting less and less useful. No, I have never idea what to do about it. Maybe someone does. Yeah - most of the lists I belong to at least require you to be a member to post. I've just unsubscribed. Even the LKML doesn't generate this volume of spam. Oddly, GMail does a good job of filtering LKML spam, but doesn't catch the stuff coming in on linux-usb-users. Not sure why. It's because we are relying on sf.net to handle most of the spam filtering, and we also have a few mailman regular expressions that filter out some of the worst stuff. We can disable those if you want to see even more spam on these lists :) If anyone has some good mailmain regular expressions that could catch most of the recent spam that we are getting, I'd really appreciate it. Otherwise, just locally filter, I do that and see almost none of this stuff. Oh, and making the lists postable only by members is not an option, sorry. thanks, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Trouble installing USB 56K Modem onto RHEL4 U3
On Mon, Oct 23, 2006 at 04:35:20PM +0100, Jonathan Daniels wrote: Hi Linux USB Users! Sorry for the lengthy email, but I am having trouble getting a USB modem to work, or even to install correctly, with RedHat Enterprise Linux I have the following setup: - RedHat ES 4 Update 3 (Kernel version 2.6.9-34smp) - Zoom 56K Model 2986 USB Modem Try using a newer kernel version. If you can't do that, ask Red Hat for support, as you probably have it from them, right? Nothing we can do here about Red Hat specific kernels. thanks, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Linux 2.4.20 with USB 2.0 hubs
On Wed, Oct 18, 2006 at 06:37:03PM -0700, [EMAIL PROTECTED] wrote: Champs, My test experiments: 1) Red Hat Linux v9.0 (kernel v2.4.20) does not recognize D-Link USB 2.0 powered hub. 2) Red Hat Linux v9.0 recognizes an Aten powered USB 1.1 hub (borrowed from someone). 3) RHEL 3.0 recognizes D-link USB 2.0 powered hub. My constraints: 1) Need to work with Red Hat Linux v9.0 2) Aten powered USB 1.1 hub is no longer available. 3) Dont have additional USB 1.1 hubs to check at present. My questions: 1) Is there any issue with USB driver with Red Hat Linux v9.0 supporting USB 2.0 hubs As you see, yes there is :) 2) Will any powered USB 1.1 hub work with v9.0 or is Aten was an exception? I want to confirm it before I buy any powered USB 1.1 hub. USB 2.0 support in Red Hat 9 is very flaky and not that good as you have found out. As that release is years old, I would recommend upgrading to a newer, and supported, release. All 2.6 kernel releases should support USB 2.0 hubs just fine. good luck, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB Bar code scanner timeout
On Thu, Oct 05, 2006 at 10:47:11AM -0500, Kumar Gala wrote: I having and issue with usb barcode scanner that acts as a HID device. It seems to have some timeout issue when it first comes up. This on Fedora Core 5 (kernel 2.6.17-1.2187_FC5). Some times the device eventually connects and starts working. I've tried several different devices with the same results and on different machines with similar results Any ideas? Is there some way to extend the timeout period? Can you try changing the /sys/module/usbcore/parameters/old_scheme_first option to 1 and seeing if that makes this work better? thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB Bar code scanner timeout
On Thu, Oct 05, 2006 at 12:27:23PM -0500, Kumar Gala wrote: On Oct 5, 2006, at 12:23 PM, Greg KH wrote: On Thu, Oct 05, 2006 at 10:47:11AM -0500, Kumar Gala wrote: I having and issue with usb barcode scanner that acts as a HID device. It seems to have some timeout issue when it first comes up. This on Fedora Core 5 (kernel 2.6.17-1.2187_FC5). Some times the device eventually connects and starts working. I've tried several different devices with the same results and on different machines with similar results Any ideas? Is there some way to extend the timeout period? Can you try changing the /sys/module/usbcore/parameters/ old_scheme_first option to 1 and seeing if that makes this work better? Doesn't seem to help. So, it's just a broken device then? I don't know what to suggest. thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] cdc_ether printks wrong interface name
On Thu, Oct 05, 2006 at 10:26:07PM +0200, Duncan Sands wrote: Kernel 2.6.19-rc1 In dmesg: [ 1336.228000] usb 1-1: new full speed USB device using uhci_hcd and address 2 [ 1336.396000] usb 1-1: configuration #1 chosen from 1 choice [ 1336.92] eth1: register 'cdc_ether' at usb-:00:1d.0-1, CDC Ethernet Device, 00:07:cb:00:00:ff [ 1336.92] usbcore: registered new interface driver cdc_ether [ 1662.076000] usb 1-1: USB disconnect, address 2 [ 1662.076000] eth2: unregister 'cdc_ether' usb-:00:1d.0-1, CDC Ethernet Device Notice how it's eth1 when registered and eth2 when unregistered? The correct value is eth2. That's coming from the network layer, you might want to ask the network developers about this. thanks, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] swapped bytes in usbmon Bo: Bulk output
On Fri, Sep 08, 2006 at 09:45:14PM -0400, Russell Krayer wrote: I have two boxes, one ppc based, the other amd64. I have a LCD display that uses a USB-to-serial interface chip from FTDI. On the ppc box, the display does not work. On the amd box, the display does work. I captured the data on each box with usbmon. I can see a difference in the bulk output data transfers. The test program I used prints 4 lines of text to the display. On the ppc box (the one that does not work), one of the lines does work. The one line that does work compares exactly with the amd64 box. The rest do not compare. The difference is that some of the data have swapped bytes. For example: ppc: c7d441e0 4233378685 S Bo:002:02 -115 26 = 1f16 3e3e3e54 68697320 6973206c 696e6520 313c3c3c 2cf8 amd64: 81001f96d780 1601517566 S Bo:009:02 -115 26 = 1f16 3e3e3e54 68697320 6973206c 696e6520 313c3c3c f82c Notice the last words are byte-swapped. Can anyone tell me where I should start looking for the culprit? I look in /usr/src/linux/drivers/usb and I see a lot of code. Where to begin? Your user application that sends the wrong byte stream down to the driver :) The driver works on the byte level, it does not even know how to switch byte ordering around. I'd look at your application program for how it creates the buffer that it sends to the driver. hope this heps, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] [PATCH 001/001] usb serial: support Alcor Micro Corp. USB 2.0 TO RS-232 through pl2303 driver
On Fri, Sep 08, 2006 at 10:53:12PM +0200, Johannes Steingraeber wrote: Patch for 2.6.9.18-rc6 to add support for Alcor Micro Corp. USB 2.0 TO RS-232 converter. This patch adds VID and PID to pl2303.[ch], adds it to the HORRIBLE HACK FOR PL2303 in usb-serial.c and also prevents cdc-acm to claim driving this device by blacklisting it in hid-core. Is it really needed for the Horrible hack? I didn't think they were making chips anymore that needed it. thanks, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] (no subject)
On Wed, Sep 06, 2006 at 08:01:23AM +0200, Jan Verbeke wrote: Hi Greg, We are using the Linux USB stack in an embedded environment. The amount of memory usage is important to define our RAM footprint/configuration. Then you know that in embedded environments, the ammount of ram needed is very dependant on the processor type and the options selected for the code you wish to build and the operating load you place on the system. So, only you can determine the proper size requirements for your system, as you know and can test this, we can not. good luck, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] (no subject)
On Mon, Sep 04, 2006 at 10:23:07AM +0200, Jan Verbeke wrote: Hi, What is the memory usage (heap and stack) for the Linux USB stack? (You can take the latest available one as a reference. It's just to have an idea) Depends on the processor it is built for, and which options selected. What do you need this information for? Have you tried to just build the kernel yourself to get this? thanks, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] How to integrate USB to Serial ConverterCP2103 to Linux 2.4.32
On Wed, Aug 23, 2006 at 11:11:11AM +0100, Dave Higton wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg KH Sent: 2006-Aug-22 01:11 To: Mortha, Prakash Cc: linux-usb-users@lists.sourceforge.net Subject: Re: [Linux-usb-users] How to integrate USB to Serial ConverterCP2103 to Linux 2.4.32 [snip] In short, stay away from this manufacturer. There are many other good usb to serial chips out there that work very well with linux. Can you name one or two, please? Especially any that publish their USB specification. I've not found a way to extract any manufacturer names and part numbers from the Linux docs or sources. (I probably don't know how or where to look properly.) The ftdi_sio device (from FTDI) is very nice, and Linux friendly. The pl2303 chip from prolific is also good, but the specs are only availble to people who by the chip. The cypress_m8 driver works for the cypress chip that is also available. Hope this helps, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] device identification and return of /dev/ttyUSBXX
On Thu, Aug 24, 2006 at 04:02:20AM -0700, tasos wrote: hello ppl and nice to meet you.i have the following problem.i have some usb devices which are named /dev/ttyUSB00 etc. Because such devices can be added and removes dynamically i would like to know at any time in which file they correspond to.Is it possible via lsusb to have the filename(/dev/ttyUSBXX)? No, lsusb does not show you that. Look in sysfs to get the mapping back to the usb device. Look in /sys/class/tty/ttyUSB0/device to go back to that real device. Also, udev helps out a lot with naming these devices in a persistant way. Hope this helps, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] How to integrate USB to Serial Converter CP2103 to Linux 2.4.32
On Fri, Aug 25, 2006 at 02:13:49PM -0700, Mortha, Prakash wrote: Hi greg, We have dumped CP2103 from Silicon Lab, thanks for you advise.. Now I got TUSB3410 from TI (USB-Serial Converter). I have selected USB inside Out Edgeport Serial Driver(TI devices) component while building my kernel version 2.4.32. Also I set CONFIG_USB_SERIAL_EDGEPORT_TI=y. Also I am compiling io_ti.c and io_ti.h (I don't know if they exactly support this device or not). As such I have added { USB_DEVICE(USB_VENDOR_ID_ION_TUSB3410, ION_DEVICE_ID_TI_EDGEPORT_1_TUSB3410) } to edgeport_1port_id_table [] in io_ti.c file, to handle Vend/Prod ID 0x451/0x341a for the device. But still the device is not identified by the kernel when I plug it. When Plugged, it says: USB HC dev free May 11 06:03:14 crind30 user.warn kernel: USB HC dev free USB HC dev alloc 1152 bytes May 11 06:03:15 crind30 user.warn kernel: USB HC dev alloc 1152 bytes hub.c: USB new device connect on bus1/1/2, assigned device number 5 May 11 06:03:15 crind30 user.info kernel: hub.c: USB new device connect on bus1/ 1/2, assigned device number 5 usb.c: USB device 5 (vend/prod 0x451/0x341a) is not claimed by any active driver Try using the ti_usb_3410_5052.c driver instead. And you will have to add your device id to the driver as that device currently isn't supported by any Linux driver that I can find, sorry. good luck, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] How to integrate USB to Serial Converter CP2103 to Linux 2.4.32
On Mon, Aug 21, 2006 at 08:56:37AM -0700, Mortha, Prakash wrote: Hi, I am running Linux 2.4.32 on Power-PC based SBC. Now I need to integrate USB to Serial Converter CP2103... link http://www.silabs.com/public/documents/tpub_doc/evbdsheet/Microcontrolle rs/Interface/en/CP2103-EK.pdf As such CP2103 supplier gave one linux patch to include.. but Iam building the linux image on my PC using Cygwin and downloading linux image to SBC using bootloader applicaiton. So How can I include the patch to my existing linux image? If not how can I change the USB driver of my linux image to include the CP2103 driver? Using the present Linux configuration (I selected USB to Serial component in xconfig) and try to insert it to the existing USB port on my SBC I found this error (in blue and red) . USB HC dev alloc 1152 bytes May 6 23:04:17 crind30 user.warn kernel: USB HC dev alloc 1152 bytes hub.c: USB new device connect on bus1/1/3, assigned device number 5 May 6 23:04:17 crind30 user.info kernel: hub.c: USB new device connect on bus1/ 1/3, assigned device number 5 usb.c: USB device 5 (vend/prod 0x10c4/0xea60) is not claimed by any active drive r. May 6 23:04:17 crind30 user.debug kernel: usbserial.c: none matched May 6 23:04:17 crind30 user.warn kernel: usb.c: USB device 5 (vend/prod 0x10c4/ 0xea60) is not claimed by any active driver. Please suggest.. Use a 2.6 kernel release with this driver included in it. Otherwise you are going to have to backport the code yourself. And I would not recommend using this device at all, the vendor will give you a driver, but it violates the GPL, and as such, makes your version of Linux unsupportable by anyone. And, if you redistribute the resulting image, you too will violate the GPL. In short, stay away from this manufacturer. There are many other good usb to serial chips out there that work very well with linux. good luck, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usb driver
On Mon, Aug 07, 2006 at 08:42:53PM -0700, Renuka Pampana wrote: Hi, I am interested to learn usb device driver development and i browsed through some of the related documents in web. Can anyone provide me some of the pointers for learning or any sample device usb device driver to implement. Try reading the USB chapter in the book, Linux Device Drivers, third edition, which is free online. good luck, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] USB Stack
On Fri, Aug 04, 2006 at 10:03:44AM -0400, Naitik M. Amin wrote: Is it possible to port Linux USB Stack into a different platform(MQX-RTOS, ISP1760 HC). Due to the license issues, no, sorry. good luck, greg k-h - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] How to implement DRM using USB?
On Sat, Jul 08, 2006 at 10:34:56AM +0800, JackRain wrote: Greg KH,?? === 2006-07-08 03:44:02 === On Thu, Jul 06, 2006 at 09:46:31AM +0800, JackRain wrote: linux-usb-users I wanna implement DRM using USB. must the DRM be implemented in usb HS ?? or FS is enough? What do you mean by this? because DRM can be implement on MTP(media transfer protocol) from microsoft Do you have a pointer to the specification for this protocol? thanks, greg k-h - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] How to implement DRM using USB?
On Thu, Jul 06, 2006 at 09:46:31AM +0800, JackRain wrote: linux-usb-users I wanna implement DRM using USB. must the DRM be implemented in usb HS ?? or FS is enough? What do you mean by this? I found my DRM using FS is very low transfer speed,only 10kB/s and it takes very long time for Windows player to identify this DRM device. thank you! What does Windows player have to do with Linux? thanks, greg k-h Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] missing /proc/bus/usb/drivers, why?
On Fri, Jun 30, 2006 at 06:37:34PM -0700, Hugh Esco wrote: Hey all: I have a /proc/bus/usb directory with a devices file and three directories 001, 002 and 003. But no drivers file. That went away with the change from 2.4 to 2.6. If you really need that information, look in /sys/bus/usb/drivers for the list of USB drivers in the system. Hope this helps, greg k-h Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] 2.6.17-mm5 -- Belkin F5U012 ExpressBus Plus -- The serial port doesn't work
On Mon, Jul 03, 2006 at 12:20:33AM -0700, Miles Lane wrote: Hello, I have looked at the list of supported devices and find that the serial port on the F5U012 doesn't show up. I have tried hooking up the device, and get a message that /dev/ttyUSB0 has been created. The mct_u232 driver gets associated with it. However, when I try to set the device characteristics with stty, I get usb 1-2.4: stty timed out on ep0out len=1/1 stty does not always work with usb-serial drivers. Try minicom instead. Also, I see no information passed through to minicom running on a debugging machine. I am attampting to set up a kernel debugging arrangement. My HP Pavillion (dv1240us) lacks a serial port. I don't know whether it is actually possible to get the kernel to associate the console with /dev/ttyUSB0. In the meantime, I am now attempting to get netconsole working. Any idea whether: 1) I can assist getting the F5U012 serial port working? I am a tester, not a coder. Load the driver with: modprobe mct_u232 debug=1 and send us the kernel debug log messages for when you try to use the device. 2) It is possible to set up the console to dump info to /dev/ttyUSB0? Yes, but I would not recommend it. Only do it as a last result, with a device that you know already works properly with Linux. thanks, greg k-h Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Linux-usb-users Digest, Vol 1, Issue 2679
On Thu, Jun 22, 2006 at 11:47:36PM +0100, Kim Chuan Lim wrote: Hi all, May i know which is the best Real time linux distribution for USB2.0? Which ones have you tested to see if it meets your needs? Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usbserial driver buffer size and multipledevices
On Fri, Jun 16, 2006 at 03:55:19PM -0400, Simon Wu wrote: On 6/13/06, Rao, Shalini Gangadhara [EMAIL PROTECTED] wrote: Hi Simon, In case of mobile devices with different vendorID/productID, you try to use USB_DEVICE_INFO macro to identify your mobile devices. Since the devices are with differences vendor ID and product ID. With these changes your driver recognizes all of your mobile devices. I hope you understand this. Regards, Shalini G Shalini, Thanks for your advice. I couldn't find USB_DEVICE_INFO macro. Could you let me know where it is? If it doesn't exit, could you let me know where and how to create it? It's in the kernel header file, include/linux/usb.h. What kernel version are you looking at? Basically, we would like the usbserial driver to recognized vendor1/product1, vendor2/product2. Then please create a custom usb-serial driver. The generic driver is not to have any specific vendor ids for it. An example of the kind of driver you want is the funsoft.c driver that is in the 2.6.17-rc6 kernel. thanks, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Remote wakeup with Apple Remote IR Receiver
On Thu, Jun 15, 2006 at 12:06:16AM +0200, Fr?d?ric Riss wrote: Hello, I recently bought an Intel Core Duo powered Mac mini. I got suspend to RAM working fine using 2.6.17-rc6 plus some minor additional patches. You did? Linus has also been working on this, you might want to work with him too. After doing the right echo USBn /proc/acpi/wakeup, I'm able to wake up the system using an USB keyboard or mouse. So USB remote wakeup events work. What doesn't work is the wakeup using the Apple Remote (a small 6-button remote controller shipped with the box). You've guessed my question is: how can I make it work? Try asking this on the linux-usb-devel mailing list, you'll get a better response there. thanks, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usbserial support as module error
On Thu, Jun 15, 2006 at 09:48:10AM +0200, maoz etziony wrote: Hi all, I am using arm-linux on: Compulab ARMCore Linux version 2.6.7-armcore Wow that's old. Please try a newer kernel. thanks, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usbserial support as module error
On Thu, Jun 15, 2006 at 10:40:07PM +0200, maoz etziony wrote: Thanks for replying Same result with 2.6.12.2 That kernel is almost exactly 1 year old, still very obsolete when trying to ask questions to the community. Try 2.6.16 or 2.6.17-rc6 please. thanks, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] usbserial driver buffer size and multiple devices
On Mon, Jun 12, 2006 at 10:15:39AM -0400, Simon Wu wrote: Hello, We have an high speed UMTS 3G mobile that uses usbserial driver. Who is we? It works fine but we noticed the speed is much lower than expected. Which usb-serial driver, the generic one? If so, yes, that's expected :) Then we changed the buffer size to a static 2048 bytes in usb-serial.c and the mobile transfer speed is very good. Is this the proper way to do it? A simple search of the archives would show that this is not the way to do it. Another question: we have more than one 3G mobiles in the same system, each have a different vendorID/productID. But usbserial can only load one id per machine. Any suggestion how to modify the usbserial driver to allow multiple vendorID/productID? Ah, you are using the generic driver, don't. Create a new usb-serial drivr for this device, which will allow you to increase the data rates and handle more devices properly. The generic driver is not ment for real workloads like you are trying to use it for. thanks, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Need help supporting Sprint PPC6700 PDA Phone
On Tue, Jun 06, 2006 at 05:01:16AM -0700, Joe Julian wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg KH Sent: Friday, June 02, 2006 4:17 PM To: Joe Julian Cc: linux-usb-users@lists.sourceforge.net Subject: Re: [Linux-usb-users] Need help supporting Sprint PPC6700 PDA Phone On Fri, Jun 02, 2006 at 02:29:25PM -0700, Joe Julian wrote: I'm using kernel 2.6.16-1.2126_FC5 and would like to be able to use this phone via USB. It works via IRDA but is terribly inconvenient. This phone works in 2 separate modes. The PDA Sync mode is: T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 16 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=ef(unk. ) Sub=01 Prot=01 MxPS=16 #Cfgs= 1 P: Vendor=0bb4 ProdID=0b02 Rev= 0.00 S: Manufacturer=HTC S: Product=PocketPC USB Sync C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 1 Cls=ef(unk. ) Sub=01 Prot=01 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=1ms I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none) E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms By running the WModem application, the phone is supposed to be able to be used as a modem. When this is running, the device is: T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 18 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=20(unk. ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1 P: Vendor=0bb4 ProdID=00cf Rev= 0.90 S: Manufacturer=Generic Manufacturer (PROTOTYPE--Remember to change idVendor) S: Product=Generic Serial (PROTOTYPE--Remember to change idVendor) Oh that's too funny. Looks like someone forgot to fix the firmware strings :) Anyway, have you tried the cdc-acm driver to see if it works for this device? Yes, I've tried loading the cdc-acm module and loading the usbserial module. Neither one seems to do anything. If it does work correctly shouldn't udev detect it and create the appropriate device? If the device is bound to the driver, yes. But based on the output of the above file, it isn't. I suggest asking the vendor what the protocol is to talk to this device, so you can use it on Linux. Yeah, it's a long shot, but I don't know what else to suggest, sorry. good luck, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Need help supporting Sprint PPC6700 PDA Phone
On Fri, Jun 02, 2006 at 02:29:25PM -0700, Joe Julian wrote: I'm using kernel 2.6.16-1.2126_FC5 and would like to be able to use this phone via USB. It works via IRDA but is terribly inconvenient. This phone works in 2 separate modes. The PDA Sync mode is: T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 16 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=ef(unk. ) Sub=01 Prot=01 MxPS=16 #Cfgs= 1 P: Vendor=0bb4 ProdID=0b02 Rev= 0.00 S: Manufacturer=HTC S: Product=PocketPC USB Sync C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 1 Cls=ef(unk. ) Sub=01 Prot=01 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=1ms I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none) E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms By running the WModem application, the phone is supposed to be able to be used as a modem. When this is running, the device is: T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 18 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=20(unk. ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1 P: Vendor=0bb4 ProdID=00cf Rev= 0.90 S: Manufacturer=Generic Manufacturer (PROTOTYPE--Remember to change idVendor) S: Product=Generic Serial (PROTOTYPE--Remember to change idVendor) Oh that's too funny. Looks like someone forgot to fix the firmware strings :) Anyway, have you tried the cdc-acm driver to see if it works for this device? thanks, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] problem dialing CDMA provider using Nokia 3105 + CA-42 USB cable on 2.6.16.1
On Sat, May 20, 2006 at 01:24:11PM +0700, Mulyadi Santosa wrote: Hi Greg... Thanks for the reply. See my reply below... Perhaps this cable is not a pl2303 device? How did you determine that it is? Can you take it apart and see what chip is in it? Hm, not 100% sure either. I got the idea to put the ID inside pl2303.h purely because lsusb reported it has the same product and vendor ID (0e55:110b) like the patch posted on http://marc.theaimsgroup.com/?l=linux-usb-usersm=114435409524767w=2. Ok, yes, it looks like a pl2303 device, sorry. Taking the usb cable apart might lead a problem for me, since I plan to trade it with another cable (possibly MA 8620e) next week if I failed to make it work. However, if the store denies to trade my cable, I think I can crack in. BTW, when hanging in an IRC channel, somebody said maybe I should try cypress_m8 kernel module. Could it be the solution? And what is the best way to find out the real problem ? Until now, I am still in doubt whether it is a driver problem or wvdial script problem... wvdial script problem perhaps? thanks, greg k-h ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Problem attaching usbserial to a unused interface
On Sat, May 20, 2006 at 12:30:20PM -0300, Matheus Izvekov wrote: I have this device: T: Bus=05 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 5 Spd=12 MxCh= 0 D: Ver= 1.01 Cls=02(comm.) Sub=00 Prot=00 MxPS=16 #Cfgs= 1 P: Vendor=1004 ProdID=6000 Rev= 0.00 S: Manufacturer=LG CDMA USB Modem S: Product=Qualcomm CDMA Technologies MSM C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm E: Ad=8a(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=0b(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=00 Driver=(none) E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I want to attach the genric usbserial driver to if2, but it doesnt work How should i do it? Why do you want to do that? And no, it's not possible to do that right now, sorry. The generic usb-serial driver wants to take over the whole USB device, all interfaces. But it would be trivial to create a new usb-serial driver to just grab this interface if you want to. thanks, greg k-h --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Problem attaching usbserial to a unused interface
On Mon, May 22, 2006 at 11:16:21AM -0300, Matheus Izvekov wrote: On 5/20/06, Greg KH [EMAIL PROTECTED] wrote: Why do you want to do that? And no, it's not possible to do that right now, sorry. The generic usb-serial driver wants to take over the whole USB device, all interfaces. For experimentation, maybe to create a driver if it isnt too hard. But it would be trivial to create a new usb-serial driver to just grab this interface if you want to. Yes, but why not change the behaviour of usbserial, and make it grab all availiable interfaces? I dont see a reason why it should fail if some of the interfaces are taken already. If you think thats a good idea, i can try to do it. Sure, feel free to try it, it should not be that difficult. good luck, greg k-h --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users