From nobody Sun Nov 24 17:45:55 2024 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECD77189B82; Sun, 3 Nov 2024 15:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730648353; cv=none; b=PTVbQ+mSPYiwZDXF5o9f8HestvubKoP4slpuaL5+Wp/blJV/yS48WC27vnUo51SW0EIPr28L0hIQDjreqIjTQ6KjBKfV1Gyln5qU+ezObc3om3QGU6IgEw/CPDquz42VH2ZbQfF6oZP7vws4ArIfOYdiY1B3rkLNfZiKWEVqyQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730648353; c=relaxed/simple; bh=VrV5V8pPXmKij4eyzacWrrfe8cr4hHTzEO3Lac46D6Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JyQPt0UYJzhsR99vB4Oxz8HRpD9h609E0nOMP0zdixYW1EsZDlr5S2iWb6GfxQK43oEuTIMCv1Ds24TYadwRkfaHK48wk/QZ8ABg0xgE4aLKU1+EowkcpyEC8JtMI43CMSYgrLH1pJKw9Ie25H+SqpkutmmJzv3q29YUoQRk02k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=NHAQZaIq; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="NHAQZaIq" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=DiM0W+kg+uOIF10fnTLqxEjyQYgvWTRXLvemg+S9EwQ=; b=NHAQZaIqai48yqgy 31exwqhKXfgJHxinC6u3qdV8R/Jbk/xPSuaKbbFGbB1JKicurV6Rb6HcubpPF7i1KGUp0j4SvStvA gh6uPLntHqAdzKNmn3g5Ku0kNNfurtJLgo6NpeHECqClEnv5sjiKUG50OSyk7Zn3LnWKFuv6UEylP UmC1JA6xhapEfzmmYw22cg5pydL9xI3s+HTPxwXnh0tFCuT6GZPIM5ji8sxkORnwT0koj7fcbaBrb pOF9X1JW/eIX0gvwnN2KIlz9NbRGPtOA89CmdC2wDh4Cvxf6EMwrdk4eQmlAzzYeaCCpYDzV4jTD3 VNCirrcYmi/gOcWAAw==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1t7cgt-00FBKZ-0r; Sun, 03 Nov 2024 15:38:59 +0000 From: linux@treblig.org To: pkshih@realtek.com, kvalo@kernel.org, linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 1/2] rtlwifi: Remove unused functions Date: Sun, 3 Nov 2024 15:38:56 +0000 Message-ID: <20241103153857.255450-2-linux@treblig.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241103153857.255450-1-linux@treblig.org> References: <20241103153857.255450-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" exhalbtc_rf_status_notify(), exhalbtc_coex_dm_switch() and exhalbtc_antenna_detection() are unused since they were added in 2017's commit 7937f02d1953 ("rtlwifi: btcoex: hook external functions for newer chips") Remove them. This leaves ex_btc8723b1ant_coex_dm_reset() unused. Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../rtlwifi/btcoexist/halbtc8723b1ant.c | 11 ----- .../rtlwifi/btcoexist/halbtc8723b1ant.h | 1 - .../realtek/rtlwifi/btcoexist/halbtcoutsrc.c | 45 ------------------- .../realtek/rtlwifi/btcoexist/halbtcoutsrc.h | 4 -- 4 files changed, 61 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant= .c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c index 039bbedb41c2..379193b24428 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c @@ -3409,17 +3409,6 @@ void ex_btc8723b1ant_pnp_notify(struct btc_coexist *= btcoexist, u8 pnp_state) } } =20 -void ex_btc8723b1ant_coex_dm_reset(struct btc_coexist *btcoexist) -{ - struct rtl_priv *rtlpriv =3D btcoexist->adapter; - - rtl_dbg(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, - "[BTCoex], *****************Coex DM Reset****************\n"); - - halbtc8723b1ant_init_hw_config(btcoexist, false, false); - halbtc8723b1ant_init_coex_dm(btcoexist); -} - void ex_btc8723b1ant_periodical(struct btc_coexist *btcoexist) { struct rtl_priv *rtlpriv =3D btcoexist->adapter; diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant= .h b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.h index 9d41e11388ad..a4506d838dc7 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.h +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.h @@ -197,7 +197,6 @@ void ex_btc8723b1ant_rf_status_notify(struct btc_coexis= t *btcoexist, u8 type); void ex_btc8723b1ant_halt_notify(struct btc_coexist *btcoexist); void ex_btc8723b1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnpstate= ); -void ex_btc8723b1ant_coex_dm_reset(struct btc_coexist *btcoexist); void ex_btc8723b1ant_periodical(struct btc_coexist *btcoexist); void ex_btc8723b1ant_display_coex_info(struct btc_coexist *btcoexist, struct seq_file *m); diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c = b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c index be4c0e60d44d..74c4504065c0 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c @@ -1708,19 +1708,6 @@ void exhalbtc_bt_info_notify(struct btc_coexist *btc= oexist, halbtc_normal_low_power(btcoexist); } =20 -void exhalbtc_rf_status_notify(struct btc_coexist *btcoexist, u8 type) -{ - if (!halbtc_is_bt_coexist_available(btcoexist)) - return; - - if (IS_HARDWARE_TYPE_8821(btcoexist->adapter)) { - } else if (IS_HARDWARE_TYPE_8723B(btcoexist->adapter)) { - if (btcoexist->board_info.btdm_ant_num =3D=3D 1) - ex_btc8723b1ant_rf_status_notify(btcoexist, type); - } else if (IS_HARDWARE_TYPE_8192E(btcoexist->adapter)) { - } -} - void exhalbtc_halt_notify(struct btc_coexist *btcoexist) { if (!halbtc_is_bt_coexist_available(btcoexist)) @@ -1768,31 +1755,6 @@ void exhalbtc_pnp_notify(struct btc_coexist *btcoexi= st, u8 pnp_state) } } =20 -void exhalbtc_coex_dm_switch(struct btc_coexist *btcoexist) -{ - struct rtl_priv *rtlpriv =3D btcoexist->adapter; - - if (!halbtc_is_bt_coexist_available(btcoexist)) - return; - btcoexist->statistics.cnt_coex_dm_switch++; - - halbtc_leave_low_power(btcoexist); - - if (IS_HARDWARE_TYPE_8723B(btcoexist->adapter)) { - if (btcoexist->board_info.btdm_ant_num =3D=3D 1) { - btcoexist->stop_coex_dm =3D true; - ex_btc8723b1ant_coex_dm_reset(btcoexist); - exhalbtc_set_ant_num(rtlpriv, - BT_COEX_ANT_TYPE_DETECTED, 2); - ex_btc8723b2ant_init_hwconfig(btcoexist); - ex_btc8723b2ant_init_coex_dm(btcoexist); - btcoexist->stop_coex_dm =3D false; - } - } - - halbtc_normal_low_power(btcoexist); -} - void exhalbtc_periodical(struct btc_coexist *btcoexist) { if (!halbtc_is_bt_coexist_available(btcoexist)) @@ -1832,13 +1794,6 @@ void exhalbtc_dbg_control(struct btc_coexist *btcoex= ist, halbtc_normal_low_power(btcoexist); } =20 -void exhalbtc_antenna_detection(struct btc_coexist *btcoexist, u32 cent_fr= eq, - u32 offset, u32 span, u32 seconds) -{ - if (!halbtc_is_bt_coexist_available(btcoexist)) - return; -} - void exhalbtc_stack_update_profile_info(void) { } diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h = b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h index a96a995dd850..5d146fcb7852 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h @@ -763,15 +763,11 @@ void exhalbtc_mediastatus_notify(struct btc_coexist *= btcoexist, void exhalbtc_special_packet_notify(struct btc_coexist *btcoexist, u8 pkt_= type); void exhalbtc_bt_info_notify(struct btc_coexist *btcoexist, u8 *tmp_buf, u8 length); -void exhalbtc_rf_status_notify(struct btc_coexist *btcoexist, u8 type); void exhalbtc_halt_notify(struct btc_coexist *btcoexist); void exhalbtc_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state); -void exhalbtc_coex_dm_switch(struct btc_coexist *btcoexist); void exhalbtc_periodical(struct btc_coexist *btcoexist); void exhalbtc_dbg_control(struct btc_coexist *btcoexist, u8 code, u8 len, u8 *data); -void exhalbtc_antenna_detection(struct btc_coexist *btcoexist, u32 cent_fr= eq, - u32 offset, u32 span, u32 seconds); void exhalbtc_stack_update_profile_info(void); void exhalbtc_set_hci_version(struct btc_coexist *btcoexist, u16 hci_versi= on); void exhalbtc_set_bt_patch_version(struct btc_coexist *btcoexist, --=20 2.47.0 From nobody Sun Nov 24 17:45:55 2024 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DAE2170A01; Sun, 3 Nov 2024 15:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730648349; cv=none; b=kYatG+1C0PwHOfVMlaHXiL+UM94uOCcDzrEXQ5mqBaXPl0hd4ht0g01UyTnUTlNlNwB5zcEvMNK1SJfi1fLuhYkLLYu0vA7F5YQrrr5ICgXd6LRd7AaM4C5LJH2ahChTXHBgEGXNaSs6PgWvDBk6Ah/lnoHWoGBx+l+zeFCuNjU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730648349; c=relaxed/simple; bh=/qbn+Pd3oIBgfObvF6LHb4lvvo2uaHOE6T4OTjmhW54=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gvf60OtmwDKGymywvu4I5e+w5dAIWy2PZ/ED5gBYiTWUt2x/tQ4YhoP1sX9yeuoSHJoQkuZ976YG+RNNDg6EzhjemvtCFEmFOiW86mdtaAi4ykATEE6uaYG+scWVYhcZREkIaKSxEdRJ87VxF1CMNxS+0k1tYIf2iF0VQjm0eqc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=k89PUUnl; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="k89PUUnl" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=lSEkuKEdaE1JdTruufXmwcarX+kHRCnCzmOMFP7aTz8=; b=k89PUUnlv18S9ZwE kIs4gRND+xEGtFUiMEDT5Aiqkl/LwEivtG5dR/nz0sxQBNDjOdcoyKNdsHY0ksyypkHcj9XuclSyh URlqdSXvUltOnPowDuwD0w6g9pHnUDU7HntGnM3NHh/EnoMj2zoiZfRX+CDBvmOmMT5U8VoccCIg/ RY9bUABHmdVgDmeQ1zYVkB/rSbnFabclJ4ktMqE52OZZknpXNdSXsqXz/sxoPdfyfQqIatyGl+mtF vybUuRZNLSjRHeg++JffdnmW+GgxNvSzWGLG0ygU8fPDw+7xmNLHlPft+iz4L6hBYI7i1mEen1k77 s7QjAIYNHfg5Iw5CNA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1t7cgt-00FBKZ-37; Sun, 03 Nov 2024 15:38:59 +0000 From: linux@treblig.org To: pkshih@realtek.com, kvalo@kernel.org, linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 2/2] rtlwifi: Remove more unused functions Date: Sun, 3 Nov 2024 15:38:57 +0000 Message-ID: <20241103153857.255450-3-linux@treblig.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241103153857.255450-1-linux@treblig.org> References: <20241103153857.255450-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" exhalbtc_dbg_control(), exhalbtc_stack_update_profile_info(), exhalbtc_set_hci_version(), and exhalbtc_set_bt_patch_version() are unused since their addition in 2014 by commit aa45a673b291 ("rtlwifi: btcoexist: Add new mini driver") Remove them. Signed-off-by: Dr. David Alan Gilbert --- .../realtek/rtlwifi/btcoexist/halbtcoutsrc.c | 34 ------------------- .../realtek/rtlwifi/btcoexist/halbtcoutsrc.h | 6 ---- 2 files changed, 40 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c = b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c index 74c4504065c0..478cca33e5e3 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c @@ -1782,22 +1782,6 @@ void exhalbtc_periodical(struct btc_coexist *btcoexi= st) halbtc_normal_low_power(btcoexist); } =20 -void exhalbtc_dbg_control(struct btc_coexist *btcoexist, - u8 code, u8 len, u8 *data) -{ - if (!halbtc_is_bt_coexist_available(btcoexist)) - return; - btcoexist->statistics.cnt_dbg_ctrl++; - - halbtc_leave_low_power(btcoexist); - - halbtc_normal_low_power(btcoexist); -} - -void exhalbtc_stack_update_profile_info(void) -{ -} - void exhalbtc_update_min_bt_rssi(struct btc_coexist *btcoexist, s8 bt_rssi) { if (!halbtc_is_bt_coexist_available(btcoexist)) @@ -1806,24 +1790,6 @@ void exhalbtc_update_min_bt_rssi(struct btc_coexist = *btcoexist, s8 bt_rssi) btcoexist->stack_info.min_bt_rssi =3D bt_rssi; } =20 -void exhalbtc_set_hci_version(struct btc_coexist *btcoexist, u16 hci_versi= on) -{ - if (!halbtc_is_bt_coexist_available(btcoexist)) - return; - - btcoexist->stack_info.hci_version =3D hci_version; -} - -void exhalbtc_set_bt_patch_version(struct btc_coexist *btcoexist, - u16 bt_hci_version, u16 bt_patch_version) -{ - if (!halbtc_is_bt_coexist_available(btcoexist)) - return; - - btcoexist->bt_info.bt_real_fw_ver =3D bt_patch_version; - btcoexist->bt_info.bt_hci_ver =3D bt_hci_version; -} - void exhalbtc_set_chip_type(struct btc_coexist *btcoexist, u8 chip_type) { switch (chip_type) { diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h = b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h index 5d146fcb7852..d8d88a989806 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h @@ -766,12 +766,6 @@ void exhalbtc_bt_info_notify(struct btc_coexist *btcoe= xist, u8 *tmp_buf, void exhalbtc_halt_notify(struct btc_coexist *btcoexist); void exhalbtc_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state); void exhalbtc_periodical(struct btc_coexist *btcoexist); -void exhalbtc_dbg_control(struct btc_coexist *btcoexist, u8 code, u8 len, - u8 *data); -void exhalbtc_stack_update_profile_info(void); -void exhalbtc_set_hci_version(struct btc_coexist *btcoexist, u16 hci_versi= on); -void exhalbtc_set_bt_patch_version(struct btc_coexist *btcoexist, - u16 bt_hci_version, u16 bt_patch_version); void exhalbtc_update_min_bt_rssi(struct btc_coexist *btcoexist, s8 bt_rssi= ); void exhalbtc_set_bt_exist(struct btc_coexist *btcoexist, bool bt_exist); void exhalbtc_set_chip_type(struct btc_coexist *btcoexist, u8 chip_type); --=20 2.47.0