summaryrefslogtreecommitdiff
path: root/recipes-kernel/rsi-91x/files/0002-fix-rsi_handle_card_ready-card-ready.patch
blob: aeed2c90ea992e958f0d1fe1161cbfa19c89474e (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
From 822df5990784ba914a1622e81b2b9ea4e079d5ea Mon Sep 17 00:00:00 2001
From: Serhii Voloshynov <serhii.voloshynov@globallogic.com>
Date: Thu, 29 Dec 2022 09:36:07 +0200
Subject: [PATCH] fix 'rsi_handle_card_ready: card ready indication in invalid
 state 0.' issue

---
rsi_91x_hal.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rsi_91x_hal.c b/rsi_91x_hal.c
index c3d5823..e3eeec6 100644
--- a/rsi_91x_hal.c
+++ b/rsi_91x_hal.c
@@ -1703,6 +1703,9 @@ int rsi_hal_device_init(struct rsi_hw *adapter)
 
   rsi_dbg(ERR_ZONE, "%s: oper_mode = %d, coex_mode = %d\n", __func__, common->oper_mode, common->coex_mode);
 
+  adapter->common_hal_fsm = COMMAN_HAL_WAIT_FOR_CARD_READY;
+  common->fsm_state       = FSM_CARD_NOT_READY;
+
   switch (adapter->device_model) {
     case RSI_DEV_9113:
     case RSI_DEV_9116:
@@ -1714,8 +1717,6 @@ int rsi_hal_device_init(struct rsi_hw *adapter)
     default:
       return -EINVAL;
   }
-  adapter->common_hal_fsm = COMMAN_HAL_WAIT_FOR_CARD_READY;
-  common->fsm_state       = FSM_CARD_NOT_READY;
 
 #if defined(CONFIG_RSI_BT_ALONE) || defined(CONFIG_RSI_COEX_MODE)
   adapter->priv->bt_fsm_state = BT_DEVICE_NOT_READY;
-- 
2.25.1