Skip to content

Commit

Permalink
[libata] SCSI: simulator version, not device version, belongs in VPD
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Jeff Garzik committed Oct 12, 2007
1 parent 24f7568 commit c78968b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@

#include "libata.h"

#define DRV_VERSION "2.21" /* must be exactly four chars */


/* debounce timing parameters in msecs { interval, duration, timeout } */
const unsigned long sata_deb_timing_normal[] = { 5, 100, 2000 };
Expand Down
5 changes: 3 additions & 2 deletions drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1831,8 +1831,9 @@ unsigned int ata_scsiop_inq_89(struct ata_scsi_args *args, u8 *rbuf,
pbuf[2] = (0x238 >> 8); /* page size fixed at 238h */
pbuf[3] = (0x238 & 0xff);

memcpy(&pbuf[8], "ATA ", 8);
ata_id_string(args->id, &pbuf[16], ATA_ID_PROD, 16);
memcpy(&pbuf[8], "linux ", 8);
memcpy(&pbuf[16], "libata ", 16);
memcpy(&pbuf[32], DRV_VERSION, 4);
ata_id_string(args->id, &pbuf[32], ATA_ID_FW_REV, 4);

/* we don't store the ATA device signature, so we fake it */
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define __LIBATA_H__

#define DRV_NAME "libata"
#define DRV_VERSION "2.21" /* must be exactly four chars */

struct ata_scsi_args {
struct ata_device *dev;
Expand Down

0 comments on commit c78968b

Please sign in to comment.