Re: [linux-usb-devel] [PATCH] USB: replace flush_workqueue with cancel_sync_work

2007-05-29 Thread Mark Lord
gt;synchronization with the autosuspend thread is carried out even for >root hubs (an oversight in the original code). > >Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Acked-by: Mark Lord <[EMAIL PROTECTED]> --- Index: 2.6.22-rc3/drivers/usb/core/hub.c ==

Re: [linux-usb-devel] [BUG] usb/core/hub.c loops forever on resume from ram due to bluetooth

2007-05-03 Thread Mark Lord
Alan Stern wrote: > On Wed, 2 May 2007, Mark Lord wrote: > >> Alan Stern wrote: >>> A better approach would be to find out why your system gets into that loop >>> and fix the underlying cause. >> Not better, just parallel. >> >> That loop should

Re: [linux-usb-devel] [BUG] usb/core/hub.c loops forever on resume from ram due to bluetooth

2007-05-02 Thread Mark Lord
Alan Stern wrote: > > A better approach would be to find out why your system gets into that loop > and fix the underlying cause. Not better, just parallel. That loop should not be unbounded, as this example proves. But it also shouldn't get stuck there regardless. Two fixes needed. Cheers --

[linux-usb-devel] [BUG] usb/core/hub.c loops forever on resume from ram due to bluetooth

2007-05-01 Thread Mark Lord
accomplish it. Now, I still get close to a thousand or so such messages, in groups, showing up in syslog, but at least the system can resume after suspend. Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- linux/drivers/usb/core/hub.c.orig 2007-04-26 12:02:47.0 -0400 +++ linux/drive

Re: [linux-usb-devel] USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Mark Lord
Pavel Machek wrote: > .. > Problem is that suspending _with_ removable mass storage devices > attached just will not work. User will unplug them, then complain > about corruption. Advanced user will unplug them, work with them > somewhere else, replug them, then loose filesystem. > > Feel free to

Re: [linux-usb-devel] [PATCH] usb-serial regression fix

2007-03-13 Thread Mark Lord
Jim Radford wrote: > ... > This patch reverts d9a7ecacac5f8274d2afce09aadcf37bdb42b93a since it > breaks drivers that need to access the ->port[] array in shutdown > (most of them). Patch applied, tested, works for me. Signed-Off: Jim Radford <[EMAIL PROTECTED]> Acked-

Re: [linux-usb-devel] [PATCH] usb-serial regression fix

2007-03-13 Thread Mark Lord
Jim Radford wrote: > On Mon, Mar 12, 2007 at 09:55:14PM -0400, Mark Lord wrote: > >> So where does the memory get freed -- the structure pointed at >> by the serial->port[i] thingie ? It's not a leak, is it? > > It gets free'd through device_unregister &g

Re: [linux-usb-devel] [PATCH] usb-serial regression fix

2007-03-13 Thread Mark Lord
Oliver Neukum wrote: > > If we get to destroy_serial(), how can ports still be open? (1) open up a ckermit session on /dev/usb_serial_port_0. (2) suspend the machine (to RAM). (3) the suspend logic "removes" all USB devices. Cheers

Re: [linux-usb-devel] [PATCH] usb-serial regression fix

2007-03-12 Thread Mark Lord
>>>>> On Mon, Mar 12, 2007 at 04:22:22PM -0400, Mark Lord wrote: >>>>>> Oliver Neukum wrote: >>>>>>>> Mark Lord wrote: >>>>>>>>> Okay, from that part (above), the problem is obvious: >>>>>>>>

Re: [linux-usb-devel] [PATCH] usb-serial regression (Oops) in 2.6.21-rc*

2007-03-12 Thread Mark Lord
Greg KH wrote: >>>> Mark Lord wrote: >> This patch fixes the Oops that otherwise occurs whenever >> a USB serial adapter is unplugged from a system, as well >> the Oops seen when one is in use before resume (to RAM). >> >> GregKH: This needs to go into 2

Re: [linux-usb-devel] usb device problem

