ath6kl: Remove dead code with undefined EXPORT_HCI_BRIDGE_INTERFACE
PATCH 1/2 ath6kl: Remove dead code with undefined EXPORT_HCI_BRIDGE_INTERFACE
--- drivers/staging/ath6kl/miscdrv/ar3kconfig.c | 4 - drivers/staging/ath6kl/os/linux/ar6000_drv.c | 33 ----- .../staging/ath6kl/os/linux/export_hci_transport.c | 124 ------------------ drivers/staging/ath6kl/os/linux/hci_bridge.c | 137 -------------------- .../staging/ath6kl/os/linux/include/ar6000_drv.h | 4 - .../ath6kl/os/linux/include/export_hci_transport.h | 76 ----------- drivers/staging/ath6kl/os/linux/netbuf.c | 8 - 7 files changed, 0 insertions(+), 386 deletions(-) delete mode 100644 drivers/staging/ath6kl/os/linux/export_hci_transport.c delete mode 100644 drivers/staging/ath6kl/os/linux/include/export_hci_transport.h
drivers/staging/ath6kl/miscdrv/ar3kconfig.c +0 -4
@@ -28,11 +28,7 @@#define ATH_MODULE_NAME misc#include "a_debug.h" #include "common_drv.h" -#ifdef EXPORT_HCI_BRIDGE_INTERFACE -#include "export_hci_transport.h" -#else #include "hci_transport_api.h" -#endif #include "ar3kconfig.h" #include "tlpm.h"
drivers/staging/ath6kl/os/linux/ar6000_drv.c +0 -33
@@ -110,11 +110,6 @@ A_TIMER aptcTimer;APTC_TRAFFIC_RECORD aptcTR;#endif /* ADAPTIVE_POWER_THROUGHPUT_CONTROL */ -#ifdef EXPORT_HCI_BRIDGE_INTERFACE -// callbacks registered by HCI transport driver -struct hci_transport_callbacks ar6kHciTransCallbacks = {NULL }; -#endif -unsigned int processDot11Hdr =0 ;char ifname[IFNAMSIZ ] = {0 ,};
@@ -149,11 +144,9 @@ unsigned int nohifscattersupport = NOHIFSCATTERSUPPORT_DEFAULT;unsigned int setuphci =SETUPHCI_DEFAULT ;unsigned int loghci =0 ;unsigned int setupbtdev =SETUPBTDEV_DEFAULT ; -#ifndef EXPORT_HCI_BRIDGE_INTERFACE unsigned int ar3khcibaud =AR3KHCIBAUD_DEFAULT ;unsigned int hciuartscale =HCIUARTSCALE_DEFAULT ;unsigned int hciuartstep =HCIUARTSTEP_DEFAULT ; -#endif unsigned int csumOffload=0 ;unsigned int csumOffloadTest=0 ;unsigned int eppingtest=0 ;
@@ -189,11 +182,9 @@ module_param(panic_on_assert, uint, 0644);module_param (setuphci, uint,0644 );module_param (loghci, uint,0644 );module_param (setupbtdev, uint,0644 ); -#ifndef EXPORT_HCI_BRIDGE_INTERFACE module_param (ar3khcibaud, uint,0644 );module_param (hciuartscale, uint,0644 );module_param (hciuartstep, uint,0644 ); -#endif module_param (eppingtest, uint,0644 );/* in 2.6.10 and later this is now a pointer to a uint */
@@ -1956,11 +1947,6 @@ ar6000_stop_endpoint(struct net_device *dev, bool keepprofile, bool getdbglogs) }if (ar->arHtcTarget !=NULL ) { -#ifdef EXPORT_HCI_BRIDGE_INTERFACE -if (NULL != ar6kHciTransCallbacks.cleanupTransport) { - ar6kHciTransCallbacks.cleanupTransport (NULL ); - } -#else // FIXME: workaround to reset BT's UART baud rate to default if (NULL != ar->exitCallback) {struct ar3k_config_info ar3kconfig;
@@ -1976,7 +1962,6 @@ ar6000_stop_endpoint(struct net_device *dev, bool keepprofile, bool getdbglogs)// END workaround if (setuphci)ar6000_cleanup_hci (ar); -#endif AR_DEBUG_PRINTF (ATH_DEBUG_INFO ,(" Shutting down HTC .... \n" ));/* stop HTC */ HTCStop (ar->arHtcTarget);
@@ -2652,21 +2637,10 @@ int ar6000_init(struct net_device *dev) ar->arAcStreamPriMap[WMM_AC_VI ] =2 ;/* */ ar->arAcStreamPriMap[WMM_AC_VO ] =3 ;/* highest */ -#ifdef EXPORT_HCI_BRIDGE_INTERFACE -if (setuphci && (NULL != ar6kHciTransCallbacks.setupTransport)) { -struct hci_transport_misc_handles hciHandles; - - hciHandles.netDevice = ar->arNetDev; - hciHandles.hifDevice = ar->arHifDevice; - hciHandles.htcHandle = ar->arHtcTarget; - status = (int )(ar6kHciTransCallbacks.setupTransport (&hciHandles)); - } -#else if (setuphci) {/* setup HCI */ status =ar6000_setup_hci (ar); } -#endif }while (false);
@@ -3136,11 +3110,9 @@ ar6000_data_tx(struct sk_buff *skb, struct net_device *dev)if (ac ==HCI_TRANSPORT_STREAM_NUM ) {/* pass this to HCI */ -#ifndef EXPORT_HCI_BRIDGE_INTERFACE if (!hci_test_send (ar,skb)) {return 0 ; } -#endif /* set AC to discard this skb */ ac =AC_NOT_MAPPED ; }else {
@@ -6232,8 +6204,3 @@ int ar6000_remove_ap_interface(struct ar6_softc *ar) return 0; }#endif /* CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT */ - - -#ifdef EXPORT_HCI_BRIDGE_INTERFACE -EXPORT_SYMBOL (setupbtdev); -#endif
drivers/staging/ath6kl/os/linux/export_hci_transport.c deleted +0 -124
124 lines not on this page · raw message
drivers/staging/ath6kl/os/linux/hci_bridge.c +0 -137
287 lines not on this page · raw message
drivers/staging/ath6kl/os/linux/include/ar6000_drv.h +0 -4
@@ -605,9 +605,7 @@ struct ar6_softc {bool DTIMExpired;/* flag to indicate DTIM expired */ u8 intra_bss;/* enable/disable intra bss data forward */ void *aggr_cntxt; -#ifndef EXPORT_HCI_BRIDGE_INTERFACE void *hcidev_info; -#endif WMI_AP_MODE_STAT arAPStats;u8 ap_hidden_ssid;u8 ap_country_code[3 ];
@@ -748,14 +746,12 @@ u8 remove_sta(struct ar6_softc *ar, u8 *mac, u16 reason);/* HCI support */ -#ifndef EXPORT_HCI_BRIDGE_INTERFACE int ar6000_setup_hci (struct ar6_softc *ar);void ar6000_cleanup_hci (struct ar6_softc *ar);void ar6000_set_default_ar3kconfig (struct ar6_softc *ar,void *ar3kconfig);/* HCI bridge testing */ int hci_test_send (struct ar6_softc *ar,struct sk_buff *skb); -#endif ATH_DEBUG_DECLARE_EXTERN (htc);ATH_DEBUG_DECLARE_EXTERN (wmi);
drivers/staging/ath6kl/os/linux/include/export_hci_transport.h deleted +0 -76
76 lines not on this page · raw message
drivers/staging/ath6kl/os/linux/netbuf.c +0 -8
@@ -221,11 +221,3 @@ a_netbuf_pull_data(void *bufPtr, char *dstPtr, s32 len)return 0 ; } - -#ifdef EXPORT_HCI_BRIDGE_INTERFACE -EXPORT_SYMBOL (a_netbuf_to_data); -EXPORT_SYMBOL (a_netbuf_put); -EXPORT_SYMBOL (a_netbuf_pull); -EXPORT_SYMBOL (a_netbuf_alloc); -EXPORT_SYMBOL (a_netbuf_free); -#endif
Signature · 1 line
1.7.0.4
PATCH 2/2 ath6kl: Merge Bootloader Management Interface (BMI) related header files into one
--- drivers/staging/ath6kl/Makefile | 2 +- drivers/staging/ath6kl/bmi/bmi.h | 338 +++++++++++++++++++++ drivers/staging/ath6kl/bmi/include/bmi_internal.h | 54 ---- drivers/staging/ath6kl/bmi/src/bmi.c | 109 ++++---- drivers/staging/ath6kl/htc2/htc_internal.h | 3 +- drivers/staging/ath6kl/include/bmi.h | 134 -------- drivers/staging/ath6kl/include/common/bmi_msg.h | 233 -------------- drivers/staging/ath6kl/miscdrv/common_drv.c | 26 +- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 138 +++++----- drivers/staging/ath6kl/os/linux/ar6000_raw_if.c | 6 +- 10 files changed, 480 insertions(+), 563 deletions(-) create mode 100644 drivers/staging/ath6kl/bmi/bmi.h delete mode 100644 drivers/staging/ath6kl/bmi/include/bmi_internal.h delete mode 100644 drivers/staging/ath6kl/include/bmi.h delete mode 100644 drivers/staging/ath6kl/include/common/bmi_msg.h
drivers/staging/ath6kl/Makefile +1 -1
@@ -26,7 +26,7 @@ ccflags-y += -I$(obj)/include/common ccflags-y += -I$(obj)/wlan/include ccflags-y += -I$(obj)/os/linux/include ccflags-y += -I$(obj)/os -ccflags-y += -I$(obj)/bmi/include +ccflags-y += -I$(obj)/bmi ccflags-y += -I$(obj)/include/common/AR6002/hw4.0 ifeq ($(CONFIG_AR600x_DUAL_ANTENNA),y)
drivers/staging/ath6kl/bmi/bmi.h new file +338 -0
338 lines not on this page · raw message
drivers/staging/ath6kl/bmi/include/bmi_internal.h deleted +0 -54
54 lines not on this page · raw message
drivers/staging/ath6kl/bmi/src/bmi.c +56 -53
407 lines not on this page · raw message
drivers/staging/ath6kl/htc2/htc_internal.h +1 -2
@@ -38,10 +38,9 @@ extern "C" {#include "athdefs.h" #include "a_osapi.h" #include "htc_debug.h" +#include "bmi.h" #include "htc.h" #include "htc_api.h" -#include "bmi_msg.h" -#include "hif.h" #include "AR6000/ar6k.h" /* HTC operational parameters */
drivers/staging/ath6kl/include/bmi.h deleted +0 -134
134 lines not on this page · raw message
drivers/staging/ath6kl/include/common/bmi_msg.h deleted +0 -233
233 lines not on this page · raw message
drivers/staging/ath6kl/miscdrv/common_drv.c +12 -14
@@ -32,11 +32,9 @@#include "a_osapi.h" #include "targaddrs.h" -#include "hif.h" +#include "bmi.h" #include "htc_api.h" #include "wmi.h" -#include "bmi.h" -#include "bmi_msg.h" #include "common_drv.h" #define ATH_MODULE_NAME misc#include "a_debug.h"
@@ -484,12 +482,12 @@ ar6000_copy_cust_data_from_target(struct hif_device *hifDevice, u32 TargetType)u8 AR6003CustDataShadow[AR6003_CUST_DATA_SIZE +4 ];s32 i; -if (BMIReadMemory (hifDevice, +if (bmi_read_memory (hifDevice,HOST_INTEREST_ITEM_ADDRESS (TargetType, hi_board_data), (u8 *)&eepHeaderAddr,4 )!=0 ) { -AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("BMIReadMemory for reading board data address failed \n" )); +AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("bmi_read_memory for reading board data address failed \n" ));return ; }
@@ -497,8 +495,8 @@ ar6000_copy_cust_data_from_target(struct hif_device *hifDevice, u32 TargetType) eepHeaderAddr +=36 ;/* AR6003 customer data section offset is 37 */ for (i=0 ; i<AR6003_CUST_DATA_SIZE +4 ; i+=4 ){ -if (BMIReadSOCRegister (hifDevice, eepHeaderAddr, (u32 *)&AR6003CustDataShadow[i])!=0 ) { -AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("BMIReadSOCRegister () failed \n" )); +if (bmi_read_soc_register (hifDevice, eepHeaderAddr, (u32 *)&AR6003CustDataShadow[i])!=0 ) { +AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("bmi_read_soc_register () failed \n" ));return ; } eepHeaderAddr +=4 ;
@@ -511,8 +509,8 @@ ar6000_copy_cust_data_from_target(struct hif_device *hifDevice, u32 TargetType) eepHeaderAddr +=64 ;/* AR6002 customer data sectioin offset is 64 */ for (i=0 ; i<AR6002_CUST_DATA_SIZE ; i+=4 ){ -if (BMIReadSOCRegister (hifDevice, eepHeaderAddr, (u32 *)&custDataAR6002[i])!=0 ) { -AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("BMIReadSOCRegister () failed \n" )); +if (bmi_read_soc_register (hifDevice, eepHeaderAddr, (u32 *)&custDataAR6002[i])!=0 ) { +AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("bmi_read_soc_register () failed \n" ));return ; } eepHeaderAddr +=4 ;
@@ -649,13 +647,13 @@ int ar6000_set_htc_params(struct hif_device *hifDevice, }/* set the host interest area for the block size */ - status =BMIWriteMemory (hifDevice, + status =bmi_write_memory (hifDevice,HOST_INTEREST_ITEM_ADDRESS (TargetType, hi_mbox_io_block_sz), (u8 *)&blocksizes[1 ],4 );if (status) { -AR_DEBUG_PRINTF (ATH_LOG_ERR ,("BMIWriteMemory for IO block size failed \n" )); +AR_DEBUG_PRINTF (ATH_LOG_ERR ,("bmi_write_memory for IO block size failed \n" ));break ; }
@@ -664,13 +662,13 @@ int ar6000_set_htc_params(struct hif_device *hifDevice,if (MboxIsrYieldValue !=0 ) {/* set the host interest area for the mbox ISR yield limit */ - status =BMIWriteMemory (hifDevice, + status =bmi_write_memory (hifDevice,HOST_INTEREST_ITEM_ADDRESS (TargetType, hi_mbox_isr_yield_limit), (u8 *)&MboxIsrYieldValue,4 );if (status) { -AR_DEBUG_PRINTF (ATH_LOG_ERR ,("BMIWriteMemory for yield limit failed \n" )); +AR_DEBUG_PRINTF (ATH_LOG_ERR ,("bmi_write_memory for yield limit failed \n" ));break ; } }
@@ -897,7 +895,7 @@ int ar6000_set_hci_bridge_flags(struct hif_device *hifDevice, }/* set hci bridge flags */ - status =BMIWriteMemory (hifDevice, + status =bmi_write_memory (hifDevice,HOST_INTEREST_ITEM_ADDRESS (TargetType, hi_hci_bridge_flags), (u8 *)&Flags,4 );
drivers/staging/ath6kl/os/linux/ar6000_drv.c +69 -69
459 lines not on this page · raw message
drivers/staging/ath6kl/os/linux/ar6000_raw_if.c +3 -3
@@ -230,7 +230,7 @@ int ar6000_htc_raw_open(struct ar6_softc *ar)/* Queue buffers to HTC for receive */ if ((status =HTCAddReceivePkt (ar->arHtcTarget, &buffer->HTCPacket)) !=0 ) { -BMIInit (); +bmi_init ();return -EIO ; } }
@@ -263,7 +263,7 @@ int ar6000_htc_raw_open(struct ar6_softc *ar)/* Start the HTC component */ if ((status =HTCStart (ar->arHtcTarget)) !=0 ) { -BMIInit (); +bmi_init ();return -EIO ; }
@@ -280,7 +280,7 @@ int ar6000_htc_raw_close(struct ar6_softc *ar)/* reset the device */ ar6000_reset_device (ar->arHifDevice, ar->arTargetType, true, false);/* Initialize the BMI component */ -BMIInit (); +bmi_init ();return 0 ; }
Signature · 1 line
1.7.0.4
Quoted 1 line · Vasanthakumar Thiagarajan
Signed-off-by Vasanthakumar Thiagarajan <[email protected]>
It's not as dead as you think it is, this series causes a build breakage.
PLEASE TEST YOUR PATCHES!
To not do so, like you did here just makes me grumpy and not want to deal with them at all...
greg k-h
Quoted 10 lines · Greg KH
Quoted 1 line · Vasanthakumar Thiagarajan
Signed-off-by Vasanthakumar Thiagarajan <[email protected]>It's not as dead as you think it is, this series causes a build breakage.
PLEASE TEST YOUR PATCHES!
To not do so, like you did here just makes me grumpy and not want to deal with them at all...
I'm really sorry for any trouble with those patches. I do compile and test my patches. Unfortunately I do not see the build breakage with that patch series. Can you please share you config file?.
Vasanth
Quoted 7 lines · Vasanthakumar Thiagarajan
Quoted 6 lines · Greg KH
Quoted 1 line · Vasanthakumar Thiagarajan
Signed-off-by Vasanthakumar Thiagarajan <[email protected]>It's not as dead as you think it is, this series causes a build breakage.
Quoted 8 lines
Quoted 4 lines
PLEASE TEST YOUR PATCHES!
To not do so, like you did here just makes me grumpy and not want to deal with them at all...
I'm really sorry for any trouble with those patches. I do compile and test my patches. Unfortunately I do not see the build breakage with that patch series. Can you please share you config file?.
Attached.
Quoted 10 lines · Greg KH
Quoted 9 lines · Vasanthakumar Thiagarajan
Quoted 8 lines · Greg KH
Quoted 1 line · Vasanthakumar Thiagarajan
Signed-off-by Vasanthakumar Thiagarajan <[email protected]>It's not as dead as you think it is, this series causes a build breakage.
PLEASE TEST YOUR PATCHES!
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
To not do so, like you did here just makes me grumpy and not want to deal with them at all...
I'm really sorry for any trouble with those patches. I do compile and test my patches. Unfortunately I do not see the build breakage with that patch series. Can you please share you config file?.
Attached.
Really sorry again. I mistakenly moved a global variable to #ifdef ATH_DEBUG_MODULE. As I was testing with debug enabled I did not hit this issue.
Thanks,
Vasanth