Re: Retry scsi_mode_sense if UNIT ATTENTION occurs

Matthew Dharm
2003-07-30T19:10:49Z

[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]

On Wed, Jul 30, 2003 at 10:09:23AM -0400, Alan Stern wrote:
> On 29 Jul 2003, James Bottomley wrote:
>
> > On Mon, 2003-07-28 at 10:10, Alan Stern wrote:
> > > Jens:
> > >
> > > This patch changes the scsi_mode_sense() routine to retry up to a total of
> > > 3 times if a command fails with a UNIT ATTENTION sense key value.
> > >
> > > Without this change, sr.c does not properly read the capabilities mode
> > > page for a just-powered-up cdrom drive -- it gives up upon receiving a
> > > Device Reset Occurred code.
> > >
> > > The patch looks lengthy, but most of it just changes the indentation
> > > level.
> >
> > Actually, this isn't really the correct place for it. The problem
> > occurs in sr not sd because sd already does an initial TUR to clear the
> > unit attention.
> >
> > Before OLS got in the way and I got submerged in writing presentations,
> > I had some patches that Matt Dharm was testing out to add the TUR to the
> > initial sr code.
> >
> > I'll pick that up (...er, when I get caught back up at work).
>
> Okay, that ought to take care of it just as well.

I had been wondering what ever happened to that... James, I presume you
still have my last set of data, regarding my CD-RW initialization?

Matt

--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver

G: Let me guess, you started on the 'net with AOL, right?
C: WOW! d00d! U r leet!
-- Greg and Customer
User Friendly, 2/12/1999

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]