* [PATCH] newport: newport_*wait() return 0 on timeout
@ 2009-01-31 15:29 Roel Kluin
2009-02-02 12:08 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 5+ messages in thread
From: Roel Kluin @ 2009-01-31 15:29 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: video4linux-list, linux-media
With a postfix decrement t reaches -1 on timeout which results in a
return of 0.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/include/video/newport.h b/include/video/newport.h
index 1f5ebea..001b935 100644
--- a/include/video/newport.h
+++ b/include/video/newport.h
@@ -453,7 +453,7 @@ static __inline__ int newport_wait(struct newport_regs *regs)
{
int t = BUSY_TIMEOUT;
- while (t--)
+ while (--t)
if (!(regs->cset.status & NPORT_STAT_GBUSY))
break;
return !t;
@@ -463,7 +463,7 @@ static __inline__ int newport_bfwait(struct newport_regs *regs)
{
int t = BUSY_TIMEOUT;
- while (t--)
+ while (--t)
if(!(regs->cset.status & NPORT_STAT_BBUSY))
break;
return !t;
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] newport: newport_*wait() return 0 on timeout
2009-01-31 15:29 [PATCH] newport: newport_*wait() return 0 on timeout Roel Kluin
@ 2009-02-02 12:08 ` Mauro Carvalho Chehab
2009-02-02 13:32 ` roel kluin
0 siblings, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2009-02-02 12:08 UTC (permalink / raw)
To: Roel Kluin; +Cc: video4linux-list, linux-media
Hi Roel,
It seems that you've sent this driver to the wrong ML. Video adapters are not handled on those ML's.
On Sat, 31 Jan 2009 16:29:39 +0100
Roel Kluin <roel.kluin@gmail.com> wrote:
> With a postfix decrement t reaches -1 on timeout which results in a
> return of 0.
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> diff --git a/include/video/newport.h b/include/video/newport.h
> index 1f5ebea..001b935 100644
> --- a/include/video/newport.h
> +++ b/include/video/newport.h
> @@ -453,7 +453,7 @@ static __inline__ int newport_wait(struct newport_regs *regs)
> {
> int t = BUSY_TIMEOUT;
>
> - while (t--)
> + while (--t)
> if (!(regs->cset.status & NPORT_STAT_GBUSY))
> break;
> return !t;
> @@ -463,7 +463,7 @@ static __inline__ int newport_bfwait(struct newport_regs *regs)
> {
> int t = BUSY_TIMEOUT;
>
> - while (t--)
> + while (--t)
> if(!(regs->cset.status & NPORT_STAT_BBUSY))
> break;
> return !t;
Cheers,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] newport: newport_*wait() return 0 on timeout
2009-02-02 12:08 ` Mauro Carvalho Chehab
@ 2009-02-02 13:32 ` roel kluin
2009-02-02 16:04 ` Randy Dunlap
2009-02-02 16:09 ` Mauro Carvalho Chehab
0 siblings, 2 replies; 5+ messages in thread
From: roel kluin @ 2009-02-02 13:32 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: video4linux-list, linux-media
2009/2/2 Mauro Carvalho Chehab <mchehab@infradead.org>:
> Hi Roel,
>
> It seems that you've sent this driver to the wrong ML. Video adapters are not handled on those ML's.
Any idea where it should be sent?
Thanks,
Roel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] newport: newport_*wait() return 0 on timeout
2009-02-02 13:32 ` roel kluin
@ 2009-02-02 16:04 ` Randy Dunlap
2009-02-02 16:09 ` Mauro Carvalho Chehab
1 sibling, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2009-02-02 16:04 UTC (permalink / raw)
To: roel kluin; +Cc: Mauro Carvalho Chehab, video4linux-list, linux-media
roel kluin wrote:
> 2009/2/2 Mauro Carvalho Chehab <mchehab@infradead.org>:
>> Hi Roel,
>>
>> It seems that you've sent this driver to the wrong ML. Video adapters are not handled on those ML's.
>
> Any idea where it should be sent?
drivers/video/* generally go to here AFAIK:
FRAMEBUFFER LAYER
P: Antonino Daplas
M: adaplas@gmail.com
L: linux-fbdev-devel@lists.sourceforge.net (moderated for non-subscribers)
W: http://linux-fbdev.sourceforge.net/
S: Maintained
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] newport: newport_*wait() return 0 on timeout
2009-02-02 13:32 ` roel kluin
2009-02-02 16:04 ` Randy Dunlap
@ 2009-02-02 16:09 ` Mauro Carvalho Chehab
1 sibling, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2009-02-02 16:09 UTC (permalink / raw)
To: roel kluin; +Cc: video4linux-list, linux-media
On Mon, 2 Feb 2009 14:32:09 +0100
roel kluin <roel.kluin@gmail.com> wrote:
> 2009/2/2 Mauro Carvalho Chehab <mchehab@infradead.org>:
> > Hi Roel,
> >
> > It seems that you've sent this driver to the wrong ML. Video adapters are not handled on those ML's.
>
> Any idea where it should be sent?
$ git log include/video/newport.h
commit 3f08ff4a4dab1ebef06d154050fb80ce2c13fc9c
Author: Adrian Bunk <bunk@stusta.de>
Date: Mon Jan 9 20:53:35 2006 -0800
[PATCH] include/video/newport.h: "extern inline" -> "static inline"
"extern inline" doesn't make much sense.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Hmm... this is the only change on this file since -git history. I would forward the patch to Andrew.
Cheers,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-02 16:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 15:29 [PATCH] newport: newport_*wait() return 0 on timeout Roel Kluin
2009-02-02 12:08 ` Mauro Carvalho Chehab
2009-02-02 13:32 ` roel kluin
2009-02-02 16:04 ` Randy Dunlap
2009-02-02 16:09 ` Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox