Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
* OMAP video compile error; regression from 2.6.33-rc4 onward (including current master)
@ 2010-06-06 21:52 Luke-Jr
  2010-06-07  7:39 ` Tomi Valkeinen
  2010-06-07  7:47 ` Tomi Valkeinen
  0 siblings, 2 replies; 5+ messages in thread
From: Luke-Jr @ 2010-06-06 21:52 UTC (permalink / raw)
  To: tomi.valkeinen, slapin; +Cc: linux-kernel@vger.kernel.org, linux-omap

This doesn't even build, so I don't know how it was tested... Reverting the 
offending commit (simple, but does require conflict resolution) at least lets 
it compile, but I haven't tested whether it alone is enough to work in 
practise yet... hoping Tomi might provide a real fix. Maybe even in time for 
2.6.35 final? :)

https://bugzilla.kernel.org/show_bug.cgi?id=16144

CC      drivers/video/omap/rfbi.o                                               
drivers/video/omap/rfbi.c: In function 'rfbi_get_clocks':                       
drivers/video/omap/rfbi.c:86: error: 'dispc' undeclared (first use in this
function)
drivers/video/omap/rfbi.c:86: error: (Each undeclared identifier is reported
only once
drivers/video/omap/rfbi.c:86: error: for each function it appears in.)          
make[1]: *** [drivers/video/omap/rfbi.o] Error 1                                
make: *** [drivers/video/omap/rfbi.o] Error 2                                   

The 'dispc' referred to herein is and has always been defined in
drivers/video/omap/dispc.c as an anonymous struct.

Broken in...
commit f778a12dd33200513596a0d4d3ba4d5f09e79c09
Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Date:   Wed Dec 16 13:18:07 2009 +0200

    OMAP: OMAPFB: fix clk_get for RFBI

    omapfb platform device was still used to get clocks inside rfbi.c

    Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
    Tested-by: Sergey Lapin <slapin@ossfans.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OMAP video compile error; regression from 2.6.33-rc4 onward (including current master)
  2010-06-06 21:52 OMAP video compile error; regression from 2.6.33-rc4 onward (including current master) Luke-Jr
@ 2010-06-07  7:39 ` Tomi Valkeinen
  2010-06-07  7:47 ` Tomi Valkeinen
  1 sibling, 0 replies; 5+ messages in thread
From: Tomi Valkeinen @ 2010-06-07  7:39 UTC (permalink / raw)
  To: ext Luke-Jr
  Cc: slapin@ossfans.org, linux-kernel@vger.kernel.org,
	linux-omap@vger.kernel.org

On Sun, 2010-06-06 at 23:52 +0200, ext Luke-Jr wrote:
> This doesn't even build, so I don't know how it was tested... Reverting the 
> offending commit (simple, but does require conflict resolution) at least lets 
> it compile, but I haven't tested whether it alone is enough to work in 
> practise yet... hoping Tomi might provide a real fix. Maybe even in time for 
> 2.6.35 final? :)
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=16144
> 
> CC      drivers/video/omap/rfbi.o                                               
> drivers/video/omap/rfbi.c: In function 'rfbi_get_clocks':                       
> drivers/video/omap/rfbi.c:86: error: 'dispc' undeclared (first use in this
> function)
> drivers/video/omap/rfbi.c:86: error: (Each undeclared identifier is reported
> only once
> drivers/video/omap/rfbi.c:86: error: for each function it appears in.)          
> make[1]: *** [drivers/video/omap/rfbi.o] Error 1                                
> make: *** [drivers/video/omap/rfbi.o] Error 2                                   
> 
> The 'dispc' referred to herein is and has always been defined in
> drivers/video/omap/dispc.c as an anonymous struct.

