From: Andrew Morton <akpm@digeo.com>
To: steven roemen <sdroemen1@cox.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.68-mm2 bttv oops
Date: Wed, 23 Apr 2003 21:31:19 -0700 [thread overview]
Message-ID: <20030423213119.26c74759.akpm@digeo.com> (raw)
In-Reply-To: <1051153462.997.159.camel@lws04.home.net>
steven roemen <sdroemen1@cox.net> wrote:
>
> here's what is in the syslog after booting the 2.5.68-mm2 kernel:
> bttv is built into the kernel.
This'll fix it up
25-akpm/drivers/media/video/bttv-driver.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff -puN drivers/media/video/bttv-driver.c~irqreturn-bttv drivers/media/video/bttv-driver.c
--- 25/drivers/media/video/bttv-driver.c~irqreturn-bttv Wed Apr 23 18:00:18 2003
+++ 25-akpm/drivers/media/video/bttv-driver.c Wed Apr 23 18:02:52 2003
@@ -1279,7 +1279,7 @@ static int bttv_prepare_buffer(struct bt
}
static int
-buffer_setup(struct file *file, int *count, int *size)
+buffer_setup(struct file *file, unsigned int *count, unsigned int *size)
{
struct bttv_fh *fh = file->private_data;
@@ -3156,22 +3156,23 @@ bttv_irq_switch_fields(struct bttv *btv)
spin_unlock(&btv->s_lock);
}
-static void bttv_irq(int irq, void *dev_id, struct pt_regs * regs)
+static irqreturn_t bttv_irq(int irq, void *dev_id, struct pt_regs * regs)
{
u32 stat,astat;
u32 dstat;
int count;
struct bttv *btv;
+ int handled = 0;
btv=(struct bttv *)dev_id;
count=0;
- while (1)
- {
+ while (1) {
/* get/clear interrupt status bits */
stat=btread(BT848_INT_STAT);
astat=stat&btread(BT848_INT_MASK);
if (!astat)
- return;
+ break;
+ handled = 1;
btwrite(stat,BT848_INT_STAT);
/* get device status bits */
@@ -3231,6 +3232,7 @@ static void bttv_irq(int irq, void *dev_
"bttv%d: IRQ lockup, cleared int mask\n", btv->nr);
}
}
+ return IRQ_RETVAL(handled);
}
_
next prev parent reply other threads:[~2003-04-24 4:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 3:04 2.5.68-mm2 bttv oops steven roemen
2003-04-24 4:31 ` Andrew Morton [this message]
2003-04-24 22:59 ` steven roemen
2003-04-24 23:04 ` Andrew Morton
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=20030423213119.26c74759.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sdroemen1@cox.net \
/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).