]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
delete powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 03:10:25 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 03:10:25 +0000 (11:10 +0800)
queue-3.16/powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch [deleted file]
queue-3.16/series
queue-3.17/powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch [deleted file]
queue-3.17/series

diff --git a/queue-3.16/powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch b/queue-3.16/powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch
deleted file mode 100644 (file)
index b2b3eeb..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-From bf7588a0859580a45c63cb082825d77c13eca357 Mon Sep 17 00:00:00 2001
-From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-Date: Fri, 3 Oct 2014 17:12:25 +1000
-Subject: powerpc/powernv: Fix endian bug in LPC bus debugfs accessors
-
-From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-
-commit bf7588a0859580a45c63cb082825d77c13eca357 upstream.
-
-When reading from the LPC, the OPAL FW calls return the value via pointer
-to a uint32_t which is always returned big endian. Our internal inb/outb
-implementation byteswaps that fine but our debugfs code is still broken.
-
-Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- arch/powerpc/platforms/powernv/opal-lpc.c |    4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
---- a/arch/powerpc/platforms/powernv/opal-lpc.c
-+++ b/arch/powerpc/platforms/powernv/opal-lpc.c
-@@ -191,6 +191,7 @@ static ssize_t lpc_debug_read(struct fil
- {
-       struct lpc_debugfs_entry *lpc = filp->private_data;
-       u32 data, pos, len, todo;
-+      __be32 bedata;
-       int rc;
-       if (!access_ok(VERIFY_WRITE, ubuf, count))
-@@ -213,9 +214,10 @@ static ssize_t lpc_debug_read(struct fil
-                               len = 2;
-               }
-               rc = opal_lpc_read(opal_lpc_chip_id, lpc->lpc_type, pos,
--                                 &data, len);
-+                                 &bedata, len);
-               if (rc)
-                       return -ENXIO;
-+              data = be32_to_cpu(bedata);
-               switch(len) {
-               case 4:
-                       rc = __put_user((u32)data, (u32 __user *)ubuf);
index 7a453e46703ae2ae2f98fe680f82156fddc7dbb2..5d23cf682ec84979955d3bf143ac986062e70782 100644 (file)
@@ -71,7 +71,6 @@ fanotify-enable-close-on-exec-on-events-fd-when-requested-in-fanotify_init.patch
 kernel-add-support-for-gcc-5.patch
 rtc-cmos-fix-wakeup-from-s5-without-config_pm_sleep.patch
 futex-ensure-get_futex_key_refs-always-implies-a-barrier.patch
-powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch
 powerpc-iommu-ddw-fix-endianness.patch
 powerpc-eeh-clear-frozen-device-state-in-time.patch
 ima-fix-fallback-to-use-new_sync_read.patch
diff --git a/queue-3.17/powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch b/queue-3.17/powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch
deleted file mode 100644 (file)
index b2b3eeb..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-From bf7588a0859580a45c63cb082825d77c13eca357 Mon Sep 17 00:00:00 2001
-From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-Date: Fri, 3 Oct 2014 17:12:25 +1000
-Subject: powerpc/powernv: Fix endian bug in LPC bus debugfs accessors
-
-From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-
-commit bf7588a0859580a45c63cb082825d77c13eca357 upstream.
-
-When reading from the LPC, the OPAL FW calls return the value via pointer
-to a uint32_t which is always returned big endian. Our internal inb/outb
-implementation byteswaps that fine but our debugfs code is still broken.
-
-Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- arch/powerpc/platforms/powernv/opal-lpc.c |    4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
---- a/arch/powerpc/platforms/powernv/opal-lpc.c
-+++ b/arch/powerpc/platforms/powernv/opal-lpc.c
-@@ -191,6 +191,7 @@ static ssize_t lpc_debug_read(struct fil
- {
-       struct lpc_debugfs_entry *lpc = filp->private_data;
-       u32 data, pos, len, todo;
-+      __be32 bedata;
-       int rc;
-       if (!access_ok(VERIFY_WRITE, ubuf, count))
-@@ -213,9 +214,10 @@ static ssize_t lpc_debug_read(struct fil
-                               len = 2;
-               }
-               rc = opal_lpc_read(opal_lpc_chip_id, lpc->lpc_type, pos,
--                                 &data, len);
-+                                 &bedata, len);
-               if (rc)
-                       return -ENXIO;
-+              data = be32_to_cpu(bedata);
-               switch(len) {
-               case 4:
-                       rc = __put_user((u32)data, (u32 __user *)ubuf);
index 1d46508da742709246153efedabccb9f59129a3a..1dd8662702413fc5b54c8032f9b4b8bfd8c882ca 100644 (file)
@@ -112,7 +112,6 @@ mm-balloon_compaction-redesign-ballooned-pages-management.patch
 futex-ensure-get_futex_key_refs-always-implies-a-barrier.patch
 powerpc-fix-warning-reported-by-verify_cpu_node_mapping.patch
 powerpc-only-set-numa-node-information-for-present-cpus-at-boottime.patch
-powerpc-powernv-fix-endian-bug-in-lpc-bus-debugfs-accessors.patch
 powerpc-iommu-ddw-fix-endianness.patch
 powerpc-eeh-clear-frozen-device-state-in-time.patch
 ima-fix-fallback-to-use-new_sync_read.patch