aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/isd200.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-04-01 15:42:25 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-04-01 15:42:25 -0400
commitfcd3ec6960728ff7b4b598c62a68847aa03a94a5 (patch)
tree43d0070d8d47460406d058d8e77d5e46add263f9 /drivers/usb/storage/isd200.c
parentdafd01cc14a38690c87981eb2670d9c95f799ffd (diff)
isd200: use ATA_* defines instead of *_STAT and *_ERR ones
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/usb/storage/isd200.c')
-rw-r--r--drivers/usb/storage/isd200.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c
index 38caed84c993..fdba2f69d4c9 100644
--- a/drivers/usb/storage/isd200.c
+++ b/drivers/usb/storage/isd200.c
@@ -420,19 +420,19 @@ static void isd200_build_sense(struct us_data *us, struct scsi_cmnd *srb)
420 buf->Flags = UNIT_ATTENTION; 420 buf->Flags = UNIT_ATTENTION;
421 buf->AdditionalSenseCode = 0; 421 buf->AdditionalSenseCode = 0;
422 buf->AdditionalSenseCodeQualifier = 0; 422 buf->AdditionalSenseCodeQualifier = 0;
423 } else if(error & MCR_ERR) { 423 } else if (error & ATA_MCR) {
424 buf->ErrorCode = 0x70 | SENSE_ERRCODE_VALID; 424 buf->ErrorCode = 0x70 | SENSE_ERRCODE_VALID;
425 buf->AdditionalSenseLength = 0xb; 425 buf->AdditionalSenseLength = 0xb;
426 buf->Flags = UNIT_ATTENTION; 426 buf->Flags = UNIT_ATTENTION;
427 buf->AdditionalSenseCode = 0; 427 buf->AdditionalSenseCode = 0;
428 buf->AdditionalSenseCodeQualifier = 0; 428 buf->AdditionalSenseCodeQualifier = 0;
429 } else if(error & TRK0_ERR) { 429 } else if (error & ATA_TRK0NF) {
430 buf->ErrorCode = 0x70 | SENSE_ERRCODE_VALID; 430 buf->ErrorCode = 0x70 | SENSE_ERRCODE_VALID;
431 buf->AdditionalSenseLength = 0xb; 431 buf->AdditionalSenseLength = 0xb;
432 buf->Flags = NOT_READY; 432 buf->Flags = NOT_READY;
433 buf->AdditionalSenseCode = 0; 433 buf->AdditionalSenseCode = 0;
434 buf->AdditionalSenseCodeQualifier = 0; 434 buf->AdditionalSenseCodeQualifier = 0;
435 } else if(error & ECC_ERR) { 435 } else if (error & ATA_UNC) {
436 buf->ErrorCode = 0x70 | SENSE_ERRCODE_VALID; 436 buf->ErrorCode = 0x70 | SENSE_ERRCODE_VALID;
437 buf->AdditionalSenseLength = 0xb; 437 buf->AdditionalSenseLength = 0xb;
438 buf->Flags = DATA_PROTECT; 438 buf->Flags = DATA_PROTECT;
@@ -945,22 +945,22 @@ static int isd200_try_enum(struct us_data *us, unsigned char master_slave,
945 break; 945 break;
946 946
947 if (!detect) { 947 if (!detect) {
948 if (regs[ATA_REG_STATUS_OFFSET] & BUSY_STAT) { 948 if (regs[ATA_REG_STATUS_OFFSET] & ATA_BUSY) {
949 US_DEBUGP(" %s status is still BSY, try again...\n",mstr); 949 US_DEBUGP(" %s status is still BSY, try again...\n",mstr);
950 } else { 950 } else {
951 US_DEBUGP(" %s status !BSY, continue with next operation\n",mstr); 951 US_DEBUGP(" %s status !BSY, continue with next operation\n",mstr);
952 break; 952 break;
953 } 953 }
954 } 954 }
955 /* check for BUSY_STAT and */ 955 /* check for ATA_BUSY and */
956 /* WRERR_STAT (workaround ATA Zip drive) and */ 956 /* ATA_DF (workaround ATA Zip drive) and */
957 /* ERR_STAT (workaround for Archos CD-ROM) */ 957 /* ATA_ERR (workaround for Archos CD-ROM) */
958 else if (regs[ATA_REG_STATUS_OFFSET] & 958 else if (regs[ATA_REG_STATUS_OFFSET] &
959 (BUSY_STAT | WRERR_STAT | ERR_STAT )) { 959 (ATA_BUSY | ATA_DF | ATA_ERR)) {
960 US_DEBUGP(" Status indicates it is not ready, try again...\n"); 960 US_DEBUGP(" Status indicates it is not ready, try again...\n");
961 } 961 }
962 /* check for DRDY, ATA devices set DRDY after SRST */ 962 /* check for DRDY, ATA devices set DRDY after SRST */
963 else if (regs[ATA_REG_STATUS_OFFSET] & READY_STAT) { 963 else if (regs[ATA_REG_STATUS_OFFSET] & ATA_DRDY) {
964 US_DEBUGP(" Identified ATA device\n"); 964 US_DEBUGP(" Identified ATA device\n");
965 info->DeviceFlags |= DF_ATA_DEVICE; 965 info->DeviceFlags |= DF_ATA_DEVICE;
966 info->DeviceHead = master_slave; 966 info->DeviceHead = master_slave;