staging: r8188eu: move xmit status check from hal to rtw_cmd
authorMartin Kaiser <martin@kaiser.cx>
Sun, 12 Dec 2021 18:58:31 +0000 (19:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Dec 2021 16:47:43 +0000 (17:47 +0100)
Move rtl8188e_sreset_xmit_status_check from the hal layer into
rtw_cmd.c.

As this driver supports only the 8188 chipset, there's no need
to go through the hal layer for simple operations that have only
one caller.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211212185833.22000-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_cmd.c
drivers/staging/r8188eu/hal/rtl8188e_sreset.c
drivers/staging/r8188eu/include/rtl8188e_sreset.h

index ace3a6342e01cb05dd64b816bb25656c52aef3a3..283ae08ae4cb24ab8420badbdcf47f7b2369127a 100644 (file)
@@ -950,6 +950,18 @@ static void traffic_status_watchdog(struct adapter *padapter)
        pmlmepriv->LinkDetectInfo.bHigherBusyTxTraffic = bHigherBusyTxTraffic;
 }
 
+static void rtl8188e_sreset_xmit_status_check(struct adapter *padapter)
+{
+       u32 txdma_status;
+
+       txdma_status = rtw_read32(padapter, REG_TXDMA_STATUS);
+       if (txdma_status != 0x00) {
+               DBG_88E("%s REG_TXDMA_STATUS:0x%08x\n", __func__, txdma_status);
+               rtw_write32(padapter, REG_TXDMA_STATUS, txdma_status);
+       }
+       /* total xmit irp = 4 */
+}
+
 static void dynamic_chk_wk_hdl(struct adapter *padapter, u8 *pbuf)
 {
        struct mlme_priv *pmlmepriv;
index 7b3ac6e306ced36a66338fdb472f845435a219ad..7fec776a8e8707a9a1c059870a29f96f882c9e9c 100644 (file)
@@ -6,18 +6,6 @@
 #include "../include/rtl8188e_sreset.h"
 #include "../include/rtl8188e_hal.h"
 
-void rtl8188e_sreset_xmit_status_check(struct adapter *padapter)
-{
-       u32 txdma_status;
-
-       txdma_status = rtw_read32(padapter, REG_TXDMA_STATUS);
-       if (txdma_status != 0x00) {
-               DBG_88E("%s REG_TXDMA_STATUS:0x%08x\n", __func__, txdma_status);
-               rtw_write32(padapter, REG_TXDMA_STATUS, txdma_status);
-       }
-       /* total xmit irp = 4 */
-}
-
 void rtl8188e_sreset_linked_status_check(struct adapter *padapter)
 {
        u32 rx_dma_status = 0;
index bb8b0048fbf9e7346cf0d30052632765d000d165..4e96a5a6e075272f990fd4ffa79e36995dda1f1f 100644 (file)
@@ -7,7 +7,6 @@
 #include "osdep_service.h"
 #include "drv_types.h"
 
-void rtl8188e_sreset_xmit_status_check(struct adapter *padapter);
 void rtl8188e_sreset_linked_status_check(struct adapter *padapter);
 
 #endif