From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: bzolnier@gmail.com, linux-mips@linux-mips.org,
linux-ide@vger.kernel.org, ralf@linux-mips.org
Subject: Re: [PATCH 1/2] ide: Add tx4939ide driver (v2)
Date: Tue, 23 Sep 2008 21:20:05 +0400 [thread overview]
Message-ID: <48D92545.7050307@ru.mvista.com> (raw)
In-Reply-To: <20080924.020459.128619366.anemo@mba.ocn.ne.jp>
Hello.
Atsushi Nemoto wrote:
>>>+static int tx4939ide_dma_test_irq(ide_drive_t *drive)
>>>+{
>>>+ ide_hwif_t *hwif = HWIF(drive);
>>>+ void __iomem *base = TX4939IDE_BASE(hwif);
>>>+ u16 ctl = tx4939ide_readw(base, TX4939IDE_int_ctl);
>>>+ u8 dma_stat, stat;
>>>+ u16 ide_int;
>>>+ int found = 0;
>>>+
>>>+ tx4939ide_check_error_ints(hwif, ctl);
>>>+ ide_int = ctl & (TX4939IDE_INT_XFEREND | TX4939IDE_INT_HOST);
>> Well, since you're effectively ignoring the BUSERR interrupt, there's
>>no point in enabling it...
> The BUSERR is not ignored. tx4939ide_check_error_ints() will print a
> message. It would be better than just ignoring.
I mean you're not accounting it as an interrupt. It will be reported
anyway when the dma_timeout() method will call this method on timeout... ah,
it wouldn't be called in this case since dma_time_expiry() will most probably
return -1 seeing bit 1 of DMA status register set. You're right then...
> ---
> Atsushi Nemoto
MBR, Sergei
next prev parent reply other threads:[~2008-09-23 17:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-17 15:13 [PATCH 1/2] ide: Add tx4939ide driver (v2) Atsushi Nemoto
2008-09-17 21:58 ` Jeff Garzik
2008-09-18 16:10 ` Atsushi Nemoto
2008-09-18 23:45 ` Bartlomiej Zolnierkiewicz
2008-09-19 9:25 ` Sergei Shtylyov
2008-09-19 17:10 ` Bartlomiej Zolnierkiewicz
2008-09-20 18:26 ` Sergei Shtylyov
2008-09-20 21:59 ` Sergei Shtylyov
2008-09-21 9:21 ` Sergei Shtylyov
2008-09-21 16:32 ` Atsushi Nemoto
2008-09-24 11:32 ` Sergei Shtylyov
2008-09-24 18:26 ` Sergei Shtylyov
2008-09-25 13:41 ` Atsushi Nemoto
2008-09-25 13:16 ` Atsushi Nemoto
2008-09-23 17:04 ` Atsushi Nemoto
2008-09-23 17:20 ` Sergei Shtylyov [this message]
2008-09-27 16:19 ` Bartlomiej Zolnierkiewicz
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=48D92545.7050307@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=anemo@mba.ocn.ne.jp \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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).