* [PATCH] OMAP2,3: DSS2: Report -EBUSY when to many registered isr
@ 2011-01-19 14:42 btucker
2011-02-21 9:28 ` Tomi Valkeinen
0 siblings, 1 reply; 3+ messages in thread
From: btucker @ 2011-01-19 14:42 UTC (permalink / raw)
To: linux-omap; +Cc: Ben Tucker
From: Ben Tucker <btucker@mpc-data.co.uk>
This patch fixes a problem with map_dispc_register_isr() where it
fails to return -EBUSY if it has no more space for registrations.
---
drivers/video/omap2/dss/dispc.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index e0e8275..f566177 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -2579,6 +2579,10 @@ int omap_dispc_register_isr(omap_dispc_isr_t isr, void *arg, u32 mask)
break;
}
+ if (ret) {
+ goto err;
+ }
+
_omap_dispc_set_irqs();
spin_unlock_irqrestore(&dispc.irq_lock, flags);
--
1.7.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: OMAP2,3: DSS2: Report -EBUSY when to many registered isr
2011-01-19 14:42 [PATCH] OMAP2,3: DSS2: Report -EBUSY when to many registered isr btucker
@ 2011-02-21 9:28 ` Tomi Valkeinen
2011-03-04 9:32 ` Ben Tucker
0 siblings, 1 reply; 3+ messages in thread
From: Tomi Valkeinen @ 2011-02-21 9:28 UTC (permalink / raw)
To: Ben Tucker; +Cc: linux-omap, Ben Tucker
Hi,
On Fri, 2011-01-21 at 04:53 +0000, Ben Tucker wrote:
> From: Ben Tucker <btucker@mpc-data.co.uk>
>
> This patch fixes a problem with map_dispc_register_isr() where it
> fails to return -EBUSY if it has no more space for registrations.
Looks correct, but a couple of things:
- Missing signed-off
- Indentation is wrong
- Don't use { } when there's just one line in the if block
Please fix those, or alternatively I can fix the bug myself and add you
as reported-by.
Tomi
>
> ---
> drivers/video/omap2/dss/dispc.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
> index e0e8275..f566177 100644
> --- a/drivers/video/omap2/dss/dispc.c
> +++ b/drivers/video/omap2/dss/dispc.c
> @@ -2579,6 +2579,10 @@ int omap_dispc_register_isr(omap_dispc_isr_t isr, void *arg, u32 mask)
> break;
> }
>
> + if (ret) {
> + goto err;
> + }
> +
> _omap_dispc_set_irqs();
>
> spin_unlock_irqrestore(&dispc.irq_lock, flags);
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: OMAP2,3: DSS2: Report -EBUSY when to many registered isr
2011-02-21 9:28 ` Tomi Valkeinen
@ 2011-03-04 9:32 ` Ben Tucker
0 siblings, 0 replies; 3+ messages in thread
From: Ben Tucker @ 2011-03-04 9:32 UTC (permalink / raw)
To: Tomi Valkeinen; +Cc: linux-omap, Ben Tucker
Thankyou Tomi. Please go ahead and fix the bug yourself.
Ben
> -----Original Message-----
> From: Tomi Valkeinen [mailto:tomi.valkeinen@ti.com]
> Sent: 21 February 2011 09:28
> To: Ben Tucker
> Cc: linux-omap@vger.kernel.org; Ben Tucker
> Subject: Re: OMAP2,3: DSS2: Report -EBUSY when to many registered isr
>
> Hi,
>
> On Fri, 2011-01-21 at 04:53 +0000, Ben Tucker wrote:
> > From: Ben Tucker <btucker@mpc-data.co.uk>
> >
> > This patch fixes a problem with map_dispc_register_isr() where it
> > fails to return -EBUSY if it has no more space for registrations.
>
> Looks correct, but a couple of things:
> - Missing signed-off
> - Indentation is wrong
> - Don't use { } when there's just one line in the if block
>
> Please fix those, or alternatively I can fix the bug myself and add you
> as reported-by.
>
> Tomi
>
>
> >
> > ---
> > drivers/video/omap2/dss/dispc.c | 4 ++++
> > 1 files changed, 4 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/video/omap2/dss/dispc.c
> b/drivers/video/omap2/dss/dispc.c
> > index e0e8275..f566177 100644
> > --- a/drivers/video/omap2/dss/dispc.c
> > +++ b/drivers/video/omap2/dss/dispc.c
> > @@ -2579,6 +2579,10 @@ int omap_dispc_register_isr(omap_dispc_isr_t
> isr, void *arg, u32 mask)
> > break;
> > }
> >
> > + if (ret) {
> > + goto err;
> > + }
> > +
> > _omap_dispc_set_irqs();
> >
> > spin_unlock_irqrestore(&dispc.irq_lock, flags);
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-04 9:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 14:42 [PATCH] OMAP2,3: DSS2: Report -EBUSY when to many registered isr btucker
2011-02-21 9:28 ` Tomi Valkeinen
2011-03-04 9:32 ` Ben Tucker
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.