From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B1FA206950 for ; Wed, 6 Nov 2024 18:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918038; cv=none; b=eSnQFjBgd+LCMIj+Cr4zCj/E4z4z5Nj1OtjP/0WH6AR+vvV3EXmAu6qZBNL5v+I1N5p0jurKmbIv3sNdACwhsFWPYW4EPGyq3us7Yc49gEoyOkX6LzZurnXueMieGTIVqBUkknqvAu8A5w4BspXi/PBAtH5+R8JyJv01gLeqLNA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918038; c=relaxed/simple; bh=28VgR9/mTRGQLnSjlZI5ngaU8OlMSuFsh/ZkPGpnMyE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JY+SAwIOsgFsnyVB5rLvT7orayOKUQhHObz1n4Ui71cGV6Uh87LSzdx8fg4gwGOksgLIui8Loqh8tnGvYU3DXJxwkGesi9FwjOEgz/8o/JMta0C0sKulB5pOjV6q3SED8M9tC1lo1X+DV4kFoDBzofL4VoNlLHWrbdjRbBO4DHU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bkdZqt4r; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bkdZqt4r" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a9a6acac4c3so11481866b.0 for ; Wed, 06 Nov 2024 10:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918035; x=1731522835; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=X5VZXsxFcPOb1yWrcWItHRNslTT6cT523l3GGyBmh8g=; b=bkdZqt4rUAZ3FV9eOrsHEPsI+gtSYoeggpX27GhCuxHHSxrXXootD8iemJ0jwliYrD FX561wuiNpKrdHXxUgy5eFzgGXResYVxa24Ir8N2Z/jfI+QvK++JT53P1CF4eGdsfQlX O5qBF6blKyq6rwpA76g8xJlkWLMupSFIUMB1kM+hZ5Q83gP3qFaxhh23nyK5oT8YCis5 oFIMGqneYuKUdIzulAFmtgS1Imfr+mweSd1OWuc8DMOKHxCjP2IKFPKpAwLeoICfiNL+ bpRuZX+SF14NNvhLTCqn/s3lKsqZqVrtpClwV9hKYgGhUVhRlXMCahEAunmspT9j5Rhi ojfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918035; x=1731522835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X5VZXsxFcPOb1yWrcWItHRNslTT6cT523l3GGyBmh8g=; b=aKxJxwVsQKdPABN0Xvox569ROXc3v5p09kAWmzjRfsEBEwNrdlYShB8c2q+zalOq2b GqMoHpHBOssj7bRl3kE3HLxA4tuhqPfd9Ar7vW49gtDJjn7mLGmf+BtYJ/QEItvKHaHY TGcYC2jo6uAsQYcc3afWh71Y45wXMs6oKiXQROzP0lRt/ZLtgUYL73I6QTKA24RsPH7C IxTbVT4P4EH0W4bez+XCOPdkMVPPs5pyhrF9jy+9Ul2ukiW2fC7GZAc6x90ngh1eo04X o0LtfZX9ZHtiEouUMDjXya0jXbB0BSCUHacjvur1SUaLLcteqbRtu0ETiZboyjDFwuhQ Rk5Q== X-Forwarded-Encrypted: i=1; AJvYcCW1EZZTYCGl7Wh5C0ehYnPmErj3iQ4g9mTbqZiTrtP41Ph4/d/I3QY1JoK9l8o0IekzYiGB8GDhtG0Padc=@vger.kernel.org X-Gm-Message-State: AOJu0YxzkkdkAw/kHxYE2vflB8qZHqGxTl/7ilp9PxgPq+3Uv6pYMMDt 2zEuoBcyU3Qzcn07mFwBWwZPvkeHB5WI3pD6YAR8U3HXp1caE87r X-Google-Smtp-Source: AGHT+IGXqmPZ2+2CING4uLm7EgLsGnOQF56/dX+4i7v6qzHEJVRcC0PWMf9VAErLCqidd4w/9YTL7w== X-Received: by 2002:a17:907:e8d:b0:a99:8178:f7ed with SMTP id a640c23a62f3a-a9de5d6e208mr3874337966b.4.1730918034324; Wed, 06 Nov 2024 10:33:54 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:54 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 01/16] staging: rtl8723bs: Remove function pointer EFUSEGetEfuseDefinition Date: Wed, 6 Nov 2024 19:33:30 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove function pointer EFUSEGetEfuseDefinition and use Hal_GetEfuseDefinition directly to increase readability. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 2 +- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 3 +-- drivers/staging/rtl8723bs/include/hal_intf.h | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/r= tl8723bs/core/rtw_efuse.c index b6c655e6747e..b8023e9d7631 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -171,7 +171,7 @@ EFUSE_GetEfuseDefinition( bool bPseudoTest ) { - padapter->HalFunc.EFUSEGetEfuseDefinition(padapter, efuseType, type, pOut= , bPseudoTest); + Hal_GetEfuseDefinition(padapter, efuseType, type, pOut, bPseudoTest); } =20 /*------------------------------------------------------------------------= ----- diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 2d2de56d5df7..8a4ebe645786 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -490,7 +490,7 @@ static u8 hal_EfuseSwitchToBank( return bRet; } =20 -static void Hal_GetEfuseDefinition( +void Hal_GetEfuseDefinition( struct adapter *padapter, u8 efuseType, u8 type, @@ -1745,7 +1745,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u= 32 mac_id, u8 rssi_level) void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) { /* Efuse related function */ - pHalFunc->EFUSEGetEfuseDefinition =3D &Hal_GetEfuseDefinition; pHalFunc->EfuseGetCurrentSize =3D &Hal_EfuseGetCurrentSize; pHalFunc->Efuse_PgPacketRead =3D &Hal_EfusePgPacketRead; pHalFunc->Efuse_PgPacketWrite =3D &Hal_EfusePgPacketWrite; diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index 2285e82ab7b2..a513721e763b 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -164,7 +164,6 @@ typedef s32 (*c2h_id_filter)(u8 *c2h_evt); struct hal_ops { void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variab= le eVariable, void *pValue1, bool bSet); =20 - void (*EFUSEGetEfuseDefinition)(struct adapter *padapter, u8 efuseType, u= 8 type, void *pOut, bool bPseudoTest); u16 (*EfuseGetCurrentSize)(struct adapter *padapter, u8 efuseType, bool b= PseudoTest); int (*Efuse_PgPacketRead)(struct adapter *padapter, u8 offset, u8 *data, = bool bPseudoTest); int (*Efuse_PgPacketWrite)(struct adapter *padapter, u8 offset, u8 word_e= n, u8 *data, bool bPseudoTest); @@ -290,4 +289,6 @@ void rtl8723b_SetBeaconRelatedRegisters(struct adapter = *padapter); void Hal_EfusePowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState= ); void Hal_ReadEFuse(struct adapter *padapter, u8 efuseType, u16 _offset, u16 _size_byte, u8 *pbuf, bool bPseudoTest); +void Hal_GetEfuseDefinition(struct adapter *padapter, u8 efuseType, u8 typ= e, + void *pOut, bool bPseudoTest); #endif /* __HAL_INTF_H__ */ --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C020B208217 for ; Wed, 6 Nov 2024 18:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918038; cv=none; b=Ocuygf0AHaqOmcmCCpGfsWrbswyGjt16ua4ANxqrQCfPf6H7HB1ooBUK1GF+mytVhKRF2q6LiguIoOk/pJZL1PxNENlTfsG2A3/cSluW/a0wbMr0rGBKFjEI066R6ehQrukBouoswWBjqfMlfL02Odhbwm3dDD5Nd9/bDNsl43Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918038; c=relaxed/simple; bh=RzrCb4oLv8h3AO7d/rVCLj5+SSzNgJU8ETF9pQE696o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oTp5KOVgRCwekWyHIbHmi/7ALk64X8m2VZnFE8fRD1HYKfNS6Aikb68+fK8DfcYMt1B4JRk65FK3LUfEpxZ1o4aHC53vNH240cHIq7dZ0fuOo8KiJjheqHd939V0PmMRZpbgTZc+MxgUqR94RqNMVkFyI7PiddtLAS4bcnIex0w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DJlLfm7y; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DJlLfm7y" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-37d495d217bso59424f8f.0 for ; Wed, 06 Nov 2024 10:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918035; x=1731522835; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M96Aa4rJwMo6paaVcv0s1fOlpDPMBLDVDsMC1t1/MHI=; b=DJlLfm7yLONS1vB9HqfJO7hcLiQQPRZLxjMXU8BjW43pEYfe0W1TUE/rAiWZlAFCEv id/3Lpt+iR1DKQswHVqGfYbcJFxgSpTYUl2Qii3XDiZjvYywOcBb/0tX/0oF6sFTIdqq Mvhmv9+4klCJhZdzZ9Q/eBrOTB+iHCdThNBRjDKyeT5bnPf/yXzMgLNkLrxN36LrXDPG BX35DqrfHADAd3wk++B02QspeaA9y3VPl9riV8bieD1F8OoPeI+JP+S4b2xLz215eoYq TuFVqth9jg66K5rEobGzVpM6zzxQNxyvQost9AaJ2F6nBw3X54zQT+eUrocZAR4yKTTM ptHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918035; x=1731522835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M96Aa4rJwMo6paaVcv0s1fOlpDPMBLDVDsMC1t1/MHI=; b=fd6iHryNqBiW4YGBrKfcTlPemxAewuTycYTAdkSzCumaiSfsVsWVesC3hsjQPTeAQI qRoJHO4nJK9S/iHfmQU0E/L5Z18LvHyL3DRgzNpbdX8xy0YCLZI/gS9RS2ybb2XPpBM6 AJ4rID4ukrF0AE96LYG62rZrHNcPMveCwWA4lMyKtofo+qJ4qARVBDmx3MuN+ntK2jIK H91+nUk2zhUZLDq/s4oFhqIWjbQjmSuUjptDLyCaP6k3BVn0NpBrci//rLYM1oYEFivN leoEpTuEkf7xJQfTQJJfC+8m4JDt2tgmg19Ja5gnesm/X3itgeVEd3HgxW9HEhfhxwnq beAg== X-Forwarded-Encrypted: i=1; AJvYcCVjX9aosEqogd65R5GjHcyPfQ+IDUYnYxL0EhbG4OBNM5CqNslbI0l/KNPl99kjxazRwLhvkxKbZwUkGfE=@vger.kernel.org X-Gm-Message-State: AOJu0Yxr23JkUtJ37ghd9GISOFimb/c1oit5xu+WZX2JazeQPmZFVIk9 lrSkJCkExWUh9v4oP/EZRRxiKBGs+fqTBso2rWtFvcFRI5fdvNDN X-Google-Smtp-Source: AGHT+IG14Jj5KqrtGGo+MHdpACTy1Bt7UgJyxc82bZwyzAoEpicNPaixsF8bjZgR16rx+1bBcJdujg== X-Received: by 2002:a05:6000:2c3:b0:37d:4eeb:7366 with SMTP id ffacd0b85a97d-381c7a461e4mr25482073f8f.4.1730918035009; Wed, 06 Nov 2024 10:33:55 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:54 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 02/16] staging: rtl8723bs: Remove function pointer EfuseGetCurrentSize Date: Wed, 6 Nov 2024 19:33:31 +0100 Message-ID: <58a991eeda12ccb69fe8b81ef1bb2fe3c5aa364b.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove function pointer EfuseGetCurrentSize and use Hal_EfuseGetCurrentSize directly to increase readability. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 3 +-- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 3 +-- drivers/staging/rtl8723bs/include/hal_intf.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/r= tl8723bs/core/rtw_efuse.c index b8023e9d7631..8e6c294c168e 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -102,8 +102,7 @@ Efuse_GetCurrentSize( u8 efuseType, bool bPseudoTest) { - return padapter->HalFunc.EfuseGetCurrentSize(padapter, efuseType, - bPseudoTest); + return Hal_EfuseGetCurrentSize(padapter, efuseType, bPseudoTest); } =20 /* 11/16/2008 MH Add description. Get current efuse area enabled word!!. = */ diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 8a4ebe645786..11969a90a5e5 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1072,7 +1072,7 @@ static u16 hal_EfuseGetCurrentSize_BT(struct adapter = *padapter, u8 bPseudoTest) return retU2; } =20 -static u16 Hal_EfuseGetCurrentSize( +u16 Hal_EfuseGetCurrentSize( struct adapter *padapter, u8 efuseType, bool bPseudoTest ) { @@ -1745,7 +1745,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u= 32 mac_id, u8 rssi_level) void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) { /* Efuse related function */ - pHalFunc->EfuseGetCurrentSize =3D &Hal_EfuseGetCurrentSize; pHalFunc->Efuse_PgPacketRead =3D &Hal_EfusePgPacketRead; pHalFunc->Efuse_PgPacketWrite =3D &Hal_EfusePgPacketWrite; pHalFunc->Efuse_WordEnableDataWrite =3D &Hal_EfuseWordEnableDataWrite; diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index a513721e763b..48305cbf9929 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -164,7 +164,6 @@ typedef s32 (*c2h_id_filter)(u8 *c2h_evt); struct hal_ops { void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variab= le eVariable, void *pValue1, bool bSet); =20 - u16 (*EfuseGetCurrentSize)(struct adapter *padapter, u8 efuseType, bool b= PseudoTest); int (*Efuse_PgPacketRead)(struct adapter *padapter, u8 offset, u8 *data, = bool bPseudoTest); int (*Efuse_PgPacketWrite)(struct adapter *padapter, u8 offset, u8 word_e= n, u8 *data, bool bPseudoTest); u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr,= u8 word_en, u8 *data, bool bPseudoTest); @@ -291,4 +290,5 @@ void Hal_ReadEFuse(struct adapter *padapter, u8 efuseTy= pe, u16 _offset, u16 _size_byte, u8 *pbuf, bool bPseudoTest); void Hal_GetEfuseDefinition(struct adapter *padapter, u8 efuseType, u8 typ= e, void *pOut, bool bPseudoTest); +u16 Hal_EfuseGetCurrentSize(struct adapter *padapter, u8 efuseType, bool b= PseudoTest); #endif /* __HAL_INTF_H__ */ --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C756C208225 for ; Wed, 6 Nov 2024 18:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918039; cv=none; b=PfXdHPS9FtLyUsajz3dO7d8QgvUc5V1D2ZO+736+dx1DuwnM9kzRo1M2X65zY6EEmVW00Y7uRC9dZ+xybiHjGVA6w10LF19uObEZlGpIHCpWOphtuoSaYKNIVj9yFFfLaNss6X6gsbEsa/VK+W7tGsFpl5hKi+uZdVB1K0rrJmg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918039; c=relaxed/simple; bh=g6sBLUYkzsyXOm9RoSLhLsHpH6Q1sdfSsuPbf0Xpnas=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ny8+yKPoOHkQPVGKRYhD3JVdAJ8howyElHiXLOiWzYrNg816TGyB/JcSzlKgNjeheuRF8TN6R62pX6L7mlqYZsLvWhPZmomCpRDqoR4yTun2oJyoMV/H0G8xoJ79YeFqxr4mghUga9gHyvPEfCyoPVNFEM5sRdiv10nHTMPJg9s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Hhx6SSt9; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hhx6SSt9" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a9eb3794a04so7780866b.3 for ; Wed, 06 Nov 2024 10:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918036; x=1731522836; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FuJSNI4Y5QqkewpyI3LKafSzihDaZEXh1WGwp+tPk54=; b=Hhx6SSt9QZ4c7W/LY7RgF/Fq3VWGfn5evIJR6cmSWOEHwopSgNZcSD2W6Gv/Gcfw3i HqhqNwRE7+doGLGjHM/pCZBkXjDYBKJqAIem6RMzoDiceOaLTgo/Fe81Cf8TbO6hlRGr mSo1NmXNtcaJTk8UGYN9XejsU/b2Q+6VUlm8XhDe+q+FZzAdRMpTPxrB8WRAwd2TwSNh xJThPiDS3XsMDbLtw59reo4sdS452rX44U3K9TW3ulonIUcecXOL9pRp/gAxctUhVc5J 9SGzKnpp1fTZGETE/muD6VIvqsuGLaso7BDKC6k9H86nz5RLZL/g/APRtBR1hrL768li lq7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918036; x=1731522836; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FuJSNI4Y5QqkewpyI3LKafSzihDaZEXh1WGwp+tPk54=; b=T+c217BC2s8UD1T0Cf/QvYIxYUO3BmrkeBm1/fQQBzyi+mxDBskBAYHJbs0WaPGwx8 A1h89/AoiKQEo2g0w07NuKcFPu6ooyl8dQrfgOndXJfjuRRLi0uYuDQOzFal9hgS4np8 P5uedh1eJCPj43v+S65k88AL0C7CIhtcfj9QGYossRQEH9FMS1Y9TvcFtnHdwzCZL2+w iwHs76QggDscnoRgSGyueebsehnCxwoH9sYbDmKhnGQbJD+jfjnAGsL7gWmxj/l7pmRF glH9Yd4t8Bt0ujQIlUIhspTXtVCOO2PjhlMfFJbfXoMgARyWf1RZlzXis9dY2SpZSmZd chDg== X-Forwarded-Encrypted: i=1; AJvYcCVUpC6MUe2g4i6HAPrieSmJ75jqxKwhcgeZPJaKCprQr+ERfsG5ysckxPwFEpBCgFYCc3bYW9q0Ncf2yYg=@vger.kernel.org X-Gm-Message-State: AOJu0YzWTKSNtzlEzy3LYE7SUliM829wXaWubpOur/NTMO96semxj2c9 /+I0EjEibE84fNd08z24IYagws4EQbV6uKgho+baAyl8cL3453iXtT0FwQ== X-Google-Smtp-Source: AGHT+IGl7JHhLJizQ7k5GFivgEP2bu6Q1l8L0CokMFsELwyE66YWlPRM4HHeGC0NIcrCMLgBdxcbhA== X-Received: by 2002:a17:907:3f29:b0:a9e:c430:7758 with SMTP id a640c23a62f3a-a9ec430787emr416682366b.10.1730918035949; Wed, 06 Nov 2024 10:33:55 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:55 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 03/16] staging: rtl8723bs: Remove unused function Efuse_PgPacketRead Date: Wed, 6 Nov 2024 19:33:32 +0100 Message-ID: <83a819b953cca910c6236c1185d256abd21f2602.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function Efuse_PgPacketRead. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 10 ---------- drivers/staging/rtl8723bs/include/rtw_efuse.h | 1 - 2 files changed, 11 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/r= tl8723bs/core/rtw_efuse.c index 8e6c294c168e..e83daeb9303d 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -311,16 +311,6 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 ad= dr, u8 data, bool bPseudoT return bResult; } =20 -int -Efuse_PgPacketRead(struct adapter *padapter, - u8 offset, - u8 *data, - bool bPseudoTest) -{ - return padapter->HalFunc.Efuse_PgPacketRead(padapter, offset, data, - bPseudoTest); -} - int Efuse_PgPacketWrite(struct adapter *padapter, u8 offset, diff --git a/drivers/staging/rtl8723bs/include/rtw_efuse.h b/drivers/stagin= g/rtl8723bs/include/rtw_efuse.h index 0cb8c6f6d34d..de4e5906ceb5 100644 --- a/drivers/staging/rtl8723bs/include/rtw_efuse.h +++ b/drivers/staging/rtl8723bs/include/rtw_efuse.h @@ -97,7 +97,6 @@ u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, = u8 *data, bool bPseudo u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool b= PseudoTest); =20 void Efuse_PowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState); -int Efuse_PgPacketRead(struct adapter *padapter, u8 offset, u8 *data, bool= bPseudoTest); int Efuse_PgPacketWrite(struct adapter *padapter, u8 offset, u8 word_en, u= 8 *data, bool bPseudoTest); void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata); u8 Efuse_WordEnableDataWrite(struct adapter *padapter, u16 efuse_addr, u8 = word_en, u8 *data, bool bPseudoTest); --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB5F820969C for ; Wed, 6 Nov 2024 18:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918043; cv=none; b=Gn/8wgF6BcuuXgoFKrxcMGQW093+QDZXQkABTU4aEzurtwmYrFHTCtcbBPbGDv8v+wdmFGtyrZS29vO2TIjSesMWDv7oL99wxkcGt8Cx5f3j1d//SK9c+K6Jxk83AT6FQjM54JONIa1ixyp9kGPMqCq8l0Ylna8WKuj6M1qg0lI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918043; c=relaxed/simple; bh=IJ9mErZ+wjZe0e8iHAOjHtSpQtOzNRQC61CyRrvR6jI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O08mcbijxdpTOC++k2KUvI6uYFBlX7nTMbToCKkUqYWuCEM2cIIcC7sKcM4UqdKXaT7hZaJH30hhrgt1ydJnry7JMpvQEp3bl/CsnHjiFeBSJ0w9twpDHyTtJr3sHSrg2c6J1wakzbkMFu37DiCHEGfdM7GPynJzMyRLetIvi1c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=L2CJ3opi; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L2CJ3opi" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a99eb8b607aso7649666b.2 for ; Wed, 06 Nov 2024 10:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918039; x=1731522839; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P5u87ZDZXHLhJLgQfuKPLFTHmzXxPMt5bGm3IUjt/TE=; b=L2CJ3opi1oUvjO51fVQCeWmU0Zlvy4lWgsMDtlsoEKhyle9TGGDL/XVxkm9EuzgQwr mMKNapW9gYF1e7Dg9JQw/Olf0abJGFq0ruLJg4bDP+CwJyX/ZeSgSKLaOaoc6vLV3O1Z EzLOmcNl+zoFh/5Yi67dW0qCZtf/4vdmR9cx+aK80HYLZYvXnh9m1Ifllf3eKxhdzbfO 4ZuuN5H9/fO+dfZ+wKiakE9OiMhx87O2/kTGqTzw7BBoQd5oSKsMZUbhY0tMrNf4nkAX +TwQB1as8OThJk+O9zqgwahBZcoutQi2QvTlE5UMfy/FdCN9aHTjzuBkkPF8Rh8L9Vhg nwYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918039; x=1731522839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P5u87ZDZXHLhJLgQfuKPLFTHmzXxPMt5bGm3IUjt/TE=; b=DK37sjexmvtExTE7tKP7+pv8/K1nycuC2Dd+xDrB2LKiDi77gdPFACsqan4hahdHBy 7gUnjkfgtg7BQ2hFMnnXzFvySK8FHu3z0e+Za5wrNybWwuhg0pKmfiGAzPyv9UKyHWH+ sGjCkt93LNF8ggkSmh2KP/T28RDjBHORP3CQyA0JyS1fiCPhrWitJtRD68acJNK7jIlk 9alZ8X4u1KhwL2GHrLHvZhXqRdL8JrfGn+dT33J0O15smfegbiiBhXstnIStQa0H6sPg 2/6nqeM1eCsC9QHUHDGf/fyxYqOTO5O2xjJAcysNJDPw2jdI1oGRgZkZ8ce+7KYm3+Xo de1g== X-Forwarded-Encrypted: i=1; AJvYcCUIS6BJHO8YCjBBAt21GGDoes/27kr2NIF9fYF4x1NFALni4k8Xz1lQOSpzKitMG8K3FrmaA+Z8dXLzrYk=@vger.kernel.org X-Gm-Message-State: AOJu0Yx4I58I8TFwn7kxAkTpCkNtTU2d/a3UdR0lrX5mAdYBNL131gRK pdgBAuHehWOWI07Fj13FKqBTNCVVPjzxeOQ1thpjY99lc8D9aNkw X-Google-Smtp-Source: AGHT+IHYy2VySTnPh8gxEKmv6duxrP601dNn8Ig2ukpuelHF7dc3COAkuPS7xj8/7c0/8R0Na+qHdA== X-Received: by 2002:a17:907:7d8d:b0:a9a:1e4d:856d with SMTP id a640c23a62f3a-a9de5edb084mr4099385166b.22.1730918036582; Wed, 06 Nov 2024 10:33:56 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:56 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 04/16] staging: rtl8723bs: Remove unused function Hal_EfusePgPacketRead Date: Wed, 6 Nov 2024 19:33:33 +0100 Message-ID: <920a7fdca106fc21e845f9ceba3f38bcfa9fa547.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function pointer Efuse_PgPacketRead and unused function Hal_EfusePgPacketRead. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 73 ------------------- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - 2 files changed, 74 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 11969a90a5e5..13fe77f84cc9 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1151,78 +1151,6 @@ static u8 Hal_EfuseWordEnableDataWrite( return badworden; } =20 -static s32 Hal_EfusePgPacketRead( - struct adapter *padapter, - u8 offset, - u8 *data, - bool bPseudoTest -) -{ - u8 efuse_data, word_cnts =3D 0; - u16 efuse_addr =3D 0; - u8 hoffset =3D 0, hworden =3D 0; - u8 i; - u8 max_section =3D 0; - s32 ret; - - - if (!data) - return false; - - EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_MAX_SECTION, &m= ax_section, bPseudoTest); - if (offset > max_section) - return false; - - memset(data, 0xFF, PGPKT_DATA_SIZE); - ret =3D true; - - /* */ - /* Efuse has been pre-programmed dummy 5Bytes at the end of= Efuse by CP. */ - /* Skip dummy parts to prevent unexpected data read from Efuse. */ - /* By pass right now. 2009.02.19. */ - /* */ - while (AVAILABLE_EFUSE_ADDR(efuse_addr)) { - if (efuse_OneByteRead(padapter, efuse_addr++, &efuse_data, bPseudoTest) = =3D=3D false) { - ret =3D false; - break; - } - - if (efuse_data =3D=3D 0xFF) - break; - - if (EXT_HEADER(efuse_data)) { - hoffset =3D GET_HDR_OFFSET_2_0(efuse_data); - efuse_OneByteRead(padapter, efuse_addr++, &efuse_data, bPseudoTest); - if (ALL_WORDS_DISABLED(efuse_data)) - continue; - - hoffset |=3D ((efuse_data & 0xF0) >> 1); - hworden =3D efuse_data & 0x0F; - } else { - hoffset =3D (efuse_data>>4) & 0x0F; - hworden =3D efuse_data & 0x0F; - } - - if (hoffset =3D=3D offset) { - for (i =3D 0; i < EFUSE_MAX_WORD_UNIT; i++) { - /* Check word enable condition in the section */ - if (!(hworden & (0x01<Efuse_PgPacketRead =3D &Hal_EfusePgPacketRead; pHalFunc->Efuse_PgPacketWrite =3D &Hal_EfusePgPacketWrite; pHalFunc->Efuse_WordEnableDataWrite =3D &Hal_EfuseWordEnableDataWrite; pHalFunc->Efuse_PgPacketWrite_BT =3D &Hal_EfusePgPacketWrite_BT; diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index 48305cbf9929..c320795f3fd4 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -164,7 +164,6 @@ typedef s32 (*c2h_id_filter)(u8 *c2h_evt); struct hal_ops { void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variab= le eVariable, void *pValue1, bool bSet); =20 - int (*Efuse_PgPacketRead)(struct adapter *padapter, u8 offset, u8 *data, = bool bPseudoTest); int (*Efuse_PgPacketWrite)(struct adapter *padapter, u8 offset, u8 word_e= n, u8 *data, bool bPseudoTest); u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr,= u8 word_en, u8 *data, bool bPseudoTest); bool (*Efuse_PgPacketWrite_BT)(struct adapter *padapter, u8 offset, u8 wo= rd_en, u8 *data, bool bPseudoTest); --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EFC2208988 for ; Wed, 6 Nov 2024 18:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918042; cv=none; b=QXjHpjJgW34ZbIcf7eYabHgfhyBhEKVj1tE2MQl6dSjpydgrrV5PPOozJ3rKafWO6y3hqmO0g6bgUcXzorLFGAmWRxO2+Xmv2VxGFbePm1peIZEtA7kaSVOpL0d7mxx+A5T6GFNjIa+Cbo+a30PnZ9xQdvDVvMqtiCRWRa+vBU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918042; c=relaxed/simple; bh=JlxoI49Tas3/+Zubaa46kNb6rA7I8AbxfBvVMi493V0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d1eBBuQGZTu1xMHA1oAu0buMqnqjfy5cLzc9k3VT4+On2ocBMb+heOQhrfTJ5lEhzH5LsLB0ASTx8/Gv2sMV82kG735iPx2EGnEC0X54hTlT99nRLKLJ2ix+62oqasn5470Uh8P1QAw0SoOujtVv7c/sG8XhCAvBIUyhBzhoTu0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GiyvfqzM; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GiyvfqzM" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a9a0c7abaa6so5657266b.2 for ; Wed, 06 Nov 2024 10:33:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918037; x=1731522837; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iVKE9ffo3aYqFVj1Tqb4OUMVtzlo+x3zucLHdg40mrg=; b=GiyvfqzMK6n5A+Sd1RfFcxi8W9M+Crxo97GuaoFyy96G14agAtxQHwqBPwyGY9j+SO C3NcaAOPtD1pIQEqgLEGdx1ynFz4WsXIUvSpbGmPbGuoKatUajPWdboC54E6WqjN4uwk KEr3xqJGxUkjyGm2IaZB40bWRad7Eh7SLYl+TjnDxqRlpz4QblbSYAYWK1XD5okfXNJa M0lRIIyYwYuRrYqfVaj8JzaKwTxiXl1fy/RWL+NgdnmuelzgyKJdyyfzS3tB2clsc1RX ON3Hy52oZ3zEGFR1jtuMIg4Hk171sbpWqjVHSpjmQ1ZsYBhRCrOrovQH2Q1av84JM8oa k9YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918037; x=1731522837; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iVKE9ffo3aYqFVj1Tqb4OUMVtzlo+x3zucLHdg40mrg=; b=wEnmEB9jnAJtLzAJmrhZcLV37p0vSAS+ExrRIKK0mP3AlMKzpu/42ezJ0p+q8Y7nIx 5G31gKzXKpYprQs8TFb2MmGghIzUjMb5Ysz6iqjQgWMDoz0nsBdnW7bgrpcvYMCd0VF+ BfMw87NyQea1FHxMmcC3/2A9vzuoajfI7gDaWyjBNWhm+k5xapqa84avVQez97Wct+/u o9rqc8TUHV3fe8tVt6R+k23qDUwibSqQ4kWQTjv5Ckb9Ent/ltKKqJI+r/KPf2+Z5xUj AiNRSzdpRXz5mutOCO7R8+JIdXgt0ao8wbzgAquHhxvWw4oTRE5VwQgZUDArBOkwThsY M7GQ== X-Forwarded-Encrypted: i=1; AJvYcCV58kW5aGwX6IZrTQ+cRtrEh6DdLqAZT+aAAsQPVXM6mPk6SrSJ4X2IX2jamH9sNx03SjTBfJxlQ7lqYCo=@vger.kernel.org X-Gm-Message-State: AOJu0YzcRrxqs0x6MFlWZW5vwi0NX6Hl94dObyGw5PyKaD8t974ETgx/ dtKZCnRH0YgEgQ+TEUsUDfYnzgwmAf/vfH4LyVMS71JbrwUSCFXZ X-Google-Smtp-Source: AGHT+IFoZXcQ3XgiKtwcgCf8KuC/fiFBmdTQJb6P/7cb3mAvIJDNRtneFJwAU865d74mvu0LzO5bWQ== X-Received: by 2002:a17:906:c145:b0:a80:f840:9004 with SMTP id a640c23a62f3a-a9e6553bf86mr2141917866b.12.1730918037171; Wed, 06 Nov 2024 10:33:57 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:56 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 05/16] staging: rtl8723bs: Remove unused function Efuse_PgPacketWrite Date: Wed, 6 Nov 2024 19:33:34 +0100 Message-ID: <0ef7eee047401f62256970eb3186887202ffe851.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function Efuse_PgPacketWrite. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 11 ----------- drivers/staging/rtl8723bs/include/rtw_efuse.h | 1 - 2 files changed, 12 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/r= tl8723bs/core/rtw_efuse.c index e83daeb9303d..557f87306141 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -311,17 +311,6 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 ad= dr, u8 data, bool bPseudoT return bResult; } =20 -int -Efuse_PgPacketWrite(struct adapter *padapter, - u8 offset, - u8 word_en, - u8 *data, - bool bPseudoTest) -{ - return padapter->HalFunc.Efuse_PgPacketWrite(padapter, offset, word_en, - data, bPseudoTest); -} - /*------------------------------------------------------------------------= ----- * Function: efuse_WordEnableDataRead * diff --git a/drivers/staging/rtl8723bs/include/rtw_efuse.h b/drivers/stagin= g/rtl8723bs/include/rtw_efuse.h index de4e5906ceb5..546f32dbd33a 100644 --- a/drivers/staging/rtl8723bs/include/rtw_efuse.h +++ b/drivers/staging/rtl8723bs/include/rtw_efuse.h @@ -97,7 +97,6 @@ u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, = u8 *data, bool bPseudo u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool b= PseudoTest); =20 void Efuse_PowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState); -int Efuse_PgPacketWrite(struct adapter *padapter, u8 offset, u8 word_en, u= 8 *data, bool bPseudoTest); void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata); u8 Efuse_WordEnableDataWrite(struct adapter *padapter, u16 efuse_addr, u8 = word_en, u8 *data, bool bPseudoTest); =20 --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93826208995 for ; Wed, 6 Nov 2024 18:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918041; cv=none; b=kbLMdQoCj4b2ztyW3fjg2LNk3tDdC1wgonydisBTfE2Zf9r5cwicJfg9IVTWV1WRr0n2Y6XS5nLdP4FudqSrzyPlxa6k2xPkACGhXqUZWkmPDdPyToNq40JGRs6GLO2MhdculAvH4DVhMkFCEvN+VFO0A998SJ3X/N42QG3Bc3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918041; c=relaxed/simple; bh=z9YLI3XeypD2JkVURDsXmKAMCA0CwILrHqs40+Csj8Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bPI6Axxs0z/4ds87kL5DNhJcDB1Zbv0FOLSaqq8U51VoR9VWslTdAQQMsW+fyx4Lhohit3f6R55vRedXPxIaei5ICxkPEfc7xcj58N1wnJyj8DO1QVnJNF+SQlM9oMBJWUnQ8mCgdJ/69xfTg2MzMGpYXYYjG08/BdLdlhXx4uA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JQVQMiPC; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JQVQMiPC" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a9ed49edd41so13501166b.0 for ; Wed, 06 Nov 2024 10:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918038; x=1731522838; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iPcfkzQzzHYPVnMWaHpmyomuW/J2G/s5mhha7Kyk8zQ=; b=JQVQMiPCOkbmGjtk6p/aLIsSP2U7EwBgo9eNrF+izJDCKfgqVe1RTLCJEsFhMAafV2 vNF2wMl6eVY7c9gBZU40vVttvjuGOaAZdBSG9Jm7wxOlQJlZGz6lkObXX4M3dSgPBFj5 /w5RPxd1EqDJ7PWEVUQlshPlLwH2s0cMRBcjVFBtGJVBmFSHxOSGYva8Jkg/4gwZYQv/ thp4XliwkEPRApdPQItAcl5+4iyCNDGdYMwmhr0V3yMszZoWSOjp8kXbAKvrWnNt1+ES +e+6vDVmBNXQBlTlrumn59lnxq3F72qMYD1IxiLAJ87WkB4qsPp+7d6Xf6gLMbayzRXV YVEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918038; x=1731522838; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iPcfkzQzzHYPVnMWaHpmyomuW/J2G/s5mhha7Kyk8zQ=; b=C4LqS7cvM85DLTaRor05lmgtBNCkSNvIO80OF8boEkmefYAlR5ghG/VWyZLy8KOCMp OdwTgUESg2+sQJWHWZNyt/3A0+jU32nGlo2HCn3x4lhGtn6H8i0wP5SvblcDzuDvZ3u8 gNR9D+00pqq9H8p7fQsXUaJInzRfIj8Y03vcDY8dNd0VTZQFrvh8A28RB6r8XQ29on4O thA/RKVXYf0lh2QV84rpQrTZUUU3If7nM65ybwz2DmSwLeQcTbuzyAzxCrVOLsCkk/Ji tTvmTaivPPeMInu919KjxpRF8YGdEjGc9j57PPqlAjKT0Psidnw30gUNaYlK52czUWnR KuLQ== X-Forwarded-Encrypted: i=1; AJvYcCUtDqJncKNjIs+5+/qtv0haXzhF22yhm3zqaTQ2sBzURlY8SAeSFkNmpsw25S2W8RW34o2fZU0pMMRXYSI=@vger.kernel.org X-Gm-Message-State: AOJu0YxebaT37wVoRfhW176oKrGKChGJQEcubS3pHy9RJIjns29+bkie FO49XtLV2AjX4b3HaVjc69tGFSFXzoy8fPshf0tEFu/bERSBpnZB X-Google-Smtp-Source: AGHT+IGeq+rxg4ogSXDYO599VyNKOGALtpa4ihVmhkyLPUdzPJvsEp1uvL0ovpW4CuTtBB+Y2OLq7g== X-Received: by 2002:a17:907:7f07:b0:a9a:17f5:79a8 with SMTP id a640c23a62f3a-a9de5d6fad3mr4081888666b.13.1730918037785; Wed, 06 Nov 2024 10:33:57 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:57 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 06/16] staging: rtl8723bs: Remove unused function Hal_EfusePgPacketWrite Date: Wed, 6 Nov 2024 19:33:35 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function pointer Efuse_PgPacketWrite and unused function Hal_EfusePgPacketWrite. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 30 ------------------- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - 2 files changed, 31 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 13fe77f84cc9..432c2c0aa259 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1365,35 +1365,6 @@ static u8 hal_EfusePgPacketWriteData( return true; } =20 -static s32 Hal_EfusePgPacketWrite( - struct adapter *padapter, - u8 offset, - u8 word_en, - u8 *pData, - bool bPseudoTest -) -{ - struct pgpkt_struct targetPkt; - u16 startAddr =3D 0; - u8 efuseType =3D EFUSE_WIFI; - - if (!hal_EfusePgCheckAvailableAddr(padapter, efuseType, bPseudoTest)) - return false; - - hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt); - - if (!hal_EfusePartialWriteCheck(padapter, efuseType, &startAddr, &targetP= kt, bPseudoTest)) - return false; - - if (!hal_EfusePgPacketWriteHeader(padapter, efuseType, &startAddr, &targe= tPkt, bPseudoTest)) - return false; - - if (!hal_EfusePgPacketWriteData(padapter, efuseType, &startAddr, &targetP= kt, bPseudoTest)) - return false; - - return true; -} - static bool Hal_EfusePgPacketWrite_BT( struct adapter *padapter, u8 offset, @@ -1673,7 +1644,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u= 32 mac_id, u8 rssi_level) void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) { /* Efuse related function */ - pHalFunc->Efuse_PgPacketWrite =3D &Hal_EfusePgPacketWrite; pHalFunc->Efuse_WordEnableDataWrite =3D &Hal_EfuseWordEnableDataWrite; pHalFunc->Efuse_PgPacketWrite_BT =3D &Hal_EfusePgPacketWrite_BT; =20 diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index c320795f3fd4..34cd13e49d8f 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -164,7 +164,6 @@ typedef s32 (*c2h_id_filter)(u8 *c2h_evt); struct hal_ops { void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variab= le eVariable, void *pValue1, bool bSet); =20 - int (*Efuse_PgPacketWrite)(struct adapter *padapter, u8 offset, u8 word_e= n, u8 *data, bool bPseudoTest); u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr,= u8 word_en, u8 *data, bool bPseudoTest); bool (*Efuse_PgPacketWrite_BT)(struct adapter *padapter, u8 offset, u8 wo= rd_en, u8 *data, bool bPseudoTest); =20 --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 351E5209689 for ; Wed, 6 Nov 2024 18:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918042; cv=none; b=ZGS/3O1f+CkmH4RhUBtllOhnvVPvSItwAQ+w4gsqJ2+UtIgQarTIERsFnZ4rjrD5oBlQdOmBjGB2HsE/+bnNCShjqi1AIWDfRp81LXddRtTw/cIAQdbJU963sTv4QBABhVvbjrKCGykTmue8QU+YEMpx+LAmPrpuIld3Y0Mbt+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918042; c=relaxed/simple; bh=KfmJMPUsphqIRh7b0IAgOalfl+iFBdDUBMD/8jenYxM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XzvRwNqGPV8n8kB28Wp3xEL+Sf63IrA94Xhz9aunvrs2oZYsY9Xagh1J4wKexXtj3aoFvPZ49zZUTmqxSFNcpO6s5R/6sX4DWmERyHDI6He7fjWBqn9m4rSzIxl5RWEYqacKoy0u70sFMROaAVfnEk2UFM+9mRZKZKFpr59WhD0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UK86PWZc; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UK86PWZc" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5ced377447bso65886a12.1 for ; Wed, 06 Nov 2024 10:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918038; x=1731522838; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T+BamNq9Ka/vNcjcRd0qfZ5Er2QEzGn5caaTQCnbdDU=; b=UK86PWZcpGOBdHQMlI5vzN8uKhptiJNzCPGdl8Io8elub7TrY6k5TO/rtIINBwej2m A40v5RKNwHM+9Q61ssI6mrDS8tpl59DBSQA/cezRi3HsMSGAZQBLMc9lbOXvK9A/3NYC f6o4xUKyBAf5gAG15Sxzzuqdk1O0MbuOYEF1OGL6j9BPs9gAarSMCOe0ddAZYWqRjsVq xNRg426lPyaSOaktm9GCSQYvrL/jARDvMS0naueFNgC0jltm9PvaIT8Q/ysmVzIUbSt3 x9Lc+Y6dicN59oaeHcJcUXGKz47ww5I5p/qiP4qQpqAZrbXbZECZdPulNKoML2//UbFw mwBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918038; x=1731522838; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T+BamNq9Ka/vNcjcRd0qfZ5Er2QEzGn5caaTQCnbdDU=; b=cJmUusmzIH1idBAmgBIlIdH3O+ujKJu3U10k0OO7CcyZh2H3wxt3lUy2dVsHOMo2dI e6Z2++WK5gHVgxGtpK3iv690AWm7DAH/S/qIGxsRs+ouTQWcVAgI2+E1Dg0KYuCwzxDX FO/GEL95pD8IVZlcm69KQ+nW033yu4K2fgTcHGTBAp5fhY8K01zTOADJkOeiRQahHLgm HyRxHeDeDnd+2LRFWojzq5w5wkX2WNVGAPX/AlQFZSxD4nhofugFD/YoWUnZfaTIUH2b 0SpSQX9a0WXjwGSprs/RPcG3AZXriiJafbtfno1lkysdj4FA+EGgG4e9W04LBqmi5HcW qe1w== X-Forwarded-Encrypted: i=1; AJvYcCVQJPKNvsrZYDABPQeTybRgArUa3vyVM65lkwsOeEKHPBbhDJEhRyyi4+vVfLvTdzXRVdbDUSAJanY8x3g=@vger.kernel.org X-Gm-Message-State: AOJu0YyLRRxtveXRPGx+mLc2N0dJthNmQHDdpYDb0+QeDnrOsVob7x05 JJpr6rpSBoAHzt/ihmmLyRqFGYVaGMrpeXDvDOZtxgWjFbu25Pwg X-Google-Smtp-Source: AGHT+IFiOWsnaFQPqNjtsLxnwyXMF5A+F68kG7RMtDz44fbvdi0yYFlh7V52DNVEms8teFIuXfKXmQ== X-Received: by 2002:a17:906:dc92:b0:a99:f0f4:463d with SMTP id a640c23a62f3a-a9e3a5a5083mr2500921966b.26.1730918038427; Wed, 06 Nov 2024 10:33:58 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:58 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 07/16] staging: rtl8723bs: Remove unused function Hal_EfusePgPacketWrite_BT Date: Wed, 6 Nov 2024 19:33:36 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function pointer Efuse_PgPacketWrite_BT and unused function Hal_EfusePgPacketWrite_BT. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 30 ------------------- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - 2 files changed, 31 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 432c2c0aa259..fa6fbf0ddc23 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1365,35 +1365,6 @@ static u8 hal_EfusePgPacketWriteData( return true; } =20 -static bool Hal_EfusePgPacketWrite_BT( - struct adapter *padapter, - u8 offset, - u8 word_en, - u8 *pData, - bool bPseudoTest -) -{ - struct pgpkt_struct targetPkt; - u16 startAddr =3D 0; - u8 efuseType =3D EFUSE_BT; - - if (!hal_EfusePgCheckAvailableAddr(padapter, efuseType, bPseudoTest)) - return false; - - hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt); - - if (!hal_EfusePartialWriteCheck(padapter, efuseType, &startAddr, &targetP= kt, bPseudoTest)) - return false; - - if (!hal_EfusePgPacketWriteHeader(padapter, efuseType, &startAddr, &targe= tPkt, bPseudoTest)) - return false; - - if (!hal_EfusePgPacketWriteData(padapter, efuseType, &startAddr, &targetP= kt, bPseudoTest)) - return false; - - return true; -} - static struct hal_version ReadChipVersion8723B(struct adapter *padapter) { u32 value32; @@ -1645,7 +1616,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) { /* Efuse related function */ pHalFunc->Efuse_WordEnableDataWrite =3D &Hal_EfuseWordEnableDataWrite; - pHalFunc->Efuse_PgPacketWrite_BT =3D &Hal_EfusePgPacketWrite_BT; =20 pHalFunc->SetHalODMVarHandler =3D &rtl8723b_SetHalODMVar; =20 diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index 34cd13e49d8f..282e141616b0 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -165,7 +165,6 @@ struct hal_ops { void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variab= le eVariable, void *pValue1, bool bSet); =20 u8 (*Efuse_WordEnableDataWrite)(struct adapter *padapter, u16 efuse_addr,= u8 word_en, u8 *data, bool bPseudoTest); - bool (*Efuse_PgPacketWrite_BT)(struct adapter *padapter, u8 offset, u8 wo= rd_en, u8 *data, bool bPseudoTest); =20 s32 (*xmit_thread_handler)(struct adapter *padapter); void (*hal_notch_filter)(struct adapter *adapter, bool enable); --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0D38207A2C for ; Wed, 6 Nov 2024 18:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918043; cv=none; b=VxSQ08IA6QaDVp3+ZNs7j/bmEkQnwk7AEoE3/7R85eRI5Ctdb24y/5Dp5/1NGLBXcqpRX46fkLQyd5rfiLCgFHrz56BEA3AaT8TwtttQVNnZoAm0uNpeXSv+BCHLCRgafZ5q9VnMxauGygTI2eIl19RgIASJIhIqHpCJfC+cZ5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918043; c=relaxed/simple; bh=OhYFXdOAT77f7RxU/LJANnpWsMNqUOrjLI6muVHXKQ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KmK2HvwLOyre8StX7h9K7tXgfLTUwf4E9LyG+x8FzWrh9rSg01sY0DdGCZnKTPt1owU7hISCtfFOxS4xWH7T0KFED8nt1XhGwFAxLDtb4MDE3tW30Tr8Arysymmd44NXTOEuteDqS9K6E1t5ijSZ5V/b8BjnFH3kcSds9IYnHMI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lsLWlQu/; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lsLWlQu/" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a9a2209bd7fso7900566b.2 for ; Wed, 06 Nov 2024 10:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918039; x=1731522839; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=crh/rfogPGMRViil37oWiT/zXqQHb+k4d9JTWemUdnk=; b=lsLWlQu/ONUTLtod8geTXkEpc7r0rUzGtZ41ZmD0Oaen1OYe6ASdrDtKr7W8VFtarh qcsogzZBWDkLBwmsATdibypK1lV15Io5nX5QD5UgfzNbAvPBQGBn7Q0ci9BuqLUN3qpv VZFD0LWVdHXbMEabTOx2ZJLi7uRgic/ao0R/vkNpPtJzKjVP3ZwXUs0jWtnNv6XxU5Wc e4bPfzeyId3qkyXsilP9p3BII2J/CUaDLUKJ0hchpBDDVFOPdzRyMQen+qEQ+2m3VoH9 rAvFOtG/VEdRQBedKlPy7BydRtoEP2s/azszHPjenLLe1qeM+9t8Y7U44PCYLnri20Pc GRtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918039; x=1731522839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=crh/rfogPGMRViil37oWiT/zXqQHb+k4d9JTWemUdnk=; b=U305eJaX3rhVefdr4xDiK9aiwUc+rAYfwK1dQitr5OQx+qkRuMLqFmpsgCzsvDo8XK c81WyMI1e+ig/BG6U9OuLwnui8annsHkKcgSZ4zs3q4sws2F48jgI6kQ7YwokbG0Y1u6 thyFFGm4t8L9ou7YB73QKo4XhyHW7V2yJhC9c5yBSJRk+/A6AWM5bAEX02Syhg6qRXhf qfyBe4OQWodnfHkjQ8y1DuWQRy8M0g0SQAAY7TyaLv2EudPARzWhxFcZiSZ1R6UyT5nM UJaebVCDqgWi/uMqblMrJyePZOb0NwRXHZxi7U7nn2nVFJfasDkzJbmDu2oKZQ8yMPIr jI7w== X-Forwarded-Encrypted: i=1; AJvYcCW25iDNhCZqFF01thKeGe0/8x1TC3e2Eq6qmIUhvtafCCzCXR1EqnrXe/TOUZGIseBVyE5+e6nMpO8+yzI=@vger.kernel.org X-Gm-Message-State: AOJu0YxV9WVPa47O/a1EqeN5HOT3a1/JUrpWpXgAMs+l1BLVFjhYHpKR fUwliFrgZYImt/Bx7xadifyXy4ZGJfOyrEL7qrktZUOIndMWkYp+ X-Google-Smtp-Source: AGHT+IEPXokTSPgcqGa7xl1tJ2Tp4hbyjMYSJoP2uyWX7NBDQbYUJ/iwOyyfZhKjlFg1LOysnIohhQ== X-Received: by 2002:a17:906:c152:b0:a9a:154e:dd86 with SMTP id a640c23a62f3a-a9de5dc1890mr3774050766b.28.1730918039023; Wed, 06 Nov 2024 10:33:59 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:58 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 08/16] staging: rtl8723bs: Remove unused function hal_EfusePgPacketWriteData Date: Wed, 6 Nov 2024 19:33:37 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function hal_EfusePgPacketWriteData to shorten code. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index fa6fbf0ddc23..ae909bd1366a 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1345,26 +1345,6 @@ static u8 hal_EfusePgPacketWriteHeader( return bRet; } =20 -static u8 hal_EfusePgPacketWriteData( - struct adapter *padapter, - u8 efuseType, - u16 *pAddr, - struct pgpkt_struct *pTargetPkt, - u8 bPseudoTest -) -{ - u16 efuse_addr; - u8 badworden; - - - efuse_addr =3D *pAddr; - badworden =3D Efuse_WordEnableDataWrite(padapter, efuse_addr+1, pTargetPk= t->word_en, pTargetPkt->data, bPseudoTest); - if (badworden !=3D 0x0F) - return false; - - return true; -} - static struct hal_version ReadChipVersion8723B(struct adapter *padapter) { u32 value32; --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 814A3209F3B for ; Wed, 6 Nov 2024 18:34:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918043; cv=none; b=exQ2CKp4muDOBmU9xdZY/GxuwYY6T3v7qqbhlqSPOKPVv8dZBUeeakFHoEsvU+yFP6YWAcE0p6sLMmfn1Mfpt8nWBhStPRuQ21uWIDYDe+4pw8xPWy+PSydbpc3GL89rjR5KhzebjGiy7An18Z0jsUZLLSyD/6S4KWE+C3hMEKc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918043; c=relaxed/simple; bh=/OLpZDtALrTQzeYx2MmPGQ2pB2ywfY4H/jgQ2wGzKbA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Jn3YI7bwaax01BYPwOWuYfTCMiMxlBNZ8fRYaB9rcY/9OCy2l3rg/9gQ6zINoZmNNxJWyBctLiGdhxTR03dVJjHpoSY3leOcIIMHYtS847kMkDKIMw54IZuYr31reWdAALG9+LatojJ73rrqhFbYIcFGit/E2vBQC+R2yp0BNgw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=N7ehGoP+; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="N7ehGoP+" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a99eb8b607aso7651166b.2 for ; Wed, 06 Nov 2024 10:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918040; x=1731522840; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g+wHKn8ywOfNHBd4UcX1XnLelRHkboaw+5QA8QhKjAQ=; b=N7ehGoP+m0U4kuNCUsCseVw+JyOgBP5lcf3hLVsdj4G1OsfA8GeVtR7vQYhF8vmuxo S4oU93PVK3NoBNKwdlDCSkLAYoXCOanfqiEgbUIA8FWPriJzTWwlLSsbUcI7EJdsJqNJ nPw+LjS+ign+BGj8R1yEbrg/P660hd9ZK9XeBvLi9RppyV9eXEgtPEbyTazStJGnp6X/ itc9hIt4B8SWx+ZGUN993P3AQFHLLdr4eBZU6I8N7/YFHuGvNtA/3FIHYFvgmqRyBpEx tcjChx16aWvGeFYuHS2RgMat3REIBvZaBAk4PNR2KLXwlbjXHcWnXhpRUypciH2GwFrn SgSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918040; x=1731522840; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g+wHKn8ywOfNHBd4UcX1XnLelRHkboaw+5QA8QhKjAQ=; b=J8m0lmuY/UQnHNpEOUJcTV3fhHyYaW1XnKNsRCKg/1vLtsHaMNvGzkLiLOxj/AKdYH +vTxZLeIjj/zlwEXpL8xdQYKw5K0UKexbr0XerYNMMB00k9jhuOqB2Nh2j7MNxlDuT8z OK57LzGAqw7g2abZk7gpkGk5eJWiLED6X6ZsKuCC0oTRHhcrl76uPDQGFh7TlGctpXn/ nZPbf4tHH+3/LY+6WEVhLoE+ouVZIQIdn20xOy2mt26QD0VtGaC2o0fsZR4cNhbq2zHX 3yKXxKetz3mlGVnaIoRCfYnm/XDK+EYzr9NXGpx1baP7nLphvjLzWbdzurnAcULCqqPZ VkGg== X-Forwarded-Encrypted: i=1; AJvYcCXSbWbIhhxB4sanHJtYdh1bdQ5gnSES6rHGlGTpaxUgYWxat00fN3883opKYVDHuqqS/mYC+YvWu8CSh5M=@vger.kernel.org X-Gm-Message-State: AOJu0YymGw18jVmeXL7rMMKVw2CkbA+BNIA2vRFmWLU67QlVvQwAbD5E EoCEek4kBGl2jcHp8KLmQgxwqQ6DC7Ige/+1pQlpAwmdwfs/p69DoMEiFw== X-Google-Smtp-Source: AGHT+IHEF4SIOE1ASmVZGbki4EiC4o+CiW9ngWGXnJO5DlPHyFeIAeZ7QQBHSztMRo2kIs3SVYdAuA== X-Received: by 2002:a17:906:4789:b0:a99:fb75:3ed7 with SMTP id a640c23a62f3a-a9de5ecdff0mr4000776366b.17.1730918039607; Wed, 06 Nov 2024 10:33:59 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:59 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 09/16] staging: rtl8723bs: Remove unused function hal_EfusePgPacketWriteHeader Date: Wed, 6 Nov 2024 19:33:38 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function hal_EfusePgPacketWriteHeader to shorten code. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index ae909bd1366a..155987c417b4 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1327,24 +1327,6 @@ static u8 hal_EfusePgPacketWrite2ByteHeader( return true; } =20 -static u8 hal_EfusePgPacketWriteHeader( - struct adapter *padapter, - u8 efuseType, - u16 *pAddr, - struct pgpkt_struct *pTargetPkt, - u8 bPseudoTest -) -{ - u8 bRet =3D false; - - if (pTargetPkt->offset >=3D EFUSE_MAX_SECTION_BASE) - bRet =3D hal_EfusePgPacketWrite2ByteHeader(padapter, efuseType, pAddr, p= TargetPkt, bPseudoTest); - else - bRet =3D hal_EfusePgPacketWrite1ByteHeader(padapter, efuseType, pAddr, p= TargetPkt, bPseudoTest); - - return bRet; -} - static struct hal_version ReadChipVersion8723B(struct adapter *padapter) { u32 value32; --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55F7320968E for ; Wed, 6 Nov 2024 18:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918044; cv=none; b=oetHSX4kHHns3boq33KpPjhfks3UjW8LhRmPtfJemH0AzGaVG+BHS6GxYLpqCTrjSV5FyNYnputTfjPFrq7h0MQr63cq0KEFZm6KI3tDRNuN2YMUAq1QVgjKCGPtyx9n6hpaJdR0tiiHOjAGmGqSRzghkslpvWlUmHK+yHwSEeg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918044; c=relaxed/simple; bh=nF94VgLpUJkeXFfnuNcEv8uL/brBOQzMzSl3+POAVoQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RlEEf07Wy4d1xCvKXB4DrqsbBstS1CZ8v6gRSuNJ2nvmSFkFkitnQPn3BDnr7O+ySGAsEV5iO6XaeiZq8w8Ds4KwXy0G2uV9vZ3TuXN4ivm2HAmTe+MPQrAcNTcFjuew6y4w93lP+gUcknqTC9+PcyAYuVDMIaVdPg6xwJUAo9E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b8+OWhC6; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b8+OWhC6" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a93c1cc74fdso6936266b.3 for ; Wed, 06 Nov 2024 10:34:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918040; x=1731522840; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KxTMhtxD7KHJNhiedBrkjQNv34RfpyOuX9BscP+yR9I=; b=b8+OWhC6xp3SwO5ePGcGq7xIfFltCw9By8CRs+GUjeCCX/uptPyHkB8rtagVgGgxdR QOBFi+L70hb1HuwfKXl8ctqCKODP8CtVOi35Ls9b2RchaJdCLOvphM1Aah6M1NjtIX7+ l5EVjyd0DY5o0NTfawjpai2abymk2tgrWLfI3Rmy7CToCt3nO//Yr3NyPHv0U00iX7ue t2VhZjsBanCqwzqMoMLWIuBWAoIFNbkuZH281iP/W0KL3IUKbdI8KNoXCnOKATIwC9pX ZieLYYIMT9ElSfk7VbdXoM0mTJDT1c3S5OTm77yePFdth0sCWGHdAR1Z2Ad0xTEveknM eaSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918040; x=1731522840; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KxTMhtxD7KHJNhiedBrkjQNv34RfpyOuX9BscP+yR9I=; b=IiYOAaYfzPW/a7RsBtmRf153Ox192g8m1JbQKZOgxleyN7EysvlYXUDpV9fUMLXM+G 0Wg4WT1aCEvS7MQG/K7W9Fkk/JYOtILLTFtR7IVxtefNBrQbqLkvqlPwDotJQjIB4ZZX dALqOQgd5yMZftjjGffOQbx/fu3/BupX0DvPABb+MMXc9DMemgETyKSbcQMwwc5ieztI aVBS2X3oSHvpVHhDk7p2ltn9rCRJNVv9YyClx+PNs6pPHjP30WpVdfpPRDZN/iRfOI70 SKwHnvIFXTCDPOfPgmEqrLd7MSTFHkiWsYiXka8iysofQPFDfTIjRkdTb1bsAfj2p/3A G3Rw== X-Forwarded-Encrypted: i=1; AJvYcCV6VtQKqc/6e6hv9C8PCew6Hvc0pJBW17vaaJY71b3piIO8nvMfIN/6iMszLo8PP1egBEtQ/XELEGGZrOU=@vger.kernel.org X-Gm-Message-State: AOJu0Yw15hcE6YOp137P3dPnr2uQb7VI0UVpWnFOfo5F+uCYAZcSvyPK x+XzVnu3xa/Tw5JwJJyC86G2CW4zYqpTP/wUvhkGB1JanNtAyTPOliinBw== X-Google-Smtp-Source: AGHT+IG4D3Pg2rvxEKMlZdbcO93uhIf8XDnsy8btxlafqxtMtVdfbKqk/kFGUBXh0eouAf1zjigCug== X-Received: by 2002:a17:906:bc07:b0:a9e:b287:2808 with SMTP id a640c23a62f3a-a9eb2875ef0mr681262666b.6.1730918040238; Wed, 06 Nov 2024 10:34:00 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:33:59 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 10/16] staging: rtl8723bs: Remove unused function hal_EfusePartialWriteCheck Date: Wed, 6 Nov 2024 19:33:39 +0100 Message-ID: <12274cb129683493e7406cdc19402d05d5f2ed07.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function hal_EfusePartialWriteCheck to shorten code. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 58 ------------------- 1 file changed, 58 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 155987c417b4..ceb234cdbd74 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1182,64 +1182,6 @@ static void hal_EfuseConstructPGPkt( pTargetPkt->word_cnts =3D Efuse_CalculateWordCnts(pTargetPkt->word_en); } =20 -static u8 hal_EfusePartialWriteCheck( - struct adapter *padapter, - u8 efuseType, - u16 *pAddr, - struct pgpkt_struct *pTargetPkt, - u8 bPseudoTest -) -{ - struct hal_com_data *pHalData =3D GET_HAL_DATA(padapter); - struct efuse_hal *pEfuseHal =3D &pHalData->EfuseHal; - u8 bRet =3D false; - u16 startAddr =3D 0, efuse_max_available_len =3D 0, efuse_max =3D 0; - u8 efuse_data =3D 0; - - EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_AVAILABLE_EFUSE_BYTES_= TOTAL, &efuse_max_available_len, bPseudoTest); - EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_CONTENT_LEN_BANK= , &efuse_max, bPseudoTest); - - if (efuseType =3D=3D EFUSE_WIFI) { - if (bPseudoTest) { -#ifdef HAL_EFUSE_MEMORY - startAddr =3D (u16)pEfuseHal->fakeEfuseUsedBytes; -#else - startAddr =3D (u16)fakeEfuseUsedBytes; -#endif - } else - rtw_hal_get_hwreg(padapter, HW_VAR_EFUSE_BYTES, (u8 *)&startAddr); - } else { - if (bPseudoTest) { -#ifdef HAL_EFUSE_MEMORY - startAddr =3D (u16)pEfuseHal->fakeBTEfuseUsedBytes; -#else - startAddr =3D (u16)fakeBTEfuseUsedBytes; -#endif - } else - rtw_hal_get_hwreg(padapter, HW_VAR_EFUSE_BT_BYTES, (u8 *)&startAddr); - } - startAddr %=3D efuse_max; - - while (1) { - if (startAddr >=3D efuse_max_available_len) { - bRet =3D false; - break; - } - - if (efuse_OneByteRead(padapter, startAddr, &efuse_data, bPseudoTest) && = (efuse_data !=3D 0xFF)) { - bRet =3D false; - break; - } else { - /* not used header, 0xff */ - *pAddr =3D startAddr; - bRet =3D true; - break; - } - } - - return bRet; -} - static u8 hal_EfusePgPacketWrite1ByteHeader( struct adapter *padapter, u8 efuseType, --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15D2420A5F3 for ; Wed, 6 Nov 2024 18:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918045; cv=none; b=Yod/WmdRDT880A9lD9oPOJhAekEPYFnug6dj+Dtb/LZgZqNegcTQWN3q8vcedtfxYSgjV19AJbFUFwF/iIkpy8dyAiq0CNLWVtFtzbBStBzukKceLlEqBxpYDy88QRfRrby+cgfLBkiDAtgYKJIxBo1SziPsKPovzsEiYRax2yc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918045; c=relaxed/simple; bh=ny1IUjXEbFDtNqc0wWpdYefNkINbbN1F2HIJhO+MYzo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GQVdKQaHpjyRtHmA0F3PPc6XKm+gEjlh2jzZFqR22gwahJ9vQ6xwGAGq8bTM8a6DD1ZIxg6qDoq9dKwmmwW/B/rq4yY7q56+UeGt7CQPKc13iSRd47UTF64UjNSz00x2mz2w87E3r23ZJTyfxFWwMBX624+GBzDE4gyy7ulDMcs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DoQqSek7; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DoQqSek7" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5cefa22e9d5so55311a12.3 for ; Wed, 06 Nov 2024 10:34:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918041; x=1731522841; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t3pzCEQrbiGJWQExVv2MGO23rU23gFTpZ/mle6QP108=; b=DoQqSek7ak1IgMPlKQ2EMtXxIvxp8UP53lwQSP1+qFFa66MMxtFpM5hUbBX9BydQyp cYyqCHo4nPS8FoEYUTiVATtlkx8pp8BTZVQjqL2YI5ALHkUpe+qDwjd8KYCKcvDDz0fp hh8donCuex0wiRw8GO+YelWh7DARjLeTT6Zrch5HOXyR7eun/S08/qeA/BPokHcKAplv JpC5F8e4y6WfGEyRkHcBggX8uH/ot3YLeeHWNY4KmzXKuO6nV603gzHtsmC99d0eC77i AqGaM1y54mHxtBkq1Zt/tObxHMB5Tf5kcdfet4iCpkbOJAcQSfUOts05OUwgXPiW6Ogo /YHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918041; x=1731522841; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t3pzCEQrbiGJWQExVv2MGO23rU23gFTpZ/mle6QP108=; b=idfCxrdzOrHsS2DprRgz3uwPTo1srMHp64lX4G3sYnpic9M7r+KBI3f50KFntFLKVj Of6GJaqR7dyVslyHUW/ClZU2MYbIzdI2gN4DTUfL0MUO9aVA1S5rCPiNjCLODoANuFoz pM/P+MBzULt+9wYzDdtAOX+LNii+zR2fAmf5jabVNxWfw4s9/r2BcchSxRF7D4A888PU QlZUxzzXmZkhaHkJTJO/ey3ASlpcpvbom8WOa3YGmOEL+G9j0qmXedfVjFzNCpF5hOpe DX5eFt01e7Gm473lW185BLXEQlt1ATyRAKWTLIHeZ/VLkxMVslaGNWnfbZC6SKc5ImFz oGSQ== X-Forwarded-Encrypted: i=1; AJvYcCVAAO2csgz7iakRCRhZ63vWdBz5dsh2TVelXP6hy6nce1MjbcLf08f/GfiZsocOxyqNy66k4mYF7sIGbR8=@vger.kernel.org X-Gm-Message-State: AOJu0YwUifTW6X73MRpXfEWUwSh0HGYra7usIYUdzRXzb5y8BvmxqN1e WCyPMk4hyc7NmMZVyulrWpZ5/ql5aqZ27v7z7eJLnsVANbt4aBU1SvT25A== X-Google-Smtp-Source: AGHT+IFAh3RBtPNKcN9/sNK0cNys4JGcj/3Rx35+A4EhhOmpgVoWubYQ22spneKC0iomtUT8jV2EKg== X-Received: by 2002:a17:906:fe01:b0:a9a:6477:bd03 with SMTP id a640c23a62f3a-a9de5ff917amr4046905066b.38.1730918040971; Wed, 06 Nov 2024 10:34:00 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:34:00 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 11/16] staging: rtl8723bs: Remove unused function hal_EfuseConstructPGPkt Date: Wed, 6 Nov 2024 19:33:40 +0100 Message-ID: <8625bceb13e5a319a1d0752bde79888fc8622ca0.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function hal_EfuseConstructPGPkt to shorten code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index ceb234cdbd74..acd9c8128f94 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1168,20 +1168,6 @@ static u8 hal_EfusePgCheckAvailableAddr( return true; } =20 -static void hal_EfuseConstructPGPkt( - u8 offset, - u8 word_en, - u8 *pData, - struct pgpkt_struct *pTargetPkt -) -{ - memset(pTargetPkt->data, 0xFF, PGPKT_DATA_SIZE); - pTargetPkt->offset =3D offset; - pTargetPkt->word_en =3D word_en; - efuse_WordEnableDataRead(word_en, pData, pTargetPkt->data); - pTargetPkt->word_cnts =3D Efuse_CalculateWordCnts(pTargetPkt->word_en); -} - static u8 hal_EfusePgPacketWrite1ByteHeader( struct adapter *padapter, u8 efuseType, --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74E5320ADC2 for ; Wed, 6 Nov 2024 18:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918045; cv=none; b=P7hikigC/zbGjcxYnHKB3oWf0/hpyv5wdNSAatK01ZbMsY6ZjvrfuBFaDR/No5+gPhhnSv8aX5lklZ4J3hABmztqLte9HpgqS3oFqxhsqzycOBxzeiGtkqoa0rc3cnoOaN+avovuluxK88MdsvLROyxAVJ8JLobTphozZFLZs5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918045; c=relaxed/simple; bh=BRamlqcU9smyKVEO1s9mrweQyRqmIhJQTYicabrXoMs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YfV9fHxD7SQfx0ZIwCYWoXNKZEdc+1woGASzxhDQVgUzlS+3c/RtoG8KN7P0t1agj5R8mmKAOnBhZvzbifrSxJdKgkQfomhiSo0BqyHWUttjrMdbj8pnpcq4mZeYzjfhk9iEeGkjJNerRb0/nObKFYKgR+ha4N+S+eYj8qKy394= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cnLdjUrH; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cnLdjUrH" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-37d495d217bso59532f8f.0 for ; Wed, 06 Nov 2024 10:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918042; x=1731522842; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KyLzRQG7ihdVYjFiiq9DJdAmiKxXolSxLLfYzOn7lDg=; b=cnLdjUrHIbqFXhOyhF+B/ItzwjimgJKwVrkorCQ0GVl9wFkzrHFIpARMGTfAPeGaZr TUTqvZMv+a3QDR+Wom6haF8L+WDdCg7nJ0Kq4IFqs3TgTkS0NuAGmNUa6EQ5QBy8icsa GDNRU7LO3qp5jJ0vIOrZ0ERBtw/55koCr6UeqIMftgctVgq+pIKxn4SvYEGasUmYTOwJ bo664fkE/fWf4ISCPTfsGcls0ZVnub+lL9Zsvz+zNEFCbuith6ITjTXmMlr9a2fuHjo2 ZM4EqLD2dp2mhSEzEdWNK8NBoa2NEyLazuxv9jJZHI3kH3AfCK8MMwmKFn1/9/XFs1p6 5lVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918042; x=1731522842; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KyLzRQG7ihdVYjFiiq9DJdAmiKxXolSxLLfYzOn7lDg=; b=DsOWzMOml+suRe7UW18/FdM6d0/ICeNGb0e+Z4YjsT5jlGUmNGVQ2ehOKEkPkc5/yq 9duxwYJgUPJG6iBHM7JJ1kirWc6tKlGvUqeP4Jt9GNaTxlNO+fEGaGWHlZEKLgu2yRlw 1n+hIGxCHeYUBR2gi4c8KtQJlx9GNZR+O4yttkaTxrstCiJ7KJJ6SpmI0lIc03M+ebUA 0PWnojn/8mKdHYLrHAMqx/KLQE0fk2BQFugUDx7YPJPJ+YW4ngv4Ctb6fGpH6qABkS8E cvpWqFxPwCuSsHwmRPnNvOBRZFJ/ft56bbc7iyRPGSWSpxXpkaskJEW8/Q+W6O4eS5UB 8JtQ== X-Forwarded-Encrypted: i=1; AJvYcCUOYVLtiDRXqz41haGuV+zD/52LK1t24oiJe0v3bAgsytEvUqls9Q9EvDzJim8/g5UsQOG+2WcDfQTOPoY=@vger.kernel.org X-Gm-Message-State: AOJu0YwTDdYMHp76OeMuBYJ4MU23UsIf+QsO2eMtbnJLxV6paQqHa5Gg a8wkMcxGrlNmHvzqPbDVAm79+zNkjMT+pb7E5BQXiEEWv855PRYpFVznrA== X-Google-Smtp-Source: AGHT+IFjuWtWMDwHauyIWQ6P4zJUpK0pb6PnGe7aA5sK+TB19g+3jJkYFGG6MD9MZmLpxBwDgcN7aw== X-Received: by 2002:a05:6000:1848:b0:37d:5359:6753 with SMTP id ffacd0b85a97d-381c7a5ccbamr21342955f8f.15.1730918041628; Wed, 06 Nov 2024 10:34:01 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.34.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:34:01 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 12/16] staging: rtl8723bs: Remove unused function hal_EfusePgCheckAvailableAddr Date: Wed, 6 Nov 2024 19:33:41 +0100 Message-ID: <414a3575073d4f78bd1132ccee6851d93cb59284.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function hal_EfusePgCheckAvailableAddr to shorten code. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index acd9c8128f94..9231a4bffb5f 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1151,23 +1151,6 @@ static u8 Hal_EfuseWordEnableDataWrite( return badworden; } =20 -static u8 hal_EfusePgCheckAvailableAddr( - struct adapter *padapter, u8 efuseType, u8 bPseudoTest -) -{ - u16 max_available =3D 0; - u16 current_size; - - - EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_AVAILABLE_EFUSE_BYTES_= TOTAL, &max_available, bPseudoTest); - - current_size =3D Efuse_GetCurrentSize(padapter, efuseType, bPseudoTest); - if (current_size >=3D max_available) - return false; - - return true; -} - static u8 hal_EfusePgPacketWrite1ByteHeader( struct adapter *padapter, u8 efuseType, --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD3E0209F22 for ; Wed, 6 Nov 2024 18:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918046; cv=none; b=lmqfz/rwzYKnWTqcWxBzdKtAUS0kH0xNsOwDcFJslBjxDF+vAe6ThQFel19bP0fA1fHMNvOkZfzXXnT8KJIDTqBenq/I3VTxXPMrnQJTNDczAz0JXLPWNQeMf6Suo6g3lAJpAhBbIiwgnRxEnIuQT6sOACJXkHXBPtJeAbVfgwU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918046; c=relaxed/simple; bh=hBUxEv3qbO/9OB1qQM4GecNfPwIPQArtUwXtuauAVKA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YwBGSzkeu8XEqaZqxHc+kbwgvoNGcmwdMMRe1OK11g1O2+kCbIm3JOrfd+enHt2V5uNhgwffeZc0TrjJBmyxrGvaiWkMUtMVdDKrXLdJxLzgbHs0xr238JzOyFuGVLvPUB7CDxNdC7rVjZnoBmZBMhgTzSjAhl/kGuWKRvljdnw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MtsOFUQJ; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MtsOFUQJ" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a99f646ff1bso6164066b.2 for ; Wed, 06 Nov 2024 10:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918042; x=1731522842; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lmkiHjgr2PxF+ocYxD6zDhmu1c+VcNka7RApTzQc14s=; b=MtsOFUQJWhFUO9/rw5msc5rJ7Xb47tf4ZuQnFz+/6cbef8OWIukjOXI4UKvacplUO4 zOiZ6877vGK7qRt8nbRDUhqLMOk3amsAKGWEbxg1oNQZGRgIthEdFi8P82kYRG+kWNP+ M+hSih4PppylTIP1f4boP9xOsEIlMDqrb2i+3tA0wCRT0mFEPKCmGkOdozpmiKeY68x/ Jck0XFFOjR9DlsUq54WxRAjAJdnaKqZF0BC1o0XRwKRO9EZDeh82mpWfsbqvbi+EjFSv ln5uq6Yk5PkmKMIg1yyabq84XilnLHzwuCOv/JZ7YkCQgamsln73q7Yo+MMco+RgNL4p aJMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918042; x=1731522842; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lmkiHjgr2PxF+ocYxD6zDhmu1c+VcNka7RApTzQc14s=; b=M03Kkam5R12Y+XIZYc0k02tsWgVlC1k2vIO2DvGDYR7NpWZrHMUbwR2B4KYSGm+JoW O1WuFv4mxxph26Jv4IEq5EzIxiY1l6wYxpNSqeE1oxDj66HQ+zoDgvi3T9z7OlesxqCT PPTHxfRyzherVTVRDg3a0ZbwpYF3V4gA56tvBi39PVwebA7kecosL+fwEPZpHMnikIpQ xtzDRGsiVhemsjrPhNy/Ys4Xh8YKT6zpQedP3obZrIgtmov9l/Fod9dzczcwfPTgwF8k b9oGmVqQwUVaMTRkONY/KiUV6aEqKpb3EVdQ11R0TuZGIcWcOzhFd0kxtn5Yphc4tlRG wmSA== X-Forwarded-Encrypted: i=1; AJvYcCUjx1qIZ6OIPUtaETv98qIhBKOHUgx4kxblEa6A+A3V7Vw4pAt4Zyca35grWTqUECaflosW+v3MOVJLmeU=@vger.kernel.org X-Gm-Message-State: AOJu0YxNUrg8eZPb8vnn5B41E18VVY3YQ0pEpcbADYCqy2f3uVOAas0p jCEu3wc61qszDqbbw1QKxXxEbRzZcrxRMMprKjRto3svoQrfsqYaTrDE1w== X-Google-Smtp-Source: AGHT+IEp5BaNpq8XkNY3ZfxjAdH9fkFzSbcmwNJDPcu5Ly/IEQRNCIg5pGEllGddL9MyK0lFZPW3Gg== X-Received: by 2002:a17:907:608d:b0:a9e:b5cf:df02 with SMTP id a640c23a62f3a-a9eb5cfe797mr680578066b.41.1730918042214; Wed, 06 Nov 2024 10:34:02 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.34.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:34:01 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 13/16] staging: rtl8723bs: Remove function hal_EfusePgPacketWrite2ByteHeader Date: Wed, 6 Nov 2024 19:33:42 +0100 Message-ID: <58b682a5ecc0cce08dfdbfe20690eea47efebf18.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function hal_EfusePgPacketWrite2ByteHeader to shorten code. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 55 ------------------- 1 file changed, 55 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 9231a4bffb5f..c6cd0f11cd91 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1183,61 +1183,6 @@ static u8 hal_EfusePgPacketWrite1ByteHeader( return true; } =20 -static u8 hal_EfusePgPacketWrite2ByteHeader( - struct adapter *padapter, - u8 efuseType, - u16 *pAddr, - struct pgpkt_struct *pTargetPkt, - u8 bPseudoTest -) -{ - u16 efuse_addr, efuse_max_available_len =3D 0; - u8 pg_header =3D 0, tmp_header =3D 0; - u8 repeatcnt =3D 0; - - EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_AVAILABLE_EFUSE_BYTES_= BANK, &efuse_max_available_len, bPseudoTest); - - efuse_addr =3D *pAddr; - if (efuse_addr >=3D efuse_max_available_len) - return false; - - pg_header =3D ((pTargetPkt->offset & 0x07) << 5) | 0x0F; - - do { - efuse_OneByteWrite(padapter, efuse_addr, pg_header, bPseudoTest); - efuse_OneByteRead(padapter, efuse_addr, &tmp_header, bPseudoTest); - if (tmp_header !=3D 0xFF) - break; - if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_) - return false; - - } while (1); - - if (tmp_header !=3D pg_header) - return false; - - /* to write ext_header */ - efuse_addr++; - pg_header =3D ((pTargetPkt->offset & 0x78) << 1) | pTargetPkt->word_en; - - do { - efuse_OneByteWrite(padapter, efuse_addr, pg_header, bPseudoTest); - efuse_OneByteRead(padapter, efuse_addr, &tmp_header, bPseudoTest); - if (tmp_header !=3D 0xFF) - break; - if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_) - return false; - - } while (1); - - if (tmp_header !=3D pg_header) /* offset PG fail */ - return false; - - *pAddr =3D efuse_addr; - - return true; -} - static struct hal_version ReadChipVersion8723B(struct adapter *padapter) { u32 value32; --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A09F320B1F3 for ; Wed, 6 Nov 2024 18:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918046; cv=none; b=DnPn0hVIhigfswikBU2Ytlmv2MrWSHXfSvYeenV45tPWh/pAn/0i7yaEL2buEFpklq4AbdOaBlWwWI9Evm24o/viX9XAxScUFOOjfoO5fiC9CHWRK4ZRWWNz7j59YrwYkqRZH3tfeQE3BxnPPilpi2wjXrL/fhISIB2DuxDVioA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918046; c=relaxed/simple; bh=HdJm1Pu/7PlxrS/55iKeWlrx7bsSZesm+0zy53fLThk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iomzU9Kh4jl5TEgIxptPcpqCad8tky55LAyS5FDGeReWD6cmwohogAaj1xJ4VvJ6YIWh1V0NQREExlVruQ07AAh5hePxsPIAO16E2cg3Vq/Gc6dWgHxFftUxVBvJv7KZE7VxoQ5QGYlEK2c88X26tf8MrIz/5etuUmVV0JPXSbY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GrrRcLA2; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GrrRcLA2" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a9e44654ae3so8265766b.1 for ; Wed, 06 Nov 2024 10:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918043; x=1731522843; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QhgbEz6h9Yba6sgpMI3GJizlUji0eMJyuR9wkNgDATk=; b=GrrRcLA2uJtgWinMqvDUJXnwlHPQOJqq8jg8WoKsZLK1WEaIo+NS8ZyMrkC5KkiqpY dpnX7krNhev8FazaSyydkbVU0WMRT3QIbyTKJ6G4vn+RAsO8vnQtcrmOI/fJyTvKCW93 Os6s2H7DHGVOHPZYsbe7nFPJ52Cl6NAwPshBgkQY/KRhFBFx8FCVcPH6HV69ioweJi5E Ou72UuSvpFGyAgTT+kBhBBBTY/AdlTpwfNnXgt19ueHhxKOpvDuauZBG9/I5GDgPgvIE WQ9aoDkoaObppm0ceKMCfaivk5ekWA5rEcUvWpi5t0XAB9pS8FDYl57V6sqLn5b8gBKR a7wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918043; x=1731522843; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QhgbEz6h9Yba6sgpMI3GJizlUji0eMJyuR9wkNgDATk=; b=bM/hIUVkrbsiHbIy+pUpLxgS18c7ftcvitGVxsQ8f5SsEdA4pNM6FgUYD4j+2Onpyw 7BNXQGSbb9aPebpIXjyHllcxYbO0zkU7T6mIaqFMvV/FzMt9XBP+hUdnfx+CIENFLzx/ AzNoltwl1vhMYMDx7e+BiIPDdEJFRCx7rdmfOmlekgHIM26oQChH71jvZRHvxb0mt24o KrHOHz1ldmP/SMm6PCtI3AmgG5SuWC0wmZBa/DvqztVuFR2us1Pz6aMpDexK2ve8pePc JR+6zh9rOtPJaGU3OMGHhUYBW6ItsTvZKmRwpBTU5cVb0GP6g1K28xCWbgBjcsLTBlyE 5W5Q== X-Forwarded-Encrypted: i=1; AJvYcCXVy4V7Dly5FU4T8TGCr2s6jV9mSYigUj8q3/XgUHzOOMWHgqh4fguFak/cyVIGYpp5lljASmjOuWPWn1I=@vger.kernel.org X-Gm-Message-State: AOJu0YzBcO8cajg25Apx7Fyc7EyGJRQ8QohnuROwCiBcgG3gUXnkHY5t VcsYBpglIStd0FuW0bgQnY01HCqoCSftYF0fOZaRaMG97TPb/+7R5OekXw== X-Google-Smtp-Source: AGHT+IG5AFRKgz+xdpjWoBvDFuQm1QIxrauaXKNygZ8gG7cjYrYhmAnbm6dscF5KQiQKPi/V2OGG7Q== X-Received: by 2002:a17:906:c7cc:b0:a9e:c4df:e3c5 with SMTP id a640c23a62f3a-a9ec4dffc9bmr284337366b.54.1730918042801; Wed, 06 Nov 2024 10:34:02 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:34:02 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 14/16] staging: rtl8723bs: Remove function hal_EfusePgPacketWrite1ByteHeader Date: Wed, 6 Nov 2024 19:33:43 +0100 Message-ID: <80b5cb563f5294b045b24266c5a99d1b4759c2b5.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function hal_EfusePgPacketWrite1ByteHeader to shorten code. Signed-off-by: Philipp Hortmann --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index c6cd0f11cd91..e15ec6452fd0 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1151,38 +1151,6 @@ static u8 Hal_EfuseWordEnableDataWrite( return badworden; } =20 -static u8 hal_EfusePgPacketWrite1ByteHeader( - struct adapter *padapter, - u8 efuseType, - u16 *pAddr, - struct pgpkt_struct *pTargetPkt, - u8 bPseudoTest -) -{ - u8 pg_header =3D 0, tmp_header =3D 0; - u16 efuse_addr =3D *pAddr; - u8 repeatcnt =3D 0; - - pg_header =3D ((pTargetPkt->offset << 4) & 0xf0) | pTargetPkt->word_en; - - do { - efuse_OneByteWrite(padapter, efuse_addr, pg_header, bPseudoTest); - efuse_OneByteRead(padapter, efuse_addr, &tmp_header, bPseudoTest); - if (tmp_header !=3D 0xFF) - break; - if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_) - return false; - - } while (1); - - if (tmp_header !=3D pg_header) - return false; - - *pAddr =3D efuse_addr; - - return true; -} - static struct hal_version ReadChipVersion8723B(struct adapter *padapter) { u32 value32; --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52A7D20BB27 for ; Wed, 6 Nov 2024 18:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918047; cv=none; b=Y9TkTtPRGr5OzAkmRW1gX14o+PiVXqnaXA53rQMkhU66ZVrjr6EFOk4O7bkYDsytdczN+j11TsdTHynObfUuITQbGP6UfqsrGBT2z2o9Vtx4LTKHgswBgjgmM8+fj43l/yj9S1UkOVEj9ZyOCrI2NLCwh/1Syst9OmlR0fUB0i8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918047; c=relaxed/simple; bh=ujon/TnIZaIf3M/ZysmN/DYEURTbS8NW77AlIhTm9r0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AA8u3Xa4KYFe0tMxcozpw1ZRBHQb2cP0vsPXRHyIA5PWAy5Phy82lcv77kP5ikBivwEzobRbRhQcB5tq2lTsQJIIbW8+Vt55xh+Dx7b/wekCnR4qb7eZfmKV0CFGjZSnsBXSA6mIwjx/puPsNBy1f6m9r4O+ENzvfWPLYjuIIsE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BXokVGQZ; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BXokVGQZ" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a9a2209bd7fso7913766b.2 for ; Wed, 06 Nov 2024 10:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918044; x=1731522844; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dVry0sRO8ZHXz4GG8DebayIRXDP/gGEhpiGEaTFDJC8=; b=BXokVGQZjqoqeGkyirc2InLvxMYX5nTIrN320KSuUQIR5bXcP7O9z+JqNCd3D+d7C5 Ll3edlFs9nkn6f6C4ODoyaUzMVEVkTopxqaSKkprRsi+ZBHzzjRmX4R5L/zVoD6FkYsK QL40HtIooGYSDGXfuZjBVC35hoDkNO0K8504UnlCaagI5taCooA58ZSeYWPmzBX7y4pF SnvjP9qxezR+hrFfMZnnC0SAXgr+oGvYe5iq+VwVJNRi34Jhb0KvEB5m5bWwvqA7Bus3 97pSP3Ir5SfJ2pfsMxPyp5jvk6FLLOm5GaOurZO37ZAqruTBsW0stWKNp1jGCay/mHRR kmJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918044; x=1731522844; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dVry0sRO8ZHXz4GG8DebayIRXDP/gGEhpiGEaTFDJC8=; b=YwXoD+veHkaO/Lre5Y+WXSeH0Mqx/skVnAaJNzWW0EAxS/DQowB0+eUiYtm7ZZkWNr XY64gA7bxPAvY9URRHM2SCTNjIMHKyeeqYNvd4ukzJwfsTTL803+HGeu1zqjq4IM3t7Z Kgpidy5Khwr0bSGsnbG2FHpIlswV5QUd89fd8SfQV4q1KQmiZXgEvdfUFs924EQ2PcgV wlTrbt2lFOyz4gQYKCP2EzTeNtAuQoRAMgNeyIk/X0b28FxSz8NmBs0mOG+XE+uUCw7a 6rqhFfwteMFl2aEJNXsHmHkTASVih1U+BDfJtapCkBy7e5z5OmTJfAmfjj/NZahEnkdC l09w== X-Forwarded-Encrypted: i=1; AJvYcCUhbEtjBTNcSunILGlLBI3nj7MH3GJVXc0rG/gj1nSBLP6qHOzGQ286txZS7wmzbjaElisOsILoyj4qQv4=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2dF0MTBAwPT/lv0iQ89XiYBi3P1x60x0N3KA2O0mn5ZQZwvq2 g5bdfMJe6lQqQJYSWwqvPr9Yt4IoIRW+pwIIKw9cWJqqItT0MOba X-Google-Smtp-Source: AGHT+IF/t44LVhTPRYiKDhpeI3D/ZhLJn+4riyKlErYne47aNsR6CmzoMCPpHroVqa8wApfjaxsCnA== X-Received: by 2002:a17:906:f58e:b0:a9a:2afc:e4cc with SMTP id a640c23a62f3a-a9de61a128amr3808363466b.58.1730918043497; Wed, 06 Nov 2024 10:34:03 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:34:03 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 15/16] staging: rtl8723bs: Remove unused function efuse_WordEnableDataRead Date: Wed, 6 Nov 2024 19:33:44 +0100 Message-ID: <34ae6c921aa8a42407def96360db5b9a7f3dc5b7.1730916582.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function efuse_WordEnableDataRead to shorten code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 41 ------------------- drivers/staging/rtl8723bs/include/rtw_efuse.h | 1 - 2 files changed, 42 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/r= tl8723bs/core/rtw_efuse.c index 557f87306141..fcd9ac58b96f 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -311,47 +311,6 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 ad= dr, u8 data, bool bPseudoT return bResult; } =20 -/*------------------------------------------------------------------------= ----- - * Function: efuse_WordEnableDataRead - * - * Overview: Read allowed word in current efuse section data. - * - * Input: NONE - * - * Output: NONE - * - * Return: NONE - * - * Revised History: - * When Who Remark - * 11/16/2008 MHC Create Version 0. - * 11/21/2008 MHC Fix Write bug when we only enable late word. - * - *------------------------------------------------------------------------= ---*/ -void -efuse_WordEnableDataRead(u8 word_en, - u8 *sourdata, - u8 *targetdata) -{ - if (!(word_en & BIT(0))) { - targetdata[0] =3D sourdata[0]; - targetdata[1] =3D sourdata[1]; - } - if (!(word_en & BIT(1))) { - targetdata[2] =3D sourdata[2]; - targetdata[3] =3D sourdata[3]; - } - if (!(word_en & BIT(2))) { - targetdata[4] =3D sourdata[4]; - targetdata[5] =3D sourdata[5]; - } - if (!(word_en & BIT(3))) { - targetdata[6] =3D sourdata[6]; - targetdata[7] =3D sourdata[7]; - } -} - - u8 Efuse_WordEnableDataWrite(struct adapter *padapter, u16 efuse_addr, diff --git a/drivers/staging/rtl8723bs/include/rtw_efuse.h b/drivers/stagin= g/rtl8723bs/include/rtw_efuse.h index 546f32dbd33a..5f72be256acf 100644 --- a/drivers/staging/rtl8723bs/include/rtw_efuse.h +++ b/drivers/staging/rtl8723bs/include/rtw_efuse.h @@ -97,7 +97,6 @@ u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, = u8 *data, bool bPseudo u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool b= PseudoTest); =20 void Efuse_PowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState); -void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata); u8 Efuse_WordEnableDataWrite(struct adapter *padapter, u16 efuse_addr, u8 = word_en, u8 *data, bool bPseudoTest); =20 u8 EFUSE_Read1Byte(struct adapter *padapter, u16 Address); --=20 2.43.0 From nobody Sun Nov 24 07:47:45 2024 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D77D20BB4E for ; Wed, 6 Nov 2024 18:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918048; cv=none; b=aBtigcH3OF3vXgWo5okTYt69yntGMrPWABMNHSjDxEeAXME7OPah+B65m0FQ10LrKD6dmzNuFB5MSIGT9Kir+yt573f/4qBAM0qGyaDQCz38qTjWGH6gmMYHsvJJDRC98I1SSOMynnaQzqJVENerO1qwfI9pH/BDcOLZwtgQIw4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730918048; c=relaxed/simple; bh=IpCwHFvHWB+SD+q5t4kipYkhT8ePEI9get/CWHBF4bk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zvl5rzcs1ryQePcW+5uQm0VueTS5ePqqN/vpChcfmyWXg8rRQaVxz2PPwB51Kv0ZTp+9790P10rEzWwKj94YZi5ceCjnUonQhYMw2em+V1TbeI+jLQMmtNgtpdMLZ8RFBVOoCxyRlPtIG7LBTdnbLXuteMUJe2J9iIQx2xyo8uI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=INcE3Mus; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="INcE3Mus" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a99cc265e0aso7173666b.3 for ; Wed, 06 Nov 2024 10:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730918044; x=1731522844; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z1eOJY0eG7JqZEoh7Tdg13wcvziWr11zSxZYpyAV4F4=; b=INcE3Muss2ppNzL+/BBWaFjRaUBAmwcuEn96XeY22n+UqLNmkH+VDsMeRErB8ZcVzb 7C3x12OS4V/bnb4jajKIlj9NG3rTxBkTuPwOncNjjnR0hBUZGbpQNSpuBzAkDAUM7Nnu pzm7axo1PpEFu8dbiBqhJRjjgqPSHVxogP88odVirArA6O1dyIrEnKhjuKtqhLM96xCB C9B+hTy4bvjTlzmjeTrWdH9ABYzpIwLKuj595Iru0NPzbMbZ7MIvM4mGdpHAmvRfCqD+ DnxsK44cbAfqX7VM63Q3H2bJQLnpontkRg6PFqDMUETIcubTmmZLWb1GWIBI/k96a1yY gw5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730918044; x=1731522844; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z1eOJY0eG7JqZEoh7Tdg13wcvziWr11zSxZYpyAV4F4=; b=Pb8Th52gQr23m1ZMfe/O/C6uChMgVJ15FiBfAY9wK2CTcknYoA/KX8xXMu4jPHcOjJ Dhap6jK9Yizpj6uNqMGYlA3zdjmEmv3eesPbhyhFtcDFc9aDIenhl1FsuJG8grUcoYyN 9rrR2JnXT4LfOM3cmYW8bb8r6EvUbdtITgrovcR5sfjxEzZUlsdiGVIOPPGyO/nx4WzQ v9UdK+o1aKFZgeanNVDBFggmiMKuyY9358WKsxgHQCI1RHgvge5pd/Vh0enzomE8/Cu8 gOpa4GD2+57RSi8ApDrLZeYXvyO6T6KwCfx+dnzSlJr2w8rJW81tzTS/J4SDHk+jdOoM k5Qg== X-Forwarded-Encrypted: i=1; AJvYcCUmOlkDIduoYy+KPGUXq6U7pVC3pMLasoPVMpYrbpJOy8hA3FlEPmk+e8K7jnPyjjp3IfjBGU3G8sBqdjo=@vger.kernel.org X-Gm-Message-State: AOJu0YwAK5T9Bn31IcLxVM7PeiBaC/w0q2vZGXGJlbWu/ljkDPqzLs3F noHvaf5DT2R/7oB9HtrAUu4gG8f6beC9hw9d5tIICiVa2eY+pa/22+0bfQ== X-Google-Smtp-Source: AGHT+IHUzxOH6GOnntZOQ1br9NTnROwPUrcqBcX4UJSACwGyMDoF2IPXfgk/bCk8lXpR8GaC2HjNtA== X-Received: by 2002:a17:907:9815:b0:a99:e326:53f2 with SMTP id a640c23a62f3a-a9de5f67a62mr3580583566b.28.1730918044153; Wed, 06 Nov 2024 10:34:04 -0800 (PST) Received: from kernel-710.speedport.ip (p54a0712c.dip0.t-ipconnect.de. [84.160.113.44]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb1813a07sm315298966b.190.2024.11.06.10.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 10:34:03 -0800 (PST) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 16/16] staging: rtl8723bs: Remove unused function Efuse_GetCurrentSize Date: Wed, 6 Nov 2024 19:33:45 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" Remove unused function Efuse_GetCurrentSize to shorten code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 25 ------------------- drivers/staging/rtl8723bs/include/rtw_efuse.h | 1 - 2 files changed, 26 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/r= tl8723bs/core/rtw_efuse.c index fcd9ac58b96f..7a74b011dedc 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -80,31 +80,6 @@ u8 PwrState) Hal_EfusePowerSwitch(padapter, bWrite, PwrState); } =20 -/*------------------------------------------------------------------------= ----- - * Function: Efuse_GetCurrentSize - * - * Overview: Get current efuse size!!! - * - * Input: NONE - * - * Output: NONE - * - * Return: NONE - * - * Revised History: - * When Who Remark - * 11/16/2008 MHC Create Version 0. - * - *------------------------------------------------------------------------= ---*/ -u16 -Efuse_GetCurrentSize( - struct adapter *padapter, - u8 efuseType, - bool bPseudoTest) -{ - return Hal_EfuseGetCurrentSize(padapter, efuseType, bPseudoTest); -} - /* 11/16/2008 MH Add description. Get current efuse area enabled word!!. = */ u8 Efuse_CalculateWordCnts(u8 word_en) diff --git a/drivers/staging/rtl8723bs/include/rtw_efuse.h b/drivers/stagin= g/rtl8723bs/include/rtw_efuse.h index 5f72be256acf..d6ea8a4a856f 100644 --- a/drivers/staging/rtl8723bs/include/rtw_efuse.h +++ b/drivers/staging/rtl8723bs/include/rtw_efuse.h @@ -90,7 +90,6 @@ extern u8 fakeBTEfuseInitMap[]; extern u8 fakeBTEfuseModifiedMap[]; /*------------------------Export global variable--------------------------= --*/ =20 -u16 Efuse_GetCurrentSize(struct adapter *padapter, u8 efuseType, bool bPse= udoTest); u8 Efuse_CalculateWordCnts(u8 word_en); void EFUSE_GetEfuseDefinition(struct adapter *padapter, u8 efuseType, u8 t= ype, void *pOut, bool bPseudoTest); u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, u8 *data, bool b= PseudoTest); --=20 2.43.0