Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: enable quirk from jmicron JMB350 for JMB394

Without the patch the kernel generates the following error.

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.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: <linux-ide@vger.kernel.org>
Cc: stable@vger.kernel.org

authored by

Denis V. Lunev and committed by
Tejun Heo
efb9e0f4 49c8f1ff

+5 -2
+5 -2
drivers/ata/libata-pmp.c
··· 447 447 * otherwise. Don't try hard to recover it. 448 448 */ 449 449 ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY; 450 - } else if (vendor == 0x197b && devid == 0x2352) { 451 - /* chip found in Thermaltake BlackX Duet, jmicron JMB350? */ 450 + } else if (vendor == 0x197b && (devid == 0x2352 || devid == 0x0325)) { 451 + /* 452 + * 0x2352: found in Thermaltake BlackX Duet, jmicron JMB350? 453 + * 0x0325: jmicron JMB394. 454 + */ 452 455 ata_for_each_link(link, ap, EDGE) { 453 456 /* SRST breaks detection and disks get misclassified 454 457 * LPM disabled to avoid potential problems