staging: rtl8188eu: Remove "silentreset_mutex" from struct sreset_priv
PATCH 1/18 staging: rtl8188eu: Remove "silentreset_mutex" from struct sreset_priv
silentreset_mutex initialized but not being used.
--- drivers/staging/rtl8188eu/core/rtw_sreset.c | 1 - drivers/staging/rtl8188eu/include/rtw_sreset.h | 1 - 2 files changed, 2 deletions(-)
drivers/staging/rtl8188eu/core/rtw_sreset.c +0 -1
@@ -25,7 +25,6 @@ void sreset_init_value(struct adapter *padapter)struct hal_data_8188e *pHalData =GET_HAL_DATA (padapter);struct sreset_priv *psrtpriv = &pHalData->srestpriv; -mutex_init (&psrtpriv->silentreset_mutex); psrtpriv->silent_reset_inprogress = false; psrtpriv->Wifi_Error_Status =WIFI_STATUS_SUCCESS ; psrtpriv->last_tx_time =0 ;
drivers/staging/rtl8188eu/include/rtw_sreset.h +0 -1
@@ -24,7 +24,6 @@#include <drv_types.h> struct sreset_priv { -struct mutex silentreset_mutex;u8 silent_reset_inprogress;u8 Wifi_Error_Status;unsigned long last_tx_time;
Signature · 1 line
1.7.10.4
PATCH 2/18 staging: rtl8188eu:Remove "silent_reset_inprogress" from struct sreset_priv
psrtpriv->silent_reset_inprogress is always false.
--- drivers/staging/rtl8188eu/core/rtw_sreset.c | 4 ---- drivers/staging/rtl8188eu/include/rtw_sreset.h | 1 - 2 files changed, 5 deletions(-)
drivers/staging/rtl8188eu/core/rtw_sreset.c +0 -4
@@ -25,7 +25,6 @@ void sreset_init_value(struct adapter *padapter)struct hal_data_8188e *pHalData =GET_HAL_DATA (padapter);struct sreset_priv *psrtpriv = &pHalData->srestpriv; - psrtpriv->silent_reset_inprogress = false; psrtpriv->Wifi_Error_Status =WIFI_STATUS_SUCCESS ; psrtpriv->last_tx_time =0 ; psrtpriv->last_tx_complete_time =0 ;
@@ -35,7 +34,6 @@ void sreset_reset_value(struct adapter *padapter)struct hal_data_8188e *pHalData =GET_HAL_DATA (padapter);struct sreset_priv *psrtpriv = &pHalData->srestpriv; - psrtpriv->silent_reset_inprogress = false; psrtpriv->Wifi_Error_Status =WIFI_STATUS_SUCCESS ; psrtpriv->last_tx_time =0 ; psrtpriv->last_tx_complete_time =0 ;
@@ -49,8 +47,6 @@ u8 sreset_get_wifi_status(struct adapter *padapter)u8 status =WIFI_STATUS_SUCCESS ;u32 val32 =0 ; -if (psrtpriv->silent_reset_inprogress) -return status; val32 =rtw_read32 (padapter,REG_TXDMA_STATUS );if (val32 ==0xeaeaeaea ) { psrtpriv->Wifi_Error_Status =WIFI_IF_NOT_EXIST ;
drivers/staging/rtl8188eu/include/rtw_sreset.h +0 -1
@@ -24,7 +24,6 @@#include <drv_types.h> struct sreset_priv { -u8 silent_reset_inprogress;u8 Wifi_Error_Status;unsigned long last_tx_time;unsigned long last_tx_complete_time;
Signature · 1 line
1.7.10.4
PATCH 3/18 staging: rtl8188eu: Use rtw_hal_sreset_init() in rtw_reset_drv_sw()
In reply to navin patidarWe can replace rtw_hal_sreset_reset_value() with rtw_hal_sreset_init() because both function call sreset_reset_value() and sreset_init_value() respectively at the end of code path, and function defination of sreset_reset_value() and sreset_init_value() is identical.
--- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8188eu/os_dep/os_intfs.c +1 -2
@@ -837,8 +837,7 @@ u8 rtw_reset_drv_sw(struct adapter *padapter) pmlmepriv->LinkDetectInfo.bBusyTraffic = false;_clr_fwstate_ (pmlmepriv, _FW_UNDER_SURVEY | _FW_UNDER_LINKING); - -rtw_hal_sreset_reset_value (padapter); +rtw_hal_sreset_init (padapter); pwrctrlpriv->pwr_state_check_cnts =0 ;/* mlmeextpriv */
Signature · 1 line
1.7.10.4
PATCH 4/18 staging: rtl8188eu: Remove unused function rtw_hal_sreset_reset_value()
In reply to navin patidar--- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 ------ drivers/staging/rtl8188eu/include/hal_intf.h | 1 - 2 files changed, 7 deletions(-)
drivers/staging/rtl8188eu/hal/hal_intf.c +0 -6
@@ -380,12 +380,6 @@ void rtw_hal_sreset_reset(struct adapter *adapt) adapt->HalFunc.silentreset (adapt); } -void rtw_hal_sreset_reset_value (struct adapter *adapt) -{ -if (adapt->HalFunc.sreset_reset_value) - adapt->HalFunc.sreset_reset_value (adapt); -} -void rtw_hal_sreset_xmit_status_check (struct adapter *adapt) {if (adapt->HalFunc.sreset_xmit_status_check)
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -369,7 +369,6 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *padapter,void rtw_hal_sreset_init (struct adapter *padapter);void rtw_hal_sreset_reset (struct adapter *padapter); -void rtw_hal_sreset_reset_value (struct adapter *padapter);void rtw_hal_sreset_xmit_status_check (struct adapter *padapter);void rtw_hal_sreset_linked_status_check (struct adapter *padapter);u8 rtw_hal_sreset_get_wifi_status (struct adapter *padapter);
Signature · 1 line
1.7.10.4
PATCH 5/18 staging: rtl8188eu: Remove unused function pointer ->sreset_reset_value
In reply to navin patidar--- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 1 - drivers/staging/rtl8188eu/include/hal_intf.h | 1 - 2 files changed, 2 deletions(-)
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c +0 -1
@@ -1872,7 +1872,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->Efuse_WordEnableDataWrite = &rtl8188e_Efuse_WordEnableDataWrite; pHalFunc->sreset_init_value = &sreset_init_value; - pHalFunc->sreset_reset_value = &sreset_reset_value; pHalFunc->silentreset = &rtl8188e_silentreset_for_specific_platform; pHalFunc->sreset_xmit_status_check = &rtl8188e_sreset_xmit_status_check; pHalFunc->sreset_linked_status_check = &rtl8188e_sreset_linked_status_check;
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -252,7 +252,6 @@ struct hal_ops { u8 word_en, u8 *data, bool test);void (*sreset_init_value)(struct adapter *padapter); -void (*sreset_reset_value)(struct adapter *padapter);void (*silentreset)(struct adapter *padapter);void (*sreset_xmit_status_check)(struct adapter *padapter);void (*sreset_linked_status_check) (struct adapter *padapter);
Signature · 1 line
1.7.10.4
PATCH 6/18 staging: rtl8188eu: Remove unused function reset_reset_value()
In reply to navin patidar--- drivers/staging/rtl8188eu/core/rtw_sreset.c | 9 --------- drivers/staging/rtl8188eu/include/rtw_sreset.h | 1 - 2 files changed, 10 deletions(-)
drivers/staging/rtl8188eu/core/rtw_sreset.c +0 -9
@@ -29,15 +29,6 @@ void sreset_init_value(struct adapter *padapter) psrtpriv->last_tx_time =0 ; psrtpriv->last_tx_complete_time =0 ; } -void sreset_reset_value (struct adapter *padapter) -{ -struct hal_data_8188e *pHalData =GET_HAL_DATA (padapter); -struct sreset_priv *psrtpriv = &pHalData->srestpriv; - - psrtpriv->Wifi_Error_Status =WIFI_STATUS_SUCCESS ; - psrtpriv->last_tx_time =0 ; - psrtpriv->last_tx_complete_time =0 ; -}u8 sreset_get_wifi_status (struct adapter *padapter) {
drivers/staging/rtl8188eu/include/rtw_sreset.h +0 -1
@@ -41,7 +41,6 @@ struct sreset_priv {#define WIFI_IF_NOT_EXIST BIT6void sreset_init_value (struct adapter *padapter); -void sreset_reset_value (struct adapter *padapter);u8 sreset_get_wifi_status (struct adapter *padapter);void sreset_set_wifi_error_status (struct adapter *padapter,u32 status);
Signature · 1 line
1.7.10.4
PATCH 7/18 staging: rtl8188eu: Remove function rtw_hal_sreset_xmit_status_check()
In reply to navin patidarrtw_hal_sreset_xmit_status_check() is a wrapper to call rtl8188e_sreset_xmit_status_check(), which calls rtl8188e_silentreset_for_specific_platform() in case of transmission has stopped to do a silent reset and restore the transmission but rtl8188e_silentreset_for_specific_platform() has empty defination, so we can remove rtw_hal_sreset_xmit_status_check() because it doesn't serve its purpose.
--- drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 -- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 ------ drivers/staging/rtl8188eu/include/hal_intf.h | 1 - 3 files changed, 9 deletions(-)
drivers/staging/rtl8188eu/core/rtw_cmd.c +0 -2
@@ -1542,8 +1542,6 @@ static void dynamic_chk_wk_hdl(struct adapter *padapter, u8 *pbuf, int sz)expire_timeout_chk (padapter);#endif -rtw_hal_sreset_xmit_status_check (padapter); -linked_status_chk (padapter);traffic_status_watchdog (padapter);
drivers/staging/rtl8188eu/hal/hal_intf.c +0 -6
@@ -380,12 +380,6 @@ void rtw_hal_sreset_reset(struct adapter *adapt) adapt->HalFunc.silentreset (adapt); } -void rtw_hal_sreset_xmit_status_check (struct adapter *adapt) -{ -if (adapt->HalFunc.sreset_xmit_status_check) - adapt->HalFunc.sreset_xmit_status_check (adapt); -} -void rtw_hal_sreset_linked_status_check (struct adapter *adapt) {if (adapt->HalFunc.sreset_linked_status_check)
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -368,7 +368,6 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *padapter,void rtw_hal_sreset_init (struct adapter *padapter);void rtw_hal_sreset_reset (struct adapter *padapter); -void rtw_hal_sreset_xmit_status_check (struct adapter *padapter);void rtw_hal_sreset_linked_status_check (struct adapter *padapter);u8 rtw_hal_sreset_get_wifi_status (struct adapter *padapter);
Signature · 1 line
1.7.10.4
PATCH 8/18 staging: rtl8188eu: Remove unused function rtl8188e_sreset_xmit_status_check()
In reply to navin patidarRemove rtl8188e_sreset_xmit_status_check() and function pointer ->sreset_xmit_status_check pointing to it.
--- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 1 - drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c | 35 -------------------- drivers/staging/rtl8188eu/include/hal_intf.h | 1 - .../staging/rtl8188eu/include/rtl8188e_sreset.h | 1 - 4 files changed, 38 deletions(-)
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c +0 -1
@@ -1873,7 +1873,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->sreset_init_value = &sreset_init_value; pHalFunc->silentreset = &rtl8188e_silentreset_for_specific_platform; - pHalFunc->sreset_xmit_status_check = &rtl8188e_sreset_xmit_status_check; pHalFunc->sreset_linked_status_check = &rtl8188e_sreset_linked_status_check; pHalFunc->sreset_get_wifi_status = &sreset_get_wifi_status;
drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c +0 -35
@@ -26,41 +26,6 @@ void rtl8188e_silentreset_for_specific_platform(struct adapter *padapter) { } -void rtl8188e_sreset_xmit_status_check (struct adapter *padapter) -{ -struct hal_data_8188e *pHalData =GET_HAL_DATA (padapter); -struct sreset_priv *psrtpriv = &pHalData->srestpriv; - -unsigned long current_time; -struct xmit_priv *pxmitpriv = &padapter->xmitpriv; -unsigned int diff_time; -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); -rtl8188e_silentreset_for_specific_platform (padapter); - } -/* total xmit irp = 4 */ - current_time = jiffies; -if (0 == pxmitpriv->free_xmitbuf_cnt) { - diff_time =jiffies_to_msecs (current_time - psrtpriv->last_tx_time); - -if (diff_time >2000 ) { -if (psrtpriv->last_tx_complete_time ==0 ) { - psrtpriv->last_tx_complete_time = current_time; - }else { - diff_time =jiffies_to_msecs (current_time - psrtpriv->last_tx_complete_time); -if (diff_time >4000 ) { -DBG_88E ("%s tx hang\n" , __func__); -rtl8188e_silentreset_for_specific_platform (padapter); - } - } - } - } -} -void rtl8188e_sreset_linked_status_check (struct adapter *padapter) {u32 rx_dma_status =0 ;
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -253,7 +253,6 @@ struct hal_ops {void (*sreset_init_value)(struct adapter *padapter);void (*silentreset)(struct adapter *padapter); -void (*sreset_xmit_status_check)(struct adapter *padapter);void (*sreset_linked_status_check) (struct adapter *padapter);u8 (*sreset_get_wifi_status)(struct adapter *padapter);
drivers/staging/rtl8188eu/include/rtl8188e_sreset.h +0 -1
@@ -25,7 +25,6 @@#include <rtw_sreset.h> void rtl8188e_silentreset_for_specific_platform (struct adapter *padapter); -void rtl8188e_sreset_xmit_status_check (struct adapter *padapter);void rtl8188e_sreset_linked_status_check (struct adapter *padapter);#endif
Signature · 1 line
1.7.10.4
PATCH 9/18 staging:rtl8188eu: Remove function rtw_hal_sreset_linked_status_check()
In reply to navin patidarrtw_hal_sreset_linked_status_check() is a wrapper to call rtl8188e_sreset_linked_status_check(), which doesn't do anything useful.
rtl8188e_sreset_linked_status_check() will also be removed later.
--- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 -- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 ------ drivers/staging/rtl8188eu/include/hal_intf.h | 1 - 3 files changed, 9 deletions(-)
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +0 -2
@@ -7549,8 +7549,6 @@ void linked_status_chk(struct adapter *padapter)if (padapter->bRxRSSIDisplay)_linked_rx_signal_strehgth_display (padapter); -rtw_hal_sreset_linked_status_check (padapter); -if (is_client_associated_to_ap (padapter)) {/* linked infrastructure client mode */
drivers/staging/rtl8188eu/hal/hal_intf.c +0 -6
@@ -380,12 +380,6 @@ void rtw_hal_sreset_reset(struct adapter *adapt) adapt->HalFunc.silentreset (adapt); } -void rtw_hal_sreset_linked_status_check (struct adapter *adapt) -{ -if (adapt->HalFunc.sreset_linked_status_check) - adapt->HalFunc.sreset_linked_status_check (adapt); -} -u8 rtw_hal_sreset_get_wifi_status (struct adapter *adapt) {u8 status =0 ;
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -367,7 +367,6 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *padapter,void rtw_hal_sreset_init (struct adapter *padapter);void rtw_hal_sreset_reset (struct adapter *padapter); -void rtw_hal_sreset_linked_status_check (struct adapter *padapter);u8 rtw_hal_sreset_get_wifi_status (struct adapter *padapter); int rtw_hal_iol_cmd(struct adapter *adapter, struct xmit_frame *xmit_frame,
Signature · 1 line
1.7.10.4
PATCH 10/18 staging:rtl8188eu: Remove function rtl8188e_sreset_linked_status_check()
In reply to navin patidarRemove rtl8188e_sreset_linked_status_check() and function pointer ->sreset_linked_status_check pointing to it.
--- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 1 - drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c | 17 ----------------- drivers/staging/rtl8188eu/include/hal_intf.h | 1 - drivers/staging/rtl8188eu/include/rtl8188e_sreset.h | 1 - 4 files changed, 20 deletions(-)
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c +0 -1
@@ -1873,7 +1873,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->sreset_init_value = &sreset_init_value; pHalFunc->silentreset = &rtl8188e_silentreset_for_specific_platform; - pHalFunc->sreset_linked_status_check = &rtl8188e_sreset_linked_status_check; pHalFunc->sreset_get_wifi_status = &sreset_get_wifi_status; pHalFunc->GetHalODMVarHandler = &rtl8188e_GetHalODMVar;
drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c +0 -17
@@ -26,20 +26,3 @@ void rtl8188e_silentreset_for_specific_platform(struct adapter *padapter) { } -void rtl8188e_sreset_linked_status_check (struct adapter *padapter) -{ -u32 rx_dma_status =0 ; -u8 fw_status =0 ; - rx_dma_status =rtw_read32 (padapter,REG_RXDMA_STATUS ); -if (rx_dma_status !=0x00 ) { -DBG_88E ("%s REG_RXDMA_STATUS:0x%08x\n" , __func__, rx_dma_status); -rtw_write32 (padapter,REG_RXDMA_STATUS , rx_dma_status); - } - fw_status =rtw_read8 (padapter,REG_FMETHR ); -if (fw_status !=0x00 ) { -if (fw_status ==1 ) -DBG_88E ("%s REG_FW_STATUS (0x%02x), Read_Efuse_Fail !!\n" , __func__, fw_status); -else if (fw_status ==2 ) -DBG_88E ("%s REG_FW_STATUS (0x%02x), Condition_No_Match !!\n" , __func__, fw_status); - } -}
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -253,7 +253,6 @@ struct hal_ops {void (*sreset_init_value)(struct adapter *padapter);void (*silentreset)(struct adapter *padapter); -void (*sreset_linked_status_check) (struct adapter *padapter);u8 (*sreset_get_wifi_status)(struct adapter *padapter); int (*IOL_exec_cmds_sync)(struct adapter *padapter,
drivers/staging/rtl8188eu/include/rtl8188e_sreset.h +0 -1
@@ -25,6 +25,5 @@#include <rtw_sreset.h> void rtl8188e_silentreset_for_specific_platform (struct adapter *padapter); -void rtl8188e_sreset_linked_status_check (struct adapter *padapter);#endif
Signature · 1 line
1.7.10.4
PATCH 11/18 staging: rtl8188eu: Remove function rtw_hal_sreset_reset()
In reply to navin patidarrtw_hal_sreset_reset() is a wrapper to call rtl8188e_silentreset_for_specific_platform(), which has empty defination.
--- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 -- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 ------ drivers/staging/rtl8188eu/include/hal_intf.h | 1 - drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 4 ---- 4 files changed, 13 deletions(-)
drivers/staging/rtl8188eu/core/rtw_mlme.c +0 -2
@@ -804,8 +804,6 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)rtw_os_xmit_schedule (adapter); pmlmeext = &adapter->mlmeextpriv; -if (pmlmeext->sitesurvey_res.bss_cnt ==0 ) -rtw_hal_sreset_reset (adapter); }void rtw_dummy_event_callback (struct adapter *adapter ,u8 *pbuf)
drivers/staging/rtl8188eu/hal/hal_intf.c +0 -6
@@ -374,12 +374,6 @@ void rtw_hal_sreset_init(struct adapter *adapt) adapt->HalFunc.sreset_init_value (adapt); } -void rtw_hal_sreset_reset (struct adapter *adapt) -{ -if (adapt->HalFunc.silentreset) - adapt->HalFunc.silentreset (adapt); -} -u8 rtw_hal_sreset_get_wifi_status (struct adapter *adapt) {u8 status =0 ;
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -365,7 +365,6 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *padapter, struct wlan_bssid_ex *src);void rtw_hal_sreset_init (struct adapter *padapter); -void rtw_hal_sreset_reset (struct adapter *padapter);u8 rtw_hal_sreset_get_wifi_status (struct adapter *padapter); int rtw_hal_iol_cmd(struct adapter *adapter, struct xmit_frame *xmit_frame,
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +0 -4
@@ -4449,10 +4449,6 @@ static int rtw_dbg_port(struct net_device *dev, }break ;case 0x0f : -if (extra_arg ==0 ) { -DBG_88E ("###### silent reset test.......#####\n" ); -rtw_hal_sreset_reset (padapter); - }break ;case 0x15 : {
Signature · 1 line
1.7.10.4
PATCH 12/18 staging: rtl8188eu: Remove function rtl8188e_silentreset_for_specific_platform()
In reply to navin patidarRemove rtl8188e_silentreset_for_specific_platform() and function pointer ->silentreset pointing to it.
--- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 1 - drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c | 3 --- drivers/staging/rtl8188eu/include/hal_intf.h | 1 - drivers/staging/rtl8188eu/include/rtl8188e_sreset.h | 1 - 4 files changed, 6 deletions(-)
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c +0 -1
@@ -1872,7 +1872,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->Efuse_WordEnableDataWrite = &rtl8188e_Efuse_WordEnableDataWrite; pHalFunc->sreset_init_value = &sreset_init_value; - pHalFunc->silentreset = &rtl8188e_silentreset_for_specific_platform; pHalFunc->sreset_get_wifi_status = &sreset_get_wifi_status; pHalFunc->GetHalODMVarHandler = &rtl8188e_GetHalODMVar;
drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c +0 -3
@@ -22,7 +22,4 @@#include <rtl8188e_sreset.h> #include <rtl8188e_hal.h> -void rtl8188e_silentreset_for_specific_platform (struct adapter *padapter) -{ -}
drivers/staging/rtl8188eu/include/hal_intf.h +0 -1
@@ -252,7 +252,6 @@ struct hal_ops { u8 word_en, u8 *data, bool test);void (*sreset_init_value)(struct adapter *padapter); -void (*silentreset)(struct adapter *padapter);u8 (*sreset_get_wifi_status)(struct adapter *padapter); int (*IOL_exec_cmds_sync)(struct adapter *padapter,
drivers/staging/rtl8188eu/include/rtl8188e_sreset.h +0 -1
@@ -24,6 +24,5 @@#include <drv_types.h> #include <rtw_sreset.h> -void rtl8188e_silentreset_for_specific_platform (struct adapter *padapter);#endif
Signature · 1 line
1.7.10.4
PATCH 13/18 staging: rtl8188eu: Remove empty files rtl8188e_sreset.[c|h]
In reply to navin patidar--- drivers/staging/rtl8188eu/Makefile | 1 - drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c | 25 ----------------- drivers/staging/rtl8188eu/include/rtl8188e_hal.h | 3 +-- .../staging/rtl8188eu/include/rtl8188e_sreset.h | 28 -------------------- 4 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c delete mode 100644 drivers/staging/rtl8188eu/include/rtl8188e_sreset.h
drivers/staging/rtl8188eu/Makefile +0 -1
@@ -44,7 +44,6 @@ r8188eu-y := \ hal/rtl8188e_phycfg.o \ hal/rtl8188e_rf6052.o \ hal/rtl8188e_rxdesc.o \ - hal/rtl8188e_sreset.o \ hal/rtl8188e_xmit.o \ hal/rtl8188eu_led.o \ hal/rtl8188eu_recv.o \
drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c deleted +0 -25
@@ -1,25 +0,0 @@ -/****************************************************************************** -* -* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* -* -******************************************************************************/ -#define _RTL8188E_SRESET_C_ - -#include <rtl8188e_sreset.h> -#include <rtl8188e_hal.h> - -
drivers/staging/rtl8188eu/include/rtl8188e_hal.h +1 -2
@@ -31,9 +31,8 @@#include "rtl8188e_xmit.h" #include "rtl8188e_cmd.h" #include "Hal8188EPwrSeq.h" -#include "rtl8188e_sreset.h" #include "rtw_efuse.h" - +#include "rtw_sreset.h" #include "odm_precomp.h" /* Fw Array */
drivers/staging/rtl8188eu/include/rtl8188e_sreset.h deleted +0 -28
@@ -1,28 +0,0 @@ -/****************************************************************************** -* -* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* -* -******************************************************************************/ -#ifndef _RTL8188E_SRESET_H_ -#define _RTL8188E_SRESET_H_ - -#include <osdep_service.h> -#include <drv_types.h> -#include <rtw_sreset.h> - - -#endif
Signature · 1 line
1.7.10.4
PATCH 14/18 staging: rtl8188eu: Remove "last_tx_time" from struct sreset_priv
In reply to navin patidarvalue stored in variable last_tx_time isn't being used by driver.
--- drivers/staging/rtl8188eu/core/rtw_sreset.c | 1 - drivers/staging/rtl8188eu/include/rtw_sreset.h | 1 - drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 6 +----- 3 files changed, 1 insertion(+), 7 deletions(-)
drivers/staging/rtl8188eu/core/rtw_sreset.c +0 -1
@@ -26,7 +26,6 @@ void sreset_init_value(struct adapter *padapter)struct sreset_priv *psrtpriv = &pHalData->srestpriv; psrtpriv->Wifi_Error_Status =WIFI_STATUS_SUCCESS ; - psrtpriv->last_tx_time =0 ; psrtpriv->last_tx_complete_time =0 ; }
drivers/staging/rtl8188eu/include/rtw_sreset.h +0 -1
@@ -25,7 +25,6 @@struct sreset_priv {u8 Wifi_Error_Status; -unsigned long last_tx_time;unsigned long last_tx_complete_time; };
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c +1 -5
@@ -216,11 +216,7 @@ u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem) pxmitbuf);/* context is pxmitbuf */ status =usb_submit_urb (purb,GFP_ATOMIC ); -if (!status) { -struct hal_data_8188e *haldata =GET_HAL_DATA (padapter); - - haldata->srestpriv.last_tx_time = jiffies; - }else { +if (status) {rtw_sctx_done_err (&pxmitbuf->sctx,RTW_SCTX_DONE_WRITE_PORT_ERR );DBG_88E ("usb_write_port, status =%d\n" , status);RT_TRACE (_module_hci_ops_os_c_, _drv_err_, ("usb_write_port(): usb_submit_urb, status =%x\n" , status));
Signature · 1 line
1.7.10.4
PATCH 15/18 staging: rtl8188eu: Remove "last_tx_complete_time" from struct sreset_priv
In reply to navin patidarvalue stored in variable last_tx_complete_time isn't being used by driver.
--- drivers/staging/rtl8188eu/core/rtw_sreset.c | 1 - drivers/staging/rtl8188eu/include/rtw_sreset.h | 1 - drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 5 ----- 3 files changed, 7 deletions(-)
drivers/staging/rtl8188eu/core/rtw_sreset.c +0 -1
@@ -26,7 +26,6 @@ void sreset_init_value(struct adapter *padapter)struct sreset_priv *psrtpriv = &pHalData->srestpriv; psrtpriv->Wifi_Error_Status =WIFI_STATUS_SUCCESS ; - psrtpriv->last_tx_complete_time =0 ; }u8 sreset_get_wifi_status (struct adapter *padapter)
drivers/staging/rtl8188eu/include/rtw_sreset.h +0 -1
@@ -25,7 +25,6 @@struct sreset_priv {u8 Wifi_Error_Status; -unsigned long last_tx_complete_time; };#include <rtl8188e_hal.h>
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c +0 -5
@@ -71,8 +71,6 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs)struct xmit_buf *pxmitbuf = (struct xmit_buf *)purb->context;struct adapter *padapter = pxmitbuf->padapter;struct xmit_priv *pxmitpriv = &padapter->xmitpriv; -struct hal_data_8188e *haldata; -switch (pxmitbuf->flags) {case VO_QUEUE_INX :
@@ -137,9 +135,6 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs) } } - haldata =GET_HAL_DATA (padapter); - haldata->srestpriv.last_tx_complete_time = jiffies; - check_completion: rtw_sctx_done_err(&pxmitbuf->sctx, purb->status ? RTW_SCTX_DONE_WRITE_PORT_ERR :
Signature · 1 line
1.7.10.4
PATCH 16/18 staging: rtl8188eu: Remove Hal8188EReg.h file
In reply to navin patidarDriver doesn't need Hal8188EReg.h file.
--- drivers/staging/rtl8188eu/include/Hal8188EReg.h | 46 ----------------------- drivers/staging/rtl8188eu/include/odm_precomp.h | 1 - 2 files changed, 47 deletions(-) delete mode 100644 drivers/staging/rtl8188eu/include/Hal8188EReg.h
drivers/staging/rtl8188eu/include/Hal8188EReg.h deleted +0 -46
@@ -1,46 +0,0 @@ -/****************************************************************************** -* -* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA -* -* -******************************************************************************/ -/* */ -/* File Name: Hal8188EReg.h */ -/* */ -/* Description: */ -/* */ -/* This file is for RTL8188E register definition. */ -/* */ -/* */ -/* */ -#ifndef __HAL_8188E_REG_H__ -#define __HAL_8188E_REG_H__ - -/* */ -/* Register Definition */ -/* */ -#define TRX_ANTDIV_PATH 0x860 -#define RX_ANTDIV_PATH 0xb2c -#define ODM_R_A_AGC_CORE1_8188E 0xc50 - - -/* */ -/* Bitmap Definition */ -/* */ -#define BIT_FA_RESET_8188E BIT0 - - -#endif
drivers/staging/rtl8188eu/include/odm_precomp.h +0 -1
@@ -49,7 +49,6 @@#include "HalHWImg8188E_MAC.h" #include "HalHWImg8188E_RF.h" #include "HalHWImg8188E_BB.h" -#include "Hal8188EReg.h" #include "odm_RegConfig8188E.h" #include "odm_RTL8188E.h"
Signature · 1 line
1.7.10.4
PATCH 17/18 staging: rtl8188eu: Remove unused function declaration
In reply to navin patidar--- drivers/staging/rtl8188eu/include/usb_osintf.h | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/rtl8188eu/include/usb_osintf.h +0 -3
@@ -29,9 +29,6 @@ extern int rtw_mc2u_disable;#define USBD_HALTED (Status) ((u32)(Status) >> 30 == 3) -u8 usbvendorrequest (struct dvobj_priv *pdvobjpriv,enum bt_usb_request brequest, -enum rt_usb_wvalue wvalue,u8 windex,void *data, -u8 datalen,u8 isdirectionin);int pm_netdev_open (struct net_device *pnetdev,u8 bnormal);void netdev_br_init (struct net_device *netdev);void dhcp_flag_bcast (struct adapter *priv,struct sk_buff *skb);
Signature · 1 line
1.7.10.4
PATCH 18/18 staging: rtl8188eu: Remove usb_vendor_req.h header file
In reply to navin patidardriver doesn't need usb_vendor_req.h.
--- drivers/staging/rtl8188eu/include/usb_osintf.h | 1 - drivers/staging/rtl8188eu/include/usb_vendor_req.h | 52 -------------------- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 - 3 files changed, 54 deletions(-) delete mode 100644 drivers/staging/rtl8188eu/include/usb_vendor_req.h
drivers/staging/rtl8188eu/include/usb_osintf.h +0 -1
@@ -22,7 +22,6 @@#include <osdep_service.h> #include <drv_types.h> -#include <usb_vendor_req.h> extern char *rtw_initmac;extern int rtw_mc2u_disable;
drivers/staging/rtl8188eu/include/usb_vendor_req.h deleted +0 -52
52 lines not on this page · raw message
drivers/staging/rtl8188eu/os_dep/usb_intf.c +0 -1
@@ -29,7 +29,6 @@#include <linux/vmalloc.h> #include <osdep_intf.h> -#include <usb_vendor_req.h> #include <usb_ops.h> #include <usb_osintf.h> #include <usb_hal.h>
Signature · 1 line
1.7.10.4
I have reviewed this patchset.
Btw, I wish you would fold some of these patches together next time. For example, patches 3-6 are very closely related and they should have just been one thing.
Or the times where the change log says, "I am going to delete function frob_frob_frob_whatever() in the next patch." Just delete it in that patch.
But anyway, you're doing a great job. Very nice clean ups.
regards,
dan carpenter