Re: [Bug] oops in usb_suspend_both with FTDI USB-serial-converter connected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg:

There's a problem in the usb-serial core.  When a serial driver
registers itself, the core automatically sets the .supports_autosuspend
flag in the usb_driver structure.  The problem is that many of the
serial drivers (such as ftdi_sio) don't define their own suspend and
resume routines.  Consequently when the system tries to autosuspend one
of these drivers, it ends up calling a NULL pointer.

I gather the way this is supposed to work is that each suspend or
resume operation goes through usb_serial_suspend() or
usb_serial_resume(), which then calls the appropriate method in the
serial driver if one is defined.  Is that the right approach?

Assuming it is, I've got a patch to fix the bug.  I'll submit it if you
confirm that my impression is correct.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux