Re: USB device reset while printing

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

 



On Thu, 15 Mar 2012, Oliver Neukum wrote:

> Am Donnerstag, 15. M� 2012, 15:37:16 schrieb Alan Stern:
> > On Thu, 15 Mar 2012, Wolfgang Rosenauer wrote:
> 
> > > Sorry I don't know anything about kernel components and USB stuff just
> > > thinking out loud that this does not look like a user compatible
> > > behaviour ;-)
> > 
> > If more printers show up with the same sort of problem, or lots of
> > people using the same model HP Officejet run across the same thing,
> > adding a new rule to the udev distribution may be the best answer.
> 
> But the command crashing the reader could come from user space,
> couldn't it? So I am afraid this is no solution.

It is _a_ solution (it allows Wolfgang to print again), just not a 
_perfect_ solution.

> It seems to me that we
> need to make the SCSI layer avoid a reset of this device. Then at least
> the printer would work reliably.

But what happens if somebody does put in a memory card and the card 
reader needs to be reset?  Data could get lost.

A more secure approach would be to prevent usb-storage from binding to 
the card reader at all.  But this would have the disadvantage that 
people wouldn't be able to use the card reader even while they weren't 
printing.

I can't think of any perfect solutions.  Adding pre_reset and 
post_reset support to usblp would be a good step, but I don't know 
whether it would solve the problem.  Probably not.

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