Skip to contentSkip to conversation

libata: add SATA PMP revision information for spec 1.2

PATCH Applied Shane Huang 2 participants 2 messages Sep 8, 2009 – Sep 9, 2009 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata: add SATA PMP revision information for spec 1.2

This small patch is just adding the information for PMP spec 1.2

---
 drivers/ata/libata-pmp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/ata/libata-pmp.c +2 -0
index 619f2c3..51f0ffb 100644
@@ -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))
Applied
#1 lore raw
Quoted 6 lines · Shane Huang

This small patch is just adding the information for PMP spec 1.2

---
  drivers/ata/libata-pmp.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

applied