Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2010-01-07 Thread Tomi Valkeinen
On Thu, 2009-12-17 at 15:51 +0100, ext Sergey Lapin wrote:
 On Wed, Dec 16, 2009 at 2:21 PM, Tomi Valkeinen
 tomi.valkei...@nokia.com wrote:
  Hi,
 
  On Tue, 2009-12-15 at 17:01 +0100, ext Sergey Lapin wrote:
  On Tue, Dec 15, 2009 at 6:22 PM, Tomi Valkeinen
  tomi.valkei...@nokia.com wrote:
   Hi,
  
   On Tue, 2009-12-15 at 10:58 +0100, ext Sergey Lapin wrote:
   dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
   OMAP: OMAPFB: add omapdss device
  
   The upcoming new display subsystem driver is divided to two devices,
   omapdss and omapfb, of which omapdss handles the actual hardware.
  
   This patch adds a dummy omapdss platform device for the current 
   omapfb
   driver, which is then used to get the clocks. This will make it 
   possible
   for the current and the new display drivers to co-exist.
  
   Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
   Acked-by: Tony Lindgren t...@atomide.com
  
   breaks old omapfb.
  
   I didn't look at this further, but I quickly tested with OMAP3 SDP
   board, reverting the patch that makes SDP use DSS2, and it seems to work
   fine with the old omapfb.
 
  rfbi.c was still using omapfb device to get the clocks. Can you try this
  patch?
 
 
  From 33b78006fb0387e21d5f780338d821621ecad929 Mon Sep 17 00:00:00 2001
  From: Tomi Valkeinen tomi.valkei...@nokia.com
  Date: Wed, 16 Dec 2009 13:18:07 +0200
  Subject: [PATCH] OMAP: OMAPFB: fix clk_get for RFBI
 
  omapfb platform device was still used to get clocks inside rfbi.c
 If you add #include linux/platform_device.h to this patch,
 then problem is fixed.

Hmm, where do you need to add that include? n770 compiles ok for me.

I pushed this patch and another patch fixing the warning to master
branch in my tree:
http://gitorious.org/linux-omap-dss2/linux

Can you try them out? The commits are
3a2cbca3a3703ecd77c6fe633543ea0926b95564 and
c47f085ecf6d024c8850177694c702d814563580

 Tomi


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2010-01-07 Thread Tomi Valkeinen
On Tue, 2010-01-05 at 18:32 +0100, ext Paul Walmsley wrote:
 Hi Tomi,
 
 On Tue, 15 Dec 2009, Tomi Valkeinen wrote:
 
  On Tue, 2009-12-15 at 10:58 +0100, ext Sergey Lapin wrote:
   dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
   OMAP: OMAPFB: add omapdss device
   
   The upcoming new display subsystem driver is divided to two devices,
   omapdss and omapfb, of which omapdss handles the actual hardware.
   
   This patch adds a dummy omapdss platform device for the current omapfb
   driver, which is then used to get the clocks. This will make it 
   possible
   for the current and the new display drivers to co-exist.
   
   Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
   Acked-by: Tony Lindgren t...@atomide.com
   
   breaks old omapfb.
  
  I didn't look at this further, but I quickly tested with OMAP3 SDP
  board, reverting the patch that makes SDP use DSS2, and it seems to work
  fine with the old omapfb.
  
  Perhaps you have more kernel debug options enabled, and then it
  complains about missing release function. I'll look at it tomorrow.
 
 This also affects omap_2430sdp_defconfig on 2430SDP:

I pushed patches fixing thisto master branch in my tree:
http://gitorious.org/linux-omap-dss2/linux

Can you try them out on 2320sdp? The commits are
3a2cbca3a3703ecd77c6fe633543ea0926b95564 and
c47f085ecf6d024c8850177694c702d814563580

 Tomi


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2010-01-07 Thread Tomi Valkeinen
On Thu, 2010-01-07 at 12:05 +0100, Tomi Valkeinen wrote:
 On Thu, 2009-12-17 at 15:51 +0100, ext Sergey Lapin wrote:
  On Wed, Dec 16, 2009 at 2:21 PM, Tomi Valkeinen
  tomi.valkei...@nokia.com wrote:
   Hi,
  
   On Tue, 2009-12-15 at 17:01 +0100, ext Sergey Lapin wrote:
   On Tue, Dec 15, 2009 at 6:22 PM, Tomi Valkeinen
   tomi.valkei...@nokia.com wrote:
