arm-trusted-firmware: build 1rank firmware when MACHINE=agl-refhw-h3
[AGL/meta-agl-refhw.git] / meta-agl-refhw-gen3 / recipes-kernel / linux / files / 0002-revert-e233201a.patch
1 Revert "wl18xx: do not invert IRQ on WLxxxx side"
2     
3 This reverts commit 2bcfc394307ae164cbbdff74b902af61dc0181b4.
4 The hard-coded assumption that the IRQ inversion logic is not
5 needed breaks non-Kingfisher users, specifically the WLAN card
6 for the AGL reference hardware board.
7
8 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
9
10 ---
11  drivers/net/wireless/ti/wl18xx/main.c | 8 --------
12  1 file changed, 8 deletions(-)
13
14 diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
15 index 764987101116..0b3cf8477c6c 100644
16 --- a/drivers/net/wireless/ti/wl18xx/main.c
17 +++ b/drivers/net/wireless/ti/wl18xx/main.c
18 @@ -865,9 +865,7 @@ static int wl18xx_pre_upload(struct wl1271 *wl)
19  {
20         u32 tmp;
21         int ret;
22 -#if 0
23         u16 irq_invert;
24 -#endif
25  
26         BUILD_BUG_ON(sizeof(struct wl18xx_mac_and_phy_params) >
27                 WL18XX_PHY_INIT_MEM_SIZE);
28 @@ -920,11 +918,6 @@ static int wl18xx_pre_upload(struct wl1271 *wl)
29         if (ret < 0)
30                 goto out;
31  
32 -#if 0
33 -       /* We have level translator with inversion on IRQ line so we
34 -        * set IRQ_TYPE_EDGE_FALLING in DTS, but we do not need to
35 -        * invert IRQ logic on WLxxxx side!
36 -        */
37         ret = irq_get_trigger_type(wl->irq);
38         if ((ret == IRQ_TYPE_LEVEL_LOW) || (ret == IRQ_TYPE_EDGE_FALLING)) {
39                 wl1271_info("using inverted interrupt logic: %d", ret);
40 @@ -944,7 +937,6 @@ static int wl18xx_pre_upload(struct wl1271 *wl)
41  
42                 ret = wlcore_set_partition(wl, &wl->ptable[PART_PHY_INIT]);
43         }
44 -#endif
45  
46  out:
47         return ret;