Re: [PATCH next] usb: usbfs: Add reset_resume for usbfs

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

 



On 17.07.24 15:44, Alan Stern wrote:
On Wed, Jul 17, 2024 at 11:13:39AM +0800, Hongyu Xie wrote:
From: Hongyu Xie <xiehongyu1@xxxxxxxxxx>



On 2024/7/17 10:05, Alan Stern wrote:


That's right, it should be possible to avoid rebinding.  But we can't do
this until we have some way to tell the userspace driver that a reset
has occurred.  Oliver's idea is to do this by returning a special error
code for the next ioctl, and I can't think of anything better.

I wish you could, for this is supremely inelegant. In particular
it forces user space to reinit the device when it is needed, instead
of when it is idle.

Yet, I think conceptually the first ioctl absolutely must fail,
because the device state has been lost.

	Regards
		Oliver





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

  Powered by Linux