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

From: Alan Stern
Date: Mon Jul 15 2024 - 10:22:14 EST


On Mon, Jul 15, 2024 at 10:53:14AM +0200, Oliver Neukum wrote:
>
>
> On 11.07.24 16:41, Alan Stern wrote:
> > On Thu, Jul 11, 2024 at 10:59:56AM +0200, Oliver Neukum wrote:
>
> > > I am sorry, but this implementation has some fundamental issues.
> >
> > Agreed, but the solution is pretty simple. Because the device was
> > suspended, the userspace driver must have enabled suspend via the
> > USBDEVFS_ALLOW_SUSPEND ioctl.
>
> The whole system could have been suspended, in particularly to S4.

You are right. I was thinking of runtime suspend, not system suspend.
My mistake.

Alan Stern