* New true IDE compact flash driver starting point?
@ 2009-01-08 6:33 Dick Hollenbeck
2009-01-08 12:18 ` Arnd Bergmann
2009-01-09 18:35 ` David Daney
0 siblings, 2 replies; 7+ messages in thread
From: Dick Hollenbeck @ 2009-01-08 6:33 UTC (permalink / raw)
To: linux-kernel
On a new ARM9 board with memory mapped interface to a compact flash
socket, I need to implement an IDE or ATA driver that will support TRUE
IDE mode.
Am using kernel version 2.6.26
What is the best starting point, i.e. example driver in the tree?
Please respond to my personal email address also as I do not subscribe.
TIA
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New true IDE compact flash driver starting point?
2009-01-08 6:33 New true IDE compact flash driver starting point? Dick Hollenbeck
@ 2009-01-08 12:18 ` Arnd Bergmann
2009-01-08 15:26 ` Dick Hollenbeck
2009-01-09 18:35 ` David Daney
1 sibling, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2009-01-08 12:18 UTC (permalink / raw)
To: Dick Hollenbeck; +Cc: linux-kernel
On Thursday 08 January 2009, Dick Hollenbeck wrote:
> On a new ARM9 board with memory mapped interface to a compact flash
> socket, I need to implement an IDE or ATA driver that will support TRUE
> IDE mode.
>
> Am using kernel version 2.6.26
>
> What is the best starting point, i.e. example driver in the tree?
You should not need to write a new driver, but rather use the existing
drivers/ata/pata_platform.c driver by registering the MMIO registers
and IRQ number as a platform device.
Arnd <><
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New true IDE compact flash driver starting point?
2009-01-08 12:18 ` Arnd Bergmann
@ 2009-01-08 15:26 ` Dick Hollenbeck
2009-01-09 16:33 ` Arnd Bergmann
0 siblings, 1 reply; 7+ messages in thread
From: Dick Hollenbeck @ 2009-01-08 15:26 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linux-kernel
Arnd Bergmann wrote:
> On Thursday 08 January 2009, Dick Hollenbeck wrote:
>
>> On a new ARM9 board with memory mapped interface to a compact flash
>> socket, I need to implement an IDE or ATA driver that will support TRUE
>> IDE mode.
>>
>> Am using kernel version 2.6.26
>>
>> What is the best starting point, i.e. example driver in the tree?
>>
>
> You should not need to write a new driver, but rather use the existing
> drivers/ata/pata_platform.c driver by registering the MMIO registers
> and IRQ number as a platform device.
>
> Arnd <><
>
Thank you Arnd!
Is there some example code in the tree to do this?
I've done something similar to this for 8250 serial ports, but I am
having a difficult time finding out how to do this with pata_platform.c
Thanks,
Dick Hollenbeck
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New true IDE compact flash driver starting point?
2009-01-08 15:26 ` Dick Hollenbeck
@ 2009-01-09 16:33 ` Arnd Bergmann
2009-01-09 18:29 ` Dick Hollenbeck
0 siblings, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2009-01-09 16:33 UTC (permalink / raw)
To: Dick Hollenbeck; +Cc: linux-kernel
On Thursday 08 January 2009, Dick Hollenbeck wrote:
> I've done something similar to this for 8250 serial ports, but I am
> having a difficult time finding out how to do this with pata_platform.c
>
Just grep for pata_platform_info to find example code.
Arnd <><
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New true IDE compact flash driver starting point?
2009-01-09 16:33 ` Arnd Bergmann
@ 2009-01-09 18:29 ` Dick Hollenbeck
2009-01-09 18:29 ` Alan Cox
0 siblings, 1 reply; 7+ messages in thread
From: Dick Hollenbeck @ 2009-01-09 18:29 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linux-kernel
Arnd Bergmann wrote:
> On Thursday 08 January 2009, Dick Hollenbeck wrote:
>
>> I've done something similar to this for 8250 serial ports, but I am
>> having a difficult time finding out how to do this with pata_platform.c
>>
>>
>
> Just grep for pata_platform_info to find example code.
>
> Arnd <><
>
Thanks again Arnd. I did that yesterday and got it working last night!
The only thing I have questions about are:
1) Since this is for a quasi realtime application, is there any
advantage to using the interrupt line regarding how the CPU spends its
idle time waiting for the flash? (I have an interrupt line I can use.)
Currently I am not sending in the IRQ resource, resource array length of
2, not 3.
2) I am getting this message during boot up: "Driver 'sd' needs
updating - please use bus_type methods". Again this is kernel 2.6.26.
It seems like this can be safely ignored, but if its easy to get rid of
that I would be happy to back port a patch.
I really appreciate your help.
Dick Hollenbeck
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New true IDE compact flash driver starting point?
2009-01-09 18:29 ` Dick Hollenbeck
@ 2009-01-09 18:29 ` Alan Cox
0 siblings, 0 replies; 7+ messages in thread
From: Alan Cox @ 2009-01-09 18:29 UTC (permalink / raw)
To: Dick Hollenbeck; +Cc: Arnd Bergmann, linux-kernel
> 1) Since this is for a quasi realtime application, is there any
> advantage to using the interrupt line regarding how the CPU spends its
> idle time waiting for the flash? (I have an interrupt line I can use.)
> Currently I am not sending in the IRQ resource, resource array length of
> 2, not 3.
For real time you may actually be better with the IRQless polling
behaviour as the driver and ATA library currently stands.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New true IDE compact flash driver starting point?
2009-01-08 6:33 New true IDE compact flash driver starting point? Dick Hollenbeck
2009-01-08 12:18 ` Arnd Bergmann
@ 2009-01-09 18:35 ` David Daney
1 sibling, 0 replies; 7+ messages in thread
From: David Daney @ 2009-01-09 18:35 UTC (permalink / raw)
To: Dick Hollenbeck; +Cc: linux-kernel
Dick Hollenbeck wrote:
> On a new ARM9 board with memory mapped interface to a compact flash
> socket, I need to implement an IDE or ATA driver that will support TRUE
> IDE mode.
>
> Am using kernel version 2.6.26
>
> What is the best starting point, i.e. example driver in the tree?
>
>
> Please respond to my personal email address also as I do not subscribe.
>
Not that it is a piece of art, but this is my implementation of a
similar driver that I am trying to get merged.
http://marc.info/?l=linux-ide&m=122895233817240&w=4
David Daney
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-09 18:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-08 6:33 New true IDE compact flash driver starting point? Dick Hollenbeck
2009-01-08 12:18 ` Arnd Bergmann
2009-01-08 15:26 ` Dick Hollenbeck
2009-01-09 16:33 ` Arnd Bergmann
2009-01-09 18:29 ` Dick Hollenbeck
2009-01-09 18:29 ` Alan Cox
2009-01-09 18:35 ` David Daney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox