summaryrefslogtreecommitdiff
path: root/recipes-kernel
diff options
context:
space:
mode:
authorMike Nicholson <Mike.Nicholson@multitech.com>2019-03-01 17:22:54 -0600
committerJohn Klug <john.klug@multitech.com>2019-07-03 11:22:01 -0500
commit4b6fab69ea800e77b5ec64e942c8626f0868e432 (patch)
tree2310759160854996eef2ce34a8473b3d0f3fbe06 /recipes-kernel
parentb046067569bf60fd2aaac87b8768c77f3844e826 (diff)
downloadmeta-multitech-4b6fab69ea800e77b5ec64e942c8626f0868e432.tar.gz
meta-multitech-4b6fab69ea800e77b5ec64e942c8626f0868e432.tar.bz2
meta-multitech-4b6fab69ea800e77b5ec64e942c8626f0868e432.zip
Use timing from previous software iterations.
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-at91-4.9.87/mtr/wl12xx_enable_disable.patch10
1 files changed, 7 insertions, 3 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtr/wl12xx_enable_disable.patch b/recipes-kernel/linux/linux-at91-4.9.87/mtr/wl12xx_enable_disable.patch
index f9baa14..161f65b 100644
--- a/recipes-kernel/linux/linux-at91-4.9.87/mtr/wl12xx_enable_disable.patch
+++ b/recipes-kernel/linux/linux-at91-4.9.87/mtr/wl12xx_enable_disable.patch
@@ -1,24 +1,28 @@
diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c
-index 47fe7f96..fb209475 100644
+index 47fe7f96..3f374575 100644
--- a/drivers/net/wireless/ti/wlcore/sdio.c
+++ b/drivers/net/wireless/ti/wlcore/sdio.c
-@@ -154,6 +154,9 @@ static int wl12xx_sdio_power_on(struct wl12xx_sdio_glue *glue)
+@@ -154,6 +154,12 @@ 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;
+ /* Multi-Tech MTR patch: Assert WL_EN (PA27) to enable Wi-Fi */
++ gpio_set_value(27, 0);
++ msleep(10);
+ gpio_set_value(27, 1);
++ msleep(100);
+
ret = pm_runtime_get_sync(&card->dev);
if (ret) {
/*
-@@ -185,6 +188,9 @@ static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue)
+@@ -185,6 +191,10 @@ static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue)
sdio_claim_host(func);
sdio_disable_func(func);
sdio_release_host(func);
+
+ /* Multi-Tech MTR patch: De-assert WL_EN (PA27) to disable Wi-Fi */
+ gpio_set_value(27, 0);
++ msleep(10);
/* Power off the card manually in case it wasn't powered off above */
ret = mmc_power_save_host(card->host);