[linux-usb-devel] [PATCH] Stall control endpoint when file storage class request wValue != 0

2007-07-26 Thread Alan Stern
From: Luis Lloret [EMAIL PROTECTED] This patch makes the File Storage Gadget stall the control endpoint when a MSC class request is made with wValue != 0. This change makes some MSC compliance test warnings disappear. Signed-off-by: Luis Lloret [EMAIL PROTECTED] Signed-off-by: Alan Stern [EMAIL

Re: [linux-usb-devel] [GIT PATCH] more USB patches for 2.6.22

2007-07-26 Thread Alan Stern
introduced. Alan Stern - 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

Re: [linux-usb-devel] USB Driver help needed

2007-07-25 Thread Alan Stern
: is the value of PipeHandle important? Is there a clean way to set it (I'm using libusb for now). PipeHandle is another Windows-internal thing. It is meaningless for Linux. Alan Stern - This SF.net email is sponsored by: Splunk

Re: [linux-usb-devel] [PATCH] Stall control endpoint when file storage class request wValue != 0

2007-07-25 Thread Alan Stern
have better luck adding the patch as an attachment instead of putting it inline. Or better yet, use something other than gmail. (Try mailing the patch to yourself and see what happens when you try to apply it; then you'll know whether it worked.) Alan Stern

Re: [linux-usb-devel] hid keyboard packet from interrupt IN pipe

2007-07-25 Thread Alan Stern
is loaded. Alan Stern - 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

Re: [linux-usb-devel] [patch 2.6.23-rc1-git] ohci-hcd works around more Compaq/ZF-Micro quirks

2007-07-25 Thread Alan Stern
HeadP has pointed to a later TD for at least one frame. It doesn't matter whether HeadP == TailP or not; what matters is that the queue pointer passed beyond the TD in question sufficiently long ago. Alan Stern

Re: [linux-usb-devel] USB Driver help needed

2007-07-24 Thread Alan Stern
through the Linux USB stack and 2) can you offer any advice on how to approach this problem. This is old email, right? We already discussed your problems at length on linux-usb-users. Alan Stern - This SF.net email

Re: [linux-usb-devel] USB Driver help needed

2007-07-24 Thread Alan Stern
file available if that would help. Don't you remember what I told you a few days ago? The setup packet contents in the down report are unreliable. You need to look at an up report. Alan Stern - This SF.net email

Re: [linux-usb-devel] [PATCH] Stall control endpoint when file storage class request wValue != 0

2007-07-24 Thread Alan Stern
to spaces. Care to try again? Alan Stern - 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

Re: [linux-usb-devel] USB Driver help needed

2007-07-24 Thread Alan Stern
what you need to use: bRequestType = 0xc2, bRequest = 0x00, wValue = 0x53ac, wIndex = 0, wLength = 8. Alan Stern - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now

Re: [linux-usb-devel] USB Driver help needed

2007-07-24 Thread Alan Stern
On Tue, 24 Jul 2007, Ron Gage wrote: Don't you remember what I told you a few days ago? The setup packet contents in the down report are unreliable. You need to look at an up report. Alan Stern I remember it quite clearly. You told me to look at the UP packets which I did

[linux-usb-devel] Bug in EHCI split-interrupt handling

2007-07-24 Thread Alan Stern
and actual_length set to -4. Obviously this should never happen. Can anybody offer tips on where to go searching through the driver code for a solution? Alan Stern - This SF.net email is sponsored by: Splunk Inc. Still grepping

Re: [linux-usb-devel] usb_control_msg() reads 0 bytes in Linux 2.6.23-rc1

2007-07-24 Thread Alan Stern
. Alan Stern - 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

Re: [linux-usb-devel] usb_control_msg() reads 0 bytes in Linux 2.6.23-rc1

2007-07-24 Thread Alan Stern
/at76_usb.patch I don't see anything suspicious in the patch. Thanks! I found the problem. Greg's urb-status conversion was somewhat hasty. Here's an untested patch to fix it. Alan Stern Index: 2.6.23-rc1/drivers/usb/core/message.c

Re: [linux-usb-devel] usb_control_msg() reads 0 bytes in Linux 2.6.23-rc1

2007-07-24 Thread Alan Stern
possible value and gets whatever is available. This shouldn't be an error. Alan Stern - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events

Re: [linux-usb-devel] Bug in EHCI split-interrupt handling

2007-07-24 Thread Alan Stern
On Tue, 24 Jul 2007, Pete Zaitcev wrote: On Tue, 24 Jul 2007 15:44:23 -0400 (EDT), Alan Stern [EMAIL PROTECTED] wrote: http://bugzilla.kernel.org/show_bug.cgi?id=8535 contains logs suggestive of problems with EHCI split-interrupt handling. See in particular comment #33

Re: [linux-usb-devel] usb_control_msg() reads 0 bytes in Linux 2.6.23-rc1

2007-07-24 Thread Alan Stern
On Tue, 24 Jul 2007, Pete Zaitcev wrote: On Tue, 24 Jul 2007 16:46:21 -0400 (EDT), Alan Stern [EMAIL PROTECTED] wrote: static int usb_start_wait_urb(struct urb *urb, int timeout, int *actual_length) { - struct completion done; + struct api_context ctx; unsigned long

[linux-usb-devel] [PATCH] USB: Fix a bug in usb_start_wait_urb

2007-07-24 Thread Alan Stern
This patch (as941) fixes a bug recently added to the USB synchronous API. The status of a completed URB must be preserved separately across a completion callback. Also, the actual_length value isn't available until after the URB has fully completed. Signed-off-by: Alan Stern [EMAIL PROTECTED

Re: [linux-usb-devel] [PATCH] Stall control endpoint when file storage class request wValue != 0

2007-07-23 Thread Alan Stern
changes, I will accept it. Alan Stern - 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

Re: [linux-usb-devel] 2.6.22+: BUG: sleeping function called from invalid context at /home/jeremy/hg/xen/paravirt/linux/drivers/usb/core/urb.c:524, in_atomic():1, irqs_disabled():0

2007-07-23 Thread Alan Stern
) converter now disconnected from ttyUSB2 sierra 2-1:1.0: device disconnected Clearly there's a bug in drivers/usb/serial/usb-serial.c:usb_serial_put(). It shouldn't call kref_put() while holding a spinlock. Alan Stern

Re: [linux-usb-devel] urb-status -EOVERFLOW

2007-07-22 Thread Alan Stern
. Alan Stern - 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

Re: [linux-usb-devel] urb-status -EOVERFLOW

2007-07-22 Thread Alan Stern
disconnect() routine has returned. Alan Stern - 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

Re: [linux-usb-devel] Sierra Wireless modem - issues with suspend again

2007-07-20 Thread Alan Stern
well the motherboard and BIOS support the USB host controller. Alan Stern - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct

Re: [linux-usb-devel] usbfs and reset_resume()

2007-07-19 Thread Alan Stern
ahead. Alan Stern - 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

Re: [linux-usb-devel] [RFC] Moving from pipes to usb_host_endpoint pointers

2007-07-19 Thread Alan Stern
On Wed, 18 Jul 2007, David Brownell wrote: On Wednesday 18 July 2007, Alan Stern wrote: We currently don't have any way to go from the endpoint structure to the usb_device structure, so dev is not implicit. Easy enough to fix if we want. Similarly with the relevant interface (a one

Re: [linux-usb-devel] Sierra Wireless modem - issues with suspend again

2007-07-19 Thread Alan Stern
and put it back in the original pre-suspend condition, after which it ought to continue operating normally. The application wouldn't notice a thing, except perhaps that the serial connection had been lost. Alan Stern

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-18 Thread Alan Stern
whether to delay or call usb_hcd_poll_root_hub directly. Alan Stern - 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

[linux-usb-devel] [PATCH 1/2] USB: move routines in hcd.c

2007-07-18 Thread Alan Stern
This patch (as939) moves a couple of routine in hcd.c around. The purpose is to put all the general URB- and endpoint-related routines (submit, unlink, giveback, and disable) together in one spot. There are no functional changes. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Index: usb-2.6

[linux-usb-devel] [PATCH] USB: change name of spinlock in hcd.c

2007-07-18 Thread Alan Stern
This patch (as940 renames hcd_data_lock in hcd.c to hcd_urb_list_lock, which is more descriptive of the lock's job. It also introduces a convenient inline routine for testing whether a particular USB device is a root hub. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Index: usb-2.6/drivers

[linux-usb-devel] [RFC] Moving from pipes to usb_host_endpoint pointers

2007-07-18 Thread Alan Stern
. Does anybody object to this? Alan Stern Index: usb-2.6/include/linux/usb.h === --- usb-2.6.orig/include/linux/usb.h +++ usb-2.6/include/linux/usb.h @@ -52,6 +52,7 @@ struct ep_device; * @ep_dev: ep_device for sysfs info * @extra

Re: [linux-usb-devel] [PATCH 1/2] USB: move routines in hcd.c

2007-07-18 Thread Alan Stern
On Wed, 18 Jul 2007, Greg KH wrote: On Wed, Jul 18, 2007 at 12:08:02PM -0400, Alan Stern wrote: This patch (as939) moves a couple of routine in hcd.c around. The purpose is to put all the general URB- and endpoint-related routines (submit, unlink, giveback, and disable) together in one

Re: [linux-usb-devel] [RFC] Moving from pipes to usb_host_endpoint pointers

2007-07-18 Thread Alan Stern
On Wed, 18 Jul 2007, Oliver Neukum wrote: Am Mittwoch 18 Juli 2007 schrieb Alan Stern:  int usb_submit_urb(struct urb *urb, gfp_t mem_flags)  { -   int pipe, temp, max; -   struct usb_device   *dev; -   int is_out; +   int

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-18 Thread Alan Stern
the best place to put this? That makes sense. Basically it would just be the first part of ohci_pci_reset(). Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express

Re: [linux-usb-devel] [RFC] Moving from pipes to usb_host_endpoint pointers

2007-07-18 Thread Alan Stern
On Wed, 18 Jul 2007, Oliver Neukum wrote: Am Mittwoch 18 Juli 2007 schrieb Alan Stern: On Wed, 18 Jul 2007, Oliver Neukum wrote: Am Mittwoch 18 Juli 2007 schrieb Alan Stern:  int usb_submit_urb(struct urb *urb, gfp_t mem_flags)  { -   int pipe, temp

Re: [linux-usb-devel] High speed, high bandwidth isoc

2007-07-17 Thread Alan Stern
for example this email and the following patches: http://marc.info/?l=linux-usb-develm=115932798607111w=2 His interest was specifically USB audio. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-17 Thread Alan Stern
On Tue, 17 Jul 2007, Branden Sletteland wrote: With that code added I just see the print out for each of the four ports three times, and the device is not detected. Try this patch instead. Alan Stern Index: 2.6.22/drivers/usb/host/ehci-hub.c

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-17 Thread Alan Stern
got weird hardware. Do you know of any other systems with the same type of host controller to compare against? I don't want to add in the delay you suggested, although maybe it would be okay if it were reduced down to just 1 ms. Is that long enough to make the thing work okay? Alan Stern

Re: [linux-usb-devel] usb suspend backtraces.

2007-07-16 Thread Alan Stern
to suspending an entire bus all at once. In theory this shouldn't matter. I can't think of anything else at the moment. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version

Re: [linux-usb-devel] Kingsun KS-959 USB IrDA dongle protocol - help needed with control urb for reception

2007-07-16 Thread Alan Stern
on this are welcome. Can you post the portion of the SnoopyPro log containing both the UP and DOWN reports for this questionable URB? Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version

Re: [linux-usb-devel] usb suspend backtraces.

2007-07-16 Thread Alan Stern
one other case, where it prints the same thing for usb 4-2: All right, it turns out there really is a minor bug that shows up only with the autosuspend delay set to 0. The patch below fixes it (should you happen to care). Alan Stern Index: 2.6.22/drivers/usb/core/hub.c

[linux-usb-devel] [PATCH] USB: fix warning caused by autosuspend counter going negative

2007-07-16 Thread Alan Stern
and caused the counter to go negative. The obvious solution is to increment the counter before registering the child. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Index: usb-2.6/drivers/usb/core/hub.c === --- usb-2.6.orig/drivers/usb

Re: [linux-usb-devel] Kingsun KS-959 USB IrDA dongle protocol - help needed with control urb for reception

2007-07-16 Thread Alan Stern
. wLength is 0x800 = 4096; a little on the large side considering that the device doesn't send any data back. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2

Re: [linux-usb-devel] usb suspend backtraces.

2007-07-16 Thread Alan Stern
On Mon, 16 Jul 2007, Dave Jones wrote: On Mon, Jul 16, 2007 at 03:22:17PM -0400, Alan Stern wrote: I'm not sure how that 5-1.4 relates to the above map. oh, there's one other case, where it prints the same thing for usb 4-2: All right, it turns out there really is a minor

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-16 Thread Alan Stern
*/ ehci-reset_done [wIndex] = jiffies + msecs_to_jiffies (50); Increase the 50 to something like 80 or 100. As another possibility, you could try putting everything back to its original state and applying the patch below. Alan Stern Index

Re: [linux-usb-devel] Kingsun KS-959 USB IrDA dongle protocol - help needed with control urb for reception

2007-07-16 Thread Alan Stern
it to implement speed change. That would certainly do it. :-) Nothing I cannot fix overnight at home. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express

Re: [linux-usb-devel] OHCI hangs after failing to free resources

2007-07-13 Thread Alan Stern
file. Your diff should be against the latest version of Greg KH's USB development tree. See the patches in http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/ Alan Stern - This SF.net email is sponsored

Re: [linux-usb-devel] USB Gadget - Peripheral Controller Driver question

2007-07-13 Thread Alan Stern
by short packets and by agreement between the host and the device. If the host hasn't told your gadget driver how much data to expect then you have no way to know how much it will send. Alan Stern - This SF.net email

Re: [linux-usb-devel] USB Gadget - Peripheral Controller Driver question

2007-07-13 Thread Alan Stern
don't believe the Windows print system will generate a ZLP when a data stream ends on a MAXP boundary. How about making the application add an extra byte instead? It appears I'm stuck solving it on the device side. Yes, you could do it that way. Alan Stern

[linux-usb-devel] [PATCH] UHCI: short control URBs get a status stage

2007-07-13 Thread Alan Stern
It has recently been pointed out that short control transfers should have a status stage, even if they generate an error because URB_SHORT_NOT_OK was set. This patch (as935) changes uhci-hcd to enable the status stage when this happens. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Index

[linux-usb-devel] [PATCH] USB: documentation update for usb_unlink_urb

2007-07-13 Thread Alan Stern
This patch (as936) updates the kerneldoc for usb_unlink_urb. The explanation of how endpoint queues are meant to work is now clearer and in better agreement with reality. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Index: usb-2.6/drivers/usb/core/urb.c

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-12 Thread Alan Stern
-2.6.git;a=tree;f=drivers/usb/host;h=01260c55a15973281b292c052424e7c11fef9bcf;hb=c8f71b01a50597e298dc3214a2f2be7b8d31170c This will present you with the state of drivers/usb/host as of 2.6.21-rc1. Simply click on the History link for each file of interest. Alan Stern

Re: [linux-usb-devel] [Em28xx] dvb-core random crashes - Got it

2007-07-12 Thread Alan Stern
to? It is a section number in the EHCI specification document. Alan Stern - 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

Re: [linux-usb-devel] Help on gadget udc

2007-07-12 Thread Alan Stern
the messages with g_file_storage in the subject line. Alan Stern - 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

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-12 Thread Alan Stern
;hb=c8f71b01a50597e 298dc3214a2f2be7b8d31170c This will present you with the state of drivers/usb/host as of 2.6.21-rc1. Simply click on the History link for each file of interest. Alan Stern This is a very neat tool Alan, but what if we want to check on more recent stuff cuz 21-rc1

Re: [linux-usb-devel] [2.6.22-rc7] khubd NULL deref oops...

2007-07-12 Thread Alan Stern
[ 551.034290] Buffer I/O error on device sda, logical block 5 [ 551.034415] [ 551.034774] sd 3:0:0:0: [sda] Attached SCSI disk [ 551.034933] sd 3:0:0:0: Attached scsi generic sg0 type 0 CONFIG_SYSFS_DEPRECATED was enabled. Alan Stern

[linux-usb-devel] [PATCH] isp116x-hcd: prepare for urb-status

2007-07-12 Thread Alan Stern
the status stage rather than when the short packet arrives. Some unnecessary uses of urb-lock are removed. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Olav, this patch should make no difference to the functioning of the driver. Please try it and make sure I haven't messed something up

[linux-usb-devel] [PATCH] USB: add descriptors binary sysfs attribute

2007-07-12 Thread Alan Stern
. The last item in particular should be a big selling point for libusb, which currently forces all USB devices to be resumed as it scans the device tree. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Dave, this patch probably won't apply to your source tree. It's meant to go on top Greg KH's USB

Re: [linux-usb-devel] [patch]autosuspend for cdc-acm

2007-07-11 Thread Alan Stern
On Wed, 11 Jul 2007, Oliver Neukum wrote: Hi, this implements autosuspend for cdc-acm devices. Do you mean it adds support for plain old suspend/resume? It definitely does not implement autosuspend. Alan Stern

Re: [linux-usb-devel] [patch]minimal autosuspend support for USB HID devices

2007-07-11 Thread Alan Stern
not continously in use. Hi Oliver, I like this patch until the ultimate solution comes (if there is any at all). Thanks, I agree. It's nice and simple. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2

Re: [linux-usb-devel] What's the difference between async and sync unlink?

2007-07-11 Thread Alan Stern
usb_kill_urb, you would get a big fat error message on the screen and your system might crash. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-11 Thread Alan Stern
://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=629e4427aa817d5c9f11885420abf54b8f5967dc You could try applying them one by one starting from 2.6.20 and see at which stage the problem begins. Alan Stern

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-11 Thread Alan Stern
recently posted a message including a quick summary of how to do this. See http://marc.info/?l=linux-kernelm=118408208816556w=2 Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE

Re: [linux-usb-devel] [2.6.22-rc7] khubd NULL deref oops...

2007-07-11 Thread Alan Stern
clear that the problem occurs in the driver core when the SCSI core tries to unregister a device. It's not directly related to USB at all. In fact, it looks like the bug is connected with CONFIG_SYSFS_DEPRECATED. You can try to see what happens with that switch disabled. Alan Stern

Re: [linux-usb-devel] [PATCH] isp116x-hcd: prepare for urb-status

2007-07-10 Thread Alan Stern
On Fri, 06 Jul 2007, Alan Stern wrote: This patch (as931), adapted from a patch by Olav Kongas, makes a small set of conservative changes to the isp116x-hcd driver in preparation for the removal of urb-status. Greg: Please ignore this submission. Offline discussion has indicated

Re: [linux-usb-devel] [Em28xx] dvb-core random crashes

2007-07-10 Thread Alan Stern
On Tue, 10 Jul 2007, Christoph wrote: Alan Stern schrieb: On Sun, 8 Jul 2007, Markus Rechberger wrote: On 7/8/07, Christoph [EMAIL PROTECTED] wrote: Hallo Markus! I'm using a Pinnacle PCTV DVB-T for several months now without serious problems. So far I used it only with my

Re: [linux-usb-devel] patch usb-add-usb_autopm_get_interface_burst.patch added to gregkh-2.6 tree

2007-07-10 Thread Alan Stern
at http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/ From [EMAIL PROTECTED] Fri Jul 6 11:21:32 2007 From: Alan Stern [EMAIL PROTECTED] Date: Fri, 6 Jul 2007 14:21:26 -0400 (EDT) Subject: USB: add usb_autopm_get_interface_burst() To: Greg KH [EMAIL PROTECTED] Cc

Re: [linux-usb-devel] how to detect SD card under linux

2007-07-09 Thread Alan Stern
detected a SCSI disk. Are you asking why the SD card wasn't detected when you put in in the reader? Probably because you weren't running HAL. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C

Re: [linux-usb-devel] [PATCH 1/2] USB: add usb_autopm_get_interface_burst()

2007-07-09 Thread Alan Stern
On Mon, 9 Jul 2007, Oliver Neukum wrote: Am Freitag, 6. Juli 2007 schrieb Alan Stern: This patch (as929) adds usb_autopm_get_interface_burst() to the autosuspend programming interface.  It is intended for situations where I/O events occur in bursts of activity; it reduces overhead

Re: [linux-usb-devel] [PATCH 2/2] usb-storage: implement autosuspend

2007-07-09 Thread Alan Stern
On Mon, 9 Jul 2007, Oliver Neukum wrote: Am Freitag, 6. Juli 2007 schrieb Alan Stern: @@ -1028,6 +1039,7 @@ static int storage_probe(struct usb_inte * start it up. */ scsi_host_get(us_to_host(us)); atomic_inc(total_threads); +   usb_autopm_get_interface

Re: [linux-usb-devel] [2.6.22-rc7] khubd NULL deref oops...

2007-07-09 Thread Alan Stern
ba d0 00 00 00 e8 06 36 f2 ff 31 d2 [ 4771.448000] EIP: [c0255cc7] make_class_name+0x27/0x80 SS:ESP 0068:f7d05e5c Although the bug occurred in the context of the khubd process, you can see from the stack dump that the actual problem appears to lie in the driver-model core. Alan Stern

Re: [linux-usb-devel] [PATCH 1/2] USB: add usb_autopm_get_interface_burst()

2007-07-09 Thread Alan Stern
On Mon, 9 Jul 2007, Oliver Neukum wrote: Am Montag, 9. Juli 2007 schrieb Alan Stern: On Mon, 9 Jul 2007, Oliver Neukum wrote: Am Freitag, 6. Juli 2007 schrieb Alan Stern: This patch (as929) adds usb_autopm_get_interface_burst() to the autosuspend programming interface

Re: [linux-usb-devel] libusb driver question: can't write to endpoint

2007-07-09 Thread Alan Stern
the device works, but before I spin my wheels too long, I thought I'd see if I was making some obvious mistake. Use usbmon. Compare what your program does with the Windows packet traces. Alan Stern - This SF.net email

Re: [linux-usb-devel] How to Suspend/Resume a usb device

2007-07-09 Thread Alan Stern
) support SINGLE_STEP_GET_DESCRIPTOR and SINGLE_STEP_SET_FEATURE ??? I don't recognize those terms. What do they refer to? Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version

Re: [linux-usb-devel] how to detect SD card under linux

2007-07-09 Thread Alan Stern
sleeping. This log shows that LUN 0 has no media present. Probably your reader puts SD cards on a higher LUN. Make sure you have set CONFIG_SCSI_MULTI_LUN to Y. Alan Stern - This SF.net email is sponsored by DB2 Express

Re: [linux-usb-devel] [Em28xx] dvb-core random crashes

2007-07-08 Thread Alan Stern
-reclaim_ready was set when it shouldn't be. Don't ask me how either of these could have happened. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take

Re: [linux-usb-devel] patch to shift memory allocations to usb_alloc_urb()

2007-07-07 Thread Alan Stern
opinion, but I don't want to do it. Except for RT support? :) Well, let's say I don't want to do it right now. :-) Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2

Re: [linux-usb-devel] patch to shift memory allocations to usb_alloc_urb()

2007-07-07 Thread Alan Stern
. :) In fact, what we need to audit is not the IRQF flag setting but rather the spin_lock call in the irq handler. It ought to be spin_lock_irqsave. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express

Re: [linux-usb-devel] Fwd: Re: portable usb drive problem

2007-07-07 Thread Alan Stern
need to... Alan Stern - 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

Re: [linux-usb-devel] Fwd: Re: portable usb drive problem

2007-07-07 Thread Alan Stern
On Sat, 7 Jul 2007, Gene Heskett wrote: On Saturday 07 July 2007, Gene Heskett wrote: On Saturday 07 July 2007, Gene Heskett wrote: On Friday 06 July 2007, Alan Stern wrote: On Fri, 6 Jul 2007, Gene Heskett wrote: So the next thing to do is find a wall wart that will add some power either

Re: [linux-usb-devel] changing URB allocation API

2007-07-07 Thread Alan Stern
before trying to use the preallocated URB. Lots of places in the hub driver could benefit from this. (But not the port_suspend and port_resume parts, since they don't hold the hub's device lock. They might not even hold the lock of the device being suspended or resumed.) Alan Stern

Re: [linux-usb-devel] patch to shift memory allocations to usb_alloc_urb()

2007-07-07 Thread Alan Stern
that work? Just keep the URBs allocated permanently. They don't take up much space compared with UHCI's TDs. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2

Re: [linux-usb-devel] patch to shift memory allocations to usb_alloc_urb()

2007-07-07 Thread Alan Stern
On Sat, 7 Jul 2007, Oliver Neukum wrote: Am Samstag, 7. Juli 2007 schrieb Alan Stern: This brings me to an idea. Is it possible to accept the next scsi request while the current request is being executed? That way, when the first request finishes, the URBs could be retained

Re: [linux-usb-devel] OHCI hangs after failing to free resources

2007-07-06 Thread Alan Stern
say you've found a bug in the controller hardware. Under such circumstances the driver would be justified in retiring the TD on its own initiative. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2

Re: [linux-usb-devel] changing URB allocation API

2007-07-06 Thread Alan Stern
allocator: struct urb *usb_alloc_ep0_urb(struct usb_device *udev, size_t alloc_length, gfp_t mem_flags); This could have an additional extra use, since it could leave space for the setup packet at the end of the URB (rounded up to the next cache line). Alan Stern

Re: [linux-usb-devel] Fwd: Re: portable usb drive problem

2007-07-06 Thread Alan Stern
. They often lie. Alan Stern - 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

Re: [linux-usb-devel] portable usb drive problem

2007-07-06 Thread Alan Stern
from supplying power to more than 4 downstream devices? Alan Stern - 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

Re: [linux-usb-devel] OHCI hangs after failing to free resources

2007-07-06 Thread Alan Stern
On Fri, 6 Jul 2007, Mike Nuss wrote: Alan Stern wrote: On Thu, 5 Jul 2007, Mike Nuss wrote: There are three time periods in question. A = before there is any problem B = a read seems to have completed, the HC has advanced HeadP, but failed to put the completed TD on the donelist

Re: [linux-usb-devel] Fwd: Re: portable usb drive problem

2007-07-06 Thread Alan Stern
the webmaster, but no reply as yet. Actually it points to a hardware problem, such as insufficient power. The BIOS symptoms suggest that the BIOS driver is unable to deal with the malfunctioning drive just as the Linux driver is. Alan Stern

Re: [linux-usb-devel] OHCI hangs after failing to free resources

2007-07-06 Thread Alan Stern
On Fri, 6 Jul 2007, Mike Nuss wrote: Alan Stern wrote: AFAIK there are only two lists (apart from the done list): the periodic list and the async list. The HC is allowed and expected to jump between them during the course of a single frame. This should be very easy to test, so I'll

[linux-usb-devel] [PATCH 1/2] USB: add usb_autopm_get_interface_burst()

2007-07-06 Thread Alan Stern
This patch (as929) adds usb_autopm_get_interface_burst() to the autosuspend programming interface. It is intended for situations where I/O events occur in bursts of activity; it reduces overhead by not cancelling the device's autosuspend timer. Signed-off-by: Alan Stern [EMAIL PROTECTED

[linux-usb-devel] [PATCH 2/2] usb-storage: implement autosuspend

2007-07-06 Thread Alan Stern
This patch (as930) implements autosuspend for usb-storage. It is adapted from a patch by Oliver Neukum. Autosuspend is allowed except during LUN scanning, resets, and command execution. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- The default autosuspend delay of 2 seconds is probably too

Re: [linux-usb-devel] OHCI hangs after failing to free resources

2007-07-06 Thread Alan Stern
. That's the completion interrupt. Alan Stern - 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

[linux-usb-devel] [PATCH] isp116x-hcd: prepare for urb-status removal

2007-07-06 Thread Alan Stern
. The status of a completed URB is kept in a local variable and copied to urb-status only when the URB is about to be given back. Some unnecessary uses of urb-lock are removed. Signed-off-by: Alan Stern [EMAIL PROTECTED] --- Index: usb-2.6/drivers/usb/host/isp116x-hcd.c

Re: [linux-usb-devel] OHCI hangs after failing to free resources

2007-07-06 Thread Alan Stern
. Scan through the data structures once a second or thereabouts. As an optimization, allow the timer to run only while there are active URBs. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C

Re: [linux-usb-devel] OHCI hangs after failing to free resources

2007-07-06 Thread Alan Stern
already a kernel timer you can use: the root hub status timer. There's some complicated code in ohci-hub.c to turn that timer on and off (it could be simplified a good deal -- and unfortunately I'm the person who made it more complex than it needs to be...). Alan Stern

Re: [linux-usb-devel] Fwd: Re: portable usb drive problem

2007-07-06 Thread Alan Stern
probably build one with an lm317 quicker than I could find on actually made for it. Sigh... Actually the next thing to do is what I suggested before: Run a kernel with CONFIG_USB_STORAGE_DEBUG turned on and post the dmesg log. Alan Stern

Re: [linux-usb-devel] RT-friendly IRQ management in USB

2007-07-06 Thread Alan Stern
than urb with urb-status ... :) Augh!! Too many changes, all at once! I can't face it! :-) Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take

Re: [linux-usb-devel] urb status EOVERFLOW

2007-07-05 Thread Alan Stern
really going on. Alan Stern - 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

Re: [linux-usb-devel] urb status EOVERFLOW

2007-07-05 Thread Alan Stern
, the only way to truly reset them is to unplug their power cable. Not much the kernel can do then. Alan Stern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take

Re: [linux-usb-devel] USB mouse autosuspend

2007-07-05 Thread Alan Stern
On Thu, 5 Jul 2007, Robert Marquardt wrote: Alan Stern schrieb: Does Windows ever actually suspend the keyboard at all? I do not know. I prefer switching off my computer. The main differences i see for HID devices with the OS running is that Windows constantly sends Keep Alive packets

<    1   2   3   4   5   6   7   8   9   10   >