Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp396175rwd; Tue, 30 May 2023 23:05:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bLX57KgbHfTBPxqPFRSERazVmon1PvJmYU2hd+tPwDfK3VCfIaxmszieau21TilxbfiVm X-Received: by 2002:a92:d1c3:0:b0:33a:ee6b:8959 with SMTP id u3-20020a92d1c3000000b0033aee6b8959mr1709333ilg.5.1685513157391; Tue, 30 May 2023 23:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685513157; cv=none; d=google.com; s=arc-20160816; b=Kwo0Q/X5wL/fK3MJEErb/7XP7Qqb2QsOQwCNdcWP6H2hf4YVN5QZhk1bjxgouiBsVi Bjjn+t9EXm5xUdIF8jP4soRWe3eS1JFDay+Tsc3d4UHeEEnARGqunKTM/Kh62K5t6WSP zT8MKmTXF0p3qj5bArWGe85qImt/riJtu3+8ryTxGpxpsgWUtnTN7rV1td2tnqJTbg7H HLmORWC8Oy+a6M4YgrL1JZfIAkXxt14k9vvaptkSnQUnMbwv+VNFsS+Je6ycrsnDocdI DnML/r/mj/Hqmm9uh2A+KLTAmSUV2ejMUuygUuGuYSfB3OYPAuFoIgDi18lgMuXVAAIP WB8w== 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:subject :from:content-language:references:cc:to:user-agent:mime-version:date :message-id:dkim-signature; bh=q/nKUMUVJvX/6VAG6XyEzpceA6DfLvIhIIjPeVqiK1M=; b=PrNvGIg1BtuQ8iSB5OKBfnbp0ThIoUwNMSY0dWVa1zaC0SbUmZqHojx4JB5h7f2gHR 3TFai+ct8rGWtX9x6eubHydmn2vD9t5lLmDZkq3uKJTBXodAV+K0Dax+qkM5GCntFDs8 DbqZX+7hAxTEK8f3vETr2NJG8EiVpenNIEVlbXpn1t+qAPs/WsdvwX6qY6kFZRyCpWZq tuuN0v2EPz04shOvPEH+xs9odltop8BRa5xjc9Ks5ziRFhYVTIPzDTcpksqFSXIUfREa jgBvAp1uWd9+HZ9ZGtrjRNF92i5uJfTDdf0EXw/Re7mhgvRS46n/l/BqNtTzwBKUOjWP c1Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=RDmXarGv; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170902c3c400b001b06f8ce437si368132plj.70.2023.05.30.23.05.44; Tue, 30 May 2023 23:05:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=RDmXarGv; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232260AbjEaFvP (ORCPT + 64 others); Wed, 31 May 2023 01:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjEaFvO (ORCPT ); Wed, 31 May 2023 01:51:14 -0400 Received: from forward500b.mail.yandex.net (forward500b.mail.yandex.net [178.154.239.144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50A2211C for ; Tue, 30 May 2023 22:51:12 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:1d21:0:640:c9e4:0]) by forward500b.mail.yandex.net (Yandex) with ESMTP id 2C4CA5F0CD; Wed, 31 May 2023 08:51:10 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 7pFZr8dDTqM0-fgJFTTBZ; Wed, 31 May 2023 08:51:09 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1685512269; bh=q/nKUMUVJvX/6VAG6XyEzpceA6DfLvIhIIjPeVqiK1M=; h=Subject:From:In-Reply-To:Cc:Date:References:To:Message-ID; b=RDmXarGvCStcYUaj7AH2YCoTQCu6gdgfYaCIZfpXBFClS4j8/Y+CiB6mEi2u2LSGq sJvfH+G/bo8hTefpdkmK1a4vjq1ZD7NGfmXdibTmzSKmZjMDol+BAektM+0dDFmaws ocNNOecpdKXczMV4xLiuJ7abM2sLVXB6tGKVGbDo= Authentication-Results: mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: Date: Wed, 31 May 2023 08:51:07 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: Ping-Ke Shih , Larry Finger Cc: Kalle Valo , "linux-wireless@vger.kernel.org" , "lvc-project@linuxtesting.org" , Dmitriy Antipov References: <20230530155446.555091-1-dmantipov@yandex.ru> <09191d90-c29d-bdf5-4192-19553f8911fd@yandex.ru> Content-Language: en-US From: Dmitry Antipov Subject: Re: [PATCH] rtlwifi: rtl8188ee: drop RTX_POWER_BEFORE_IQK_A and RTX_POWER_AFTER_IQK_A reads In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/31/23 03:25, Ping-Ke Shih wrote: > Another way is to add a debug message to show them, and then static checker > shouldn't warn this. Also, people can diagnose IQK & LOK results if needed. 1. When CONFIG_RTLWIFI_DEBUG is not set, rtl_dbg() becomes a no-op inline function which doesn't use any of its arguments at all. This may (an will) cause the tool to produce even more warnings. 2. I don't like an idea to add some code just to make some tool happy. 3. In general, is it always (or just sometimes) required to read (some subset of?) BB registers even if we don't interested in their values? Is it explicitly required by the hardware design? Thanks, Dmitry