summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorShane Huang <shane.huang@amd.com>2009-09-08 11:37:01 +0200
committerJeff Garzik <jgarzik@redhat.com>2009-09-09 03:21:14 +0200
commitdeeb003e5e01c0db02bb68fd9c93faf75ab9002d (patch)
tree5998f81312cbb8276277fa3cae6e13a88df44006 /drivers/ata
parentlibata: fix off-by-one error in ata_tf_read_block() (diff)
downloadlinux-deeb003e5e01c0db02bb68fd9c93faf75ab9002d.tar.xz
linux-deeb003e5e01c0db02bb68fd9c93faf75ab9002d.zip
libata: add SATA PMP revision information for spec 1.2
This small patch is just adding the information for PMP spec 1.2 Signed-off-by: Shane Huang <shane.huang@amd.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-pmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index 619f2c33950e..51f0ffb78cbd 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -221,6 +221,8 @@ static const char *sata_pmp_spec_rev_str(const u32 *gscr)
{
u32 rev = gscr[SATA_PMP_GSCR_REV];
+ if (rev & (1 << 3))
+ return "1.2";
if (rev & (1 << 2))
return "1.1";
if (rev & (1 << 1))