public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: ext Archit Taneja <archit@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [RFC v3][PATCH 0/4] OMAP: DSS2: Overlay Manager LCD2 support in DISPC
Date: Tue, 19 Oct 2010 16:09:50 +0300	[thread overview]
Message-ID: <1287493790.2216.26.camel@tubuntu> (raw)
In-Reply-To: <1286279724-11692-1-git-send-email-archit@ti.com>

Hi,

On Tue, 2010-10-05 at 13:55 +0200, ext Archit Taneja wrote:
> This patch series which incorporates changes in DSS2 to enable
> omap_dss_device instances to use the new Overlay Manager LCD2 in
> DISPC.
> 
> On OMAP4, we have a new DISPC channel for Overlay Manager LCD2. This
> channel's video port is a source port for RFBI, DSI2 and DPI. The
> Primary channel's video port is connected to RFBI and DSI1.
> 
> There is a set of regsiters for LCD2 channel similar to the existing
> LCD channel, like DISPC_CONTROL2, DISPC_DIVISOR2, DISPC_CONFIG2 and so
> on.
> 
> In order to decide which LCD Overlay Manager to configure(LCD/LCD2),
> there is a need for the omap_dss_device instances to tell the interface
> drivers(DSI, DPI, RFBI etc) which LCD channel they want to connect to, so
> that the corresponding registers get configured. Therefore, a new
> enum omap_channel member is introduced to omap_dss_device.
> 
> This design was made keeping in mind the possible addition of more
> Overlay Managers in future OMAPs, this code is also backward compatible
> with OMAP3 as omap_dss_device instances in OMAP3 will stick only with
> OMAP_DSS_CHANNEL_LCD.
> 
> This will apply over the set of dss_feature framework patches:
> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg34768.html

The patchset makes dispc API changes in patch 2, but doesn't change any
of the code that uses that API. This means that the kernel doesn't
compile after applying patch 2.

The kernel has to be compilable and working after each patch, so that is
not acceptable.

Fixing that in easy way would mean squashing the later patches together
with patch 2, but that would result in a huge patch, and patch 2 is
already very big. Thus I'd suggest doing the changes in smaller bits.

You could first add the register definitions, and make the changes in
dispc.c to keep everything working. After that you could change the
dispc functions, one by one or in small groups (depending on the amount
of changes), and add the channel argument and adjusting the code using
those functions in the same time.

This would solve the problem of keeping the kernel working, and would
make the patches much more readable.

 Tomi



  parent reply	other threads:[~2010-10-19 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 11:55 [RFC v3][PATCH 0/4] OMAP: DSS2: Overlay Manager LCD2 support in DISPC Archit Taneja
2010-10-05 11:55 ` [RFC v3][PATCH 1/4] OMAP: DSS2: Add dss_features for omap4 and new overlay manager level features Archit Taneja
2010-10-05 11:55 ` [RFC v3][PATCH 2/4] OMAP: DSS2: Incorporate Secondary LCD Channel DISPC Registers Archit Taneja
2010-10-05 11:55 ` [RFC v3][PATCH 3/4] OMAP: DSS2: Interface driver changes for Secondary LCD Channel Archit Taneja
2010-10-05 11:55 ` [RFC v3][PATCH 4/4] OMAP: DSS2: Add new Overlay Manager Archit Taneja
2010-10-19 13:09 ` Tomi Valkeinen [this message]
2010-10-20  3:56   ` [RFC v3][PATCH 0/4] OMAP: DSS2: Overlay Manager LCD2 support in DISPC Taneja, Archit

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=1287493790.2216.26.camel@tubuntu \
    --to=tomi.valkeinen@nokia.com \
    --cc=archit@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox