Skip to contentSkip to conversation

ata: enable quirk from jmicron JMB350 for JMB394

PATCH In review Denis V. Lunev 2 participants 2 messages Jan 30, 2014 – Jan 31, 2014 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: enable quirk from jmicron JMB350 for JMB394

From: "Denis V. Lunev" <[email protected]>

Without the patch the kernel blames about
ata11.15: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata11.15: Port Multiplier vendor mismatch '0x197b' != '0x123' ata11.15: PMP revalidation failed (errno=-19) ata11.15: failed to recover PMP after 5 tries, giving up
This patch helps to bypass this error and the device becomes functional.

---
 drivers/ata/libata-pmp.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/ata/libata-pmp.c +3 -2
index 20fd337..4e69945 100644
@@ -447,8 +447,9 @@ static void sata_pmp_quirks(struct ata_port *ap)
 		 * otherwise.  Don't try hard to recover it.
 		 */
 		ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY;
-	} else if (vendor == 0x197b && devid == 0x2352) {
-		/* chip found in Thermaltake BlackX Duet, jmicron JMB350? */
+	} else if (vendor == 0x197b && (devid == 0x2352 || devid == 0x0325)) {
+		/* chip found in Thermaltake BlackX Duet, jmicron JMB350?
+		 * 0x0325 jmicron JMB394 */
 		ata_for_each_link(link, ap, EDGE) {
 			/* SRST breaks detection and disks get misclassified
 			 * LPM disabled to avoid potential problems
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 10 lines · Denis V. Lunev

From: "Denis V. Lunev" <[email protected]>

Without the patch the kernel blames about
ata11.15: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata11.15: Port Multiplier vendor mismatch '0x197b' != '0x123' ata11.15: PMP revalidation failed (errno=-19) ata11.15: failed to recover PMP after 5 tries, giving up
This patch helps to bypass this error and the device becomes functional.

Quoted 3 lines

Aplied to libata/for-3.14-fixes w/ minor description and comment updates.

Thanks.

Signature · 1 line
tejun