]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2020 14:06:13 +0000 (15:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2020 14:06:13 +0000 (15:06 +0100)
added patches:
batman-adv-don-t-schedule-ogm-for-disabled-interface.patch
drm-i915-gvt-fix-unnecessary-schedule-timer-when-no-vgpu-exits.patch
i2c-gpio-suppress-error-on-probe-defer.patch
netfilter-cthelper-add-missing-attribute-validation-for-cthelper.patch
nl80211-add-missing-attribute-validation-for-beacon-report-scanning.patch
nl80211-add-missing-attribute-validation-for-channel-switch.patch
nl80211-add-missing-attribute-validation-for-critical-protocol-indication.patch
perf-bench-futex-wake-restore-thread-count-default-to-online-cpu-count.patch
pinctrl-core-remove-extra-kref_get-which-blocks-hogs-being-freed.patch
pinctrl-meson-gxl-fix-gpiox-sdio-pins.patch

queue-4.19/batman-adv-don-t-schedule-ogm-for-disabled-interface.patch [new file with mode: 0644]
queue-4.19/drm-i915-gvt-fix-unnecessary-schedule-timer-when-no-vgpu-exits.patch [new file with mode: 0644]
queue-4.19/i2c-gpio-suppress-error-on-probe-defer.patch [new file with mode: 0644]
queue-4.19/netfilter-cthelper-add-missing-attribute-validation-for-cthelper.patch [new file with mode: 0644]
queue-4.19/nl80211-add-missing-attribute-validation-for-beacon-report-scanning.patch [new file with mode: 0644]
queue-4.19/nl80211-add-missing-attribute-validation-for-channel-switch.patch [new file with mode: 0644]
queue-4.19/nl80211-add-missing-attribute-validation-for-critical-protocol-indication.patch [new file with mode: 0644]
queue-4.19/perf-bench-futex-wake-restore-thread-count-default-to-online-cpu-count.patch [new file with mode: 0644]
queue-4.19/pinctrl-core-remove-extra-kref_get-which-blocks-hogs-being-freed.patch [new file with mode: 0644]
queue-4.19/pinctrl-meson-gxl-fix-gpiox-sdio-pins.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/batman-adv-don-t-schedule-ogm-for-disabled-interface.patch b/queue-4.19/batman-adv-don-t-schedule-ogm-for-disabled-interface.patch
new file mode 100644 (file)
index 0000000..e4b0820
--- /dev/null
@@ -0,0 +1,43 @@
+From 8e8ce08198de193e3d21d42e96945216e3d9ac7f Mon Sep 17 00:00:00 2001
+From: Sven Eckelmann <sven@narfation.org>
+Date: Sun, 16 Feb 2020 13:02:06 +0100
+Subject: batman-adv: Don't schedule OGM for disabled interface
+
+From: Sven Eckelmann <sven@narfation.org>
+
+commit 8e8ce08198de193e3d21d42e96945216e3d9ac7f upstream.
+
+A transmission scheduling for an interface which is currently dropped by
+batadv_iv_ogm_iface_disable could still be in progress. The B.A.T.M.A.N. V
+is simply cancelling the workqueue item in an synchronous way but this is
+not possible with B.A.T.M.A.N. IV because the OGM submissions are
+intertwined.
+
+Instead it has to stop submitting the OGM when it detect that the buffer
+pointer is set to NULL.
+
+Reported-by: syzbot+a98f2016f40b9cd3818a@syzkaller.appspotmail.com
+Reported-by: syzbot+ac36b6a33c28a491e929@syzkaller.appspotmail.com
+Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol")
+Signed-off-by: Sven Eckelmann <sven@narfation.org>
+Cc: Hillf Danton <hdanton@sina.com>
+Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/batman-adv/bat_iv_ogm.c |    4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/net/batman-adv/bat_iv_ogm.c
++++ b/net/batman-adv/bat_iv_ogm.c
+@@ -970,6 +970,10 @@ static void batadv_iv_ogm_schedule_buff(
+       lockdep_assert_held(&hard_iface->bat_iv.ogm_buff_mutex);
++      /* interface already disabled by batadv_iv_ogm_iface_disable */
++      if (!*ogm_buff)
++              return;
++
+       /* the interface gets activated here to avoid race conditions between
+        * the moment of activating the interface in
+        * hardif_activate_interface() where the originator mac is set and
diff --git a/queue-4.19/drm-i915-gvt-fix-unnecessary-schedule-timer-when-no-vgpu-exits.patch b/queue-4.19/drm-i915-gvt-fix-unnecessary-schedule-timer-when-no-vgpu-exits.patch
new file mode 100644 (file)
index 0000000..06d1456
--- /dev/null
@@ -0,0 +1,56 @@
+From 04d6067f1f19e70a418f92fa3170cf7fe53b7fdf Mon Sep 17 00:00:00 2001
+From: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue, 3 Mar 2020 13:54:12 +0800
+Subject: drm/i915/gvt: Fix unnecessary schedule timer when no vGPU exits
+
+From: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 04d6067f1f19e70a418f92fa3170cf7fe53b7fdf upstream.
+
+From commit f25a49ab8ab9 ("drm/i915/gvt: Use vgpu_lock to protect per
+vgpu access") the vgpu idr destroy is moved later than vgpu resource
+destroy, then it would fail to stop timer for schedule policy clean
+which to check vgpu idr for any left vGPU. So this trys to destroy
+vgpu idr earlier.
+
+Cc: Colin Xu <colin.xu@intel.com>
+Fixes: f25a49ab8ab9 ("drm/i915/gvt: Use vgpu_lock to protect per vgpu access")
+Acked-by: Colin Xu <colin.xu@intel.com>
+Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+Link: http://patchwork.freedesktop.org/patch/msgid/20200229055445.31481-1-zhenyuw@linux.intel.com
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/i915/gvt/vgpu.c |   12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+--- a/drivers/gpu/drm/i915/gvt/vgpu.c
++++ b/drivers/gpu/drm/i915/gvt/vgpu.c
+@@ -272,10 +272,17 @@ void intel_gvt_destroy_vgpu(struct intel
+ {
+       struct intel_gvt *gvt = vgpu->gvt;
+-      mutex_lock(&vgpu->vgpu_lock);
+-
+       WARN(vgpu->active, "vGPU is still active!\n");
++      /*
++       * remove idr first so later clean can judge if need to stop
++       * service if no active vgpu.
++       */
++      mutex_lock(&gvt->lock);
++      idr_remove(&gvt->vgpu_idr, vgpu->id);
++      mutex_unlock(&gvt->lock);
++
++      mutex_lock(&vgpu->vgpu_lock);
+       intel_gvt_debugfs_remove_vgpu(vgpu);
+       intel_vgpu_clean_sched_policy(vgpu);
+       intel_vgpu_clean_submission(vgpu);
+@@ -290,7 +297,6 @@ void intel_gvt_destroy_vgpu(struct intel
+       mutex_unlock(&vgpu->vgpu_lock);
+       mutex_lock(&gvt->lock);
+-      idr_remove(&gvt->vgpu_idr, vgpu->id);
+       if (idr_is_empty(&gvt->vgpu_idr))
+               intel_gvt_clean_irq(gvt);
+       intel_gvt_update_vgpu_types(gvt);
diff --git a/queue-4.19/i2c-gpio-suppress-error-on-probe-defer.patch b/queue-4.19/i2c-gpio-suppress-error-on-probe-defer.patch
new file mode 100644 (file)
index 0000000..50d0d89
--- /dev/null
@@ -0,0 +1,36 @@
+From 3747cd2efe7ecb9604972285ab3f60c96cb753a8 Mon Sep 17 00:00:00 2001
+From: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
+Date: Tue, 10 Mar 2020 10:16:18 +1300
+Subject: i2c: gpio: suppress error on probe defer
+
+From: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
+
+commit 3747cd2efe7ecb9604972285ab3f60c96cb753a8 upstream.
+
+If a GPIO we are trying to use is not available and we are deferring
+the probe, don't output an error message.
+This seems to have been the intent of commit 05c74778858d
+("i2c: gpio: Add support for named gpios in DT") but the error was
+still output due to not checking the updated 'retdesc'.
+
+Fixes: 05c74778858d ("i2c: gpio: Add support for named gpios in DT")
+Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
+Acked-by: Linus Walleij <linus.walleij@linaro.org>
+Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/i2c/busses/i2c-gpio.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/i2c/busses/i2c-gpio.c
++++ b/drivers/i2c/busses/i2c-gpio.c
+@@ -248,7 +248,7 @@ static struct gpio_desc *i2c_gpio_get_de
+       if (ret == -ENOENT)
+               retdesc = ERR_PTR(-EPROBE_DEFER);
+-      if (ret != -EPROBE_DEFER)
++      if (PTR_ERR(retdesc) != -EPROBE_DEFER)
+               dev_err(dev, "error trying to get descriptor: %d\n", ret);
+       return retdesc;
diff --git a/queue-4.19/netfilter-cthelper-add-missing-attribute-validation-for-cthelper.patch b/queue-4.19/netfilter-cthelper-add-missing-attribute-validation-for-cthelper.patch
new file mode 100644 (file)
index 0000000..d16b521
--- /dev/null
@@ -0,0 +1,32 @@
+From c049b3450072b8e3998053490e025839fecfef31 Mon Sep 17 00:00:00 2001
+From: Jakub Kicinski <kuba@kernel.org>
+Date: Mon, 2 Mar 2020 21:08:31 -0800
+Subject: netfilter: cthelper: add missing attribute validation for cthelper
+
+From: Jakub Kicinski <kuba@kernel.org>
+
+commit c049b3450072b8e3998053490e025839fecfef31 upstream.
+
+Add missing attribute validation for cthelper
+to the netlink policy.
+
+Fixes: 12f7a505331e ("netfilter: add user-space connection tracking helper infrastructure")
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/netfilter/nfnetlink_cthelper.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/net/netfilter/nfnetlink_cthelper.c
++++ b/net/netfilter/nfnetlink_cthelper.c
+@@ -744,6 +744,8 @@ static const struct nla_policy nfnl_cthe
+       [NFCTH_NAME] = { .type = NLA_NUL_STRING,
+                        .len = NF_CT_HELPER_NAME_LEN-1 },
+       [NFCTH_QUEUE_NUM] = { .type = NLA_U32, },
++      [NFCTH_PRIV_DATA_LEN] = { .type = NLA_U32, },
++      [NFCTH_STATUS] = { .type = NLA_U32, },
+ };
+ static const struct nfnl_callback nfnl_cthelper_cb[NFNL_MSG_CTHELPER_MAX] = {
diff --git a/queue-4.19/nl80211-add-missing-attribute-validation-for-beacon-report-scanning.patch b/queue-4.19/nl80211-add-missing-attribute-validation-for-beacon-report-scanning.patch
new file mode 100644 (file)
index 0000000..1d228cf
--- /dev/null
@@ -0,0 +1,33 @@
+From 056e9375e1f3c4bf2fd49b70258c7daf788ecd9d Mon Sep 17 00:00:00 2001
+From: Jakub Kicinski <kuba@kernel.org>
+Date: Mon, 2 Mar 2020 21:10:57 -0800
+Subject: nl80211: add missing attribute validation for beacon report scanning
+
+From: Jakub Kicinski <kuba@kernel.org>
+
+commit 056e9375e1f3c4bf2fd49b70258c7daf788ecd9d upstream.
+
+Add missing attribute validation for beacon report scanning
+to the netlink policy.
+
+Fixes: 1d76250bd34a ("nl80211: support beacon report scanning")
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Link: https://lore.kernel.org/r/20200303051058.4089398-3-kuba@kernel.org
+Signed-off-by: Johannes Berg <johannes.berg@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/wireless/nl80211.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -349,6 +349,8 @@ static const struct nla_policy nl80211_p
+       [NL80211_ATTR_KEY_DEFAULT_TYPES] = { .type = NLA_NESTED },
+       [NL80211_ATTR_WOWLAN_TRIGGERS] = { .type = NLA_NESTED },
+       [NL80211_ATTR_STA_PLINK_STATE] = { .type = NLA_U8 },
++      [NL80211_ATTR_MEASUREMENT_DURATION] = { .type = NLA_U16 },
++      [NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY] = { .type = NLA_FLAG },
+       [NL80211_ATTR_SCHED_SCAN_INTERVAL] = { .type = NLA_U32 },
+       [NL80211_ATTR_REKEY_DATA] = { .type = NLA_NESTED },
+       [NL80211_ATTR_SCAN_SUPP_RATES] = { .type = NLA_NESTED },
diff --git a/queue-4.19/nl80211-add-missing-attribute-validation-for-channel-switch.patch b/queue-4.19/nl80211-add-missing-attribute-validation-for-channel-switch.patch
new file mode 100644 (file)
index 0000000..96afcf2
--- /dev/null
@@ -0,0 +1,32 @@
+From 5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6 Mon Sep 17 00:00:00 2001
+From: Jakub Kicinski <kuba@kernel.org>
+Date: Mon, 2 Mar 2020 21:10:58 -0800
+Subject: nl80211: add missing attribute validation for channel switch
+
+From: Jakub Kicinski <kuba@kernel.org>
+
+commit 5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6 upstream.
+
+Add missing attribute validation for NL80211_ATTR_OPER_CLASS
+to the netlink policy.
+
+Fixes: 1057d35ede5d ("cfg80211: introduce TDLS channel switch commands")
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Link: https://lore.kernel.org/r/20200303051058.4089398-4-kuba@kernel.org
+Signed-off-by: Johannes Berg <johannes.berg@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/wireless/nl80211.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -426,6 +426,7 @@ static const struct nla_policy nl80211_p
+       [NL80211_ATTR_USER_PRIO] = { .type = NLA_U8 },
+       [NL80211_ATTR_ADMITTED_TIME] = { .type = NLA_U16 },
+       [NL80211_ATTR_SMPS_MODE] = { .type = NLA_U8 },
++      [NL80211_ATTR_OPER_CLASS] = { .type = NLA_U8 },
+       [NL80211_ATTR_MAC_MASK] = { .len = ETH_ALEN },
+       [NL80211_ATTR_WIPHY_SELF_MANAGED_REG] = { .type = NLA_FLAG },
+       [NL80211_ATTR_NETNS_FD] = { .type = NLA_U32 },
diff --git a/queue-4.19/nl80211-add-missing-attribute-validation-for-critical-protocol-indication.patch b/queue-4.19/nl80211-add-missing-attribute-validation-for-critical-protocol-indication.patch
new file mode 100644 (file)
index 0000000..e744e28
--- /dev/null
@@ -0,0 +1,33 @@
+From 0e1a1d853ecedc99da9d27f9f5c376935547a0e2 Mon Sep 17 00:00:00 2001
+From: Jakub Kicinski <kuba@kernel.org>
+Date: Mon, 2 Mar 2020 21:10:56 -0800
+Subject: nl80211: add missing attribute validation for critical protocol indication
+
+From: Jakub Kicinski <kuba@kernel.org>
+
+commit 0e1a1d853ecedc99da9d27f9f5c376935547a0e2 upstream.
+
+Add missing attribute validation for critical protocol fields
+to the netlink policy.
+
+Fixes: 5de17984898c ("cfg80211: introduce critical protocol indication from user-space")
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Link: https://lore.kernel.org/r/20200303051058.4089398-2-kuba@kernel.org
+Signed-off-by: Johannes Berg <johannes.berg@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/wireless/nl80211.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -397,6 +397,8 @@ static const struct nla_policy nl80211_p
+       [NL80211_ATTR_MDID] = { .type = NLA_U16 },
+       [NL80211_ATTR_IE_RIC] = { .type = NLA_BINARY,
+                                 .len = IEEE80211_MAX_DATA_LEN },
++      [NL80211_ATTR_CRIT_PROT_ID] = { .type = NLA_U16 },
++      [NL80211_ATTR_MAX_CRIT_PROT_DURATION] = { .type = NLA_U16 },
+       [NL80211_ATTR_PEER_AID] = { .type = NLA_U16 },
+       [NL80211_ATTR_CH_SWITCH_COUNT] = { .type = NLA_U32 },
+       [NL80211_ATTR_CH_SWITCH_BLOCK_TX] = { .type = NLA_FLAG },
diff --git a/queue-4.19/perf-bench-futex-wake-restore-thread-count-default-to-online-cpu-count.patch b/queue-4.19/perf-bench-futex-wake-restore-thread-count-default-to-online-cpu-count.patch
new file mode 100644 (file)
index 0000000..9cf1206
--- /dev/null
@@ -0,0 +1,71 @@
+From f649bd9dd5d5004543bbc3c50b829577b49f5d75 Mon Sep 17 00:00:00 2001
+From: Tommi Rantala <tommi.t.rantala@nokia.com>
+Date: Thu, 5 Mar 2020 10:37:13 +0200
+Subject: perf bench futex-wake: Restore thread count default to online CPU count
+
+From: Tommi Rantala <tommi.t.rantala@nokia.com>
+
+commit f649bd9dd5d5004543bbc3c50b829577b49f5d75 upstream.
+
+Since commit 3b2323c2c1c4 ("perf bench futex: Use cpumaps") the default
+number of threads the benchmark uses got changed from number of online
+CPUs to zero:
+
+  $ perf bench futex wake
+  # Running 'futex/wake' benchmark:
+  Run summary [PID 15930]: blocking on 0 threads (at [private] futex 0x558b8ee4bfac), waking up 1 at a time.
+  [Run 1]: Wokeup 0 of 0 threads in 0.0000 ms
+  [...]
+  [Run 10]: Wokeup 0 of 0 threads in 0.0000 ms
+  Wokeup 0 of 0 threads in 0.0004 ms (+-40.82%)
+
+Restore the old behavior by grabbing the number of online CPUs via
+cpu->nr:
+
+  $ perf bench futex wake
+  # Running 'futex/wake' benchmark:
+  Run summary [PID 18356]: blocking on 8 threads (at [private] futex 0xb3e62c), waking up 1 at a time.
+  [Run 1]: Wokeup 8 of 8 threads in 0.0260 ms
+  [...]
+  [Run 10]: Wokeup 8 of 8 threads in 0.0270 ms
+  Wokeup 8 of 8 threads in 0.0419 ms (+-24.35%)
+
+Fixes: 3b2323c2c1c4 ("perf bench futex: Use cpumaps")
+Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
+Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
+Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
+Cc: Darren Hart <dvhart@infradead.org>
+Cc: Davidlohr Bueso <dave@stgolabs.net>
+Cc: Jiri Olsa <jolsa@redhat.com>
+Cc: Mark Rutland <mark.rutland@arm.com>
+Cc: Namhyung Kim <namhyung@kernel.org>
+Cc: Peter Zijlstra <peterz@infradead.org>
+Cc: Thomas Gleixner <tglx@linutronix.de>
+Link: http://lore.kernel.org/lkml/20200305083714.9381-3-tommi.t.rantala@nokia.com
+Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ tools/perf/bench/futex-wake.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/tools/perf/bench/futex-wake.c
++++ b/tools/perf/bench/futex-wake.c
+@@ -42,7 +42,7 @@ static bool done = false, silent = false
+ static pthread_mutex_t thread_lock;
+ static pthread_cond_t thread_parent, thread_worker;
+ static struct stats waketime_stats, wakeup_stats;
+-static unsigned int ncpus, threads_starting, nthreads = 0;
++static unsigned int threads_starting, nthreads = 0;
+ static int futex_flag = 0;
+ static const struct option options[] = {
+@@ -140,7 +140,7 @@ int bench_futex_wake(int argc, const cha
+       sigaction(SIGINT, &act, NULL);
+       if (!nthreads)
+-              nthreads = ncpus;
++              nthreads = cpu->nr;
+       worker = calloc(nthreads, sizeof(*worker));
+       if (!worker)
diff --git a/queue-4.19/pinctrl-core-remove-extra-kref_get-which-blocks-hogs-being-freed.patch b/queue-4.19/pinctrl-core-remove-extra-kref_get-which-blocks-hogs-being-freed.patch
new file mode 100644 (file)
index 0000000..248607f
--- /dev/null
@@ -0,0 +1,34 @@
+From aafd56fc79041bf36f97712d4b35208cbe07db90 Mon Sep 17 00:00:00 2001
+From: Charles Keepax <ckeepax@opensource.cirrus.com>
+Date: Fri, 28 Feb 2020 15:41:42 +0000
+Subject: pinctrl: core: Remove extra kref_get which blocks hogs being freed
+
+From: Charles Keepax <ckeepax@opensource.cirrus.com>
+
+commit aafd56fc79041bf36f97712d4b35208cbe07db90 upstream.
+
+kref_init starts with the reference count at 1, which will be balanced
+by the pinctrl_put in pinctrl_unregister. The additional kref_get in
+pinctrl_claim_hogs will increase this count to 2 and cause the hogs to
+not get freed when pinctrl_unregister is called.
+
+Fixes: 6118714275f0 ("pinctrl: core: Fix pinctrl_register_and_init() with pinctrl_enable()")
+Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
+Link: https://lore.kernel.org/r/20200228154142.13860-1-ckeepax@opensource.cirrus.com
+Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/pinctrl/core.c |    1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/drivers/pinctrl/core.c
++++ b/drivers/pinctrl/core.c
+@@ -2008,7 +2008,6 @@ static int pinctrl_claim_hogs(struct pin
+               return PTR_ERR(pctldev->p);
+       }
+-      kref_get(&pctldev->p->users);
+       pctldev->hog_default =
+               pinctrl_lookup_state(pctldev->p, PINCTRL_STATE_DEFAULT);
+       if (IS_ERR(pctldev->hog_default)) {
diff --git a/queue-4.19/pinctrl-meson-gxl-fix-gpiox-sdio-pins.patch b/queue-4.19/pinctrl-meson-gxl-fix-gpiox-sdio-pins.patch
new file mode 100644 (file)
index 0000000..cbfbb7b
--- /dev/null
@@ -0,0 +1,37 @@
+From dc7a06b0dbbafac8623c2b7657e61362f2f479a7 Mon Sep 17 00:00:00 2001
+From: Nicolas Belin <nbelin@baylibre.com>
+Date: Thu, 20 Feb 2020 14:15:12 +0100
+Subject: pinctrl: meson-gxl: fix GPIOX sdio pins
+
+From: Nicolas Belin <nbelin@baylibre.com>
+
+commit dc7a06b0dbbafac8623c2b7657e61362f2f479a7 upstream.
+
+In the gxl driver, the sdio cmd and clk pins are inverted. It has not caused
+any issue so far because devices using these pins always take both pins
+so the resulting configuration is OK.
+
+Fixes: 0f15f500ff2c ("pinctrl: meson: Add GXL pinctrl definitions")
+Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
+Signed-off-by: Nicolas Belin <nbelin@baylibre.com>
+Link: https://lore.kernel.org/r/1582204512-7582-1-git-send-email-nbelin@baylibre.com
+Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/pinctrl/meson/pinctrl-meson-gxl.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c
++++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c
+@@ -153,8 +153,8 @@ static const unsigned int sdio_d0_pins[]
+ static const unsigned int sdio_d1_pins[]      = { GPIOX_1 };
+ static const unsigned int sdio_d2_pins[]      = { GPIOX_2 };
+ static const unsigned int sdio_d3_pins[]      = { GPIOX_3 };
+-static const unsigned int sdio_cmd_pins[]     = { GPIOX_4 };
+-static const unsigned int sdio_clk_pins[]     = { GPIOX_5 };
++static const unsigned int sdio_clk_pins[]     = { GPIOX_4 };
++static const unsigned int sdio_cmd_pins[]     = { GPIOX_5 };
+ static const unsigned int sdio_irq_pins[]     = { GPIOX_7 };
+ static const unsigned int nand_ce0_pins[]     = { BOOT_8 };
index 9b4f22c03acc992c9355c6badc1bb35dd3915a4a..2a4d2a8e4f89cf1029ebe9d83ef59562dacb494b 100644 (file)
@@ -67,3 +67,13 @@ x86-mce-fix-logic-and-comments-around-msr_ppin_ctl.patch
 iommu-dma-fix-msi-reservation-allocation.patch
 iommu-vt-d-dmar-replace-warn_taint-with-pr_warn-add_taint.patch
 iommu-vt-d-fix-a-bug-in-intel_iommu_iova_to_phys-for-huge-page.patch
+batman-adv-don-t-schedule-ogm-for-disabled-interface.patch
+pinctrl-meson-gxl-fix-gpiox-sdio-pins.patch
+pinctrl-core-remove-extra-kref_get-which-blocks-hogs-being-freed.patch
+drm-i915-gvt-fix-unnecessary-schedule-timer-when-no-vgpu-exits.patch
+i2c-gpio-suppress-error-on-probe-defer.patch
+nl80211-add-missing-attribute-validation-for-critical-protocol-indication.patch
+nl80211-add-missing-attribute-validation-for-beacon-report-scanning.patch
+nl80211-add-missing-attribute-validation-for-channel-switch.patch
+perf-bench-futex-wake-restore-thread-count-default-to-online-cpu-count.patch
+netfilter-cthelper-add-missing-attribute-validation-for-cthelper.patch