flash_platform_data namespace collision
I've got a board here with SPI, NOR, and NAND flash devices and I've just run into a namespace collision on flash_platform_data from
include/spi/flash.h
and
arch/arm/include/asm/mach/flash.h
And each appears to have a bunch of users.
Signature · 1 line
http://selenic.com : development and support for Mercurial and Linux
Quoted 10 lines · Matt Mackall
I've got a board here with SPI, NOR, and NAND flash devices and I've just run into a namespace collision on
flash_platform_datafrom
include/spi/flash.hand
arch/arm/include/asm/mach/flash.hAnd each appears to have a bunch of users.
ISTR someone noting that before but omitting a patch.
You can do that one better. :)
I think changing the SPI flash name will affect fewer platforms.
- Dave
Quoted 2 lines · Matt Mackall
I've got a board here with SPI, NOR, and NAND flash devices and I've just run into a namespace collision on
flash_platform_datafrom
The one in arch/arm/include/asm/mach/flash.h is designed to have great appeal and flexibility across different platforms, and indeed we have at least 70 users across six different MTD NOR flash drivers and two MTD NAND drivers.
If anything, I believe that this header should move into linux/mtd/ and become a standard structure for platforms to communicate their requirements to flash drivers.
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of:
Quoted 4 lines · Russell King
Quoted 2 lines · Matt Mackall
I've got a board here with SPI, NOR, and NAND flash devices and I've just run into a namespace collision on
flash_platform_datafrom
Quoted 8 lines
The one in
arch/arm/include/asm/mach/flash.his designed to have great appeal and flexibility across different platforms, and indeed we have at least 70 users across six different MTD NOR flash drivers and two MTD NAND drivers.If anything, I believe that this header should move into linux/mtd/ and become a standard structure for platforms to communicate their requirements to flash drivers.
Yeah, I think this is probably the way to go. Davids, any objections?
Signature · 1 line
http://selenic.com : development and support for Mercurial and Linux
Quoted 9 lines · Matt Mackall
Quoted 8 lines · Russell King
Quoted 2 lines · Matt Mackall
I've got a board here with SPI, NOR, and NAND flash devices and I've just run into a namespace collision on
flash_platform_datafromThe one in
arch/arm/include/asm/mach/flash.his designed to have great appeal and flexibility across different platforms, and indeed we have at least 70 users across six different MTD NOR flash drivers and two MTD NAND drivers.
Yet it doesn't do what's needed for SPI flash (identify the chip type, when it can't probed); and for that application none of those methods are useful (and their slots are just wasted/confusing space).
Quoted 5 lines
Quoted 3 lines
If anything, I believe that this header should move into linux/mtd/ and become a standard structure for platforms to communicate their requirements to flash drivers.
Yeah, I think this is probably the way to go. Davids, any objections?
I had similar thoughts when I first happened across that structure.
But such a move wouldn't resolve $SUBJECT ... which is IMO best addressed by the obvious rename of the one to spi_flash_platform_data.
- dave