From: Sergei Shtylyov <sshtylyov@mvista.com>
To: r66093@freescale.com
Cc: linux-ide@vger.kernel.org,
Jerry Huang <Chang-Ming.Huang@freescale.com>,
Yutaka Ando <r46913@freescale.com>,
Jeff Garzik <jgarzik@pobox.com>
Subject: Re: [PATCH 2/2] FSL SATA: fix the controller operating mode
Date: Mon, 19 Dec 2011 16:15:17 +0400 [thread overview]
Message-ID: <4EEF2AD5.4050807@mvista.com> (raw)
In-Reply-To: <1324262157-13385-2-git-send-email-r66093@freescale.com>
Hello.
On 19-12-2011 6:35, r66093@freescale.com wrote:
> From: Jerry Huang<Chang-Ming.Huang@freescale.com>
> Configure the FSL SATA controller to the enterprise mode
> Signed-off-by: Yutaka Ando<r46913@freescale.com>
> Signed-off-by: Jerry Huang<Chang-Ming.Huang@freescale.com>
> CC: Jeff Garzik<jgarzik@pobox.com>
> ---
> drivers/ata/sata_fsl.c | 11 +++++++++++
> 1 files changed, 11 insertions(+), 0 deletions(-)
> diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
> index 78ae7b6..48c9978 100644
> --- a/drivers/ata/sata_fsl.c
> +++ b/drivers/ata/sata_fsl.c
[...]
> @@ -1223,6 +1224,10 @@ static int sata_fsl_init_controller(struct ata_host *host)
> * part of the port_start() callback
> */
>
> + /* sata controller to operate in enterprise mode */
> + temp = ioread32(hcr_base + HCONTROL);
> + iowrite32((temp & ~HCONTROL_LEGACY), hcr_base + HCONTROL);
Parens around & not needed.
> @@ -1421,6 +1426,12 @@ static int sata_fsl_resume(struct platform_device *op)
> /* Recovery the CHBA register in host controller cmd register set */
> iowrite32(pp->cmdslot_paddr& 0xffffffff, hcr_base + CHBA);
>
> + iowrite32((ioread32(hcr_base + HCONTROL)
> + | HCONTROL_ONLINE_PHY_RST
> + | HCONTROL_SNOOP_ENABLE
> + | HCONTROL_PMP_ATTACHED),
> + hcr_base+HCONTROL);
Spaces around +, please.
MBR, Sergei
next prev parent reply other threads:[~2011-12-19 12:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-19 2:35 [PATCH 1/2 v3] libata-pmp: add schedule timeout to support some PMP cards r66093
2011-12-19 2:35 ` [PATCH 2/2] FSL SATA: fix the controller operating mode r66093
2011-12-19 12:15 ` Sergei Shtylyov [this message]
2012-02-23 6:35 ` [PATCH 1/2 v3] libata-pmp: add schedule timeout to support some PMP cards Huang Changming-R66093
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=4EEF2AD5.4050807@mvista.com \
--to=sshtylyov@mvista.com \
--cc=Chang-Ming.Huang@freescale.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=r46913@freescale.com \
--cc=r66093@freescale.com \
/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.