summaryrefslogtreecommitdiffstats
path: root/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0024-wl18xx-do-not-invert-IRQ-on-WLxxxx-side.patch
blob: 0b2c1fc757e31fc2f4ef95d0543431265bd8ef7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From df629d74744e453f2d72f412698befb20bf56f73 Mon Sep 17 00:00:00 2001
From: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Date: Mon, 22 May 2017 17:22:38 +0300
Subject: [PATCH 019/122] wl18xx: do not invert IRQ on WLxxxx side

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
---
 drivers/net/wireless/ti/wl18xx/main.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 0cf3b40..b1c4cdb 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -878,7 +878,9 @@ static int wl18xx_pre_upload(struct wl1271 *wl)
 {
 	u32 tmp;
 	int ret;
+#if 0
 	u16 irq_invert;
+#endif
 
 	BUILD_BUG_ON(sizeof(struct wl18xx_mac_and_phy_params) >
 		WL18XX_PHY_INIT_MEM_SIZE);
@@ -931,6 +933,11 @@ static int wl18xx_pre_upload(struct wl1271 *wl)
 	if (ret < 0)
 		goto out;
 
+#if 0
+	/* We have level translator with inversion on IRQ line so we
+	 * set IRQ_TYPE_EDGE_FALLING in DTS, but we do not need to
+	 * invert IRQ logic on WLxxxx side!
+	 */
 	ret = irq_get_trigger_type(wl->irq);
 	if ((ret == IRQ_TYPE_LEVEL_LOW) || (ret == IRQ_TYPE_EDGE_FALLING)) {
 		wl1271_info("using inverted interrupt logic: %d", ret);
@@ -950,6 +957,7 @@ static int wl18xx_pre_upload(struct wl1271 *wl)
 
 		ret = wlcore_set_partition(wl, &wl->ptable[PART_PHY_INIT]);
 	}
+#endif
 
 out:
 	return ret;
-- 
2.7.4