All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: ext Bryan Wu <bryan.wu@canonical.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"gadiyar@ti.com" <gadiyar@ti.com>,
	"notasas@gmail.com" <notasas@gmail.com>
Subject: Re: [PATCH 1/3] OMAP: use generic panel data in board files
Date: Mon, 08 Nov 2010 14:26:03 +0200	[thread overview]
Message-ID: <1289219163.3297.54.camel@tubuntu> (raw)
In-Reply-To: <1288986236-30210-2-git-send-email-bryan.wu@canonical.com>

Hi,

On Fri, 2010-11-05 at 20:43 +0100, ext Bryan Wu wrote:
> Introduce struct panel config data in panel.h, which will be used to match
> the right panel configurations in generic DPI panel driver and other future
> dsi panel drivers.
> 
> Still keep sharp_ls_panel, since the sharp_ls_panel driver contains blacklight
> control driver code which will be moved out later. Then we can use generic DPI
> driver for sharp_ls_panel.

As mentioned in the other mail, don't touch panel-taal or
nokia-dsi-panel.h. They are not related to this change.

The panel.h file should be spesific for the generic panel driver, so
name the .c and .h files similarly. (yes, panel-taal.c and
nokia-dsi-panel.h are not good examples for this, but I have a patch
fixing it, I just haven't had time to push it forward =).

And remember that the kernel should compile and work after each
individual patch in the patch set. In this patch you set the boards to
use dvi_panel driver, but there is no dvi_panel driver yet.

Also some comments inline.

> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
> ---
>  arch/arm/mach-omap2/board-3430sdp.c               |   10 +++-
>  arch/arm/mach-omap2/board-am3517evm.c             |   19 +++++--
>  arch/arm/mach-omap2/board-cm-t35.c                |   19 +++++--
>  arch/arm/mach-omap2/board-devkit8000.c            |   22 +++++---
>  arch/arm/mach-omap2/board-igep0020.c              |   10 +++-
>  arch/arm/mach-omap2/board-omap3beagle.c           |   10 +++-
>  arch/arm/mach-omap2/board-omap3evm.c              |   10 +++-
>  arch/arm/mach-omap2/board-omap3stalker.c          |   19 +++++--
>  arch/arm/plat-omap/include/plat/nokia-dsi-panel.h |   31 -----------
>  arch/arm/plat-omap/include/plat/panel.h           |   57 +++++++++++++++++++++
>  drivers/video/omap2/displays/panel-taal.c         |   26 ++++------
>  11 files changed, 148 insertions(+), 85 deletions(-)
>  delete mode 100644 arch/arm/plat-omap/include/plat/nokia-dsi-panel.h
>  create mode 100644 arch/arm/plat-omap/include/plat/panel.h
> 
> diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
> index 4e3742c..859b4e5 100644
> --- a/arch/arm/mach-omap2/board-3430sdp.c
> +++ b/arch/arm/mach-omap2/board-3430sdp.c
> @@ -38,6 +38,7 @@
>  #include <plat/dma.h>
>  #include <plat/gpmc.h>
>  #include <plat/display.h>
> +#include <plat/panel.h>
> 
>  #include <plat/gpmc-smc91x.h>
> 
> @@ -270,11 +271,14 @@ static struct omap_dss_device sdp3430_lcd_device = {
>         .platform_disable       = sdp3430_panel_disable_lcd,
>  };
> 
> +static struct panel_data dvi_panel = {
> +       .name           = "generic",
> +};
> +
>  static struct omap_dss_device sdp3430_dvi_device = {
>         .name                   = "dvi",
> -       .driver_name            = "generic_panel",
> -       .type                   = OMAP_DISPLAY_TYPE_DPI,
> -       .phy.dpi.data_lines     = 24,

Why do you remove type and datalines configuration? You do this for the
other panels also.

 Tomi



WARNING: multiple messages have this Message-ID (diff)
From: tomi.valkeinen@nokia.com (Tomi Valkeinen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] OMAP: use generic panel data in board files
Date: Mon, 08 Nov 2010 14:26:03 +0200	[thread overview]
Message-ID: <1289219163.3297.54.camel@tubuntu> (raw)
In-Reply-To: <1288986236-30210-2-git-send-email-bryan.wu@canonical.com>

Hi,

On Fri, 2010-11-05 at 20:43 +0100, ext Bryan Wu wrote:
> Introduce struct panel config data in panel.h, which will be used to match
> the right panel configurations in generic DPI panel driver and other future
> dsi panel drivers.
> 
> Still keep sharp_ls_panel, since the sharp_ls_panel driver contains blacklight
> control driver code which will be moved out later. Then we can use generic DPI
> driver for sharp_ls_panel.

As mentioned in the other mail, don't touch panel-taal or
nokia-dsi-panel.h. They are not related to this change.

The panel.h file should be spesific for the generic panel driver, so
name the .c and .h files similarly. (yes, panel-taal.c and
nokia-dsi-panel.h are not good examples for this, but I have a patch
fixing it, I just haven't had time to push it forward =).

And remember that the kernel should compile and work after each
individual patch in the patch set. In this patch you set the boards to
use dvi_panel driver, but there is no dvi_panel driver yet.

Also some comments inline.

> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
> ---
>  arch/arm/mach-omap2/board-3430sdp.c               |   10 +++-
>  arch/arm/mach-omap2/board-am3517evm.c             |   19 +++++--
>  arch/arm/mach-omap2/board-cm-t35.c                |   19 +++++--
>  arch/arm/mach-omap2/board-devkit8000.c            |   22 +++++---
>  arch/arm/mach-omap2/board-igep0020.c              |   10 +++-
>  arch/arm/mach-omap2/board-omap3beagle.c           |   10 +++-
>  arch/arm/mach-omap2/board-omap3evm.c              |   10 +++-
>  arch/arm/mach-omap2/board-omap3stalker.c          |   19 +++++--
>  arch/arm/plat-omap/include/plat/nokia-dsi-panel.h |   31 -----------
>  arch/arm/plat-omap/include/plat/panel.h           |   57 +++++++++++++++++++++
>  drivers/video/omap2/displays/panel-taal.c         |   26 ++++------
>  11 files changed, 148 insertions(+), 85 deletions(-)
>  delete mode 100644 arch/arm/plat-omap/include/plat/nokia-dsi-panel.h
>  create mode 100644 arch/arm/plat-omap/include/plat/panel.h
> 
> diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
> index 4e3742c..859b4e5 100644
> --- a/arch/arm/mach-omap2/board-3430sdp.c
> +++ b/arch/arm/mach-omap2/board-3430sdp.c
> @@ -38,6 +38,7 @@
>  #include <plat/dma.h>
>  #include <plat/gpmc.h>
>  #include <plat/display.h>
> +#include <plat/panel.h>
> 
>  #include <plat/gpmc-smc91x.h>
> 
> @@ -270,11 +271,14 @@ static struct omap_dss_device sdp3430_lcd_device = {
>         .platform_disable       = sdp3430_panel_disable_lcd,
>  };
> 
> +static struct panel_data dvi_panel = {
> +       .name           = "generic",
> +};
> +
>  static struct omap_dss_device sdp3430_dvi_device = {
>         .name                   = "dvi",
> -       .driver_name            = "generic_panel",
> -       .type                   = OMAP_DISPLAY_TYPE_DPI,
> -       .phy.dpi.data_lines     = 24,

Why do you remove type and datalines configuration? You do this for the
other panels also.

 Tomi

  parent reply	other threads:[~2010-11-08 12:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05 19:43 [PATCH 0/3] OMAP: DSS2: introduce generic panel display driver (try #3) Bryan Wu
2010-11-05 19:43 ` Bryan Wu
2010-11-05 19:43 ` [PATCH 1/3] OMAP: use generic panel data in board files Bryan Wu
2010-11-05 19:43   ` Bryan Wu
2010-11-05 21:17   ` Taneja, Archit
2010-11-05 21:17     ` Taneja, Archit
2010-11-08 12:19     ` Tomi Valkeinen
2010-11-08 12:19       ` Tomi Valkeinen
2010-11-08 19:49       ` Bryan Wu
2010-11-08 19:49         ` Bryan Wu
2010-11-08 12:26   ` Tomi Valkeinen [this message]
2010-11-08 12:26     ` Tomi Valkeinen
2010-11-08 19:43     ` Bryan Wu
2010-11-08 19:43       ` Bryan Wu
2010-11-09 10:13       ` Tomi Valkeinen
2010-11-09 10:13         ` Tomi Valkeinen
2010-11-05 19:43 ` [PATCH 2/3] OMAP: DSS2: Add generic panel display driver Bryan Wu
2010-11-05 19:43   ` Bryan Wu
2010-11-05 20:59   ` Taneja, Archit
2010-11-05 20:59     ` Taneja, Archit
2010-11-05 19:43 ` [PATCH 3/3] OMAP: DSS2: remove generic DPI panel driver duplicated panel drivers Bryan Wu
2010-11-05 19:43   ` Bryan Wu

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=1289219163.3297.54.camel@tubuntu \
    --to=tomi.valkeinen@nokia.com \
    --cc=bryan.wu@canonical.com \
    --cc=gadiyar@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=notasas@gmail.com \
    /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 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.