From 8b52a8906bf376610e5a8d051ead1d50610e6da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 8 Mar 2017 09:46:30 +0100 Subject: brcm2708: update linux 4.4 patches to latest version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As usual these patches were extracted and rebased from the raspberry pi repo: https://github.com/raspberrypi/linux/tree/rpi-4.4.y - led1 can't be controlled on rpi-3 for linux 4.4, remove it. - Fix modules.mk typos. Signed-off-by: Álvaro Fernández Rojas --- ...i-Delete-vestigial-gpio_in_pull-parameter.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 target/linux/brcm2708/patches-4.4/0557-lirc_rpi-Delete-vestigial-gpio_in_pull-parameter.patch (limited to 'target/linux/brcm2708/patches-4.4/0557-lirc_rpi-Delete-vestigial-gpio_in_pull-parameter.patch') diff --git a/target/linux/brcm2708/patches-4.4/0557-lirc_rpi-Delete-vestigial-gpio_in_pull-parameter.patch b/target/linux/brcm2708/patches-4.4/0557-lirc_rpi-Delete-vestigial-gpio_in_pull-parameter.patch new file mode 100644 index 0000000000..9ebcc22239 --- /dev/null +++ b/target/linux/brcm2708/patches-4.4/0557-lirc_rpi-Delete-vestigial-gpio_in_pull-parameter.patch @@ -0,0 +1,43 @@ +From a5cf7bed6a2d7267e2f0a3109807051e166930fb Mon Sep 17 00:00:00 2001 +From: Phil Elwell +Date: Mon, 5 Dec 2016 09:58:16 +0000 +Subject: [PATCH] lirc_rpi: Delete vestigial gpio_in_pull parameter + +The RPi GPIO no longer support run-time "pull" settings - one should +Device Tree and pinctrl instead - so remove the parameter to avoid +confusion. + +See: https://github.com/raspberrypi/linux/issues/1711 + +Signed-off-by: Phil Elwell +--- + drivers/staging/media/lirc/lirc_rpi.c | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/drivers/staging/media/lirc/lirc_rpi.c b/drivers/staging/media/lirc/lirc_rpi.c +index 6132896..ebbf0d6 100644 +--- a/drivers/staging/media/lirc/lirc_rpi.c ++++ b/drivers/staging/media/lirc/lirc_rpi.c +@@ -64,8 +64,6 @@ + + /* set the default GPIO input pin */ + static int gpio_in_pin = 18; +-/* set the default pull behaviour for input pin */ +-static int gpio_in_pull = BCM2708_PULL_DOWN; + /* set the default GPIO output pin */ + static int gpio_out_pin = 17; + /* enable debugging messages */ +@@ -716,10 +714,6 @@ module_param(gpio_in_pin, int, S_IRUGO); + MODULE_PARM_DESC(gpio_in_pin, "GPIO input pin number of the BCM processor." + " (default 18"); + +-module_param(gpio_in_pull, int, S_IRUGO); +-MODULE_PARM_DESC(gpio_in_pull, "GPIO input pin pull configuration." +- " (0 = off, 1 = up, 2 = down, default down)"); +- + module_param(sense, int, S_IRUGO); + MODULE_PARM_DESC(sense, "Override autodetection of IR receiver circuit" + " (0 = active high, 1 = active low )"); +-- +2.1.4 + -- cgit v1.2.3