* [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
@ 2008-03-26 12:44 Laurent Pinchart
2008-03-26 14:45 ` Segher Boessenkool
0 siblings, 1 reply; 12+ messages in thread
From: Laurent Pinchart @ 2008-03-26 12:44 UTC (permalink / raw)
To: linux-mtd
Cc: ben, linuxppc-dev, Rune Torgersen, Sergei Shtylyov, David Gibson
Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
---
drivers/mtd/maps/physmap_of.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index 49acd41..65c30b5 100644
--- a/drivers/mtd/maps/physmap_of.c
+++ b/drivers/mtd/maps/physmap_of.c
@@ -273,6 +273,14 @@ static struct of_device_id of_flash_match[] = {
.data = (void *)"jedec_probe",
},
{
+ .compatible = "physmap-ram",
+ .data = (void *)"map_ram",
+ },
+ {
+ .compatible = "physmap-rom",
+ .data = (void *)"map_rom",
+ },
+ {
.type = "rom",
.compatible = "direct-mapped"
},
--
1.5.0
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-03-26 12:44 [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver Laurent Pinchart
@ 2008-03-26 14:45 ` Segher Boessenkool
2008-03-26 15:26 ` Sergei Shtylyov
0 siblings, 1 reply; 12+ messages in thread
From: Segher Boessenkool @ 2008-03-26 14:45 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: ben, linuxppc-dev, linux-mtd, David Gibson
> {
> + .compatible = "physmap-ram",
> + .data = (void *)"map_ram",
> + },
> + {
> + .compatible = "physmap-rom",
> + .data = (void *)"map_rom",
> + },
Why the cast? It's redundant afaics.
Segher
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-03-26 14:45 ` Segher Boessenkool
@ 2008-03-26 15:26 ` Sergei Shtylyov
2008-03-26 15:34 ` Segher Boessenkool
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Shtylyov @ 2008-03-26 15:26 UTC (permalink / raw)
To: Segher Boessenkool
Cc: Laurent Pinchart, ben, David Gibson, linux-mtd, linuxppc-dev
Segher Boessenkool wrote:
>> {
>> + .compatible = "physmap-ram",
>> + .data = (void *)"map_ram",
>> + },
>> + {
>> + .compatible = "physmap-rom",
>> + .data = (void *)"map_rom",
>> + },
> Why the cast? It's redundant afaics.
To be in line with the surrounding code...
> Segher
WBR, Sergei
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-03-26 15:26 ` Sergei Shtylyov
@ 2008-03-26 15:34 ` Segher Boessenkool
2008-03-26 23:37 ` David Gibson
2008-03-27 9:26 ` Laurent Pinchart
0 siblings, 2 replies; 12+ messages in thread
From: Segher Boessenkool @ 2008-03-26 15:34 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: ben, linuxppc-dev, linux-mtd, Laurent Pinchart, David Gibson
>>> {
>>> + .compatible = "physmap-ram",
>>> + .data = (void *)"map_ram",
>>> + },
>>> + {
>>> + .compatible = "physmap-rom",
>>> + .data = (void *)"map_rom",
>>> + },
>
>> Why the cast? It's redundant afaics.
>
> To be in line with the surrounding code...
I see _that_, but it's not a great argument IMNSHO. Could I trick
you into preceding this patch with a cleanup patch for the existing
casts?
Segher
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-03-26 15:34 ` Segher Boessenkool
@ 2008-03-26 23:37 ` David Gibson
2008-03-27 9:26 ` Laurent Pinchart
1 sibling, 0 replies; 12+ messages in thread
From: David Gibson @ 2008-03-26 23:37 UTC (permalink / raw)
To: Segher Boessenkool; +Cc: Sergei Shtylyov, ben, linux-mtd, linuxppc-dev
On Wed, Mar 26, 2008 at 04:34:58PM +0100, Segher Boessenkool wrote:
>>>> {
>>>> + .compatible = "physmap-ram",
>>>> + .data = (void *)"map_ram",
>>>> + },
>>>> + {
>>>> + .compatible = "physmap-rom",
>>>> + .data = (void *)"map_rom",
>>>> + },
>>
>>> Why the cast? It's redundant afaics.
>>
>> To be in line with the surrounding code...
>
> I see _that_, but it's not a great argument IMNSHO. Could I trick
> you into preceding this patch with a cleanup patch for the existing
> casts?
Hrm. Much as I generally dislike redundant casts, these ones do serve
to inform the reader that the data field is not always a string, which
they might otherwise assume.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-03-26 15:34 ` Segher Boessenkool
2008-03-26 23:37 ` David Gibson
@ 2008-03-27 9:26 ` Laurent Pinchart
2008-04-22 20:09 ` David Woodhouse
1 sibling, 1 reply; 12+ messages in thread
From: Laurent Pinchart @ 2008-03-27 9:26 UTC (permalink / raw)
To: linux-mtd
Cc: Sergei Shtylyov, ben, David Gibson, Segher Boessenkool,
linuxppc-dev
On Wednesday 26 March 2008 16:34, Segher Boessenkool wrote:
> >>> {
> >>> + .compatible = "physmap-ram",
> >>> + .data = (void *)"map_ram",
> >>> + },
> >>> + {
> >>> + .compatible = "physmap-rom",
> >>> + .data = (void *)"map_rom",
> >>> + },
> >
> >> Why the cast? It's redundant afaics.
> >
> > To be in line with the surrounding code...
>
> I see _that_, but it's not a great argument IMNSHO. Could I trick
> you into preceding this patch with a cleanup patch for the existing
> casts?
Ok. I'll submit a new patch as soon as we agree on a compatible name.
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-03-27 9:26 ` Laurent Pinchart
@ 2008-04-22 20:09 ` David Woodhouse
2008-04-22 20:16 ` Sergei Shtylyov
0 siblings, 1 reply; 12+ messages in thread
From: David Woodhouse @ 2008-04-22 20:09 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Segher Boessenkool, Sergei Shtylyov, ben, linuxppc-dev, linux-mtd,
David Gibson
On Thu, 2008-03-27 at 10:26 +0100, Laurent Pinchart wrote:
> Ok. I'll submit a new patch as soon as we agree on a compatible name.
Did we?
--
dwmw2
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-04-22 20:09 ` David Woodhouse
@ 2008-04-22 20:16 ` Sergei Shtylyov
2008-04-22 20:18 ` David Woodhouse
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Shtylyov @ 2008-04-22 20:16 UTC (permalink / raw)
To: David Woodhouse
Cc: ben, Segher Boessenkool, Laurent Pinchart, linuxppc-dev,
linux-mtd, David Gibson
David Woodhouse wrote:
>>Ok. I'll submit a new patch as soon as we agree on a compatible name.
> Did we?
IIRC, The latest agreement was that we don't need the "compatible" and
will match on node name.
WBR, Sergei
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-04-22 20:16 ` Sergei Shtylyov
@ 2008-04-22 20:18 ` David Woodhouse
2008-04-23 11:12 ` Sergei Shtylyov
0 siblings, 1 reply; 12+ messages in thread
From: David Woodhouse @ 2008-04-22 20:18 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: ben, Segher Boessenkool, Laurent Pinchart, linuxppc-dev,
linux-mtd, David Gibson
On Wed, 2008-04-23 at 00:16 +0400, Sergei Shtylyov wrote:
> David Woodhouse wrote:
>
> >>Ok. I'll submit a new patch as soon as we agree on a compatible name.
>
> > Did we?
>
> IIRC, The latest agreement was that we don't need the "compatible" and
> will match on node name.
Ok. Is there a current patch I should be merging?
--
dwmw2
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.
2008-04-22 20:18 ` David Woodhouse
@ 2008-04-23 11:12 ` Sergei Shtylyov
[not found] ` <200804251353.13698.laurentp@cse-semaphore.com>
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Shtylyov @ 2008-04-23 11:12 UTC (permalink / raw)
To: David Woodhouse
Cc: ben, Segher Boessenkool, Laurent Pinchart, linuxppc-dev,
linux-mtd, David Gibson
David Woodhouse wrote:
>>>>Ok. I'll submit a new patch as soon as we agree on a compatible name.
>>>Did we?
>> IIRC, The latest agreement was that we don't need the "compatible" and
>>will match on node name.
> Ok. Is there a current patch I should be merging?
Looks like it was decided to revert to the platform device method, not
sure why -- so, no changes. Laurent?
WBR, Sergei
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-04-28 20:30 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 12:44 [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver Laurent Pinchart
2008-03-26 14:45 ` Segher Boessenkool
2008-03-26 15:26 ` Sergei Shtylyov
2008-03-26 15:34 ` Segher Boessenkool
2008-03-26 23:37 ` David Gibson
2008-03-27 9:26 ` Laurent Pinchart
2008-04-22 20:09 ` David Woodhouse
2008-04-22 20:16 ` Sergei Shtylyov
2008-04-22 20:18 ` David Woodhouse
2008-04-23 11:12 ` Sergei Shtylyov
[not found] ` <200804251353.13698.laurentp@cse-semaphore.com>
2008-04-28 16:26 ` [PATCH 1/2] [MTD] Add support for RAM & ROMmappings " Rune Torgersen
2008-04-28 20:30 ` Scott Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).