linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: B.Zolnierkiewicz@elka.pw.edu.pl, linux-ide@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: RFC: Compact Flash True IDE Mode Driver
Date: Mon, 06 Feb 2006 15:13:27 +1100	[thread overview]
Message-ID: <1139199208.4994.2.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.44.0602010113210.5670-100000@gate.crashing.org>

On Wed, 2006-02-01 at 01:19 -0600, Kumar Gala wrote:
> I was hoping to get some comments on this work in progress driver for
> using a compact flash device running in True IDE Mode connect via a MMIO
> interface.  The driver is working, however the embedded system I'm running
> on need some HW fixes to address the fact that the byte lanes for the data
> are swapped.  I figured now was a good time to incorporate any changes
> while I wait for the HW fixes (which will allow me to remove the 
> cfide_outsw & cfide_insw).

Your driver basically boils down to a simple IDE host driver configured
by platform functions. I suggest you remove "compact flash" here and
have the platform resource optinally be either PIO or MMIO and you
magically get a "generic" IDE driver useable by a lot of simple embedded
machines (it assumes all timing related things have been handled by the
firmware). Want to be sneakier ? Add a timing setup callback to the
platform data you pass to it and you get one that can even do PIO
modes :)

Ben.



  reply	other threads:[~2006-02-06  4:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-01  7:19 RFC: Compact Flash True IDE Mode Driver Kumar Gala
2006-02-06  4:13 ` Benjamin Herrenschmidt [this message]
2006-02-13 10:35 ` Bartlomiej Zolnierkiewicz
2006-02-13 16:30   ` Kumar Gala
2006-02-13 16:53     ` Bartlomiej Zolnierkiewicz
2006-02-13 19:45       ` Kumar Gala
2006-02-13 20:21         ` Bartlomiej Zolnierkiewicz
2006-02-13 22:13           ` Kumar Gala
2006-02-13 22:35             ` Bartlomiej Zolnierkiewicz
2006-02-14 14:57               ` Kumar Gala
2006-02-14 15:57                 ` Bartlomiej Zolnierkiewicz
2006-02-14 16:07                   ` Kumar Gala
2006-02-14 16:24                     ` Bartlomiej Zolnierkiewicz
2006-02-14 16:58   ` Alan Cox
2006-02-14 16:48     ` Kumar Gala

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=1139199208.4994.2.camel@localhost.localdomain \
    --to=benh@kernel.crashing.org \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=galak@kernel.crashing.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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).