From: Wolfram Sang <w.sang@pengutronix.de>
To: Eric Miao <eric.miao@linaro.org>
Cc: eric@eukrea.com, linux-ide@vger.kernel.org,
Richard Zhu <richard.zhu@linaro.org>,
kernel@pengutronix.de, avorontsov@ru.mvista.com,
jgarzik@pobox.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH V6 2/5] ahci_plt Add the board_ids and pi refer to different features
Date: Mon, 29 Aug 2011 13:02:16 +0200 [thread overview]
Message-ID: <20110829110216.GI24524@pengutronix.de> (raw)
In-Reply-To: <CAMPhdO8k-boE0p0J_60VrS3LBdNaJRfJ6z_HCHLiRbQtESOJFw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2740 bytes --]
On Mon, Aug 29, 2011 at 05:54:23PM +0800, Eric Miao wrote:
> On Mon, Aug 29, 2011 at 5:37 PM, Wolfram Sang <w.sang@pengutronix.de> wrote:
> > On Mon, Aug 29, 2011 at 04:51:46PM +0800, Eric Miao wrote:
> >> On Mon, Aug 29, 2011 at 4:36 PM, Wolfram Sang <w.sang@pengutronix.de> wrote:
> >> > On Mon, Aug 29, 2011 at 03:18:55PM +0800, Richard Zhu wrote:
> >> >> On imx53 AHCI, soft reset fails with IPMS set when PMP
> >> >> is enabled but SATA HDD/ODD is connected to SATA port,
> >> >> do soft reset again to port 0.
> >> >> So the 'ahci_pmp_retry_srst_ops' is required when imx53
> >> >> ahci is present.
> >> >>
> >> >> Signed-off-by: Richard Zhu <richard.zhu@linaro.org>
> >> >> ---
> >> >> drivers/ata/ahci_platform.c | 44 +++++++++++++++++++++++++++++++++++++-----
> >> >> 1 files changed, 38 insertions(+), 6 deletions(-)
> >> >>
> >> >> diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
> >> >> index 6fef1fa..f32c91e 100644
> >> >> --- a/drivers/ata/ahci_platform.c
> >> >> +++ b/drivers/ata/ahci_platform.c
> >> >> @@ -23,6 +23,41 @@
> >> >> #include <linux/ahci_platform.h>
> >> >> #include "ahci.h"
> >> >>
> >> >> +enum ahci_type {
> >> >> + AHCI, /* standard platform ahci */
> >> >> + IMX53_AHCI, /* ahci on i.mx53 */
> >> >
> >> > How about making all the IMX*-naming more generic because other SoC might need
> >> > this somewhen, too?
> >>
> >> From a practical point of view, we can start with what we know already.
> >> As the SATA controller on "other SoC" so far, we don't know yet if they
> >> show the same issue (which we have to use ahci_pmp_retry_srst_ops).
> >>
> >> So Wolfram, how about we consider a generic one once more controllers
> >> are being added?
> >
> > If we do so later, and we then also change the platform_device_id to something
> > generic, we then also have to change all users, too. Is it so bad to change
> > IMX53_AHCI (and imx53-ahci and alike) to something like "ahci-pmp-retry-srst"
> > (or similar) now?
>
> There are other fields in ata_port_info which might be different between
> boards. Using a SoC specific name as an index to an array of ata_port_info
> will be more flexible, as is adopted in drivers/ata/ahci.c - the PCI driver.
Well, that file also has generic fixups:
[board_ahci_ign_iferr] =
...
which is what I had in mind thinking that the flaw was not too imx53 specific.
If you think I am wrong, then be it. I mainly wanted to avoid the fixups which
might be needed later.
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: w.sang@pengutronix.de (Wolfram Sang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V6 2/5] ahci_plt Add the board_ids and pi refer to different features
Date: Mon, 29 Aug 2011 13:02:16 +0200 [thread overview]
Message-ID: <20110829110216.GI24524@pengutronix.de> (raw)
In-Reply-To: <CAMPhdO8k-boE0p0J_60VrS3LBdNaJRfJ6z_HCHLiRbQtESOJFw@mail.gmail.com>
On Mon, Aug 29, 2011 at 05:54:23PM +0800, Eric Miao wrote:
> On Mon, Aug 29, 2011 at 5:37 PM, Wolfram Sang <w.sang@pengutronix.de> wrote:
> > On Mon, Aug 29, 2011 at 04:51:46PM +0800, Eric Miao wrote:
> >> On Mon, Aug 29, 2011 at 4:36 PM, Wolfram Sang <w.sang@pengutronix.de> wrote:
> >> > On Mon, Aug 29, 2011 at 03:18:55PM +0800, Richard Zhu wrote:
> >> >> On imx53 AHCI, soft reset fails with IPMS set when PMP
> >> >> is enabled but SATA HDD/ODD is connected to SATA port,
> >> >> do soft reset again to port 0.
> >> >> So the 'ahci_pmp_retry_srst_ops' is required when imx53
> >> >> ahci is present.
> >> >>
> >> >> Signed-off-by: Richard Zhu <richard.zhu@linaro.org>
> >> >> ---
> >> >> ?drivers/ata/ahci_platform.c | ? 44 +++++++++++++++++++++++++++++++++++++-----
> >> >> ?1 files changed, 38 insertions(+), 6 deletions(-)
> >> >>
> >> >> diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
> >> >> index 6fef1fa..f32c91e 100644
> >> >> --- a/drivers/ata/ahci_platform.c
> >> >> +++ b/drivers/ata/ahci_platform.c
> >> >> @@ -23,6 +23,41 @@
> >> >> ?#include <linux/ahci_platform.h>
> >> >> ?#include "ahci.h"
> >> >>
> >> >> +enum ahci_type {
> >> >> + ? ? AHCI, ? ? ? ? ? /* standard platform ahci */
> >> >> + ? ? IMX53_AHCI, ? ? /* ahci on i.mx53 */
> >> >
> >> > How about making all the IMX*-naming more generic because other SoC might need
> >> > this somewhen, too?
> >>
> >> From a practical point of view, we can start with what we know already.
> >> As the SATA controller on "other SoC" so far, we don't know yet if they
> >> show the same issue (which we have to use ahci_pmp_retry_srst_ops).
> >>
> >> So Wolfram, how about we consider a generic one once more controllers
> >> are being added?
> >
> > If we do so later, and we then also change the platform_device_id to something
> > generic, we then also have to change all users, too. Is it so bad to change
> > IMX53_AHCI (and imx53-ahci and alike) to something like "ahci-pmp-retry-srst"
> > (or similar) now?
>
> There are other fields in ata_port_info which might be different between
> boards. Using a SoC specific name as an index to an array of ata_port_info
> will be more flexible, as is adopted in drivers/ata/ahci.c - the PCI driver.
Well, that file also has generic fixups:
[board_ahci_ign_iferr] =
...
which is what I had in mind thinking that the flaw was not too imx53 specific.
If you think I am wrong, then be it. I mainly wanted to avoid the fixups which
might be needed later.
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110829/a13976b0/attachment.sig>
next prev parent reply other threads:[~2011-08-29 11:02 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-29 7:18 [PATCH V6 1/5] AHCI Add the AHCI SATA feature on the MX53 platforms Richard Zhu
2011-08-29 7:18 ` Richard Zhu
2011-08-29 7:18 ` [PATCH V6 2/5] ahci_plt Add the board_ids and pi refer to different features Richard Zhu
2011-08-29 7:18 ` Richard Zhu
2011-08-29 8:31 ` Eric Miao
2011-08-29 8:31 ` Eric Miao
2011-08-29 8:36 ` Wolfram Sang
2011-08-29 8:36 ` Wolfram Sang
2011-08-29 8:51 ` Eric Miao
2011-08-29 8:51 ` Eric Miao
2011-08-29 9:37 ` Wolfram Sang
2011-08-29 9:37 ` Wolfram Sang
2011-08-29 9:54 ` Eric Miao
2011-08-29 9:54 ` Eric Miao
2011-08-29 11:02 ` Wolfram Sang [this message]
2011-08-29 11:02 ` Wolfram Sang
2011-08-29 12:12 ` Anton Vorontsov
2011-08-29 12:12 ` Anton Vorontsov
2011-08-29 12:25 ` Eric Miao
2011-08-29 12:25 ` Eric Miao
2011-08-30 6:21 ` Richard Zhu
2011-08-30 6:21 ` Richard Zhu
2011-08-30 6:35 ` Eric Miao
2011-08-30 6:35 ` Eric Miao
2011-08-30 7:07 ` Richard Zhu
2011-08-30 7:07 ` Richard Zhu
2011-08-30 8:54 ` Richard Zhu
2011-08-30 8:54 ` Richard Zhu
2011-08-30 9:07 ` Eric Miao
2011-08-30 9:07 ` Eric Miao
2011-08-29 7:18 ` [PATCH V6 3/5] MX53 Enable the AHCI SATA on MX53 ARD board Richard Zhu
2011-08-29 7:18 ` Richard Zhu
2011-08-29 8:47 ` Eric Miao
2011-08-29 8:47 ` Eric Miao
2011-08-29 9:16 ` Richard Zhu
2011-08-29 9:16 ` Richard Zhu
2011-08-29 7:18 ` [PATCH V6 4/5] MX53 Enable the AHCI SATA on MX53 LOCO board Richard Zhu
2011-08-29 7:18 ` Richard Zhu
2011-08-29 7:18 ` [PATCH V6 5/5] MX53 Enable the AHCI SATA on MX53 SMD board Richard Zhu
2011-08-29 7:18 ` Richard Zhu
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=20110829110216.GI24524@pengutronix.de \
--to=w.sang@pengutronix.de \
--cc=avorontsov@ru.mvista.com \
--cc=eric.miao@linaro.org \
--cc=eric@eukrea.com \
--cc=jgarzik@pobox.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-ide@vger.kernel.org \
--cc=richard.zhu@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.