From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Stanislaw Gruszka <stf_xl@wp.pl>
Cc: Andrew Victor <linux@maxim.org.za>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Haavard Skinnemoen <haavard.skinnemoen@atmel.com>,
linux-ide@vger.kernel.org
Subject: Re: [RFC][PATCH] at91_ide driver
Date: Thu, 29 Jan 2009 18:22:05 +0300 [thread overview]
Message-ID: <4981C99D.3090801@ru.mvista.com> (raw)
In-Reply-To: <200901291548.33238.stf_xl@wp.pl>
Hello.
Stanislaw Gruszka wrote:
>>>>>>Well, we could add #ifdef with diffrent implementation of
>>>>>>init_smc_mode(), set_8bit_mode(), etc...
>>>>> No, #ifdef'ery is certainly not an option.
>>>>Why?
>>> It's totally ugly and unacceptable way of doing things. It seems also
>>>totally wrong to add support for totally incompatible SMC to this driver
>>>(especially with #ifdef's). Another driver should be written if CF
>>>support is required.
>>>>Other option is create some header files and implement and exporting
>>>>these
>>>>functions from processor specific code. This add files dependencies
>>>>and spread
>>>>things across sources, FWIW.
>>> I don't think it's feasible as that SMC is just too different.
>> Besides, AT91RM9200 code turned out to already be registering a platform
>>device called at91_cf -- driver for which I have located in drivers/pcmcia/,
>>so apparently they're not interested in True IDE mode support (and have
>>overgeneralized the name as well :-).
> There can be AT91RM9200 boards where is only IDE hardware instead
> "full" Compact Flash support.
> Atmel publish application note with description how connect HDD to AT91RM9200.
> Connection is very similar as for SAM9, the major difference is using GPIO to control
> CF ~CSx signals. Here is document:
Horror... Frankly speaking, I don't see why they had to use GPIO and not
the same decoding scheme as on AT91SAM9xxx.
> http://www.atmel.com/dyn/resources/prod_documents/doc6023.pdf
> Currently people at at91.com forum did board with HDD. As driver
> they use pata_platform with some hacks, which look very similar
> as things in this driver, except they use polling and not need irq quirk:
> http://www.at91.com/samphpbb/viewtopic.php?f=9&t=4528&p=15739
It's not clear why they define IRQ resource not having IRQ.
> Stanislaw Gruszka
MBR, Sergei
next prev parent reply other threads:[~2009-01-29 15:21 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-14 12:45 [RFC][PATCH] at91_ide driver Stanislaw Gruszka
2009-01-14 12:58 ` Haavard Skinnemoen
2009-01-14 13:21 ` Stanislaw Gruszka
2009-01-14 17:05 ` Sergei Shtylyov
2009-01-22 11:19 ` Stanislaw Gruszka
2009-01-14 13:17 ` Alan Cox
2009-01-14 14:35 ` Stanislaw Gruszka
2009-01-14 15:14 ` Alan Cox
2009-01-16 13:32 ` Sergei Shtylyov
2009-01-16 15:03 ` Stanislaw Gruszka
2009-01-16 15:34 ` Sergei Shtylyov
2009-01-16 16:13 ` Alan Cox
2009-01-17 20:08 ` Sergei Shtylyov
2009-01-17 20:20 ` Alan Cox
2009-01-18 10:58 ` Sergei Shtylyov
2009-01-18 15:29 ` Sergei Shtylyov
2009-01-19 11:51 ` Stanislaw Gruszka
2009-01-19 15:20 ` Sergei Shtylyov
2009-01-16 16:58 ` Bartlomiej Zolnierkiewicz
2009-01-17 16:45 ` Sergei Shtylyov
2009-01-19 22:50 ` Sergei Shtylyov
2009-01-27 15:31 ` Bartlomiej Zolnierkiewicz
2009-01-19 11:14 ` Stanislaw Gruszka
2009-01-19 12:52 ` Bartlomiej Zolnierkiewicz
2009-01-16 17:43 ` Bartlomiej Zolnierkiewicz
2009-01-19 11:20 ` Stanislaw Gruszka
2009-01-30 9:05 ` Stanislaw Gruszka
2009-02-01 17:13 ` Bartlomiej Zolnierkiewicz
2009-02-02 12:35 ` Stanislaw Gruszka
2009-01-20 11:07 ` Sergei Shtylyov
2009-01-20 14:49 ` Stanislaw Gruszka
2009-01-20 15:33 ` Sergei Shtylyov
2009-01-21 10:33 ` Stanislaw Gruszka
2009-01-22 9:44 ` Sergei Shtylyov
2009-01-22 10:15 ` Stanislaw Gruszka
2009-01-22 11:12 ` Stanislaw Gruszka
2009-01-22 12:06 ` Sergei Shtylyov
2009-01-22 12:16 ` Sergei Shtylyov
2009-01-22 12:24 ` Sergei Shtylyov
2009-01-22 12:57 ` Stanislaw Gruszka
2009-01-22 13:38 ` Sergei Shtylyov
2009-01-22 13:14 ` Stanislaw Gruszka
2009-01-22 13:48 ` Sergei Shtylyov
2009-01-22 14:13 ` Stanislaw Gruszka
2009-01-27 15:46 ` Sergei Shtylyov
2009-01-29 14:48 ` Stanislaw Gruszka
2009-01-29 15:22 ` Sergei Shtylyov [this message]
2009-01-22 14:39 ` 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=4981C99D.3090801@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=haavard.skinnemoen@atmel.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux@maxim.org.za \
--cc=nicolas.ferre@atmel.com \
--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).