All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Kevin Hilman <khilman@mvista.com>
Cc: jeff@garzik.org, linux-ide@vger.kernel.org
Subject: Re: sata_sil and byte-aligned mmio
Date: Mon, 16 Oct 2006 12:17:11 +0900	[thread overview]
Message-ID: <4532F9B7.1070901@gmail.com> (raw)
In-Reply-To: <452D69E6.9050606@mvista.com>

Hello, Kevin.

Kevin Hilman wrote:
> Tejun,
> 
> A while back you provided a patch for sata_sil to use PCI IO space since
> so that it can work on hardware that doesn't support byte-aligned MMIO.
> 
> I'd like to see a fix for this pushed upstream, but IIRC, Jeff Garzik
> prefers that the driver be fixed up to use 32-bit aligned MMIO instead
> of making the driver use IO space.
> 
> If you can point me in the right direction, as to where the
> byte-alignement assumtions are, I can fix up the driver and test it on
> my hardware.

Byte-aligned IO accesses are in the default ATA operations - 
ata_tf_load/read, ata_check_status, ata_exec_command, 
ata_std_dev_select, all the bmdma ops, etc...  Basically, traditional 
ATA interface is designed to use byte-aligned registers to operate.

sil3112 family of controllers allow all those ops implemented using 
32bit ops, so you need to implement sata_sil's own methods to replace 
those standard byte-aligned ops.  I don't think it's gonna be too difficult.

Good luck. :-)

-- 
tejun

  reply	other threads:[~2006-10-16  3:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-11 22:02 sata_sil and byte-aligned mmio Kevin Hilman
2006-10-16  3:17 ` Tejun Heo [this message]
2006-10-16  3:19   ` Tejun Heo

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=4532F9B7.1070901@gmail.com \
    --to=htejun@gmail.com \
    --cc=jeff@garzik.org \
    --cc=khilman@mvista.com \
    --cc=linux-ide@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.