Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2620752pxb; Sun, 17 Oct 2021 20:44:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh21qOBsd4x0RF/6JQ4fMj5gki7QkNfZXD5z75T1MQo6W08l1z+Y9DgjRw/AyktygQvNCq X-Received: by 2002:a63:68c5:: with SMTP id d188mr15962424pgc.37.1634528679363; Sun, 17 Oct 2021 20:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528679; cv=none; d=google.com; s=arc-20160816; b=XyYr2h6b7C1AHUVCGx/OFXhnyXbADSvLqYMAnmC6jhMAhnmZq/W+SFs8WCjAC6EBYT 0vF84wiiqfq2f5asJ0NH+FAZI4/9Xa63nnmQrP44UxOXZj493iFpHUp3+i8T7qY5IEhP oXuJUhG9M/lfnr4rC8PZkPhbYbA/cVHDseQBbDNbacY8KIhw5l1ZxeTUnEC4RKtwuhbd Yb1JBefjifhEwDGGgP2uB26LK6J6TT9VJ8Vh2LnhWg3JUm4ufb7F14yVd0iSmnqH+QFq AEsp/zeOw9Wu1YbsC0tzapnL5s/lX7ZfM//6gFgB4wpycL7kLHDRQGJTJEICu7Gsg2TW Lc7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fcVWJXrW45Et+2LnPbZKeMYi/maZWSV+sabjN0AySK0=; b=m8r9AdGHAiUHvx96g9J180Uf0gYkPfovYvmIuoZriHt8DtFC+qOUcJrjl9vlqovwsr OEBYhojPru6mFqL9CDleas/YNttqFJgdNP5FzVwew5/RNmZIFof2TufQVtY5uaqtXRYB LzkWL+7phlYSZZKcKXT+jct1Ai79xb1XdFZCtB9JQqOr/07B7AdbE5ooTdsZoi3ItVHa gpaBFFasUQRoZYXei+IY2O0WTFYcwYm+Foi2B28qOpuT7cMdu8kP6o79cq74t2hfawkb BzTd1GBNX/tn30SEpsNgU91Be5Wh1IML4DphXbP6+q07NYE2DeG8hfGC7oFs9HQ3nkmK L/+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LClOC1C7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si7711015pfv.321.2021.10.17.20.44.27; Sun, 17 Oct 2021 20:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LClOC1C7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245502AbhJQLz0 (ORCPT + 98 others); Sun, 17 Oct 2021 07:55:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236245AbhJQLzZ (ORCPT ); Sun, 17 Oct 2021 07:55:25 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00D7C061765 for ; Sun, 17 Oct 2021 04:53:15 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id g39so2105784wmp.3 for ; Sun, 17 Oct 2021 04:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=fcVWJXrW45Et+2LnPbZKeMYi/maZWSV+sabjN0AySK0=; b=LClOC1C7tS7xUCv/rixOnhmQXoj5bE7N5xMo1pKGfyLl9MsyKbCEXwPaO3efjTZkMO nzoMAa2gSlk/+KM4J+X1kleWU9KUfU+KbpRPWPPCtg4KMfGBd1GmkvmEtS2Ncxb+yQ3H /6zIQWTWkrdLMxFYcbGps+1NkNcZZVdXG26hjy/Q9hC1PffBluIJ7thRKMhahPvZ5c6H 98EJQBliZ/7mlDRrzuHOzPY3T8PHi5/BPOg5x27frxa3DexDtLsKe9AOl+f3YAMxdSHi 64JbHlpDwgfTF9QYq2GEspKf9t3ZecGvQOH2Pu51Ey7536TiwQsfu19T3l54Mg98hilG CZ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=fcVWJXrW45Et+2LnPbZKeMYi/maZWSV+sabjN0AySK0=; b=yATr/Bvq1BMj4N2ItFwc9ZoBX9dgXi0fWLS9L0PMhcJaBn5T551J6fjMuRQF5A3sCv v4RlkY8yUXfNUr09kEFGon2AiXJjbf5kQ0ftaqa9bunmu6j59O+ltqr5SrywJago1wzE 5Mj5TYinFxmB4EGMPCjqfQgDaqoMXvXZZ++QAVjFyrtqHTe0+WfkW1xsZoTIPa6Vjlsm prepx76PzJGbCRT8UQ8xUY800HA+KHMILRTBLLsn92po+gziAss+C57mlhmNW3Lq/h/a bxqgjWItIfPVOv30/rDF45VcVJKWRGKUG651hJjyf2jqqNx75e3Doax0JPBLZEvfNkPQ fIFA== X-Gm-Message-State: AOAM5318Aet+gEGiCoRIOoyl0bwhDYVKrohX9aff5iSc4lA1T97H7eeG R52901YPrONDqSHWLu65/Uk= X-Received: by 2002:a7b:c350:: with SMTP id l16mr37279766wmj.151.1634471594508; Sun, 17 Oct 2021 04:53:14 -0700 (PDT) Received: from ?IPV6:2a02:8108:96c0:3b88::d7f0? ([2a02:8108:96c0:3b88::d7f0]) by smtp.gmail.com with ESMTPSA id q12sm6076354wrp.13.2021.10.17.04.53.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Oct 2021 04:53:14 -0700 (PDT) Message-ID: <5909156a-3942-f6a8-9742-1b5898405fbb@gmail.com> Date: Sun, 17 Oct 2021 13:53:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 5/8] staging: r8188eu: PHY_SetRFPathSwitch_8188E is not used Content-Language: en-US To: Martin Kaiser , Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20211016113008.27549-1-martin@kaiser.cx> <20211016113008.27549-6-martin@kaiser.cx> From: Michael Straube In-Reply-To: <20211016113008.27549-6-martin@kaiser.cx> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/16/21 13:30, Martin Kaiser wrote: > Remove the PHY_SetRFPathSwitch_8188E function which is not used. > > It was the only caller of phy_setrfpathswitch_8188e, that function > can be removed as well. > > Signed-off-by: Martin Kaiser > --- > drivers/staging/r8188eu/hal/HalPhyRf_8188e.c | 38 ------------------- > .../staging/r8188eu/include/Hal8188EPhyCfg.h | 3 -- > 2 files changed, 41 deletions(-) > > diff --git a/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c b/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c > index f01ee3cd8795..79f407c280be 100644 > --- a/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c > +++ b/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c > @@ -1189,41 +1189,3 @@ void PHY_LCCalibrate_8188E(struct adapter *adapt) > phy_LCCalibrate_8188E(adapt, false); > } > } > - > -static void phy_setrfpathswitch_8188e(struct adapter *adapt, bool main, bool is2t) > -{ > - struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt); > - struct odm_dm_struct *dm_odm = &pHalData->odmpriv; > - > - if (!adapt->hw_init_completed) { > - u8 u1btmp; > - u1btmp = ODM_Read1Byte(dm_odm, REG_LEDCFG2) | BIT(7); > - ODM_Write1Byte(dm_odm, REG_LEDCFG2, u1btmp); > - ODM_SetBBReg(dm_odm, rFPGA0_XAB_RFParameter, BIT(13), 0x01); > - } > - > - if (is2t) { /* 92C */ > - if (main) > - ODM_SetBBReg(dm_odm, rFPGA0_XB_RFInterfaceOE, BIT(5) | BIT(6), 0x1); /* 92C_Path_A */ > - else > - ODM_SetBBReg(dm_odm, rFPGA0_XB_RFInterfaceOE, BIT(5) | BIT(6), 0x2); /* BT */ > - } else { /* 88C */ > - if (main) > - ODM_SetBBReg(dm_odm, rFPGA0_XA_RFInterfaceOE, BIT(8) | BIT(9), 0x2); /* Main */ > - else > - ODM_SetBBReg(dm_odm, rFPGA0_XA_RFInterfaceOE, BIT(8) | BIT(9), 0x1); /* Aux */ > - } > -} > - > -void PHY_SetRFPathSwitch_8188E(struct adapter *adapt, bool main) > -{ > - struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt); > - struct odm_dm_struct *dm_odm = &pHalData->odmpriv; > - > - if (dm_odm->RFType == ODM_2T2R) { > - phy_setrfpathswitch_8188e(adapt, main, true); > - } else { > - /* For 88C 1T1R */ > - phy_setrfpathswitch_8188e(adapt, main, false); > - } > -} > diff --git a/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h b/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h > index 084bccc5dcb9..feae0b32cac6 100644 > --- a/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h > +++ b/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h > @@ -195,9 +195,6 @@ void PHY_SetBWMode8188E(struct adapter *adapter, > /* channel switch related funciton */ > void PHY_SwChnl8188E(struct adapter *adapter, u8 channel); > > -/* BB/MAC/RF other monitor API */ > -void PHY_SetRFPathSwitch_8188E(struct adapter *adapter, bool main); > - > void storePwrIndexDiffRateOffset(struct adapter *adapter, u32 regaddr, > u32 mask, u32 data); > /*--------------------------Exported Function prototype---------------------*/ > Acked-by: Michael Straube