Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp335531pxf; Thu, 1 Apr 2021 02:23:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuCxaZFjzJM9jVAPaFARayuS9EKSLwuic+ai0pLUtkRcL/zLZzGcuwpNEVghm6fCWhPFer X-Received: by 2002:aa7:c4cc:: with SMTP id p12mr8492739edr.325.1617268996718; Thu, 01 Apr 2021 02:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617268996; cv=none; d=google.com; s=arc-20160816; b=TVnRqfj9HxmTitqdBsxQNW0NP/khH1Qk8jtQCRa40pvjBvTjuemgm/6U6DCzns+hG3 hB8jg94NxtKfNftPrH3KUDEDE9go91zGGq2hg/3JDbLrNHiz8Vxg+XY7luCzEosGOo2n b4AqykdlZaMR2sSV3npcqMhWIelrOQDe5PYPqmYePaCENg5JXC2CKaS2j2b40GfQB+zy P6965lr4QB7LWMoEJU6BTJQltBjoyWv3JmalotCmAWEmUjYfRqfD5/6/yiQn4y/WwguF GHXchYsHtkpcsd59R5z4bXZ4ajMEbe4BHAdI7EieDtaTPoMk6K0AO521LxGusbZ8rXUa D2Gw== 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=krKEbidIexCSTKSYPOjXQLzmQzprCxcnz2csgl4mNQQ=; b=pBn/wKYiqqoAxuJDEyu8u3roam73eqVkNJ64kHHLQ/IdyagTt6kWkS3qCXqdYIdA4S voWrWke6jmPln+F8jdMPnWo1rI+AVkUFyLzusJfX88SlAWhrm9alap4erEtvUqzadzZw cVjQeFtJGcYnBbjF449co8VQnGwmPhgoCV5rDoWTurgiI3qEaH6175OYaLeV8weUzfcd /y6a/B7s2qLBTd4BXZR5ny73NfpLA31uiUXFNvLd61tqkG1eMe0jzt/kpC9ot41s1FFK hkN20xH5MdtT11AoFF14ZrvudgWEIszfc9XzTL7e3WlCeQdjDadFcM3qoBTLh584ULHl H6RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h8pJeOaD; 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 jl2si3932992ejc.488.2021.04.01.02.22.54; Thu, 01 Apr 2021 02:23:16 -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=h8pJeOaD; 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 S233941AbhDAJWX (ORCPT + 99 others); Thu, 1 Apr 2021 05:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233650AbhDAJVe (ORCPT ); Thu, 1 Apr 2021 05:21:34 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B2BC0613E6 for ; Thu, 1 Apr 2021 02:21:34 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id l18so1141569edc.9 for ; Thu, 01 Apr 2021 02:21:34 -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=krKEbidIexCSTKSYPOjXQLzmQzprCxcnz2csgl4mNQQ=; b=h8pJeOaDPOgrpllaMqdDJUbUNNgnW2bKMwga0EQCfsyZqL+I2t9f/AypDd8vshOGlK Ha1yXldiwN+QV3Etv/gTaTVgqTD58DQZ7U+aFrmCCRefVVoH0paWLb4zhlMVkZ3M/wL5 Ru2CwuGC56Dem+7KuhvrJqWHVN+I554bT82VrQiB+7yGxsXWeLcvGnA+onTP5mh/tJ2J OwYisIQPzgRbFG4b+pP1f3JFPzI7+SdViNsaVm7OupC7qXLHl3tdmZihtw0QMy7bOWGf 19h+7tvYT5KQ6WQo1of9ngZRSflHC4gj6hVjrtAbivdPZt3TXFbSAW7MyV7Tq0vVr9LA xvhg== 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=krKEbidIexCSTKSYPOjXQLzmQzprCxcnz2csgl4mNQQ=; b=f+xUr4GCGy0BpsBz95MgVZxP/zF6NyvIN9kXf3J2cLIrnRiKD9VS7aNSFQH9dYjNHj KsIG6siA6RzaVfrtSXuxVcbCrLX/2ToX/Q2f7AYhvt5IbWyn1JTqnGCfcIr6hLg9i7Z3 AZNrIb7wIjuRN2mzv0qhORgzlXxHHQ5eLv1nDQaXjxoIlnzBs9meQdJYnQzS2wciZOxV zn9z22s90/kFMoVny4nICQHAHowPZ/euiuvuJ616Oh0hX41Flp2YcuGxm4sxFbXjQa08 zCMltHTjckzkJkcI6GHZcgcg+y/rgYRRrRe/mJDx4YklFQnVi32Bo/VNlUroT8tcAkt+ CgyQ== X-Gm-Message-State: AOAM533uhEavQo05uZU2jGp7hf87xaRb1mtr/xug52Ej6jMdI9+kyeZf aFj1Gdj/yaqdIubGPOASyP4= X-Received: by 2002:aa7:cf95:: with SMTP id z21mr8638089edx.76.1617268892835; Thu, 01 Apr 2021 02:21:32 -0700 (PDT) Received: from agape ([5.171.80.247]) by smtp.gmail.com with ESMTPSA id v15sm3151673edw.28.2021.04.01.02.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 02:21:32 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: joe@perches.com, dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 06/49] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_pwrctrl.c Date: Thu, 1 Apr 2021 11:20:36 +0200 Message-Id: <3acca136e0c2748ea9bfe5760a74a5003361771d.1617268327.git.fabioaiuto83@gmail.com> 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 | 44 -------------------- 1 file changed, 44 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index 8bf80e6f4a11..018553984dbf 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -268,29 +268,18 @@ void rtw_set_rpwm(struct adapter *padapter, u8 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)); 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)); return; } } @@ -299,8 +288,6 @@ void rtw_set_rpwm(struct adapter *padapter, u8 pslv) /* 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,12 +369,7 @@ 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)); return; } @@ -701,8 +683,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 +797,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 +845,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 +882,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 +927,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 +972,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 +1008,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