From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Stanislaw Gruszka <stf_xl@wp.pl>
Cc: linux-ide@vger.kernel.org, Andrew Victor <avictor.za@gmail.com>,
linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: [PATCH 3/3 v3] AT91: initialize Compact Flash on AT91SAM9263 cpu
Date: Thu, 12 Feb 2009 19:33:08 +0300 [thread overview]
Message-ID: <49944F44.1080807@ru.mvista.com> (raw)
In-Reply-To: <200902121005.46772.stf_xl@wp.pl>
Hello.
Stanislaw Gruszka wrote:
>>[...]
>>>+ if (data->flags & AT91_CF_TRUE_IDE) {
>>>+ /* check if device is present */
>>>+ if (data->det_pin && at91_get_gpio_value(data->det_pin) != 0) {
>>>+ printk(KERN_ERR "AT91 CF True IDE: no device detected\n");
>>>+ return;
>>>+ }
>>>+ if (data->rst_pin) {
>>>+ /* reset the card */
>>>+ at91_set_gpio_output(data->rst_pin, 0);
>>>+ /* wait as defined in ATA7 vol2 (rev 4a) figure 36 */
>>>+ udelay(25);
>>>+ at91_set_gpio_output(data->rst_pin, 1);
>> I'm still not sure why this is needed. Do you think thta power-on
>>reset is not enough?
> HW reset is not needed when board is powered-on. But situation is
> diffrent when we have reboot due to board reset booton press.
> There are configuration where signal from reset button is connected
> to CF card (or disk), in some cases device reset signal is connected to
> GPIO with assumption to be asserted by software.
OK, thanks for the explanation.
> I don't know if we can remove this.
Well, seems worth keeping.
> In hw reset case system/driver will run with undefined device state,
What do you mean by undefined? It could have not come out of reset which
shoiuld mean that the IDE probing code will have to wait some time before BSY
clears -- see ide_port_wait_ready().
> in example device can generate interrupts.
Interrupts after any kind of reset? That just shouldn't happen -- it's
against the ATA spec at least.
> Stanislaw Gruszka
MBR, Sergei
next prev parent reply other threads:[~2009-02-12 16:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-09 10:45 [PATCH 3/3 v3] AT91: initialize Compact Flash on AT91SAM9263 cpu Stanislaw Gruszka
2009-02-11 13:59 ` Sergei Shtylyov
2009-02-11 16:46 ` Bartlomiej Zolnierkiewicz
2009-02-11 17:31 ` Sergei Shtylyov
2009-02-12 9:05 ` Stanislaw Gruszka
2009-02-12 16:33 ` Sergei Shtylyov [this message]
2009-02-13 10:48 ` Stanislaw Gruszka
2009-02-11 20:03 ` Andrew Victor
2009-02-12 9:33 ` Stanislaw Gruszka
2009-02-13 13:23 ` Sergei Shtylyov
2009-02-17 10:21 ` Stanislaw Gruszka
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=49944F44.1080807@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=avictor.za@gmail.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-ide@vger.kernel.org \
--cc=stf_xl@wp.pl \
/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).