diff options
Diffstat (limited to 'uClinux-2.4.20-uc1/drivers/usb/storage/scsiglue.c')
-rw-r--r-- | uClinux-2.4.20-uc1/drivers/usb/storage/scsiglue.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/uClinux-2.4.20-uc1/drivers/usb/storage/scsiglue.c b/uClinux-2.4.20-uc1/drivers/usb/storage/scsiglue.c index 316a7f5..cc9738f 100644 --- a/uClinux-2.4.20-uc1/drivers/usb/storage/scsiglue.c +++ b/uClinux-2.4.20-uc1/drivers/usb/storage/scsiglue.c @@ -459,7 +459,11 @@ int usb_stor_scsiSense10to6( Scsi_Cmnd* the10 ) int sgLength=0; US_DEBUGP("-- converting 10 byte sense data to 6 byte\n"); +#ifndef CONFIG_BOARD_W90N745 the10->cmnd[0] = the10->cmnd[0] & 0xBF; +#else + ((unsigned char *)((unsigned long)the10->cmnd | 0x80000000))[0] = the10->cmnd[0] & 0xBF; +#endif /* Determine buffer locations */ usb_stor_scsiSenseParseBuffer( the10, &the6Locations, &the10Locations, @@ -638,7 +642,11 @@ int usb_stor_scsiSense6to10( Scsi_Cmnd* the6 ) int lsb=0,lsi=0,ldb=0,ldi=0; US_DEBUGP("-- converting 6 byte sense data to 10 byte\n"); +#ifndef CONFIG_BOARD_W90N745 the6->cmnd[0] = the6->cmnd[0] | 0x40; +#else + ((unsigned char *)((unsigned long)the6->cmnd | 0x80000000))[0] = the6->cmnd[0] | 0x40; +#endif /* Determine buffer locations */ usb_stor_scsiSenseParseBuffer( the6, &the6Locations, &the10Locations, |