From: Jeff Garzik <jeff@garzik.org>
To: Jeff Garzik <jeff@garzik.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [RFC] pata_icside driver
Date: Mon, 09 Apr 2007 08:02:33 -0400 [thread overview]
Message-ID: <461A2B59.3090406@garzik.org> (raw)
In-Reply-To: <20070409113627.GB26874@flint.arm.linux.org.uk>
Russell King wrote:
> On Mon, Apr 09, 2007 at 07:13:05AM -0400, Jeff Garzik wrote:
>> It should be noted, mainly for russell's benefit, that the ->irq_ack()
>> hook is only called if a debug define is manually enabled in libata.h,
>> in a single callsite.
>>
>> The number of people that actually use the hook -- kernel hackers
>> debugging screaming interrupts -- can probably be counted on one hand.
>
> Ok, in that case it makes sense for me to set this to ata_dummy_irq_ack
> since I don't have any additional status registers specific to the
> interface.
>
> Presumably a similar change to pata_platform.c would be appropriate?
I was just pointing out the practical reality.
The proper implementation of the hook is likely /not/ a dummy on your
platform.
I presume you clear the interrupt condition by reading the ATA shadow
register 'Status', like most other SFF-like controllers, so your
implementation of ->irq_ack() should reflect that.
The proper implementation is basically what Alan described:
ata_irq_ack() minus the BMDMA bitbanging.
Jeff
next prev parent reply other threads:[~2007-04-09 12:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 11:00 [PATCH] Provide dummy devm_ioport_* if !HAS_IOPORT Russell King
2007-03-30 11:08 ` [RFC] pata_platform for ARM RiscPC Russell King
2007-04-08 10:18 ` [RFC] pata_icside driver Russell King
2007-04-08 18:59 ` Alan Cox
2007-04-09 1:03 ` Jeff Garzik
2007-04-09 9:56 ` Alan Cox
2007-04-09 10:56 ` Jeff Garzik
2007-04-09 11:13 ` Jeff Garzik
2007-04-09 11:36 ` Russell King
2007-04-09 12:02 ` Jeff Garzik [this message]
2007-04-08 20:09 ` Alan Cox
2007-04-09 8:18 ` Russell King
2007-04-09 8:24 ` Roland Dreier
2007-04-09 8:44 ` Russell King
2007-04-09 10:25 ` Alan Cox
2007-04-09 11:33 ` Russell King
2007-04-21 15:09 ` Russell King
2007-04-09 11:32 ` [RFC] pata_platform for ARM RiscPC Jeff Garzik
2007-03-30 11:08 ` [PATCH] Provide dummy devm_ioport_* if !HAS_IOPORT Christoph Hellwig
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=461A2B59.3090406@garzik.org \
--to=jeff@garzik.org \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--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 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.