]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch from...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 May 2018 08:23:52 +0000 (10:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 May 2018 08:24:05 +0000 (10:24 +0200)
queue-4.14/i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch [deleted file]
queue-4.14/series
queue-4.16/i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch [deleted file]
queue-4.16/series

diff --git a/queue-4.14/i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch b/queue-4.14/i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch
deleted file mode 100644 (file)
index a059ad0..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-From foo@baz Sun May 27 16:52:54 CEST 2018
-From: Javier Martinez Canillas <javierm@redhat.com>
-Date: Sun, 3 Dec 2017 22:40:50 +0100
-Subject: i2c: core: report OF style module alias for devices registered via OF
-
-From: Javier Martinez Canillas <javierm@redhat.com>
-
-[ Upstream commit af503716ac1444db61d80cb6d17cfe62929c21df ]
-
-The buses should honor the firmware interface used to register the device,
-but the I2C core reports a MODALIAS of the form i2c:<device> even for I2C
-devices registered via OF.
-
-This means that user-space will never get an OF stype uevent MODALIAS even
-when the drivers modules contain aliases exported from both the I2C and OF
-device ID tables. For example, an Atmel maXTouch Touchscreen registered by
-a DT node with compatible "atmel,maxtouch" has the following module alias:
-
-$ cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias
-i2c:maxtouch
-
-So udev won't be able to auto-load a module for an OF-only device driver.
-Many OF-only drivers duplicate the OF device ID table entries in an I2C ID
-table only has a workaround for how the I2C core reports the module alias.
-
-This patch changes the I2C core to report an OF related MODALIAS uevent if
-the device was registered via OF. So for the previous example, after this
-patch, the reported MODALIAS for the Atmel maXTouch will be the following:
-
-$ cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias
-of:NtrackpadT<NULL>Catmel,maxtouch
-
-NOTE: This patch may break out-of-tree drivers that were relying on this
-      behavior, and only had an I2C device ID table even when the device
-      was registered via OF. There are no remaining drivers in mainline
-      that do this, but out-of-tree drivers have to be fixed and define
-      a proper OF device ID table to have module auto-loading working.
-
-Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
-Tested-by: Dmitry Mastykin <mastichi@gmail.com>
-Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/i2c/i2c-core-base.c |    8 ++++++++
- 1 file changed, 8 insertions(+)
-
---- a/drivers/i2c/i2c-core-base.c
-+++ b/drivers/i2c/i2c-core-base.c
-@@ -123,6 +123,10 @@ static int i2c_device_uevent(struct devi
-       struct i2c_client *client = to_i2c_client(dev);
-       int rc;
-+      rc = of_device_uevent_modalias(dev, env);
-+      if (rc != -ENODEV)
-+              return rc;
-+
-       rc = acpi_device_uevent_modalias(dev, env);
-       if (rc != -ENODEV)
-               return rc;
-@@ -472,6 +476,10 @@ show_modalias(struct device *dev, struct
-       struct i2c_client *client = to_i2c_client(dev);
-       int len;
-+      len = of_device_modalias(dev, buf, PAGE_SIZE);
-+      if (len != -ENODEV)
-+              return len;
-+
-       len = acpi_device_modalias(dev, buf, PAGE_SIZE -1);
-       if (len != -ENODEV)
-               return len;
index 1e3b41aae3d462256665557625d73692972c6eb2..7990188e89f1d1547c61d06086303e83335ac461 100644 (file)
@@ -444,7 +444,6 @@ drm-bridge-sii902x-retry-status-read-after-ddi-i2c.patch
 tools-hv-fix-compiler-warnings-about-major-target_fname.patch
 block-null_blk-fix-invalid-parameters-when-loading-module.patch
 dmaengine-pl330-fix-a-race-condition-in-case-of-threaded-irqs.patch
-i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch
 dmaengine-rcar-dmac-check-the-done-lists-in-rcar_dmac_chan_get_residue.patch
 enic-enable-rq-before-updating-rq-descriptors.patch
 watchdog-asm9260_wdt-fix-error-handling-in-asm9260_wdt_probe.patch
diff --git a/queue-4.16/i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch b/queue-4.16/i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch
deleted file mode 100644 (file)
index 47a0777..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-From foo@baz Sun May 27 16:10:03 CEST 2018
-From: Javier Martinez Canillas <javierm@redhat.com>
-Date: Sun, 3 Dec 2017 22:40:50 +0100
-Subject: i2c: core: report OF style module alias for devices registered via OF
-
-From: Javier Martinez Canillas <javierm@redhat.com>
-
-[ Upstream commit af503716ac1444db61d80cb6d17cfe62929c21df ]
-
-The buses should honor the firmware interface used to register the device,
-but the I2C core reports a MODALIAS of the form i2c:<device> even for I2C
-devices registered via OF.
-
-This means that user-space will never get an OF stype uevent MODALIAS even
-when the drivers modules contain aliases exported from both the I2C and OF
-device ID tables. For example, an Atmel maXTouch Touchscreen registered by
-a DT node with compatible "atmel,maxtouch" has the following module alias:
-
-$ cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias
-i2c:maxtouch
-
-So udev won't be able to auto-load a module for an OF-only device driver.
-Many OF-only drivers duplicate the OF device ID table entries in an I2C ID
-table only has a workaround for how the I2C core reports the module alias.
-
-This patch changes the I2C core to report an OF related MODALIAS uevent if
-the device was registered via OF. So for the previous example, after this
-patch, the reported MODALIAS for the Atmel maXTouch will be the following:
-
-$ cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias
-of:NtrackpadT<NULL>Catmel,maxtouch
-
-NOTE: This patch may break out-of-tree drivers that were relying on this
-      behavior, and only had an I2C device ID table even when the device
-      was registered via OF. There are no remaining drivers in mainline
-      that do this, but out-of-tree drivers have to be fixed and define
-      a proper OF device ID table to have module auto-loading working.
-
-Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
-Tested-by: Dmitry Mastykin <mastichi@gmail.com>
-Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/i2c/i2c-core-base.c |    8 ++++++++
- 1 file changed, 8 insertions(+)
-
---- a/drivers/i2c/i2c-core-base.c
-+++ b/drivers/i2c/i2c-core-base.c
-@@ -124,6 +124,10 @@ static int i2c_device_uevent(struct devi
-       struct i2c_client *client = to_i2c_client(dev);
-       int rc;
-+      rc = of_device_uevent_modalias(dev, env);
-+      if (rc != -ENODEV)
-+              return rc;
-+
-       rc = acpi_device_uevent_modalias(dev, env);
-       if (rc != -ENODEV)
-               return rc;
-@@ -439,6 +443,10 @@ show_modalias(struct device *dev, struct
-       struct i2c_client *client = to_i2c_client(dev);
-       int len;
-+      len = of_device_modalias(dev, buf, PAGE_SIZE);
-+      if (len != -ENODEV)
-+              return len;
-+
-       len = acpi_device_modalias(dev, buf, PAGE_SIZE -1);
-       if (len != -ENODEV)
-               return len;
index d1d0ffadf9ca7d06dd01064274f4061c9ed6c48d..a326b464bddaed8b16dce69306748c1176473392 100644 (file)
@@ -210,7 +210,6 @@ powerpc-mm-slice-remove-intermediate-bitmap-copy.patch
 powerpc-mm-slice-create-header-files-dedicated-to-slices.patch
 powerpc-mm-slice-enhance-for-supporting-ppc32.patch
 powerpc-mm-slice-fix-hugepage-allocation-at-hint-address-on-8xx.patch
-i2c-core-report-of-style-module-alias-for-devices-registered-via-of.patch
 dmaengine-rcar-dmac-check-the-done-lists-in-rcar_dmac_chan_get_residue.patch
 enic-enable-rq-before-updating-rq-descriptors.patch
 watchdog-asm9260_wdt-fix-error-handling-in-asm9260_wdt_probe.patch