This patch moves the initialization of the SCSI residue field to be in just a couple of places, instead of all over the map. It's code consolidation.
Greg, please apply. Matt # This is a BitKeeper generated patch for the following project: # Project Name: greg k-h's linux 2.5 USB kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.639 -> 1.640 # drivers/usb/storage/datafab.c 1.14 -> 1.15 # drivers/usb/storage/isd200.c 1.19 -> 1.20 # drivers/usb/storage/jumpshot.c 1.17 -> 1.18 # drivers/usb/storage/shuttle_usbat.c 1.20 -> 1.21 # drivers/usb/storage/sddr55.c 1.9 -> 1.10 # drivers/usb/storage/sddr09.c 1.21 -> 1.22 # drivers/usb/storage/transport.c 1.59 -> 1.60 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/11/03 [EMAIL PROTECTED] 1.640 # Move residue initialization to more centralized locations. # -------------------------------------------- # diff -Nru a/drivers/usb/storage/datafab.c b/drivers/usb/storage/datafab.c --- a/drivers/usb/storage/datafab.c Sun Nov 3 14:52:41 2002 +++ b/drivers/usb/storage/datafab.c Sun Nov 3 14:52:41 2002 @@ -520,7 +520,6 @@ 0x00, 0x80, 0x00, 0x01, 0x1F, 0x00, 0x00, 0x00 }; - srb->resid = 0; if (!us->extra) { us->extra = kmalloc(sizeof(struct datafab_info), GFP_NOIO); if (!us->extra) { diff -Nru a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c --- a/drivers/usb/storage/isd200.c Sun Nov 3 14:52:41 2002 +++ b/drivers/usb/storage/isd200.c Sun Nov 3 14:52:41 2002 @@ -817,6 +817,7 @@ int transferStatus; /* send the command to the transport layer */ + srb->resid = 0; transferStatus = isd200_Bulk_transport(us, srb, ataCdb, sizeof(ataCdb->generic)); switch (transferStatus) { diff -Nru a/drivers/usb/storage/jumpshot.c b/drivers/usb/storage/jumpshot.c --- a/drivers/usb/storage/jumpshot.c Sun Nov 3 14:52:41 2002 +++ b/drivers/usb/storage/jumpshot.c Sun Nov 3 14:52:41 2002 @@ -464,7 +464,6 @@ 0x00, 0x80, 0x00, 0x01, 0x1F, 0x00, 0x00, 0x00 }; - srb->resid = 0; if (!us->extra) { us->extra = kmalloc(sizeof(struct jumpshot_info), GFP_NOIO); if (!us->extra) { diff -Nru a/drivers/usb/storage/sddr09.c b/drivers/usb/storage/sddr09.c --- a/drivers/usb/storage/sddr09.c Sun Nov 3 14:52:41 2002 +++ b/drivers/usb/storage/sddr09.c Sun Nov 3 14:52:41 2002 @@ -1372,7 +1372,6 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; - srb->resid = 0; info = (struct sddr09_card_info *)us->extra; if (!info) { nand_init_ecc(); diff -Nru a/drivers/usb/storage/sddr55.c b/drivers/usb/storage/sddr55.c --- a/drivers/usb/storage/sddr55.c Sun Nov 3 14:52:41 2002 +++ b/drivers/usb/storage/sddr55.c Sun Nov 3 14:52:41 2002 @@ -746,7 +746,6 @@ unsigned short pages; struct sddr55_card_info *info; - srb->resid = 0; if (!us->extra) { us->extra = kmalloc( sizeof(struct sddr55_card_info), GFP_NOIO); diff -Nru a/drivers/usb/storage/shuttle_usbat.c b/drivers/usb/storage/shuttle_usbat.c --- a/drivers/usb/storage/shuttle_usbat.c Sun Nov 3 14:52:41 2002 +++ b/drivers/usb/storage/shuttle_usbat.c Sun Nov 3 14:52:41 2002 @@ -775,7 +775,6 @@ int i; char string[64]; - srb->resid = 0; len = srb->request_bufflen; /* Send A0 (ATA PACKET COMMAND). diff -Nru a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c --- a/drivers/usb/storage/transport.c Sun Nov 3 14:52:41 2002 +++ b/drivers/usb/storage/transport.c Sun Nov 3 14:52:41 2002 @@ -784,6 +784,7 @@ int result; /* send the command to the transport layer */ + srb->resid = 0; result = us->transport(srb, us); /* if the command gets aborted by the higher layers, we need to -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver We can customize our colonels. -- Tux User Friendly, 12/1/1998
msg09197/pgp00000.pgp
Description: PGP signature