Hmm yes, looks rather broken. I don't know how that has gotten through
=). Reverting the patch makes it compile, but RFBI won't work.

 Tomi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OMAP video compile error; regression from 2.6.33-rc4 onward (including current master)
  2010-06-06 21:52 OMAP video compile error; regression from 2.6.33-rc4 onward (including current master) Luke-Jr
  2010-06-07  7:39 ` Tomi Valkeinen
@ 2010-06-07  7:47 ` Tomi Valkeinen
  2010-06-07 16:17   ` Luke-Jr
  1 sibling, 1 reply; 5+ messages in thread
From: Tomi Valkeinen @ 2010-06-07  7:47 UTC (permalink / raw)
  To: ext Luke-Jr
  Cc: slapin@ossfans.org, linux-kernel@vger.kernel.org,
	linux-omap@vger.kernel.org

On Sun, 2010-06-06 at 23:52 +0200, ext Luke-Jr wrote:
> This doesn't even build, so I don't know how it was tested... Reverting the 
> offending commit (simple, but does require conflict resolution) at least lets 
> it compile, but I haven't tested whether it alone is enough to work in 
> practise yet... hoping Tomi might provide a real fix. Maybe even in time for 
> 2.6.35 final? :)
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=16144
> 
> CC      drivers/video/omap/rfbi.o                                               
> drivers/video/omap/rfbi.c: In function 'rfbi_get_clocks':                       
> drivers/video/omap/rfbi.c:86: error: 'dispc' undeclared (first use in this
> function)
> drivers/video/omap/rfbi.c:86: error: (Each undeclared identifier is reported
> only once
> drivers/video/omap/rfbi.c:86: error: for each function it appears in.)          
> make[1]: *** [drivers/video/omap/rfbi.o] Error 1                                
> make: *** [drivers/video/omap/rfbi.o] Error 2                                   
> 
> The 'dispc' referred to herein is and has always been defined in
> drivers/video/omap/dispc.c as an anonymous struct.

I don't have any device that uses RFBI so I can't test it, but how about
this patch:

diff --git a/drivers/video/omap/rfbi.c b/drivers/video/omap/rfbi.c
index 1162603..eada9f1 100644
--- a/drivers/video/omap/rfbi.c
+++ b/drivers/video/omap/rfbi.c
@@ -26,6 +26,7 @@
 #include <linux/interrupt.h>
 #include <linux/clk.h>
 #include <linux/io.h>
+#include <linux/platform_device.h>
 
 #include "omapfb.h"
 #include "dispc.h"
@@ -83,13 +84,13 @@ static inline u32 rfbi_read_reg(int idx)
 
 static int rfbi_get_clocks(void)
 {
-       rfbi.dss_ick = clk_get(&dispc.fbdev->dssdev->dev, "ick");
+       rfbi.dss_ick = clk_get(&rfbi.fbdev->dssdev->dev, "ick");
        if (IS_ERR(rfbi.dss_ick)) {
                dev_err(rfbi.fbdev->dev, "can't get ick\n");
                return PTR_ERR(rfbi.dss_ick);
        }
 
-       rfbi.dss1_fck = clk_get(&dispc.fbdev->dssdev->dev, "dss1_fck");
+       rfbi.dss1_fck = clk_get(&rfbi.fbdev->dssdev->dev, "dss1_fck");
        if (IS_ERR(rfbi.dss1_fck)) {
                dev_err(rfbi.fbdev->dev, "can't get dss1_fck\n");
                clk_put(rfbi.dss_ick);

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: OMAP video compile error; regression from 2.6.33-rc4 onward (including current master)
  2010-06-07  7:47 ` Tomi Valkeinen
@ 2010-06-07 16:17   ` Luke-Jr
  2010-06-08  8:36     ` Tomi Valkeinen
  0 siblings, 1 reply; 5+ messages in thread
From: Luke-Jr @ 2010-06-07 16:17 UTC (permalink / raw)
  To: Tomi Valkeinen
  Cc: slapin@ossfans.org, linux-kernel@vger.kernel.org,
	linux-omap@vger.kernel.org

On Monday 07 June 2010 02:47:34 am Tomi Valkeinen wrote:
> I don't have any device that uses RFBI so I can't test it, but how about
> this patch:

Unfortunately, I can't test it either since N8x0 has no mainline support for 
video output, nor can until CBus is merged. :(

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OMAP video compile error; regression from 2.6.33-rc4 onward (including current master)
  2010-06-07 16:17   ` Luke-Jr
@ 2010-06-08  8:36     ` Tomi Valkeinen
  0 siblings, 0 replies; 5+ messages in thread
From: Tomi Valkeinen @ 2010-06-08  8:36 UTC (permalink / raw)
  To: ext Luke-Jr
  Cc: slapin@ossfans.org, linux-kernel@vger.kernel.org,
	linux-omap@vger.kernel.org

On Mon, 2010-06-07 at 18:17 +0200, ext Luke-Jr wrote:
> On Monday 07 June 2010 02:47:34 am Tomi Valkeinen wrote:
> > I don't have any device that uses RFBI so I can't test it, but how about
> > this patch:
> 
> Unfortunately, I can't test it either since N8x0 has no mainline support for 
> video output, nor can until CBus is merged. :(

Okay. I'll put it in, then, as it at least compiles.

 Tomi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-08  8:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-06 21:52 OMAP video compile error; regression from 2.6.33-rc4 onward (including current master) Luke-Jr
2010-06-07  7:39 ` Tomi Valkeinen
2010-06-07  7:47 ` Tomi Valkeinen
2010-06-07 16:17   ` Luke-Jr
2010-06-08  8:36     ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox