Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1441361pxf; Fri, 2 Apr 2021 10:31:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsMiMGWUV/eho3smjl0LcJu/apkCCrh4HRb8NRKRWTw2lRwFWcZ8EthMWx8relvuNLtC1P X-Received: by 2002:a05:6e02:13ad:: with SMTP id h13mr11711491ilo.32.1617384698886; Fri, 02 Apr 2021 10:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617384698; cv=none; d=google.com; s=arc-20160816; b=NwSb4u8S46HKXVCKNylsZdSx4W6YtIyhQDGLABJ5YxrmaoDmwi7PkGVUM/8Xa68YUX W1rqPI8+7K6hKfM9GoGcy9Rdhegd15kAL4STBKwKBHfMSwSQ7yveTvwM2O48Pn7tVakp YM4CLJDewMYadky4lQyC8TGjtFsgBuSJa8JR4dtlRbkJUmjQ21CbsVck9jLqyM28Jjs5 bMDBSdskbmOFAJ6X/0V145/ZtHEJIxoasDJkT8xFav6FlfCzVvJgNSTMgMCEOnEFvUnV F3nfM5q/W1bXQ0MB4Oa3waOyzFNhN8xIQ2xUXY1fdu36PzkUj5cSampfaqbqi/xHPExJ ZGEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JiEqs6MSc8Nm4Buf8jFUPSNvcz+vqEUG20tk1qyaE1s=; b=y6zSz3ArlirJkjBrNh2+fHPpGghZxuUQxIYaqNkkEvDOrLQHQNCTQRmLxmdFlp5Ksg a5EwdSXWook3JOA+JL54xc7025LA60Ff5/6lctEispRykkLpKOFeicKjbNVn/P1maAQx 1J4AWgN04uaFxNCmM8Q7JhNDBBFjmFcrOO1vgBRk16RUWHL5NqZVrQ+LgWuidS884LdV kfi5sWuUXN1UzXDoiUyaEHdon3hk5YVLi0xfkgXlchKE8QGkyAgOJRpYbF+m/am4c5lt LVJyYgvIoi5HvZ5PT+GfEaa/4KpW0JSEj+CbI9Q/AuMJ2IKlbDSc5GyktTsZgmiefF9C ALZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s0fmAqFy; 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 w3si10365695iov.55.2021.04.02.10.31.25; Fri, 02 Apr 2021 10:31:38 -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=20161025 header.b=s0fmAqFy; 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 S235786AbhDBRav (ORCPT + 99 others); Fri, 2 Apr 2021 13:30:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235299AbhDBRae (ORCPT ); Fri, 2 Apr 2021 13:30:34 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70C11C06178A for ; Fri, 2 Apr 2021 10:30:31 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id i18so1835871wrm.5 for ; Fri, 02 Apr 2021 10:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JiEqs6MSc8Nm4Buf8jFUPSNvcz+vqEUG20tk1qyaE1s=; b=s0fmAqFyHJVEiQwmL/AVo+F/3dZq/ho4Bsb7ziymW612Nhof8yULjVsdTVkaujEeTa 6rT2jwwoUyALpRlqJUHefkYrjlXr+XY8JZDpN4UHPZJpzWR8rukEbfekS3KuluwKo7Uy DUbmjg/OokVsm4DP5Afs+maEsb/Ky85Yg4UlI0g4mIM2wm56ip/i6BU6rP8ARE46T9yJ iloJ9qffFQ2n/f2FvqHgbNy4e6+bcjOWB6YhxySfSh2GjjWHGqeZ7P/vMjoJsayZ2dOk +6chhfEhC9byGUcPjVHZ39JJjnD6mjiSyNWY61pCOvf/F50pDDMKoHwaLG8BUGUVyahN 2klQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JiEqs6MSc8Nm4Buf8jFUPSNvcz+vqEUG20tk1qyaE1s=; b=CaIjXT+275VbzuH/tmxylVubmf91FHL2eqOGAqecSeHDlwwauxA8Ix/rn/5DcjqmBl uQa9l1Ag/tyGcIyAEyWP516EUn12NHMRCHj75gKZpgjBGmHBt3JkzHEbI5X2/YSa8y1D HMN/Q51ZOVlsaYtEjY1tFjQymCCl417HUaK+vccehNOQ718YPkOMwsmZ+m1Ez9oRfA3/ 90tTAZ79QFLw+YmZA8t5N9Bz9tIumr0kYndc/0gZsNPuHXj3jFeu0UHrkoVqKGUhvLye X/aXrNwZVrQX2Xe29EsGWsCrtj0CiFmfvklqtKaY1P68CoqPFObmz/uDm5ZjX4ioQlOx uGzQ== X-Gm-Message-State: AOAM530/T2+6O9XcF/3XIbLpjZuZQT4bAMHpuhb8YiAQ+oZCdGzH/gZP YoWLy+YuXJ+F1KQcs6unRus= X-Received: by 2002:a5d:67c8:: with SMTP id n8mr16419514wrw.351.1617384630234; Fri, 02 Apr 2021 10:30:30 -0700 (PDT) Received: from agape ([5.171.81.4]) by smtp.gmail.com with ESMTPSA id c9sm14832154wrr.78.2021.04.02.10.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 10:30:29 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH v2 08/30] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_pwrctrl.c Date: Fri, 2 Apr 2021 19:29:50 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove all RT_TRACE logs Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 54 ++------------------ 1 file changed, 4 insertions(+), 50 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index 8bf80e6f4a11..cc1b0d1a5a7b 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -267,40 +267,26 @@ void rtw_set_rpwm(struct adapter *padapter, u8 pslv) DBG_871X("%s: RPWM timeout, force to set RPWM(0x%02X) again!\n", __func__, pslv); } else { if ((pwrpriv->rpwm == pslv) - || ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2))) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_, - ("%s: Already set rpwm[0x%02X], new = 0x%02X!\n", __func__, pwrpriv->rpwm, pslv)); + || ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2))) return; - } + } if ((padapter->bSurpriseRemoved) || !(padapter->hw_init_completed)) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_, - ("%s: SurpriseRemoved(%d) hw_init_completed(%d)\n", - __func__, padapter->bSurpriseRemoved, padapter->hw_init_completed)); - pwrpriv->cpwm = PS_STATE_S4; return; } if (padapter->bDriverStopped) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_, - ("%s: change power state(0x%02X) when DriverStopped\n", __func__, pslv)); - - if (pslv < PS_STATE_S2) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_, - ("%s: Reject to enter PS_STATE(0x%02X) lower than S2 when DriverStopped!!\n", __func__, pslv)); + if (pslv < PS_STATE_S2) return; - } } rpwm = pslv | pwrpriv->tog; /* only when from PS_STATE S0/S1 to S2 and higher needs ACK */ if ((pwrpriv->cpwm < PS_STATE_S2) && (pslv >= PS_STATE_S2)) rpwm |= PS_ACK; - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_, - ("rtw_set_rpwm: rpwm = 0x%02x cpwm = 0x%02x\n", rpwm, pwrpriv->cpwm)); pwrpriv->rpwm = pslv; @@ -382,14 +368,8 @@ void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_a { struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_, - ("%s: PowerMode =%d Smart_PS =%d\n", - __func__, ps_mode, smart_ps)); - - if (ps_mode > PM_Card_Disable) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_err_, ("ps_mode:%d error\n", ps_mode)); + if (ps_mode > PM_Card_Disable) return; - } if (pwrpriv->pwr_mode == ps_mode) if (PS_MODE_ACTIVE == ps_mode) @@ -701,8 +681,6 @@ void cpwm_int_hdl(struct adapter *padapter, struct reportpwrstate_parm *preportp exit: mutex_unlock(&pwrpriv->lock); - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_, - ("cpwm_int_hdl: cpwm = 0x%02x\n", pwrpriv->cpwm)); } static void cpwm_event_callback(struct work_struct *work) @@ -817,10 +795,6 @@ s32 rtw_register_task_alive(struct adapter *padapter, u32 task) register_task_alive(pwrctrl, task); if (pwrctrl->bFwCurrentInPSMode) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_, - ("%s: task = 0x%x cpwm = 0x%02x alives = 0x%08x\n", - __func__, task, pwrctrl->cpwm, pwrctrl->alives)); - if (pwrctrl->cpwm < pslv) { if (pwrctrl->cpwm < PS_STATE_S2) res = _FAIL; @@ -869,10 +843,6 @@ void rtw_unregister_task_alive(struct adapter *padapter, u32 task) unregister_task_alive(pwrctrl, task); if ((pwrctrl->pwr_mode != PS_MODE_ACTIVE) && pwrctrl->bFwCurrentInPSMode) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_, - ("%s: cpwm = 0x%02x alives = 0x%08x\n", - __func__, pwrctrl->cpwm, pwrctrl->alives)); - if (pwrctrl->cpwm > pslv) if ((pslv >= PS_STATE_S2) || (pwrctrl->alives == 0)) rtw_set_rpwm(padapter, pslv); @@ -910,10 +880,6 @@ s32 rtw_register_tx_alive(struct adapter *padapter) register_task_alive(pwrctrl, XMIT_ALIVE); if (pwrctrl->bFwCurrentInPSMode) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_, - ("rtw_register_tx_alive: cpwm = 0x%02x alives = 0x%08x\n", - pwrctrl->cpwm, pwrctrl->alives)); - if (pwrctrl->cpwm < pslv) { if (pwrctrl->cpwm < PS_STATE_S2) res = _FAIL; @@ -959,10 +925,6 @@ s32 rtw_register_cmd_alive(struct adapter *padapter) register_task_alive(pwrctrl, CMD_ALIVE); if (pwrctrl->bFwCurrentInPSMode) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_info_, - ("rtw_register_cmd_alive: cpwm = 0x%02x alives = 0x%08x\n", - pwrctrl->cpwm, pwrctrl->alives)); - if (pwrctrl->cpwm < pslv) { if (pwrctrl->cpwm < PS_STATE_S2) res = _FAIL; @@ -1008,10 +970,6 @@ void rtw_unregister_tx_alive(struct adapter *padapter) unregister_task_alive(pwrctrl, XMIT_ALIVE); if ((pwrctrl->pwr_mode != PS_MODE_ACTIVE) && pwrctrl->bFwCurrentInPSMode) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_notice_, - ("%s: cpwm = 0x%02x alives = 0x%08x\n", - __func__, pwrctrl->cpwm, pwrctrl->alives)); - if (pwrctrl->cpwm > pslv) if ((pslv >= PS_STATE_S2) || (pwrctrl->alives == 0)) rtw_set_rpwm(padapter, pslv); @@ -1048,10 +1006,6 @@ void rtw_unregister_cmd_alive(struct adapter *padapter) unregister_task_alive(pwrctrl, CMD_ALIVE); if ((pwrctrl->pwr_mode != PS_MODE_ACTIVE) && pwrctrl->bFwCurrentInPSMode) { - RT_TRACE(_module_rtl871x_pwrctrl_c_, _drv_info_, - ("%s: cpwm = 0x%02x alives = 0x%08x\n", - __func__, pwrctrl->cpwm, pwrctrl->alives)); - if (pwrctrl->cpwm > pslv) { if ((pslv >= PS_STATE_S2) || (pwrctrl->alives == 0)) rtw_set_rpwm(padapter, pslv); -- 2.20.1