Thread (5 messages) 5 messages, 2 authors, 2010-06-21

Re: [PATCH 3/5] of/address: Merge all of the bus translation code

From: Grant Likely <hidden>
Date: 2010-06-21 21:06:22

On Thu, Jun 10, 2010 at 8:26 AM, Grant Likely [off-list ref] w=
rote:
On Thu, Jun 10, 2010 at 12:43 AM, Benjamin Herrenschmidt
[off-list ref] wrote:
quoted
On Tue, 2010-06-08 at 08:10 -0600, Grant Likely wrote:
quoted
Microblaze and PowerPC share a large chunk of code for translating
OF device tree data into usable addresses. =A0There aren't many differe=
nces
quoted
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^
quoted
Care to comment on these differences ?
Purely cosmetic IIRC, but I will go back and double check. =A0Things
like printk vs. pr_info and some style differences. =A0I looked at them
side-by-side and fixed each difference individually until they were
identical.
quoted
quoted
between the two, so merge the codebase wholesale rather than trying to
work out the independent bits.
Well, I don't see ifdef's in the resulting code (but I'm a bit blind),
so what did you do with the differences ?

This is complex and fragile code, so any change to it must be very
carefully scrutinized.
Hi Ben,

I've double checked side-by-side.  The changes are all cosmetic expect
for the addition of dma-ranges support on the powerpc version that
hadn't been applied to microblaze.  This patch takes the powerpc code
plus the cosmetic changes (spaces, pr_debug vs DBG, etc) from the
microblaze side.  There should be no functional changes to either
platform since microblaze doesn't currently use dma-ranges anyway.

Here's the new commit text:

----
    of/address: Merge all of the bus translation code

    Microblaze and PowerPC share a large chunk of code for translating
    OF device tree data into usable addresses.  Differences between the two
    consist of cosmetic differences, and the addition of dma-ranges support
    to powerpc but not microblaze.  This patch moves the powerpc
    version into common code and applies many of the cosmetic (non-function=
al)
    changes from the microblaze version.
----

I've only changed the commit text.  The patch remains unchanged.  Are
you okay with this patch?

Cheers,
g.

quoted
Cheers,
Ben.
quoted
Signed-off-by: Grant Likely <redacted>
CC: Michal Simek <monstr@monstr.eu>
CC: Wolfram Sang <redacted>
CC: Stephen Rothwell <redacted>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: microblaze-uclinux@itee.uq.edu.au
CC: linuxppc-dev@ozlabs.org
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help