Hi,
   
On Tue, 2009-12-15 at 10:58 +0100, ext Sergey Lapin wrote:
dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
OMAP: OMAPFB: add omapdss device
   
The upcoming new display subsystem driver is divided to two 
devices,
omapdss and omapfb, of which omapdss handles the actual hardware.
   
This patch adds a dummy omapdss platform device for the current 
omapfb
driver, which is then used to get the clocks. This will make it 
possible
for the current and the new display drivers to co-exist.
   
Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
Acked-by: Tony Lindgren t...@atomide.com
   
breaks old omapfb.
   
I didn't look at this further, but I quickly tested with OMAP3 SDP
board, reverting the patch that makes SDP use DSS2, and it seems to 
work
fine with the old omapfb.
  
   rfbi.c was still using omapfb device to get the clocks. Can you try this
   patch?
  
  
   From 33b78006fb0387e21d5f780338d821621ecad929 Mon Sep 17 00:00:00 2001
   From: Tomi Valkeinen tomi.valkei...@nokia.com
   Date: Wed, 16 Dec 2009 13:18:07 +0200
   Subject: [PATCH] OMAP: OMAPFB: fix clk_get for RFBI
  
   omapfb platform device was still used to get clocks inside rfbi.c
  If you add #include linux/platform_device.h to this patch,
  then problem is fixed.
 
 Hmm, where do you need to add that include? n770 compiles ok for me.
 
 I pushed this patch and another patch fixing the warning to master
 branch in my tree:
 http://gitorious.org/linux-omap-dss2/linux
 
 Can you try them out? The commits are
 3a2cbca3a3703ecd77c6fe633543ea0926b95564 and
 c47f085ecf6d024c8850177694c702d814563580

Sorry, I was too hasty. The release function should return void, not
int.

The new patches are
3a2cbca3a3703ecd77c6fe633543ea0926b95564 and
ed18458714274525545349a2c35cf32f4a17f166

 Tomi



--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2010-01-05 Thread Paul Walmsley
Hi Tomi,

On Tue, 15 Dec 2009, Tomi Valkeinen wrote:

 On Tue, 2009-12-15 at 10:58 +0100, ext Sergey Lapin wrote:
  dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
  OMAP: OMAPFB: add omapdss device
  
  The upcoming new display subsystem driver is divided to two devices,
  omapdss and omapfb, of which omapdss handles the actual hardware.
  
  This patch adds a dummy omapdss platform device for the current omapfb
  driver, which is then used to get the clocks. This will make it possible
  for the current and the new display drivers to co-exist.
  
  Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
  Acked-by: Tony Lindgren t...@atomide.com
  
  breaks old omapfb.
 
 I didn't look at this further, but I quickly tested with OMAP3 SDP
 board, reverting the patch that makes SDP use DSS2, and it seems to work
 fine with the old omapfb.
 
 Perhaps you have more kernel debug options enabled, and then it
 complains about missing release function. I'll look at it tomorrow.

This also affects omap_2430sdp_defconfig on 2430SDP:

omapfb omapfb: timeout waiting for FRAME DONE
[ cut here ]
WARNING: at drivers/base/core.c:131 device_release+0x68/0x7c()
Device 'omapdss' does not have a release() function, it is broken and must 
be fixed.
Modules linked in:
[c002c748] (unwind_backtrace+0x0/0xdc) from [c0049874] 
(warn_slowpath_common+0x48/0x60)
[c0049874] (warn_slowpath_common+0x48/0x60) from [c00498c4] 
(warn_slowpath_fmt+0x24/0x30)
[c00498c4] (warn_slowpath_fmt+0x24/0x30) from [c01b0544] 
(device_release+0x68/0x7c)
[c01b0544] (device_release+0x68/0x7c) from [c01706a8] 
(kobject_release+0x60/0x74)
[c01706a8] (kobject_release+0x60/0x74) from [c01713c4] 
(kref_put+0x5c/0x6c)
[c01713c4] (kref_put+0x5c/0x6c) from [c018df44] 
(omapfb_free_resources+0xec/0x130)
[c018df44] (omapfb_free_resources+0xec/0x130) from [c018f030] 
(omapfb_do_probe+0x6dc/0x810)
[c018f030] (omapfb_do_probe+0x6dc/0x810) from [c0191088] 
(sdp2430_panel_probe+0xc/0x18)
[c0191088] (sdp2430_panel_probe+0xc/0x18) from [c01b3f24] 
(platform_drv_probe+0x18/0x1c)
[c01b3f24] (platform_drv_probe+0x18/0x1c) from [c01b3114] 
(driver_probe_device+0xa0/0x14c)
[c01b3114] (driver_probe_device+0xa0/0x14c) from [c01b3220] 
(__driver_attach+0x60/0x84)
[c01b3220] (__driver_attach+0x60/0x84) from [c01b2990] 
(bus_for_each_dev+0x44/0x74)
[c01b2990] (bus_for_each_dev+0x44/0x74) from [c01b22e8] 
(bus_add_driver+0x9c/0x224)
[c01b22e8] (bus_add_driver+0x9c/0x224) from [c01b34f4] 
(driver_register+0xa8/0x130)
[c01b34f4] (driver_register+0xa8/0x130) from [c0026364] 
(do_one_initcall+0x5c/0x1b4)
[c0026364] (do_one_initcall+0x5c/0x1b4) from [c0008408] 
(kernel_init+0xa0/0x124)
[c0008408] (kernel_init+0xa0/0x124) from [c0027ed4] 
(kernel_thread_exit+0x0/0x8)
---[ end trace da227214a82491b7 ]---


- Paul
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2009-12-17 Thread Sergey Lapin
On Wed, Dec 16, 2009 at 2:21 PM, Tomi Valkeinen
tomi.valkei...@nokia.com wrote:
 Hi,

 On Tue, 2009-12-15 at 17:01 +0100, ext Sergey Lapin wrote:
 On Tue, Dec 15, 2009 at 6:22 PM, Tomi Valkeinen
 tomi.valkei...@nokia.com wrote:
  Hi,
 
  On Tue, 2009-12-15 at 10:58 +0100, ext Sergey Lapin wrote:
  dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
  OMAP: OMAPFB: add omapdss device
 
  The upcoming new display subsystem driver is divided to two devices,
  omapdss and omapfb, of which omapdss handles the actual hardware.
 
  This patch adds a dummy omapdss platform device for the current omapfb
  driver, which is then used to get the clocks. This will make it 
  possible
  for the current and the new display drivers to co-exist.
 
  Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
  Acked-by: Tony Lindgren t...@atomide.com
 
  breaks old omapfb.
 
  I didn't look at this further, but I quickly tested with OMAP3 SDP
  board, reverting the patch that makes SDP use DSS2, and it seems to work
  fine with the old omapfb.

 rfbi.c was still using omapfb device to get the clocks. Can you try this
 patch?


 From 33b78006fb0387e21d5f780338d821621ecad929 Mon Sep 17 00:00:00 2001
 From: Tomi Valkeinen tomi.valkei...@nokia.com
 Date: Wed, 16 Dec 2009 13:18:07 +0200
 Subject: [PATCH] OMAP: OMAPFB: fix clk_get for RFBI

 omapfb platform device was still used to get clocks inside rfbi.c
If you add #include linux/platform_device.h to this patch,
then problem is fixed.


 Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
Tested-by: Sergey Lapin sla...@ossfans.org

 ---
  drivers/video/omap/dispc.c  |2 +-
  drivers/video/omap/omapfb.h |2 ++
  drivers/video/omap/rfbi.c   |4 ++--
  3 files changed, 5 insertions(+), 3 deletions(-)

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2009-12-16 Thread Tomi Valkeinen
Hi,

On Tue, 2009-12-15 at 17:01 +0100, ext Sergey Lapin wrote:
 On Tue, Dec 15, 2009 at 6:22 PM, Tomi Valkeinen
 tomi.valkei...@nokia.com wrote:
  Hi,
 
  On Tue, 2009-12-15 at 10:58 +0100, ext Sergey Lapin wrote:
  dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
  OMAP: OMAPFB: add omapdss device
 
  The upcoming new display subsystem driver is divided to two devices,
  omapdss and omapfb, of which omapdss handles the actual hardware.
 
  This patch adds a dummy omapdss platform device for the current omapfb
  driver, which is then used to get the clocks. This will make it 
  possible
  for the current and the new display drivers to co-exist.
 
  Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
  Acked-by: Tony Lindgren t...@atomide.com
 
  breaks old omapfb.
 
  I didn't look at this further, but I quickly tested with OMAP3 SDP
  board, reverting the patch that makes SDP use DSS2, and it seems to work
  fine with the old omapfb.

rfbi.c was still using omapfb device to get the clocks. Can you try this
patch?


From 33b78006fb0387e21d5f780338d821621ecad929 Mon Sep 17 00:00:00 2001
From: Tomi Valkeinen tomi.valkei...@nokia.com
Date: Wed, 16 Dec 2009 13:18:07 +0200
Subject: [PATCH] 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.valkei...@nokia.com
---
 drivers/video/omap/dispc.c  |2 +-
 drivers/video/omap/omapfb.h |2 ++
 drivers/video/omap/rfbi.c   |4 ++--
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c
index c7c6455..e40146a 100644
--- a/drivers/video/omap/dispc.c
+++ b/drivers/video/omap/dispc.c
@@ -189,7 +189,7 @@ static struct {
struct omapfb_color_key color_key;
 } dispc;
 
-static struct platform_device omapdss_device = {
+struct platform_device omapdss_device = {
.name   = omapdss,
.id = -1,
 };
diff --git a/drivers/video/omap/omapfb.h b/drivers/video/omap/omapfb.h
index 46e4714..0a4988e 100644
--- a/drivers/video/omap/omapfb.h
+++ b/drivers/video/omap/omapfb.h
@@ -224,4 +224,6 @@ extern int  omapfb_update_window_async(struct fb_info *fbi,
   void (*callback)(void *),
   void *callback_data);
 
+extern struct platform_device omapdss_device;
+
 #endif /* __OMAPFB_H */
diff --git a/drivers/video/omap/rfbi.c b/drivers/video/omap/rfbi.c
index fed7b1b..36af8ba 100644
--- a/drivers/video/omap/rfbi.c
+++ b/drivers/video/omap/rfbi.c
@@ -83,13 +83,13 @@ static inline u32 rfbi_read_reg(int idx)
 
 static int rfbi_get_clocks(void)
 {
-   rfbi.dss_ick = clk_get(rfbi.fbdev-dev, ick);
+   rfbi.dss_ick = clk_get(omapdss_device.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(rfbi.fbdev-dev, dss1_fck);
+   rfbi.dss1_fck = clk_get(omapdss_device.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);
-- 
1.6.3.3






--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2009-12-15 Thread Sergey Lapin
dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
OMAP: OMAPFB: add omapdss device

The upcoming new display subsystem driver is divided to two devices,
omapdss and omapfb, of which omapdss handles the actual hardware.

This patch adds a dummy omapdss platform device for the current omapfb
driver, which is then used to get the clocks. This will make it possible
for the current and the new display drivers to co-exist.

Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
Acked-by: Tony Lindgren t...@atomide.com

breaks old omapfb.

[   17.234466] Registering platform device 'omapdss'. Parent at platform
[   17.237548] device: 'omapdss': device_add
[   17.241180] bus: 'platform': add device omapdss
[   17.244964] PM: Adding info for platform:omapdss
[   17.250244] omapfb: DISPC version 3.0 initialized
[   17.253326] omapfb omapfb: can't get ick
[   17.257324] PM: Removing info for platform:omapdss
[   17.261291] bus: 'platform': remove device omapdss
[   17.265411] [ cut here ]
[   17.271545] WARNING: at drivers/base/core.c:131 device_release+0x68/0x7c()
[   17.279510] Device 'omapdss' does not have a release() function, it
is broken and must be fixed.
[   17.281433] Modules linked in:
[   17.290008] [c003a9dc] (unwind_backtrace+0x0/0xdc) from
[c0062330] (warn_slowpath_common+0x48/0x60)
[   17.298583] [c0062330] (warn_slowpath_common+0x48/0x60) from
[c0062380] (warn_slowpath_fmt+0x24/0x30)
[   17.306610] [c0062380] (warn_slowpath_fmt+0x24/0x30) from
[c01fcd2c] (device_release+0x68/0x7c)
[   17.314453] [c01fcd2c] (device_release+0x68/0x7c) from
[c01b23cc] (kobject_release+0x5c/0x70)
[   17.321746] [c01b23cc] (kobject_release+0x5c/0x70) from
[c01b3208] (kref_put+0x5c/0x6c)
[   17.328887] [c01b3208] (kref_put+0x5c/0x6c) from [c01d9a78]
(hx8340_init+0x89c/0x8d8)
[   17.336822] [c01d9a78] (hx8340_init+0x89c/0x8d8) from
[c01d5018] (omapfb_do_probe+0x38c/0x970)
[   17.345123] [c01d5018] (omapfb_do_probe+0x38c/0x970) from
[c01d9af8] (gnome5_panel_probe+0xc/0x18)
[   17.353515] [c01d9af8] (gnome5_panel_probe+0xc/0x18) from
[c0201014] (platform_drv_probe+0x18/0x1c)
[   17.362243] [c0201014] (platform_drv_probe+0x18/0x1c) from
[c01fff60] (driver_probe_device+0x100/0x1e8)
[   17.370727] [c01fff60] (driver_probe_device+0x100/0x1e8) from
[c02000a8] (__driver_attach+0x60/0x84)
[   17.378753] [c02000a8] (__driver_attach+0x60/0x84) from
[c01ff658] (bus_for_each_dev+0x44/0x74)
[   17.386871] [c01ff658] (bus_for_each_dev+0x44/0x74) from
[c01fef80] (bus_add_driver+0x140/0x2d0)
[   17.394989] [c01fef80] (bus_add_driver+0x140/0x2d0) from
[c020039c] (driver_register+0xa8/0x130)
[   17.403106] [c020039c] (driver_register+0xa8/0x130) from
[c0034364] (do_one_initcall+0x5c/0x1b4)
[   17.410858] [c0034364] (do_one_initcall+0x5c/0x1b4) from
[c0008588] (kernel_init+0xa0/0x124)
[   17.418640] [c0008588] (kernel_init+0xa0/0x124) from [c0035f80]
(kernel_thread_exit+0x0/0x8)
[   17.422363] ---[ end trace da227214a82491b7 ]---
[   17.427520] omapfb omapfb: controller initialization failed (-2)
[   17.433715] driver: 'gnome5_lcd': driver_bound: bound to device 'gnome5_lcd'
[   17.440948] bus: 'platform': really_probe: bound device gnome5_lcd
to driver gnome5_lcd

Any ideas?

Also - is there some guidelines on porting old RFBI-based driver to DSS2?

Thanks a lot,
S.
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2009-12-15 Thread Tomi Valkeinen
Hi,

On Tue, 2009-12-15 at 10:58 +0100, ext Sergey Lapin wrote:
 dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
 OMAP: OMAPFB: add omapdss device
 
 The upcoming new display subsystem driver is divided to two devices,
 omapdss and omapfb, of which omapdss handles the actual hardware.
 
 This patch adds a dummy omapdss platform device for the current omapfb
 driver, which is then used to get the clocks. This will make it possible
 for the current and the new display drivers to co-exist.
 
 Signed-off-by: Tomi Valkeinen tomi.valkei...@nokia.com
 Acked-by: Tony Lindgren t...@atomide.com
 
 breaks old omapfb.

I didn't look at this further, but I quickly tested with OMAP3 SDP
board, reverting the patch that makes SDP use DSS2, and it seems to work
fine with the old omapfb.

Perhaps you have more kernel debug options enabled, and then it
complains about missing release function. I'll look at it tomorrow.

 
 [   17.234466] Registering platform device 'omapdss'. Parent at platform
 [   17.237548] device: 'omapdss': device_add
 [   17.241180] bus: 'platform': add device omapdss
 [   17.244964] PM: Adding info for platform:omapdss
 [   17.250244] omapfb: DISPC version 3.0 initialized
 [   17.253326] omapfb omapfb: can't get ick
 [   17.257324] PM: Removing info for platform:omapdss
 [   17.261291] bus: 'platform': remove device omapdss
 [   17.265411] [ cut here ]
 [   17.271545] WARNING: at drivers/base/core.c:131 device_release+0x68/0x7c()
 [   17.279510] Device 'omapdss' does not have a release() function, it
 is broken and must be fixed.
 [   17.281433] Modules linked in:
 [   17.290008] [c003a9dc] (unwind_backtrace+0x0/0xdc) from
 [c0062330] (warn_slowpath_common+0x48/0x60)
 [   17.298583] [c0062330] (warn_slowpath_common+0x48/0x60) from
 [c0062380] (warn_slowpath_fmt+0x24/0x30)
 [   17.306610] [c0062380] (warn_slowpath_fmt+0x24/0x30) from
 [c01fcd2c] (device_release+0x68/0x7c)
 [   17.314453] [c01fcd2c] (device_release+0x68/0x7c) from
 [c01b23cc] (kobject_release+0x5c/0x70)
 [   17.321746] [c01b23cc] (kobject_release+0x5c/0x70) from
 [c01b3208] (kref_put+0x5c/0x6c)
 [   17.328887] [c01b3208] (kref_put+0x5c/0x6c) from [c01d9a78]
 (hx8340_init+0x89c/0x8d8)
 [   17.336822] [c01d9a78] (hx8340_init+0x89c/0x8d8) from
 [c01d5018] (omapfb_do_probe+0x38c/0x970)
 [   17.345123] [c01d5018] (omapfb_do_probe+0x38c/0x970) from
 [c01d9af8] (gnome5_panel_probe+0xc/0x18)
 [   17.353515] [c01d9af8] (gnome5_panel_probe+0xc/0x18) from
 [c0201014] (platform_drv_probe+0x18/0x1c)
 [   17.362243] [c0201014] (platform_drv_probe+0x18/0x1c) from
 [c01fff60] (driver_probe_device+0x100/0x1e8)
 [   17.370727] [c01fff60] (driver_probe_device+0x100/0x1e8) from
 [c02000a8] (__driver_attach+0x60/0x84)
 [   17.378753] [c02000a8] (__driver_attach+0x60/0x84) from
 [c01ff658] (bus_for_each_dev+0x44/0x74)
 [   17.386871] [c01ff658] (bus_for_each_dev+0x44/0x74) from
 [c01fef80] (bus_add_driver+0x140/0x2d0)
 [   17.394989] [c01fef80] (bus_add_driver+0x140/0x2d0) from
 [c020039c] (driver_register+0xa8/0x130)
 [   17.403106] [c020039c] (driver_register+0xa8/0x130) from
 [c0034364] (do_one_initcall+0x5c/0x1b4)
 [   17.410858] [c0034364] (do_one_initcall+0x5c/0x1b4) from
 [c0008588] (kernel_init+0xa0/0x124)
 [   17.418640] [c0008588] (kernel_init+0xa0/0x124) from [c0035f80]
 (kernel_thread_exit+0x0/0x8)
 [   17.422363] ---[ end trace da227214a82491b7 ]---
 [   17.427520] omapfb omapfb: controller initialization failed (-2)
 [   17.433715] driver: 'gnome5_lcd': driver_bound: bound to device 
 'gnome5_lcd'
 [   17.440948] bus: 'platform': really_probe: bound device gnome5_lcd
 to driver gnome5_lcd
 
 Any ideas?
 
 Also - is there some guidelines on porting old RFBI-based driver to DSS2?

No, and currently the DSS2 RFBI support may not work. I don't have
hardware to test it, and the DSS driver has changed around it. Can
anyone confirm that the RFBI support works, and does anyone have public
RFBI drivers?

But basically RFBI drivers and DSI command mode panels (panel-taal.c for
example) should be somewhat similar. One thing to note is that the
current model doesn't support separate controller (or buffer) chips
and panels very neatly, although it should work.

 Tomi


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: dadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98 breaks omapfb (old non-dss2)

2009-12-15 Thread Sergey Lapin
 Also - is there some guidelines on porting old RFBI-based driver to DSS2?

 No, and currently the DSS2 RFBI support may not work. I don't have
 hardware to test it, and the DSS driver has changed around it. Can
 anyone confirm that the RFBI support works, and does anyone have public
 RFBI drivers?
Well, in tree, drivers/video/omap/hwa742.c is driver for RFBI-based
display driver with hwa742 controller.
I think porting Nokia 770 to DSS2 could be nice example...
Actually, old RFBI driver is very limited comparing to OMAP3 features,
and supports
only 16bit color mode (hardcoded). I'd like to see OMAP3 features
there, some of them are trivial to add,
I have some patches for that, but they are simply bad approach because
they are based on old driver,
hardcode values, use hackish approaches. So, I'd like to see the
right way, so I could move farther
with them and toss that messy junk.

Thanks a lot,
S.
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html