On Thu, 6 Jun 2019, Bollinger, Seth wrote: > > On Jun 6, 2019, at 9:36 AM, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > > > > If the descriptor changes between resets, that means that something > > changed and we need to start over with it. What is the problem that > > this is causing > > We have code doing a USBDEVFS_RESET that fails when the ioctl returns EPERM. EPERM means that the file descriptor was not opened with write access. It has nothing to do with reset failures. > I think the solution might be to simply not do the reset for this device, but wanted to check if anyone else had encountered this issue. It's true that many programs using usbfs do unnecessary resets. If you don't need it, don't do it! Alan Stern