* platforms/44x/warp-nand.c bogosity
@ 2008-08-01 15:14 Adrian Bunk
2008-08-01 15:26 ` Josh Boyer
2008-08-01 15:41 ` Sean MacLennan
0 siblings, 2 replies; 6+ messages in thread
From: Adrian Bunk @ 2008-08-01 15:14 UTC (permalink / raw)
To: Sean MacLennan, Josh Boyer, Valentine Barshak, Stefan Roese,
mporter, paulus, benh
Cc: linuxppc-dev
arch/powerpc/platforms/44x/warp-nand.c was added this year and updated
quite recently.
warp-nand.c is empty unless CONFIG_MTD_NAND_NDFC=y.
MTD_NAND_NDFC depends on !PPC_MERGE.
!PPC_MERGE can never be true on PPC now that arch/ppc/ got removed.
So warp-nand.c is dead code, but that does not seem to be intentionally?
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: platforms/44x/warp-nand.c bogosity
2008-08-01 15:14 platforms/44x/warp-nand.c bogosity Adrian Bunk
@ 2008-08-01 15:26 ` Josh Boyer
2008-08-01 15:32 ` Valentine Barshak
2008-08-01 15:59 ` Sean MacLennan
2008-08-01 15:41 ` Sean MacLennan
1 sibling, 2 replies; 6+ messages in thread
From: Josh Boyer @ 2008-08-01 15:26 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linuxppc-dev, paulus, Sean MacLennan, Stefan Roese
On Fri, 1 Aug 2008 18:14:01 +0300
Adrian Bunk <bunk@kernel.org> wrote:
> arch/powerpc/platforms/44x/warp-nand.c was added this year and updated
> quite recently.
>
> warp-nand.c is empty unless CONFIG_MTD_NAND_NDFC=y.
>
> MTD_NAND_NDFC depends on !PPC_MERGE.
>
> !PPC_MERGE can never be true on PPC now that arch/ppc/ got removed.
>
> So warp-nand.c is dead code, but that does not seem to be intentionally?
I don't believe it is intentional, no. Sean can you look at this and
see what's up? I have a couple of fixes to queue up from you already
and if you can get this one done in the next few days I'll included it
as well.
josh
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: platforms/44x/warp-nand.c bogosity
2008-08-01 15:26 ` Josh Boyer
@ 2008-08-01 15:32 ` Valentine Barshak
2008-08-02 3:42 ` Sean MacLennan
2008-08-01 15:59 ` Sean MacLennan
1 sibling, 1 reply; 6+ messages in thread
From: Valentine Barshak @ 2008-08-01 15:32 UTC (permalink / raw)
To: Josh Boyer
Cc: Adrian Bunk, linuxppc-dev, paulus, Sean MacLennan, Stefan Roese
Josh Boyer wrote:
> On Fri, 1 Aug 2008 18:14:01 +0300
> Adrian Bunk <bunk@kernel.org> wrote:
>
>> arch/powerpc/platforms/44x/warp-nand.c was added this year and updated
>> quite recently.
>>
>> warp-nand.c is empty unless CONFIG_MTD_NAND_NDFC=y.
>>
>> MTD_NAND_NDFC depends on !PPC_MERGE.
>>
>> !PPC_MERGE can never be true on PPC now that arch/ppc/ got removed.
>>
>> So warp-nand.c is dead code, but that does not seem to be intentionally?
>
> I don't believe it is intentional, no. Sean can you look at this and
> see what's up? I have a couple of fixes to queue up from you already
> and if you can get this one done in the next few days I'll included it
> as well.
>
> josh
The current community ndfc driver won't build for arch/powerpc.
It still uses ioremap64 and includes <asm/ibm4xx.h> stuff.
Valentine.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: platforms/44x/warp-nand.c bogosity
2008-08-01 15:14 platforms/44x/warp-nand.c bogosity Adrian Bunk
2008-08-01 15:26 ` Josh Boyer
@ 2008-08-01 15:41 ` Sean MacLennan
1 sibling, 0 replies; 6+ messages in thread
From: Sean MacLennan @ 2008-08-01 15:41 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linuxppc-dev, paulus, Stefan Roese
On Fri, 1 Aug 2008 18:14:01 +0300
"Adrian Bunk" <bunk@kernel.org> wrote:
> arch/powerpc/platforms/44x/warp-nand.c was added this year and
> updated quite recently.
>
> warp-nand.c is empty unless CONFIG_MTD_NAND_NDFC=y.
>
> MTD_NAND_NDFC depends on !PPC_MERGE.
>
> !PPC_MERGE can never be true on PPC now that arch/ppc/ got removed.
>
> So warp-nand.c is dead code, but that does not seem to be
> intentionally?
I use a local copy of ndfc.c that was modified to work with
arch/powerpc. I submitted the patch, but it was never accepted into the
kernel, and to be honest I don't remember why. I will look into this.
So the code is definitely not dead. You can't realistically run a warp
without the NAND.
Cheers,
Sean
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: platforms/44x/warp-nand.c bogosity
2008-08-01 15:26 ` Josh Boyer
2008-08-01 15:32 ` Valentine Barshak
@ 2008-08-01 15:59 ` Sean MacLennan
1 sibling, 0 replies; 6+ messages in thread
From: Sean MacLennan @ 2008-08-01 15:59 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-dev, Adrian Bunk, Stefan Roese, paulus
On Fri, 1 Aug 2008 11:26:28 -0400
"Josh Boyer" <jwboyer@linux.vnet.ibm.com> wrote:
> I don't believe it is intentional, no. Sean can you look at this and
> see what's up? I have a couple of fixes to queue up from you already
> and if you can get this one done in the next few days I'll included it
> as well.
So I went back in the archives. Somebody else, Thomas Gleixner I
believe, was already working on the ndfc port. So, since I *had* to
have a working ndfc, I put a local copy in my kernel and forgot about
it.
It looks like Thomas has dropped the port. I should probably resubmit
the patch with the arch/ppc code removed. However, I don't think this
would be for 2.6.27 timeframe since there will probably be discussion.
For one, my patch just gets it working... the warp-nand.c file shows
that it is not a complete solution ;) Second, there are some byte order
issues.
So could we just leave warp-nand.c "there but disabled" for now?
Cheers,
Sean
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: platforms/44x/warp-nand.c bogosity
2008-08-01 15:32 ` Valentine Barshak
@ 2008-08-02 3:42 ` Sean MacLennan
0 siblings, 0 replies; 6+ messages in thread
From: Sean MacLennan @ 2008-08-02 3:42 UTC (permalink / raw)
To: Valentine Barshak; +Cc: Adrian Bunk, linuxppc-dev, paulus, Stefan Roese
For those who are interested, I have posted a patch for the ndfc
driver. This is the driver we use un-bogusitize the warp-nand ;)
I removed the CONFIG_PPC_MERGE defines, but other than that this is the
driver we use in production.
Stefan: This has the byte order reversing that I believe you where
going to look into wrt u-boot. This may need to be a config option.
Cheers,
Sean
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-08-02 3:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 15:14 platforms/44x/warp-nand.c bogosity Adrian Bunk
2008-08-01 15:26 ` Josh Boyer
2008-08-01 15:32 ` Valentine Barshak
2008-08-02 3:42 ` Sean MacLennan
2008-08-01 15:59 ` Sean MacLennan
2008-08-01 15:41 ` Sean MacLennan
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).