public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mvsata_ide: adjust port init sequence
Date: Mon, 06 Sep 2010 17:47:07 +0200	[thread overview]
Message-ID: <4C850CFB.5030308@free.fr> (raw)
In-Reply-To: <4C84E281.1000105@mvista.com>

Le 06/09/2010 14:45, Sergei Shtylyov a ?crit :
> Hello.
>
> Albert ARIBAUD wrote:
>
>>> On 05.09.2010 23:33, Albert ARIBAUD wrote:
>
>>>>>> + /* Set control IPM to 3 (no low power) and DET to 1 (initialize) */
>>>>>> control = readl(&port->scontrol);
>>>>>> control = (control & ~MVSATA_SCONTROL_MASK) | MVSATA_PORT_INIT;
>>>>>> + /* Toggle control DET back to 0 (normal operation) */
>
>>>>> But you haven't set it to 1 yet. Maybe the comment is misplaced?
>
>>>> Look at the comment above, which said DET was set to 1, and at
>>>> MVSATA_PORT_INIT, which combines IPM=3 and DET=1.
>
>>> But you didn't write that value yet before your comment saying that
>>> you're resetting DET back to 0.
>
>> Yes, I did:
>
>> #define MVSATA_PORT_INIT \
>> (MVSATA_SCONTROL_DET_INIT|MVSATA_SCONTROL_IPM_NO_LP_ALLOWED)
>
>> MVSATA_PORT_INIT has both IPM = 3 (no low power allowed) and DET = 1
>> (initialize).
>
> Sigh. Your "resetting DET" comment is before the first writel().
>
>> Amicalement,
>
> WBR, Sergei

Oh, I see! I'll push a new version with the comment moved down one 
notch. Thanks for your patience. :)

Amicalement,
-- 
Albert.

  reply	other threads:[~2010-09-06 15:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-04 10:34 [U-Boot] [PATCH] mvsata_ide: adjust port init sequence Albert Aribaud
2010-09-05 10:54 ` Sergei Shtylyov
2010-09-05 19:33   ` Albert ARIBAUD
2010-09-06  9:18     ` Sergei Shtylyov
2010-09-06 10:27       ` Albert ARIBAUD
2010-09-06 12:45         ` Sergei Shtylyov
2010-09-06 15:47           ` Albert ARIBAUD [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-06 22:53 Albert Aribaud
2010-09-06 23:02 ` Albert ARIBAUD
2010-09-07  9:34   ` Wolfgang Denk
2010-09-07  9:33 ` Wolfgang Denk

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=4C850CFB.5030308@free.fr \
    --to=albert.aribaud@free.fr \
    --cc=u-boot@lists.denx.de \
    /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