mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ata: enable quirk from jmicron JMB350 for JMB394
commit efb9e0f4f4
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
494dac8e33
commit
13e60b225f
1 changed files with 5 additions and 2 deletions
|
@ -447,8 +447,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
|
||||||
* otherwise. Don't try hard to recover it.
|
* otherwise. Don't try hard to recover it.
|
||||||
*/
|
*/
|
||||||
ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY;
|
ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY;
|
||||||
} else if (vendor == 0x197b && devid == 0x2352) {
|
} else if (vendor == 0x197b && (devid == 0x2352 || devid == 0x0325)) {
|
||||||
/* chip found in Thermaltake BlackX Duet, jmicron JMB350? */
|
/*
|
||||||
|
* 0x2352: found in Thermaltake BlackX Duet, jmicron JMB350?
|
||||||
|
* 0x0325: jmicron JMB394.
|
||||||
|
*/
|
||||||
ata_for_each_link(link, ap, EDGE) {
|
ata_for_each_link(link, ap, EDGE) {
|
||||||
/* SRST breaks detection and disks get misclassified
|
/* SRST breaks detection and disks get misclassified
|
||||||
* LPM disabled to avoid potential problems
|
* LPM disabled to avoid potential problems
|
||||||
|
|
Loading…
Reference in a new issue