Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1203652 > unrolled thread
| Started by | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| First post | 2015-08-09 17:30 +0200 |
| Last post | 2015-08-10 13:30 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v9 0/9] Add simple NVMEM Framework via regmap. Andrew Lunn <andrew@lunn.ch> - 2015-08-09 17:30 +0200
Re: [PATCH v9 0/9] Add simple NVMEM Framework via regmap. Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2015-08-10 12:40 +0200
Re: [PATCH v9 0/9] Add simple NVMEM Framework via regmap. Stefan Wahren <stefan.wahren@i2se.com> - 2015-08-10 13:30 +0200
| From | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| Date | 2015-08-09 17:30 +0200 |
| Subject | Re: [PATCH v9 0/9] Add simple NVMEM Framework via regmap. |
| Message-ID | <pVAHT-1zK-1@gated-at.bofh.it> |
Hi Srinivas
The AT24 eeprom driver contains the comment:
/*
* Export the EEPROM bytes through sysfs, since that's convenient.
* By default, only root should see the data (maybe passwords etc)
*/
and as you would expect from this:
# ls -l ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/eeprom
-rw------- 1 root root 512 Aug 9 10:16 ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/eeprom
The AT25 and the MAX6875 driver are the same.
However nvmem has different defaults:
# ls -l ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/0-00500/nvmem
-rw-r--r-- 1 root root 0 Aug 9 10:16 ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/0-00500/nvmem
Has this been considered and discussed?
Thanks
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/
[toc] | [next] | [standalone]
| From | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> |
|---|---|
| Date | 2015-08-10 12:40 +0200 |
| Message-ID | <pVSEP-3Az-55@gated-at.bofh.it> |
| In reply to | #1203652 |
Hi Andrew, On 09/08/15 16:19, Andrew Lunn wrote: > Hi Srinivas > > The AT24 eeprom driver contains the comment: > > /* > * Export the EEPROM bytes through sysfs, since that's convenient. > * By default, only root should see the data (maybe passwords etc) > */ > > and as you would expect from this: > > # ls -l ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/eeprom > -rw------- 1 root root 512 Aug 9 10:16 ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/eeprom > > The AT25 and the MAX6875 driver are the same. > > However nvmem has different defaults: > > # ls -l ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/0-00500/nvmem > -rw-r--r-- 1 root root 0 Aug 9 10:16 ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/0-00500/nvmem > Yes, nvmem by default sets the read permission for everyone S_IRUGO. Which was the most common use case. > Has this been considered and discussed? Thanks for bringing this up, No, we did not discuss this explicitly, but it should not be an issue to accommodate this. Provider still have flexibility to configure such things. As a first patchset we wanted to keep the framework simple and add features as we move on. Thanks, srini > > Thanks > 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/
[toc] | [prev] | [next] | [standalone]
| From | Stefan Wahren <stefan.wahren@i2se.com> |
|---|---|
| Date | 2015-08-10 13:30 +0200 |
| Message-ID | <pVTrc-4Sf-15@gated-at.bofh.it> |
| In reply to | #1204117 |
Hi Srinivas, hi Andrew, [add Sanchayan and Philipp] > Srinivas Kandagatla <srinivas.kandagatla@linaro.org> hat am 10. August 2015 um > 12:37 geschrieben: > > > Hi Andrew, > > On 09/08/15 16:19, Andrew Lunn wrote: > > Hi Srinivas > > > > The AT24 eeprom driver contains the comment: > > > > /* > > * Export the EEPROM bytes through sysfs, since that's convenient. > > * By default, only root should see the data (maybe passwords etc) > > */ > > > > and as you would expect from this: > > > > # ls -l > > ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/eeprom > > -rw------- 1 root root 512 Aug 9 10:16 > > ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/eeprom > > > > The AT25 and the MAX6875 driver are the same. > > > > However nvmem has different defaults: > > > > # ls -l > > ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/0-00500/nvmem > > -rw-r--r-- 1 root root 0 Aug 9 10:16 > > ./devices/platform/soc/soc:aips-bus@40000000/40066000.i2c/i2c-0/0-0050/0-00500/nvmem > > > Yes, nvmem by default sets the read permission for everyone S_IRUGO. > Which was the most common use case. i can only speak for mxs-ocotp, but root-only access is sufficient. > > > Has this been considered and discussed? > Thanks for bringing this up, No, we did not discuss this explicitly, but > it should not be an issue to accommodate this. Provider still have > flexibility to configure such things. IMHO it would better the default settings of the framework would be compatible and same restrictive as the eeprom drivers. In case a provider needs more privileges, it should be his job. > > As a first patchset we wanted to keep the framework simple and add > features as we move on. That's true, but it's an ABI too. So changing default settings soon is better. Regards Stefan > > Thanks, > srini > > > > Thanks > > Andrew > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- 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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web