From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: "ext Taneja, Archit" <archit@ti.com>
Cc: "Semwal, Sumit" <sumit.semwal@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: RE: DSS2 patch series
Date: Tue, 03 Aug 2010 11:43:43 +0300 [thread overview]
Message-ID: <1280825023.3436.111.camel@tubuntu.research.nokia.com> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC35608703061EBA59@dbde02.ent.ti.com>
On Mon, 2010-08-02 at 14:05 +0200, ext Taneja, Archit wrote:
> Hi,
>
> > On Tue, 2010-07-27 at 10:27 +0200, ext Taneja, Archit wrote:
> > > Hi,
> > >
> > > We had pushed three patch series while you were out. We
> > received some
> > > good comments on them. We wanted to know if you can point out more
> > > fixes and susuggestions before we rework them.
> > >
> > > https://patchwork.kernel.org/patch/111901/
> > >
> > > https://patchwork.kernel.org/patch/112648/
> > >
> > > https://patchwork.kernel.org/patch/112653/
> >
> > Do you have updated patches for these? It would be easier to
> > review new ones than the old ones.
> >
> > Tomi
>
> The comments on the existing patches have been mostly related
> to minimizing the number of patches in each series, moving some
> #defines to header files and one or two typos.
>
> I haven't reworked these patches yet, I wanted to know if you
> could review the changes you had suggested on the v1 of the series
> below:
I think the register handling looks much better now. Although defines
like this:
+#define DISPC_DEFAULT_COLOR(ch) DISPC_REG(ch == OMAP_DSS_CHANNEL_LCD \
+ ? (0x004C) : (ch == OMAP_DSS_CHANNEL_DIGIT ? \
+ (0x0050) : (0x03AC)))
makes me wonder if a separate lookup table would be cleaner. But perhaps
it's not too bad yet.
Also, we should think how to reduce if (cpu_is_omap44xx()) lines. There
should be some kind of DSS capability list somewhere, which would tell
the features available. I haven't thought this more, but it'd be very
nice if we could use the DSS HW version number to decide what features
there are.
However, TI answered that information about DSS HW version numbers is
not available, and thus cannot be used =(. Perhaps you could try to dig
out some information from inside TI?
And, as others have commented, consider how to split the patches. The
most important rule is that every stage in the patch set has to compile.
One thing that I personally think makes patch sets clearer, is to divide
a new functionality into two parts: 1) modify the old code, without
adding new functionality, so that the new functionality is easier to add
2) add the new functionality.
As an example, if we look at the new DISPC registers patch:
There could first be a patch that introduces DISPC_XXX(channel) style
registers (even if there's only one channel available) and modifies the
functions accordingly.
The second patch would introduce OMAP4 registers and whatever new
functionality these registers require.
This way it would be easy to study and test the first patch, as it
shouldn't introduce any new functionality, but just "shuffles the code
around".
And it would be easy to study the second patch, as the needed base
functionality is already there, and there's lot less new stuff added.
Tomi
next prev parent reply other threads:[~2010-08-03 8:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 8:27 DSS2 patch series Taneja, Archit
2010-08-02 11:51 ` Tomi Valkeinen
2010-08-02 12:05 ` Taneja, Archit
2010-08-03 8:43 ` Tomi Valkeinen [this message]
2010-08-03 9:00 ` Taneja, Archit
2010-08-05 7:06 ` Taneja, Archit
2010-08-05 8:09 ` Tomi Valkeinen
2010-08-10 9:33 ` Taneja, Archit
2010-08-17 10:52 ` Tomi Valkeinen
2010-08-17 11:16 ` Taneja, Archit
2010-08-17 11:32 ` Cousson, Benoit
2010-08-19 18:43 ` Taneja, Archit
2010-08-17 11:39 ` Tomi Valkeinen
2010-08-19 21:33 ` 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=1280825023.3436.111.camel@tubuntu.research.nokia.com \
--to=tomi.valkeinen@nokia.com \
--cc=archit@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=sumit.semwal@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox