Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp982982pxb; Fri, 15 Apr 2022 17:22:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1hpGItuIuYBoLllkw92ukYYNqV7D7ax53O7EnDna7qKW/pe+kpBQJ91cBRg28pzRt5ctp X-Received: by 2002:a63:5219:0:b0:39d:7212:4b3f with SMTP id g25-20020a635219000000b0039d72124b3fmr1094630pgb.255.1650068536687; Fri, 15 Apr 2022 17:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650068536; cv=none; d=google.com; s=arc-20160816; b=Gpf3fgBUoZNvyJKefDY0D7V50NRN4A/NvhhRx6GUlA5ZCw/GgiDW3TTvFOCsib0Vmj YhwTA/BcUliA7DOeE470yV46Xo+1J0gHIogrApcOuWq/KRNq/h4uvpIS2rIFDgmMc0iP luq52KnJdWyLmcqJU/jTQR1kxYkuQ6hhp1PIvXhTJMgmHZHV06pHVEgFOpvyhkB0PHJ3 8yCX/VjneohzcRuqfeKTTrHUjHT0Yn90iXBMmzCeK4ZNgZiz966svBzsoh1CDtigw1T7 jmygO7zXAPIr8Qy4bhTdO585ipD3Fms882LbD0L4LT6sjBUgrsrY05OETl1ELvh5MlaY 0ySQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature:dkim-filter; bh=I+sRU3JfhZ8//UsOz3R8sRylLTNlyXj8ULn44DkUFAo=; b=tggmsPoa319jvoILtthvja2aGClBNkEANZwdP+6PsG3Ci1Cac/XH2gCuA63XTYfEZr sUo96qYeP0v+NaeBPoI45NNR82jOHqg9qcd5AyBZyh6yNC4i9tvxhL7k1QC9MdW9mzEy 67y2SezmTzJvQA4hxIyGpXsfQ2s/Pg8gIzgQiUkVI5BLX0+FE9yTPFPLAO02UEARP8Ap nWj9Ba9I0il8SLp+Chb6tpIAl339mzRmQzYHp8ZiFTcOEW71EPoBh71kDSp1L16QSoxV VrJojR5tdyaEbjlFRG9obBCI6v2weZqfsOyIWGspJXRr/1jfSx68J09aeYuL+IRyoHDi VNnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=i9XqPgPy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id hg20-20020a17090b301400b001c72275b573si5175126pjb.173.2022.04.15.17.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:22:16 -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; dkim=pass header.i=@candelatech.com header.s=default header.b=i9XqPgPy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6ADC5D4C9C; Fri, 15 Apr 2022 17:20:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346541AbiDONEs (ORCPT + 67 others); Fri, 15 Apr 2022 09:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354067AbiDONEg (ORCPT ); Fri, 15 Apr 2022 09:04:36 -0400 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FDBF9A9AA for ; Fri, 15 Apr 2022 06:01:21 -0700 (PDT) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.51.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 24E0F2A007C; Fri, 15 Apr 2022 13:01:19 +0000 (UTC) Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 356B5200091; Fri, 15 Apr 2022 13:01:18 +0000 (UTC) Received: from [192.168.1.115] (unknown [98.97.67.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id F371F13C2B0; Fri, 15 Apr 2022 06:01:16 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com F371F13C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1650027677; bh=97Pwh5Wb0Tmj32eBIlqicePDh2T1qVGNCP+b9k8pu8o=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=i9XqPgPykla7e07qmPJH4NqMkvTPRO1s1N1B/zT+oUYbKdic7E/2Vraaf+K26Sx16 clgls7796m4+grwyFNIQiwdS1ZZgJyOyFWSlkhc0OamIe3tTP99uw+h1MUygmX8sH3 HJUJNs4W8oePYLqGLwnG0aq+OyJcdujQEHjBPAlM= Subject: Re: [PATCH v2] mt76: mt7915: add debugfs knob for RF registers read/write To: Shayne Chen , Felix Fietkau Cc: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Peter Chiu References: <20220415061444.30720-1-shayne.chen@mediatek.com> <9188cd3d7463cb8fc65c741bd07de817d0e60f6f.camel@mediatek.com> From: Ben Greear Organization: Candela Technologies Message-ID: <1cb3d71f-5537-a4ab-8711-62ecd4b84c43@candelatech.com> Date: Fri, 15 Apr 2022 06:01:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <9188cd3d7463cb8fc65c741bd07de817d0e60f6f.camel@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit X-MDID: 1650027679-N_yYVltTBvWx X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4/15/22 4:15 AM, Shayne Chen wrote: > 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 Hello, Can you document the registers, or is this only for internal mediatek use? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com