Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Paul Wakeman <prwakeman@yahoo.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: PATA hotplug
Date: Wed, 22 Aug 2007 16:31:28 +0100	[thread overview]
Message-ID: <20070822163128.2bc6e64e@the-village.bc.nu> (raw)
In-Reply-To: <548551.9705.qm@web57903.mail.re3.yahoo.com>

> My target is an embedded SoC which has PATA autodetect support.

Nice.

> First, I need to convert the vendor-supplied legacy IDE driver to a
> PATA platform driver. Can you recommend best-of-breed existing PATA
> drivers to use as a reference for this work? 

pata_platform is a dumb platform device driver and shows how to interface
to the platform layer. I'm guessing your hardware is a bit smarter in
which case you probably want to use pata_platform as a reference for
setting up platform class interfaces with arbitary port mappings and
something like pata_amd to see how the various cable detect, dma and pio
timing functions can be used.

If you've got hardware which supports master/slave but only single timing
registers take a look at the code in pata_oldpiix and the
oldpiix_qc_issue_prot function for how to do timing switching according
to the device, and pata_atiixp is a worked example of how to do clock
switching on the start/end of DMA operations.

Any other questions just ask

      reply	other threads:[~2007-08-22 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17 15:56 PATA hotplug Paul Wakeman
2007-08-19 17:06 ` Alan Cox
2007-08-22 14:19   ` Paul Wakeman
2007-08-22 15:31     ` Alan Cox [this message]

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=20070822163128.2bc6e64e@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-ide@vger.kernel.org \
    --cc=prwakeman@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox