dp_umac_reset.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. /*
  2. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #include <dp_types.h>
  17. #include <wlan_cfg.h>
  18. #include <hif.h>
  19. #include <dp_htt.h>
  20. /**
  21. * dp_get_umac_reset_intr_ctx() - Get the interrupt context to be used by
  22. * UMAC reset feature
  23. * @soc: DP soc object
  24. * @intr_ctx: Interrupt context variable to be populated by this API
  25. *
  26. * Return: QDF_STATUS of operation
  27. */
  28. static QDF_STATUS dp_get_umac_reset_intr_ctx(struct dp_soc *soc, int *intr_ctx)
  29. {
  30. int umac_reset_mask, i;
  31. /**
  32. * Go over all the contexts and check which interrupt context has
  33. * the UMAC reset mask set.
  34. */
  35. for (i = 0; i < wlan_cfg_get_num_contexts(soc->wlan_cfg_ctx); i++) {
  36. umac_reset_mask = wlan_cfg_get_umac_reset_intr_mask(
  37. soc->wlan_cfg_ctx, i);
  38. if (umac_reset_mask) {
  39. *intr_ctx = i;
  40. return QDF_STATUS_SUCCESS;
  41. }
  42. }
  43. *intr_ctx = -1;
  44. return QDF_STATUS_E_FAILURE;
  45. }
  46. /**
  47. * dp_umac_reset_send_setup_cmd(): Send the UMAC reset setup command
  48. * @soc: dp soc object
  49. *
  50. * Return: QDF_STATUS of operation
  51. */
  52. static QDF_STATUS
  53. dp_umac_reset_send_setup_cmd(struct dp_soc *soc)
  54. {
  55. struct dp_soc_umac_reset_ctx *umac_reset_ctx;
  56. int msi_vector_count, ret;
  57. uint32_t msi_base_data, msi_vector_start;
  58. struct dp_htt_umac_reset_setup_cmd_params params;
  59. umac_reset_ctx = &soc->umac_reset_ctx;
  60. ret = pld_get_user_msi_assignment(soc->osdev->dev, "DP",
  61. &msi_vector_count, &msi_base_data,
  62. &msi_vector_start);
  63. if (ret)
  64. return QDF_STATUS_E_FAILURE;
  65. qdf_mem_zero(&params, sizeof(params));
  66. params.msi_data = (umac_reset_ctx->intr_offset % msi_vector_count) +
  67. msi_base_data;
  68. params.shmem_addr_low =
  69. qdf_get_lower_32_bits(umac_reset_ctx->shmem_paddr_aligned);
  70. params.shmem_addr_high =
  71. qdf_get_upper_32_bits(umac_reset_ctx->shmem_paddr_aligned);
  72. return dp_htt_umac_reset_send_setup_cmd(soc, &params);
  73. }
  74. QDF_STATUS dp_soc_umac_reset_init(struct dp_soc *soc)
  75. {
  76. struct dp_soc_umac_reset_ctx *umac_reset_ctx;
  77. size_t alloc_size;
  78. QDF_STATUS status;
  79. if (!soc) {
  80. dp_umac_reset_err("DP SOC is null");
  81. return QDF_STATUS_E_NULL_VALUE;
  82. }
  83. umac_reset_ctx = &soc->umac_reset_ctx;
  84. qdf_mem_zero(umac_reset_ctx, sizeof(*umac_reset_ctx));
  85. umac_reset_ctx->supported = true;
  86. umac_reset_ctx->current_state = UMAC_RESET_STATE_WAIT_FOR_DO_PRE_RESET;
  87. status = dp_get_umac_reset_intr_ctx(soc, &umac_reset_ctx->intr_offset);
  88. if (QDF_IS_STATUS_ERROR(status)) {
  89. dp_umac_reset_err("No interrupt assignment");
  90. return status;
  91. }
  92. alloc_size = sizeof(htt_umac_hang_recovery_msg_shmem_t) +
  93. DP_UMAC_RESET_SHMEM_ALIGN - 1;
  94. umac_reset_ctx->shmem_vaddr_unaligned =
  95. qdf_mem_alloc_consistent(soc->osdev, soc->osdev->dev,
  96. alloc_size,
  97. &umac_reset_ctx->shmem_paddr_unaligned);
  98. if (!umac_reset_ctx->shmem_vaddr_unaligned) {
  99. dp_umac_reset_err("shmem allocation failed");
  100. return QDF_STATUS_E_NOMEM;
  101. }
  102. umac_reset_ctx->shmem_vaddr_aligned = (void *)(uintptr_t)qdf_roundup(
  103. (uint64_t)(uintptr_t)umac_reset_ctx->shmem_vaddr_unaligned,
  104. DP_UMAC_RESET_SHMEM_ALIGN);
  105. umac_reset_ctx->shmem_paddr_aligned = qdf_roundup(
  106. (uint64_t)umac_reset_ctx->shmem_paddr_unaligned,
  107. DP_UMAC_RESET_SHMEM_ALIGN);
  108. /* Send the setup cmd to the target */
  109. return dp_umac_reset_send_setup_cmd(soc);
  110. }
  111. /**
  112. * dp_umac_reset_get_rx_event() - Extract the Rx event from the shared memory
  113. * @umac_reset_ctx: UMAC reset context
  114. *
  115. * Return: Extracted Rx event in the form of enumeration umac_reset_rx_event
  116. */
  117. static enum umac_reset_rx_event
  118. dp_umac_reset_get_rx_event_from_shmem(
  119. struct dp_soc_umac_reset_ctx *umac_reset_ctx)
  120. {
  121. htt_umac_hang_recovery_msg_shmem_t *shmem_vaddr;
  122. uint32_t t2h_msg;
  123. uint8_t num_events = 0;
  124. enum umac_reset_rx_event rx_event;
  125. shmem_vaddr = umac_reset_ctx->shmem_vaddr_aligned;
  126. if (!shmem_vaddr) {
  127. dp_umac_reset_err("Shared memory address is NULL");
  128. goto err;
  129. }
  130. if (shmem_vaddr->magic_num != umac_reset_ctx->shmem_exp_magic_num) {
  131. dp_umac_reset_err("Shared memory got corrupted");
  132. goto err;
  133. }
  134. /* Read the shared memory into a local variable */
  135. t2h_msg = shmem_vaddr->t2h_msg;
  136. /* Clear the shared memory right away */
  137. shmem_vaddr->t2h_msg = 0;
  138. dp_umac_reset_debug("shmem value - t2h_msg: 0x%x", t2h_msg);
  139. rx_event = UMAC_RESET_RX_EVENT_NONE;
  140. if (HTT_UMAC_HANG_RECOVERY_MSG_SHMEM_DO_PRE_RESET_GET(t2h_msg)) {
  141. rx_event |= UMAC_RESET_RX_EVENT_DO_PRE_RESET;
  142. num_events++;
  143. }
  144. if (HTT_UMAC_HANG_RECOVERY_MSG_SHMEM_DO_POST_RESET_START_GET(t2h_msg)) {
  145. rx_event |= UMAC_RESET_RX_EVENT_DO_POST_RESET_START;
  146. num_events++;
  147. }
  148. if (HTT_UMAC_HANG_RECOVERY_MSG_SHMEM_DO_POST_RESET_COMPLETE_GET(t2h_msg)) {
  149. rx_event |= UMAC_RESET_RX_EVENT_DO_POST_RESET_COMPELTE;
  150. num_events++;
  151. }
  152. dp_umac_reset_debug("deduced rx event: 0x%x", rx_event);
  153. /* There should not be more than 1 event */
  154. if (num_events > 1) {
  155. dp_umac_reset_err("Multiple events(0x%x) got posted", rx_event);
  156. goto err;
  157. }
  158. return rx_event;
  159. err:
  160. qdf_assert_always(0);
  161. return UMAC_RESET_RX_EVENT_ERROR;
  162. }
  163. /**
  164. * dp_umac_reset_get_rx_event() - Extract the Rx event
  165. * @umac_reset_ctx: UMAC reset context
  166. *
  167. * Return: Extracted Rx event in the form of enumeration umac_reset_rx_event
  168. */
  169. static inline enum umac_reset_rx_event
  170. dp_umac_reset_get_rx_event(struct dp_soc_umac_reset_ctx *umac_reset_ctx)
  171. {
  172. return dp_umac_reset_get_rx_event_from_shmem(umac_reset_ctx);
  173. }
  174. /**
  175. * dp_umac_reset_validate_n_update_state_machine_on_rx() - Validate the state
  176. * machine for a given rx event and update the state machine
  177. * @umac_reset_ctx: UMAC reset context
  178. * @rx_event: Rx event
  179. * @current_exp_state: Expected state
  180. * @next_state: The state to which the state machine needs to be updated
  181. *
  182. * Return: QDF_STATUS of operation
  183. */
  184. static QDF_STATUS
  185. dp_umac_reset_validate_n_update_state_machine_on_rx(
  186. struct dp_soc_umac_reset_ctx *umac_reset_ctx,
  187. enum umac_reset_rx_event rx_event,
  188. enum umac_reset_state current_exp_state,
  189. enum umac_reset_state next_state)
  190. {
  191. if (umac_reset_ctx->current_state != current_exp_state) {
  192. dp_umac_reset_err("state machine validation failed on rx event: %d, current state is %d",
  193. rx_event,
  194. umac_reset_ctx->current_state);
  195. qdf_assert_always(0);
  196. return QDF_STATUS_E_FAILURE;
  197. }
  198. /* Update the state */
  199. umac_reset_ctx->current_state = next_state;
  200. return QDF_STATUS_SUCCESS;
  201. }
  202. /**
  203. * dp_umac_reset_rx_event_handler() - Main Rx event handler for UMAC reset
  204. * @dp_ctx: Interrupt context corresponding to UMAC reset
  205. *
  206. * Return: 0 incase of success, else failure
  207. */
  208. static int dp_umac_reset_rx_event_handler(void *dp_ctx)
  209. {
  210. struct dp_intr *int_ctx = (struct dp_intr *)dp_ctx;
  211. struct dp_soc *soc = int_ctx->soc;
  212. struct dp_soc_umac_reset_ctx *umac_reset_ctx;
  213. enum umac_reset_rx_event rx_event;
  214. QDF_STATUS status = QDF_STATUS_E_INVAL;
  215. enum umac_reset_action action;
  216. if (!soc) {
  217. dp_umac_reset_err("DP SOC is null");
  218. goto exit;
  219. }
  220. umac_reset_ctx = &soc->umac_reset_ctx;
  221. dp_umac_reset_debug("enter");
  222. rx_event = dp_umac_reset_get_rx_event(umac_reset_ctx);
  223. switch (rx_event) {
  224. case UMAC_RESET_RX_EVENT_NONE:
  225. /* This interrupt is not meant for us, so exit */
  226. dp_umac_reset_debug("Not a UMAC reset event");
  227. status = QDF_STATUS_SUCCESS;
  228. goto exit;
  229. case UMAC_RESET_RX_EVENT_DO_PRE_RESET:
  230. status = dp_umac_reset_validate_n_update_state_machine_on_rx(
  231. umac_reset_ctx, rx_event,
  232. UMAC_RESET_STATE_WAIT_FOR_DO_PRE_RESET,
  233. UMAC_RESET_STATE_DO_PRE_RESET_RECEIVED);
  234. action = UMAC_RESET_ACTION_DO_PRE_RESET;
  235. break;
  236. case UMAC_RESET_RX_EVENT_DO_POST_RESET_START:
  237. status = dp_umac_reset_validate_n_update_state_machine_on_rx(
  238. umac_reset_ctx, rx_event,
  239. UMAC_RESET_STATE_WAIT_FOR_DO_POST_RESET_START,
  240. UMAC_RESET_STATE_DO_POST_RESET_START_RECEIVED);
  241. action = UMAC_RESET_ACTION_DO_POST_RESET_START;
  242. break;
  243. case UMAC_RESET_RX_EVENT_DO_POST_RESET_COMPELTE:
  244. status = dp_umac_reset_validate_n_update_state_machine_on_rx(
  245. umac_reset_ctx, rx_event,
  246. UMAC_RESET_STATE_WAIT_FOR_DO_POST_RESET_COMPLETE,
  247. UMAC_RESET_STATE_DO_POST_RESET_COMPLETE_RECEIVED);
  248. action = UMAC_RESET_ACTION_DO_POST_RESET_COMPLETE;
  249. break;
  250. case UMAC_RESET_RX_EVENT_ERROR:
  251. dp_umac_reset_err("Error Rx event");
  252. goto exit;
  253. default:
  254. dp_umac_reset_err("Invalid value(%u) for Rx event", rx_event);
  255. goto exit;
  256. }
  257. /* Call the handler for this event */
  258. if (QDF_IS_STATUS_SUCCESS(status)) {
  259. if (!umac_reset_ctx->rx_actions.cb[action]) {
  260. dp_umac_reset_err("rx callback is NULL");
  261. goto exit;
  262. }
  263. status = umac_reset_ctx->rx_actions.cb[action](soc);
  264. }
  265. exit:
  266. return qdf_status_to_os_return(status);
  267. }
  268. QDF_STATUS dp_umac_reset_interrupt_attach(struct dp_soc *soc)
  269. {
  270. struct dp_soc_umac_reset_ctx *umac_reset_ctx;
  271. int msi_vector_count, ret;
  272. uint32_t msi_base_data, msi_vector_start;
  273. uint32_t umac_reset_vector, umac_reset_irq;
  274. if (!soc) {
  275. dp_umac_reset_err("DP SOC is null");
  276. return QDF_STATUS_E_NULL_VALUE;
  277. }
  278. umac_reset_ctx = &soc->umac_reset_ctx;
  279. /* return if feature is not supported */
  280. if (!umac_reset_ctx->supported) {
  281. dp_umac_reset_info("UMAC reset is not supported on this SOC");
  282. return QDF_STATUS_SUCCESS;
  283. }
  284. if (pld_get_enable_intx(soc->osdev->dev)) {
  285. dp_umac_reset_err("UMAC reset is not supported in legacy interrupt mode");
  286. return QDF_STATUS_E_FAILURE;
  287. }
  288. ret = pld_get_user_msi_assignment(soc->osdev->dev, "DP",
  289. &msi_vector_count, &msi_base_data,
  290. &msi_vector_start);
  291. if (ret) {
  292. dp_umac_reset_err("UMAC reset is only supported in MSI interrupt mode");
  293. return QDF_STATUS_E_FAILURE;
  294. }
  295. if (umac_reset_ctx->intr_offset < 0 ||
  296. umac_reset_ctx->intr_offset >= WLAN_CFG_INT_NUM_CONTEXTS) {
  297. dp_umac_reset_err("Invalid interrupt offset");
  298. return QDF_STATUS_E_FAILURE;
  299. }
  300. umac_reset_vector = msi_vector_start +
  301. (umac_reset_ctx->intr_offset % msi_vector_count);
  302. /* Get IRQ number */
  303. umac_reset_irq = pld_get_msi_irq(soc->osdev->dev, umac_reset_vector);
  304. /* Finally register to this IRQ from HIF layer */
  305. return hif_register_umac_reset_handler(
  306. soc->hif_handle,
  307. dp_umac_reset_rx_event_handler,
  308. &soc->intr_ctx[umac_reset_ctx->intr_offset],
  309. umac_reset_irq);
  310. }
  311. QDF_STATUS dp_umac_reset_interrupt_detach(struct dp_soc *soc)
  312. {
  313. struct dp_soc_umac_reset_ctx *umac_reset_ctx;
  314. if (!soc) {
  315. dp_umac_reset_err("DP SOC is null");
  316. return QDF_STATUS_E_NULL_VALUE;
  317. }
  318. umac_reset_ctx = &soc->umac_reset_ctx;
  319. /* return if feature is not supported */
  320. if (!umac_reset_ctx->supported) {
  321. dp_umac_reset_info("UMAC reset is not supported on this SOC");
  322. return QDF_STATUS_SUCCESS;
  323. }
  324. return hif_unregister_umac_reset_handler(soc->hif_handle);
  325. }
  326. QDF_STATUS dp_umac_reset_register_rx_action_callback(
  327. struct dp_soc *soc,
  328. QDF_STATUS (*handler)(struct dp_soc *soc),
  329. enum umac_reset_action action)
  330. {
  331. struct dp_soc_umac_reset_ctx *umac_reset_ctx;
  332. if (!soc) {
  333. dp_umac_reset_err("DP SOC is null");
  334. return QDF_STATUS_E_NULL_VALUE;
  335. }
  336. if (action >= UMAC_RESET_ACTION_MAX) {
  337. dp_umac_reset_err("invalid action: %d", action);
  338. return QDF_STATUS_E_INVAL;
  339. }
  340. umac_reset_ctx = &soc->umac_reset_ctx;
  341. umac_reset_ctx->rx_actions.cb[action] = handler;
  342. return QDF_STATUS_SUCCESS;
  343. }
  344. /**
  345. * dp_umac_reset_post_tx_cmd_via_shmem() - Post Tx command using shared memory
  346. * @umac_reset_ctx: UMAC reset context
  347. * @tx_cmd: Tx command to be posted
  348. *
  349. * Return: QDF status of operation
  350. */
  351. static QDF_STATUS
  352. dp_umac_reset_post_tx_cmd_via_shmem(
  353. struct dp_soc_umac_reset_ctx *umac_reset_ctx,
  354. enum umac_reset_tx_cmd tx_cmd)
  355. {
  356. htt_umac_hang_recovery_msg_shmem_t *shmem_vaddr;
  357. shmem_vaddr = umac_reset_ctx->shmem_vaddr_aligned;
  358. if (!shmem_vaddr) {
  359. dp_umac_reset_err("Shared memory address is NULL");
  360. return QDF_STATUS_E_NULL_VALUE;
  361. }
  362. switch (tx_cmd) {
  363. case UMAC_RESET_TX_CMD_PRE_RESET_DONE:
  364. HTT_UMAC_HANG_RECOVERY_MSG_SHMEM_PRE_RESET_DONE_SET(
  365. shmem_vaddr->h2t_msg, 1);
  366. break;
  367. case UMAC_RESET_TX_CMD_POST_RESET_START_DONE:
  368. HTT_UMAC_HANG_RECOVERY_MSG_SHMEM_POST_RESET_START_DONE_SET(
  369. shmem_vaddr->h2t_msg, 1);
  370. break;
  371. case UMAC_RESET_TX_CMD_POST_RESET_COMPLETE_DONE:
  372. HTT_UMAC_HANG_RECOVERY_MSG_SHMEM_POST_RESET_COMPLETE_DONE_SET(
  373. shmem_vaddr->h2t_msg, 1);
  374. break;
  375. default:
  376. dp_umac_reset_err("Invalid tx cmd: %d", tx_cmd);
  377. return QDF_STATUS_E_FAILURE;
  378. }
  379. return QDF_STATUS_SUCCESS;
  380. }
  381. /**
  382. * dp_umac_reset_notify_target() - Notify the target about completion of action.
  383. * @umac_reset_ctx: UMAC reset context
  384. *
  385. * This API figures out the Tx command that needs to be posted based on the
  386. * current state in the state machine. Also, updates the state machine once the
  387. * Tx command has been posted.
  388. *
  389. * Return: QDF status of operation
  390. */
  391. static QDF_STATUS
  392. dp_umac_reset_notify_target(struct dp_soc_umac_reset_ctx *umac_reset_ctx)
  393. {
  394. enum umac_reset_state next_state;
  395. enum umac_reset_tx_cmd tx_cmd;
  396. QDF_STATUS status;
  397. switch (umac_reset_ctx->current_state) {
  398. case UMAC_RESET_STATE_HOST_PRE_RESET_DONE:
  399. tx_cmd = UMAC_RESET_TX_CMD_PRE_RESET_DONE;
  400. next_state = UMAC_RESET_STATE_WAIT_FOR_DO_POST_RESET_START;
  401. break;
  402. case UMAC_RESET_STATE_HOST_POST_RESET_START_DONE:
  403. tx_cmd = UMAC_RESET_TX_CMD_POST_RESET_START_DONE;
  404. next_state = UMAC_RESET_STATE_WAIT_FOR_DO_POST_RESET_COMPLETE;
  405. break;
  406. case UMAC_RESET_STATE_HOST_POST_RESET_COMPLETE_DONE:
  407. tx_cmd = UMAC_RESET_TX_CMD_POST_RESET_COMPLETE_DONE;
  408. next_state = UMAC_RESET_STATE_WAIT_FOR_DO_PRE_RESET;
  409. break;
  410. default:
  411. dp_umac_reset_err("Invalid state(%d) during Tx",
  412. umac_reset_ctx->current_state);
  413. qdf_assert_always(0);
  414. return QDF_STATUS_E_FAILURE;
  415. }
  416. status = dp_umac_reset_post_tx_cmd_via_shmem(umac_reset_ctx, tx_cmd);
  417. if (QDF_IS_STATUS_ERROR(status)) {
  418. dp_umac_reset_err("Couldn't post Tx cmd");
  419. qdf_assert_always(0);
  420. return status;
  421. }
  422. /* Update the state machine */
  423. umac_reset_ctx->current_state = next_state;
  424. return status;
  425. }
  426. /**
  427. * dp_umac_reset_notify_completion() - Notify that a given action has been
  428. * completed
  429. * @soc: DP soc object
  430. * @next_state: The state to which the state machine needs to be updated due to
  431. * this completion
  432. *
  433. * Return: QDF status of operation
  434. */
  435. static QDF_STATUS dp_umac_reset_notify_completion(
  436. struct dp_soc *soc,
  437. enum umac_reset_state next_state)
  438. {
  439. struct dp_soc_umac_reset_ctx *umac_reset_ctx;
  440. if (!soc) {
  441. dp_umac_reset_err("DP SOC is null");
  442. return QDF_STATUS_E_NULL_VALUE;
  443. }
  444. umac_reset_ctx = &soc->umac_reset_ctx;
  445. /* Update the state first */
  446. umac_reset_ctx->current_state = next_state;
  447. return dp_umac_reset_notify_target(umac_reset_ctx);
  448. }
  449. QDF_STATUS dp_umac_reset_notify_action_completion(
  450. struct dp_soc *soc,
  451. enum umac_reset_action action)
  452. {
  453. enum umac_reset_state next_state;
  454. switch (action) {
  455. case UMAC_RESET_ACTION_DO_PRE_RESET:
  456. next_state = UMAC_RESET_STATE_HOST_PRE_RESET_DONE;
  457. break;
  458. case UMAC_RESET_ACTION_DO_POST_RESET_START:
  459. next_state = UMAC_RESET_STATE_HOST_POST_RESET_START_DONE;
  460. break;
  461. case UMAC_RESET_ACTION_DO_POST_RESET_COMPLETE:
  462. next_state = UMAC_RESET_STATE_HOST_POST_RESET_COMPLETE_DONE;
  463. break;
  464. default:
  465. dp_umac_reset_err("Invalid action");
  466. return QDF_STATUS_E_FAILURE;
  467. }
  468. return dp_umac_reset_notify_completion(soc, next_state);
  469. }