mmio_nvram.c users ?
Hi folks !
Anybody aware of anything other than Cell using that driver ?
I'd like to make it a platform driver instead of having something that pokes at anything that has a "device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup...
Cheers,
Ben.
Quoted 5 lines · Benjamin Herrenschmidt
Anybody aware of anything other than Cell using that driver ?
I'd like to make it a platform driver instead of having something that pokes at anything that has a "
device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup...
The PowerStation is also using it.
Adrian
One day I'll manage to hit "Reply" or "Reply All" correctly...
Quoted 9 lines · Benjamin Herrenschmidt
Hi folks !
Anybody aware of anything other than Cell using that driver ?
I'd like to make it a platform driver instead of having something that pokes at anything that has a "
device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup...
We do on our boards, that would currently be the sbc310, sbc610 and ppc9a (all FSL 86xx based boards). I also have 2 other boards I'm currently working on that will also use that driver.
Martyn
Quoted 9 lines
Cheers,
Ben._______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev
Signature · 4 lines
Martyn Welch (Principal Software Engineer) | Registered in England and GE Intelligent Platforms | Wales (3828642) at 100 T +44(0)127322748 | Barbirolli Square, Manchester, E [email protected] | M2 3AB VAT:GB 927559189
Quoted 7 lines · Benjamin Herrenschmidt
Hi folks !
Anybody aware of anything other than Cell using that driver ?
I'd like to make it a platform driver instead of having something that pokes at anything that has a "
device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup...
Why bother? You could just use either drivers/mtd/devices/{phram.c or slram.c} and get the same functionality at that point, couldn't you?
josh
Quoted 11 lines · Josh Boyer
Quoted 7 lines · Benjamin Herrenschmidt
Hi folks !
Anybody aware of anything other than Cell using that driver ?
I'd like to make it a platform driver instead of having something that pokes at anything that has a "
device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup...Why bother? You could just use either
drivers/mtd/devices/{phram.corslram.c} and get the same functionality at that point, couldn't you?
Won't that break existing userspace ?
Cheers,
Ben.
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 5 lines · Josh Boyer
Quoted 4 lines · Benjamin Herrenschmidt
Hi folks !
Anybody aware of anything other than Cell using that driver ?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I'd like to make it a platform driver instead of having something that pokes at anything that has a "
device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup...Why bother? You could just use either
drivers/mtd/devices/{phram.corslram.c} and get the same functionality at that point, couldn't you?Won't that break existing userspace ?
Probably. Maybe we shouldn't have duplicated a driver in our platform code to begin with.
josh
Quoted 11 lines · Josh Boyer
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 9 lines · Josh Boyer
Quoted 7 lines · Benjamin Herrenschmidt
Hi folks !
Anybody aware of anything other than Cell using that driver ?
I'd like to make it a platform driver instead of having something that pokes at anything that has a "
device_type" set to "nvram" (which is gross and bogus). But I need to know what platforms to fixup...
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Why bother? You could just use either
drivers/mtd/devices/{phram.corslram.c} and get the same functionality at that point, couldn't you?Won't that break existing userspace ?
Probably. Maybe we shouldn't have duplicated a driver in our platform code to begin with.
The reason we have the driver is so that we're able to use the kernel internal functions for arch/powerpc/kernel/nvram_64.c on it, which operated on the well-defined interface for partitions inside of the nvram memory.
mtd/phram provides a completely different abstraction, which is normally used for block- or file system based access. They also both have the character device, but that's not really the main point.
The part that is unfortunate is the device_type matching in the driver, which was a result of clueluess firmware and Linux developers (i.e. me) at the time.
Arnd
Quoted 3 lines · Josh Boyer
Probably. Maybe we shouldn't have duplicated a driver in our platform code to begin with.
I believe our nvram infrastructure predates it by a long shot :-)
powerpc /dev/nvram stuff is very very very ancient.
Cheers,
Ben.
Quoted 5 lines · Arnd Bergmann
The reason we have the driver is so that we're able to use the kernel internal functions for
arch/powerpc/kernel/nvram_64.con it, which operated on the well-defined interface for partitions inside of the nvram memory.
Quoted 7 lines
mtd/phram provides a completely different abstraction, which is normally used for block- or file system based access. They also both have the character device, but that's not really the main point.
The part that is unfortunate is the
device_typematching in the driver, which was a result of clueluess firmware and Linux developers (i.e. me) at the time.
Right. Which is why I want to change it to be a platform device, so that platforms explicitely instanciate it, which is probably the best thing for now. That way, platforms that don't want the ppc specific nvram stuff don't have to instanciate it, or platforms who want to use the mtd bits, etc...
Cheers,
Ben.