mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Dharm <mdharm-kernel@one-eyed-alien.net>
To: Greg KH <greg@kroah.com>
Cc: davej@codemonkey.org.uk, torvalds@transmeta.com,
	linux-kernel@vger.kernel.org
Subject: Re: mysterious shifts in USB storage drivers.
Date: Thu, 15 May 2003 00:14:59 -0700	[thread overview]
Message-ID: <20030515001459.A2458@one-eyed-alien.net> (raw)
In-Reply-To: <20030515045637.GB5779@kroah.com>; from greg@kroah.com on Wed, May 14, 2003 at 09:56:37PM -0700

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

Hrm... nothing in the logs, but I remember this.  Apparently, the
srb->result field actually requires this format.  If you look at other LLDD
code in linux/drivers/scsi/ you'll see that the << 1 is common.

This should be in 2.5... I thought it already was.

Matt

On Wed, May 14, 2003 at 09:56:37PM -0700, Greg KH wrote:
> On Thu, May 15, 2003 at 04:31:17AM +0100, davej@codemonkey.org.uk wrote:
> > These went into 2.4 over a year ago. Unfortunatly,
> > with no comments in the logs.
> 
> My logs show this went into 2.4 with this comment:
> 
>   usb-storage: ISD-200 fixes, more unusual devices, and many cleanups
>   
>   (o) Fix to ISD-200 driver to work on big-endian platforms, including PPC.
>       This has been in circulation for a while, and seems well-tested.
>   (o) Add several unusual_devs.h entries
>   (o) A couple more debugging improvements
>   (o) A slight improvement to the EXPERIMENTAL HP82xx driver, which should
>       help with newer units.
>   (o) A _major_ cleanup of error handling code throughout the driver.  Note
>       that this is in preparation to deploy the new error-handling state
>       machine (special thanks to Alan Sterm for this work).  Right now, the
>       optimizations are simple and straightforward (elimination of redundant
>       code paths, etc).  Nothing tremendous, but it looks kinda invasive.
> 
> So this was a tiny part of a bigger patch.  I defer to Matt as to if
> this kind of change should be put into 2.5.
> 
> thanks,
> 
> greg k-h
> 
> > diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/usb/storage/datafab.c linux-2.5/drivers/usb/storage/datafab.c
> > --- bk-linus/drivers/usb/storage/datafab.c	2003-04-10 06:01:25.000000000 +0100
> > +++ linux-2.5/drivers/usb/storage/datafab.c	2003-03-17 23:42:38.000000000 +0000
> > @@ -670,7 +670,7 @@ int datafab_transport(Scsi_Cmnd * srb, s
> >  			srb->result = SUCCESS;
> >  		} else {
> >  			info->sense_key = UNIT_ATTENTION;
> > -			srb->result = CHECK_CONDITION << 1;
> > +			srb->result = CHECK_CONDITION;
> >  		}
> >  		return rc;
> >  	}
> > diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/usb/storage/jumpshot.c linux-2.5/drivers/usb/storage/jumpshot.c
> > --- bk-linus/drivers/usb/storage/jumpshot.c	2003-04-10 06:01:25.000000000 +0100
> > +++ linux-2.5/drivers/usb/storage/jumpshot.c	2003-03-17 23:42:38.000000000 +0000
> > @@ -611,7 +611,7 @@ int jumpshot_transport(Scsi_Cmnd * srb, 
> >  			srb->result = SUCCESS;
> >  		} else {
> >  			info->sense_key = UNIT_ATTENTION;
> > -			srb->result = CHECK_CONDITION << 1;
> > +			srb->result = CHECK_CONDITION;
> >  		}
> >  		return rc;
> >  	}

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

Dudes! May the Open Source be with you.
					-- Eric S. Raymond
User Friendly, 12/3/1998

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

  reply	other threads:[~2003-05-15  7:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-15  3:31 davej
2003-05-15  3:37 ` Linus Torvalds
2003-05-15  4:56 ` Greg KH
2003-05-15  7:14   ` Matthew Dharm [this message]
2003-05-15  8:07     ` Greg KH
2003-05-15 14:31 ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030515001459.A2458@one-eyed-alien.net \
    --to=mdharm-kernel@one-eyed-alien.net \
    --cc=davej@codemonkey.org.uk \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®