From: Greg Kroah-Hartman Date: Wed, 15 Mar 2017 06:09:55 +0000 (+0800) Subject: 4.10-stable patches X-Git-Tag: v4.4.55~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5900adb3ae0b9b93837dbfeec3553b98b592a11;p=thirdparty%2Fkernel%2Fstable-queue.git 4.10-stable patches added patches: arm-qcom_defconfig-enable-rpm-rpm-smd-clocks.patch iio-104-quad-8-fix-off-by-one-error-when-addressing-flag-register.patch --- diff --git a/queue-4.10/arm-qcom_defconfig-enable-rpm-rpm-smd-clocks.patch b/queue-4.10/arm-qcom_defconfig-enable-rpm-rpm-smd-clocks.patch new file mode 100644 index 00000000000..2d2dad63ea3 --- /dev/null +++ b/queue-4.10/arm-qcom_defconfig-enable-rpm-rpm-smd-clocks.patch @@ -0,0 +1,31 @@ +From 2ec8258fe4d039ce312a1e59ba4b8419ad96d808 Mon Sep 17 00:00:00 2001 +From: Georgi Djakov +Date: Thu, 17 Nov 2016 17:20:26 +0200 +Subject: ARM: qcom_defconfig: Enable RPM/RPM-SMD clocks + +From: Georgi Djakov + +commit 2ec8258fe4d039ce312a1e59ba4b8419ad96d808 upstream. + +Enable support for clocks, controlled by the RPM processor on +Qualcomm platforms. + +Signed-off-by: Georgi Djakov +Signed-off-by: Andy Gross +Signed-off-by: Greg Kroah-Hartman + +--- + arch/arm/configs/qcom_defconfig | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/arch/arm/configs/qcom_defconfig ++++ b/arch/arm/configs/qcom_defconfig +@@ -157,6 +157,8 @@ CONFIG_DMADEVICES=y + CONFIG_QCOM_BAM_DMA=y + CONFIG_STAGING=y + CONFIG_COMMON_CLK_QCOM=y ++CONFIG_QCOM_CLK_RPM=y ++CONFIG_QCOM_CLK_SMD_RPM=y + CONFIG_APQ_MMCC_8084=y + CONFIG_IPQ_LCC_806X=y + CONFIG_MSM_GCC_8660=y diff --git a/queue-4.10/iio-104-quad-8-fix-off-by-one-error-when-addressing-flag-register.patch b/queue-4.10/iio-104-quad-8-fix-off-by-one-error-when-addressing-flag-register.patch new file mode 100644 index 00000000000..8a4126318ff --- /dev/null +++ b/queue-4.10/iio-104-quad-8-fix-off-by-one-error-when-addressing-flag-register.patch @@ -0,0 +1,33 @@ +From ca8d8e03b4c9ad447d1e882cc8014e538f653018 Mon Sep 17 00:00:00 2001 +From: William Breathitt Gray +Date: Thu, 9 Feb 2017 10:03:41 -0500 +Subject: iio: 104-quad-8: Fix off-by-one error when addressing flag register + +From: William Breathitt Gray + +commit ca8d8e03b4c9ad447d1e882cc8014e538f653018 upstream. + +The flag register is offset by 1 from the respective channel data +register. This patch fixes an off-by-one error when attempting to read a +channel flag register where the base address was not properly offset. + +Fixes: 28e5d3bb0325 ("iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8") +Signed-off-by: William Breathitt Gray +Signed-off-by: Jonathan Cameron +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/iio/counter/104-quad-8.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/iio/counter/104-quad-8.c ++++ b/drivers/iio/counter/104-quad-8.c +@@ -76,7 +76,7 @@ static int quad8_read_raw(struct iio_dev + return IIO_VAL_INT; + } + +- flags = inb(base_offset); ++ flags = inb(base_offset + 1); + borrow = flags & BIT(0); + carry = !!(flags & BIT(1)); + diff --git a/queue-4.10/series b/queue-4.10/series new file mode 100644 index 00000000000..59f4de61a74 --- /dev/null +++ b/queue-4.10/series @@ -0,0 +1,2 @@ +iio-104-quad-8-fix-off-by-one-error-when-addressing-flag-register.patch +arm-qcom_defconfig-enable-rpm-rpm-smd-clocks.patch diff --git a/queue-4.4/series b/queue-4.4/series new file mode 100644 index 00000000000..e69de29bb2d diff --git a/queue-4.9/series b/queue-4.9/series new file mode 100644 index 00000000000..e69de29bb2d