]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.4.83/ata-enable-quirk-from-jmicron-jmb350-for-jmb394.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.4.83 / ata-enable-quirk-from-jmicron-jmb350-for-jmb394.patch
1 From efb9e0f4f43780f0ae0c6428d66bd03e805c7539 Mon Sep 17 00:00:00 2001
2 From: "Denis V. Lunev" <den@openvz.org>
3 Date: Thu, 30 Jan 2014 15:20:30 +0400
4 Subject: ata: enable quirk from jmicron JMB350 for JMB394
5
6 From: "Denis V. Lunev" <den@openvz.org>
7
8 commit efb9e0f4f43780f0ae0c6428d66bd03e805c7539 upstream.
9
10 Without the patch the kernel generates the following error.
11
12 ata11.15: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
13 ata11.15: Port Multiplier vendor mismatch '0x197b' != '0x123'
14 ata11.15: PMP revalidation failed (errno=-19)
15 ata11.15: failed to recover PMP after 5 tries, giving up
16
17 This patch helps to bypass this error and the device becomes
18 functional.
19
20 Signed-off-by: Denis V. Lunev <den@openvz.org>
21 Signed-off-by: Tejun Heo <tj@kernel.org>
22 Cc: <linux-ide@vger.kernel.org>
23 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24
25 ---
26 drivers/ata/libata-pmp.c | 7 +++++--
27 1 file changed, 5 insertions(+), 2 deletions(-)
28
29 --- a/drivers/ata/libata-pmp.c
30 +++ b/drivers/ata/libata-pmp.c
31 @@ -447,8 +447,11 @@ static void sata_pmp_quirks(struct ata_p
32 * otherwise. Don't try hard to recover it.
33 */
34 ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY;
35 - } else if (vendor == 0x197b && devid == 0x2352) {
36 - /* chip found in Thermaltake BlackX Duet, jmicron JMB350? */
37 + } else if (vendor == 0x197b && (devid == 0x2352 || devid == 0x0325)) {
38 + /*
39 + * 0x2352: found in Thermaltake BlackX Duet, jmicron JMB350?
40 + * 0x0325: jmicron JMB394.
41 + */
42 ata_for_each_link(link, ap, EDGE) {
43 /* SRST breaks detection and disks get misclassified
44 * LPM disabled to avoid potential problems