mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Bahadir Balban <bahadir.balban@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: disabling dma/new ide interface 2.6.18-rc4-mm1
Date: Mon, 21 Aug 2006 17:24:52 +0100	[thread overview]
Message-ID: <1156177492.18887.44.camel@localhost.localdomain> (raw)
In-Reply-To: <7ac1e90c0608210727m1c5375b9xb936168c877084c@mail.gmail.com>

Ar Llu, 2006-08-21 am 15:27 +0100, ysgrifennodd Bahadir Balban:
> Hi,
> 
> I am trying to implement a basic ide driver based on ata_generic.c.
> Its a pio-only device.
> 
> How do I disable dma on the new interface? Changing ata_port_info fields?

ata_generic.c assumes the BIOS set up the timings and the device follows
PCI SFF. In those cases it already correctly handles PIO only
controllers.

If you are trying to write a driver for a non PCI motherboard device (Eg
on an embedded board) then drivers/ata/pata_qdi.c may be a better
example to follow as it sets up all the device ports by hand as a
platform device.

If you want PIO only then don't provide mwdma or udma mode masks in the
ata_port_info.

Alan


      reply	other threads:[~2006-08-21 16:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-21 14:27 Bahadir Balban
2006-08-21 16:24 ` 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=1156177492.18887.44.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=bahadir.balban@gmail.com \
    --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

all inboxes | Powered by JetHome®