2006-06-07 Thread Mark Lord
Jiri Slaby wrote: > Jiri Slaby napsal(a): >> Mark Lord napsal(a): >>> Mmm.. okay, a quick glance at the USB storage code revealed one instance: >>> >>>/* Did we transfer less than the minimum amount required? */ >>>if (srb->result ==

Re: [linux-usb-devel] usb device problem

2006-06-06 Thread Mark Lord
Mark Lord wrote: > Jiri Slaby wrote: >> Mark Lord napsal(a): >>> Jiri Slaby wrote: .. >>>> --- >>>> sd 10:0:0:0: SCSI error: return code = 0x1007 >>>> end_request: I/O error, dev sdb, sector 1575 .. > The 0x1007000 is broken down as: >

Re: [linux-usb-devel] usb device problem

2006-06-06 Thread Mark Lord
Jiri Slaby wrote: > Mark Lord napsal(a): >> Jiri Slaby wrote: >>> Hello, >>> >>> I get this with 2.6.17-rc5-mm3 kernel: >> .. >>> usb-storage: device found at 10 >>> usb-storage: waiting for device to settle before scanning >>>

Re: [linux-usb-devel] usb device problem

2006-06-06 Thread Mark Lord
Jiri Slaby wrote: > Hello, > > I get this with 2.6.17-rc5-mm3 kernel: .. > usb-storage: device found at 10 > usb-storage: waiting for device to settle before scanning > Vendor: Model: Rev: > Type: Direct-Access ANSI SCSI revision: 00 > SCSI de

Re: [linux-usb-devel] ANNOUNCE: Linux UWB and Wireless USB project

2006-06-06 Thread Mark Lord
Pavel Machek wrote: > > Common cellphones are 2W, iirc; (so it would be ~1mW) but I was more > interested in system power consumption. WIFI is too power intensive > for a cellphone (mostly). Is this designed to go into cellphones? > notebooks? Most mobile phones in North America typically max out

Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs

2006-06-01 Thread Mark Lord
Andrew Morton wrote: > On Thu, 01 Jun 2006 02:18:20 -0700 > .. >> This is generating a lot of grief and appears to be unnecessarily >> strict. Common USB sticks with a MaxPower value just above 100mA, for >> instance, typically work fine on unpowered hubs supplying 100mA. >> >> Is a more user-frien

Re: [linux-usb-devel] Problems with USB setup with Linux 2.6.16

2006-04-03 Thread Mark Lord
Joshua Kwan wrote: On 04/02/2006 07:09 PM, Alan Stern wrote: If you were to continue looking farther down in the log, you would find that ehci-hcd sees all those devices. Those that can run at high speed continue using the EHCI controller. For those that can't, the switch is reset and they ge

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

2006-02-27 Thread Mark Lord
Adrian Bunk wrote: Subject: 2.6.16-rc[34]: resume-from-RAM unreliable (SATA) References : http://lkml.org/lkml/2006/2/20/159 Submitter : Mark Lord <[EMAIL PROTECTED]> Handled-By : Randy Dunlap <[EMAIL PROTECTED]> Status : one of Randy's patches seems to fix it I&#x

Re: [linux-usb-devel] Re: /dev/sr0 not ready, but working

2005-11-24 Thread Mark Lord
Jeff Garzik wrote: On Tue, Nov 22, 2005 at 01:56:39PM -0500, Alan Stern wrote: .. Or maybe not... Maybe the drive _does_ send those "not ready" messages and the IDE driver ignores them instead of printing them in the system log. Or perhaps those messages are sent by the bus interface control

[linux-usb-devel] Re: 2.6.14-rc4-mm1: USB suspend regression

2005-10-19 Thread Mark Lord
None of the recent kernels can resume-from-ram reliably for me if I use CONFIG_USB_SUSPEND (set). But with that option UNset, suspend/resume to/from RAM works very well. BUT.. new in 2.6.14-rc*, is that the ehci_hcd USB hispeed driver no longer survives resume from ram. I have to unload/reload

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

2005-09-08 Thread Mark Lord
Is someone actively working on USB Suspend/Resume support yet? I ask because this is becoming more and more important as people shift more to portable notebook computers with Linux. Enabling CONFIG_USB_SUSPEND is currently a surefire way to guarantee crashing my own notebook on suspend/resume, w