summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-at91-5.4.81/mtr
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2021-02-08 20:30:57 +0200
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2021-02-08 20:33:35 +0200
commit9c69c4f074fc8a9bfaa21ffd8f9d461a12274354 (patch)
tree82368194cf684abf808f2fd2e1ac6ffa7f6a6c19 /recipes-kernel/linux/linux-at91-5.4.81/mtr
parent957d8a003fb8e96150bad07b910bbb45ba8e0488 (diff)
downloadmeta-multitech-atmel-9c69c4f074fc8a9bfaa21ffd8f9d461a12274354.tar.gz
meta-multitech-atmel-9c69c4f074fc8a9bfaa21ffd8f9d461a12274354.tar.bz2
meta-multitech-atmel-9c69c4f074fc8a9bfaa21ffd8f9d461a12274354.zip
linux-5.4: fix wl1271 not comming up.
The following messages are observed: wl1271_sdio mmc0:0001:2: wl12xx_sdio_power_on: failed to get_sync(-13) See ref: http://lkml.iu.edu/hypermail/linux/kernel/1806.1/02840.html
Diffstat (limited to 'recipes-kernel/linux/linux-at91-5.4.81/mtr')
-rw-r--r--recipes-kernel/linux/linux-at91-5.4.81/mtr/linux-5.4-wl12xx_enable_disable.patch17
1 files changed, 10 insertions, 7 deletions
diff --git a/recipes-kernel/linux/linux-at91-5.4.81/mtr/linux-5.4-wl12xx_enable_disable.patch b/recipes-kernel/linux/linux-at91-5.4.81/mtr/linux-5.4-wl12xx_enable_disable.patch
index b3fc9be..ebaadd0 100644
--- a/recipes-kernel/linux/linux-at91-5.4.81/mtr/linux-5.4-wl12xx_enable_disable.patch
+++ b/recipes-kernel/linux/linux-at91-5.4.81/mtr/linux-5.4-wl12xx_enable_disable.patch
@@ -1,17 +1,17 @@
-From d9008c90d39d9993cca2094d31f096067dde16f8 Mon Sep 17 00:00:00 2001
+From 89ade75d063fec124a6d338d7d332ab2fc4309dd Mon Sep 17 00:00:00 2001
From: Mykyta Dorokhin <mykyta.dorokhin@globallogic.com>
-Date: Fri, 5 Feb 2021 19:31:47 +0200
+Date: Mon, 8 Feb 2021 18:30:40 +0200
Subject: [PATCH] linux-5.4: wl12xx_enable_disable
---
- drivers/net/wireless/ti/wlcore/sdio.c | 10 ++++++++++
- 1 file changed, 10 insertions(+)
+ drivers/net/wireless/ti/wlcore/sdio.c | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c
-index 7afaf35..39f9ff5 100644
+index 7afaf35..b03a19c 100644
--- a/drivers/net/wireless/ti/wlcore/sdio.c
+++ b/drivers/net/wireless/ti/wlcore/sdio.c
-@@ -140,6 +140,12 @@ static int wl12xx_sdio_power_on(struct wl12xx_sdio_glue *glue)
+@@ -140,8 +140,14 @@ static int wl12xx_sdio_power_on(struct wl12xx_sdio_glue *glue)
struct sdio_func *func = dev_to_sdio_func(glue->dev);
struct mmc_card *card = func->card;
@@ -22,8 +22,11 @@ index 7afaf35..39f9ff5 100644
+ msleep(100);
+
ret = pm_runtime_get_sync(&card->dev);
- if (ret < 0) {
+- if (ret < 0) {
++ if (ret < 0 && ret != -EACCES) {
pm_runtime_put_noidle(&card->dev);
+ dev_err(glue->dev, "%s: failed to get_sync(%d)\n",
+ __func__, ret);
@@ -171,6 +177,10 @@ static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue)
sdio_disable_func(func);
sdio_release_host(func);