LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jeremy Higdon <jeremy@sgi.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/5] ide: ->ide_dma_clear_irq() -> ->clear_irq()
Date: Tue, 11 Nov 2008 18:01:54 -0800 [thread overview]
Message-ID: <20081112020154.GD231878@sgi.com> (raw)
In-Reply-To: <48CF7986.2020302@ru.mvista.com>
On Tue, Sep 16, 2008 at 01:16:54PM +0400, Sergei Shtylyov wrote:
> >>>>Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> >>>>
> >>>Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
> >>>
> >> Not feeling sure about this patch -- ->waiting_for_dma probably
> >>should've been left where it was...
> >>
> >
> >Well, it doesn't change behavior and I think having ->clear_irq method
> >independent from the transfer mode is a preffered approach.
> >
>
> But its implementations will have to depend on it anyway. And
> clearing the IDE interrupt in general already depends on the transfer
> mode -- the BMIDE interrupt which is a (delayed) reflection of INTRQ is
> cleared implicitly by the dma_end() method -- except in at least sgiioc4
> driver.
> BTW, sgiioc4 seems another candidate for clear_irq() implementation
> -- currently clearing is done implicitly by the read_status() method (I
> don't quite understand why it clears DMA error interrupt there).
> However, since there's no documentation, I'm not sure how the IDE
> interrupt is latched by IOC4.
The person who originally wrote sgiioc4 has been gone for a long time.
I'm guessing that the DMA error is cleared there, because any DMA error
status has already been processed above, and it's easier to clear
unconditionally than to test and clear, and there's no ill effect to
clearing something that's already clear.
jeremy
next prev parent reply other threads:[~2008-11-12 2:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 18:31 Bartlomiej Zolnierkiewicz
2008-08-19 22:22 ` Sergei Shtylyov
2008-09-15 22:11 ` Sergei Shtylyov
2008-09-15 22:29 ` Bartlomiej Zolnierkiewicz
2008-09-16 9:16 ` Sergei Shtylyov
2008-11-12 2:01 ` Jeremy Higdon [this message]
2009-05-21 14:07 ` Sergei Shtylyov
2009-05-22 18:44 ` ->ack_intr in m68k IDE drivers [was: Re: [PATCH 2/5] ide: ->ide_dma_clear_irq() -> ->clear_irq()] Bartlomiej Zolnierkiewicz
2009-05-22 19:19 ` Sergei Shtylyov
2009-05-22 19:19 ` Sergei Shtylyov
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=20081112020154.GD231878@sgi.com \
--to=jeremy@sgi.com \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
--subject='Re: [PATCH 2/5] ide: ->ide_dma_clear_irq() -> ->clear_irq()' \
/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
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).