libata: add SATA PMP revision information for spec 1.2
authorShane Huang <shane.huang@amd.com>
Tue, 8 Sep 2009 09:37:01 +0000 (17:37 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 9 Sep 2009 01:21:14 +0000 (21:21 -0400)
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>
drivers/ata/libata-pmp.c

index 619f2c33950e5dab2692cae7fdb3df0310310417..51f0ffb78cbd62af877453cd2bea3a07e999cc46 100644 (file)
@@ -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))