Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1210626
| From | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH RFC] eeprom: at24: extend driver to plug into the NVMEM framework |
| Date | 2015-08-20 18:50 +0200 |
| Message-ID | <pZBcn-290-13@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <pYskO-8di-5@gated-at.bofh.it> <pYsuu-8oB-11@gated-at.bofh.it> <pYu3g-220-17@gated-at.bofh.it> <pYuFZ-30K-31@gated-at.bofh.it> <pZApX-YM-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> It's true that this is something that we might have overlooked. Is it
> expected to maintain that compatibility when moving a driver from one
> framework to another (and this is a real question, not a troll)?
Yes. There will be user space applications reading from the eeprom
file in /sys. In fact, until the NVMEM framework arrived, it was not
easy to access the eeprom from kernel space, meaning the majority of
users must of been user space...
> If so, we might provide a compatibility layer to add the former file
> too, protected by a kconfig option maybe ?
There is one other detail you might of missed. Both AT24 and AT25 do
have an in kernel API. In the at24_platform_data you can have a
callback function "setup" which gets called when the device is
probed. setup() is called with a struct memory_accessor which contains
function pointers for reading and writing to the EEPROM. A few
platforms use these for getting the MAC address out of the EEPROM.
And these platforms are old style, not DT.
Andrew
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH RFC] eeprom: at24: extend driver to plug into the NVMEM framework Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-08-20 18:00 +0200
Re: [PATCH RFC] eeprom: at24: extend driver to plug into the NVMEM framework Andrew Lunn <andrew@lunn.ch> - 2015-08-20 18:50 +0200
Re: [PATCH RFC] eeprom: at24: extend driver to plug into the NVMEM framework Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-08-21 00:00 +0200
csiph-web