summaryrefslogtreecommitdiff
path: root/recipes-kernel/rsi-91x/files/0001-fix-rsi_handle_card_ready-card-ready.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/rsi-91x/files/0001-fix-rsi_handle_card_ready-card-ready.patch')
-rw-r--r--recipes-kernel/rsi-91x/files/0001-fix-rsi_handle_card_ready-card-ready.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-kernel/rsi-91x/files/0001-fix-rsi_handle_card_ready-card-ready.patch b/recipes-kernel/rsi-91x/files/0001-fix-rsi_handle_card_ready-card-ready.patch
new file mode 100644
index 0000000..aeed2c9
--- /dev/null
+++ b/recipes-kernel/rsi-91x/files/0001-fix-rsi_handle_card_ready-card-ready.patch
@@ -0,0 +1,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
+