From: Tejun Heo <tj@kernel.org>
To: Tim Small <tim@seoss.co.uk>
Cc: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: Re: SiI 3726 pmp doesn't work with 2.6.38 and Marvell 88SE9123 AHCI controller
Date: Thu, 9 Jun 2011 16:37:55 +0200 [thread overview]
Message-ID: <20110609143755.GA2615@htj.dyndns.org> (raw)
In-Reply-To: <4DEE6831.9020501@seoss.co.uk>
Hello,
On Tue, Jun 07, 2011 at 07:04:33PM +0100, Tim Small wrote:
> --- libata-pmp.c.orig 2010-11-22 04:34:38.000000000 +0900
> +++ libata-pmp.c 2010-11-22 04:42:59.000000000 +0900
> @@ -286,6 +286,8 @@
> reason = "failed to write Sil3726 Private Register";
> goto fail;
> }
> + /* nr_ports decrement */
> + nr_ports--;
> }
>
> if (print_info) {
>
>
>
> ... and was going to give it a go, but it's not really obvious to me
> what it does (aside from the err great comment of course), and I
> couldn't find any other references to this patch on the web, and thought
> someone here might be able to shed some light on it...
3726 has an extra port for SEMB device (ie. it's not connected to
actual downstream port) and the above will make the kernel ignore that
port completely. Maybe we shouldn't issue hardreset either. Can you
please try the following patch (without the nr_ports-- hack)?
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c
index f06b7ea..3ab4784 100644
--- a/drivers/ata/libata-pmp.c
+++ b/drivers/ata/libata-pmp.c
@@ -398,7 +398,8 @@ static void sata_pmp_quirks(struct ata_port *ap)
/* port 5 is for SEMB device and it doesn't like SRST */
if (link->pmp == 5)
- link->flags |= ATA_LFLAG_NO_SRST |
+ link->flags |= ATA_LFLAG_NO_HRST |
+ ATA_LFLAG_NO_SRST |
ATA_LFLAG_ASSUME_SEMB;
}
} else if (vendor == 0x1095 && devid == 0x4723) {
--
tejun
next prev parent reply other threads:[~2011-06-09 14:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 18:04 SiI 3726 pmp doesn't work with 2.6.38 and Marvell 88SE9123 AHCI controller Tim Small
2011-06-09 14:37 ` Tejun Heo [this message]
2011-06-09 21:11 ` Tim Small
2011-06-10 10:24 ` Tejun Heo
2011-06-10 10:31 ` Hubert Bailey
2011-06-10 16:43 ` Tim Small
2011-07-06 20:34 ` Tim Small
2011-07-07 12:13 ` Tim Small
2011-07-07 18:30 ` Tim Small
2011-07-07 18:38 ` Tim Small
2011-07-08 4:42 ` Hubert Bailey
2011-07-08 9:53 ` Tim Small
2011-07-13 7:34 ` Tejun Heo
2011-07-07 18:43 ` Tim Small
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110609143755.GA2615@htj.dyndns.org \
--to=tj@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=tim@seoss.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).