Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2019-09-17 09:12:35 +0200
committerJean Delvare <jdelvare@suse.de>2019-10-03 10:20:57 +0200
commit8fe9fe9b2624436c6d2ce26ab99deaa306922dc4 (patch)
tree713286b9502805c692d1382124fccb0822f2d5bf
parent6ab83e941e9d4a481ceea829d1f478c1e2fc5285 (diff)
eeprom: at24: make spd world-readable again (git-fixes).
-rw-r--r--patches.suse/eeprom-at24-make-spd-world-readable-again.patch37
-rw-r--r--series.conf1
2 files changed, 38 insertions, 0 deletions
diff --git a/patches.suse/eeprom-at24-make-spd-world-readable-again.patch b/patches.suse/eeprom-at24-make-spd-world-readable-again.patch
new file mode 100644
index 0000000000..b3ccbb5375
--- /dev/null
+++ b/patches.suse/eeprom-at24-make-spd-world-readable-again.patch
@@ -0,0 +1,37 @@
+From: Jean Delvare <jdelvare@suse.de>
+Date: Sun, 28 Jul 2019 18:41:38 +0200
+Subject: eeprom: at24: make spd world-readable again
+Git-commit: 25e5ef302c24a6fead369c0cfe88c073d7b97ca8
+Patch-mainline: v5.3
+References: git-fixes
+
+The integration of the at24 driver into the nvmem framework broke the
+world-readability of spd EEPROMs. Fix it.
+
+Signed-off-by: Jean Delvare <jdelvare@suse.de>
+Cc: stable@vger.kernel.org
+Fixes: 57d155506dd5 ("eeprom: at24: extend driver to plug into the NVMEM framework")
+Cc: Andrew Lunn <andrew@lunn.ch>
+Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Cc: Bartosz Golaszewski <brgl@bgdev.pl>
+Cc: Arnd Bergmann <arnd@arndb.de>
+Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
+[Bartosz: backported the patch to older branches]
+Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/misc/eeprom/at24.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/misc/eeprom/at24.c
++++ b/drivers/misc/eeprom/at24.c
+@@ -769,7 +769,7 @@ static int at24_probe(struct i2c_client
+ at24->nvmem_config.name = dev_name(&client->dev);
+ at24->nvmem_config.dev = &client->dev;
+ at24->nvmem_config.read_only = !writable;
+- at24->nvmem_config.root_only = true;
++ at24->nvmem_config.root_only = !(chip.flags & AT24_FLAG_IRUGO);
+ at24->nvmem_config.owner = THIS_MODULE;
+ at24->nvmem_config.compat = true;
+ at24->nvmem_config.base_dev = &client->dev;
diff --git a/series.conf b/series.conf
index 475cf8a8da..fc07586165 100644
--- a/series.conf
+++ b/series.conf
@@ -24260,6 +24260,7 @@
patches.suse/mm-migrate-Fix-reference-check-race-between-__find_get_block-and-migration.patch
patches.suse/coredump-split-pipe-command-whitespace-before-expand.patch
patches.suse/mm-migrate-c-initialize-pud_entry-in-migrate_vma.patch
+ patches.suse/eeprom-at24-make-spd-world-readable-again.patch
patches.suse/0001-x86-speculation-Prepare-entry-code-for-Spectre-v1-sw.patch
patches.suse/0002-x86-speculation-Enable-Spectre-v1-swapgs-mitigations.patch
patches.suse/x86-speculation-swapgs-exclude-ATOMs-from-speculating-through-SWAPGS.patch