Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp36820lfe; Fri, 15 Apr 2022 18:15:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoAxTzhmdXJeYG0RQognLf5O6LoBM8Taq+V9vb3gepaywY8v1pyaDuL2foxe9WvtVzsbBR X-Received: by 2002:a17:90b:4a02:b0:1c6:c1a1:d65c with SMTP id kk2-20020a17090b4a0200b001c6c1a1d65cmr1584938pjb.97.1650071720789; Fri, 15 Apr 2022 18:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650071720; cv=none; d=google.com; s=arc-20160816; b=rcQYKuUqhl6gR3LxZZY8dntT9qKvlTMYrbiU+bQ3a4y2bZ3M5cyeHdn8s4ny3yhdcX voxEtGyzp2PdNtEzj2zmDBoKrDBl7lR5SQKbA3p1/hO7Oj3sI8Qgx1da7da9bJXdyT6L zhSO5iGvo6zoPXUqFzKj5FbyYR1chQGffcD+vXfdPSmDDq308BlA9j1qY/v4DpGZh/tv B2E6P4Bcf6uHw6QWENUXbeCWKDwg7I1nnnOSOMqcHJt+I6N4zir72BOf/38fZN6F0gE7 TegrMgS7uQP7fB8NNM6EkElT40h4aQXV3ZGv0KNhQpsu6rIcjzU136a57tVbQi9OOnEE w7JA== 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:date:cc:to:from:subject:message-id; bh=ZAbMpJ7hgjsLMuO2C6lgC2v+GWNN5bMKB5oO2/zkHsU=; b=ZjPF/b+KLiNCjXU73xAuO7AYLjrk1fiVTfp3G78O5KfiiSaESyEU5vEFnQIHXK/Q0/ 9LXwTc/NY0TK/HtDH9LB6pp0pmMaY1g4KOiT8adkdwgLbBoNQazertpCnNF0G8NzJsl4 u7OWvytc7FIq/V+jqsfQEj77K/eK/wjDWbu5sLagNFYSOHeR5pkl4wktEgUiXyw5yKEy ONxDb4y7//rRoks5T7K07/mE9I2q2NqvP4SwWr9ctdl7iWhJ1r881LdRWyocalQ1Vslp dBGcFkvTl39y13LFOat2Qmr8Kjt9cXMR0pZ3p9kGVAWMX+YYy7HJPwOEjaOZ4fcfT/x+ WTqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y185-20020a62cec2000000b004fa744877dasi2877718pfg.39.2022.04.15.18.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D40E136655; Fri, 15 Apr 2022 17:52:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243960AbiDOLS2 (ORCPT + 67 others); Fri, 15 Apr 2022 07:18:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241828AbiDOLS0 (ORCPT ); Fri, 15 Apr 2022 07:18:26 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DD2101E6 for ; Fri, 15 Apr 2022 04:15:54 -0700 (PDT) X-UUID: 8dfdb75e29ba459a91564ab4f8383ad0-20220415 X-UUID: 8dfdb75e29ba459a91564ab4f8383ad0-20220415 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 114709593; Fri, 15 Apr 2022 19:15:49 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Fri, 15 Apr 2022 19:15:48 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 Apr 2022 19:15:47 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 15 Apr 2022 19:15:47 +0800 Message-ID: <9188cd3d7463cb8fc65c741bd07de817d0e60f6f.camel@mediatek.com> Subject: Re: [PATCH v2] mt76: mt7915: add debugfs knob for RF registers read/write From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Peter Chiu Date: Fri, 15 Apr 2022 19:15:47 +0800 In-Reply-To: References: <20220415061444.30720-1-shayne.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Fri, 2022-04-15 at 10:26 +0200, Felix Fietkau wrote: > On 15.04.22 08:14, Shayne Chen wrote: > > Add RF registers read/write support for debugging RF issues, which > > should be processed by mcu commands. > > > > Reviewed-by: Ryder Lee > > Signed-off-by: Peter Chiu > > Signed-off-by: Shayne Chen > > What's the required width of rf_sel and rf_ofs? Would both fit > together > in a single u32? If so, you could just use the generic regidx > debugfs > file for both and simply add a rf_regval debugfs file. > > - Felix Hi Felix, FW use the WF sel (antenna 0-3) and offset to locate rf registers. I'll send an update patch to merge them in the generic regidx with wf sel [31:28] and offset [27:0]. Thanks, Shayne