Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp53877lfe; Fri, 15 Apr 2022 19:08:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmlGeeFIONbG57Xze57KPLPA/SeLccRwHh7GVQU5r6i6i7JZi928yTWIOTsg/PP0cdZkWU X-Received: by 2002:a17:90b:4a47:b0:1cb:a359:6a39 with SMTP id lb7-20020a17090b4a4700b001cba3596a39mr1762351pjb.163.1650074925338; Fri, 15 Apr 2022 19:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650074925; cv=none; d=google.com; s=arc-20160816; b=vPI5NYDCj6FfGK9EGdO1/VBqY8P4TmoOjFwkX0eQpOwuHI8RaRPaiTpHWdG7iTD+Oj g56PYBnwUK2N9JllzKOsBxNAU1EHtFhCUWtWNCamMacdbPsKNh2hKhwNn2U6Lfddkf9h SaN1PYSa8h5asyO0nVAWjAiqI16QiY/1l7qWMI7NnjW3SYqt70U0Xxe3U+JnvLMmWHPC jL3QX6nAgKZWzDc/iwzFfYFR7yi+wZlQimbq5JMQ04KT9+miz8AUmXWbiGgq0OSua3xn jAE4qR+vX3x3PLGoNRWxErbw6cBx0T+wZFLQj241B1j1b9sP+NmE6TZWtR8e015e+20s 0Fnw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8DZ317B3QxIkMdTBcq04jrEIjCCQjU2WLa0i1ncE59g=; b=hCyJnLlIGGLsxkSwrhX/B+4yFDGy9a2aHiKBzpBBO7LZwPIpWDYpLvYggRq/VraXLs YiB/ASzfOyQTYwObkXh/i4GtNdInRCE0XUrtswHnNJAfExR3lX86GyerlGaYbTI2aX04 oA1D0BhP0LOp1rgL86dWogHDXjltRcrurLG5dDwMcB0gM5ljk+vMA1E91kNvaiC2IIBF y0McShSJMm3mAKzXM6avdPONLtHBZYTqpoDrKGUEpoLlTJSm4N1Q4ZbBnftWQsXrKTyT nrhvFu6/91xnk+vxonOnazvBorRMWPfZ88fMZU6x9v56nzDX0dpMmGpcLsd1eGnQUqyy HqWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=G8wrsIRN; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cm22-20020a056a00339600b0050569b4b7f5si2902136pfb.162.2022.04.15.19.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:08:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=G8wrsIRN; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 520F23BA6F; Fri, 15 Apr 2022 18:26:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241474AbiDOI3c (ORCPT + 66 others); Fri, 15 Apr 2022 04:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242834AbiDOI3a (ORCPT ); Fri, 15 Apr 2022 04:29:30 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58A44B2474 for ; Fri, 15 Apr 2022 01:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8DZ317B3QxIkMdTBcq04jrEIjCCQjU2WLa0i1ncE59g=; b=G8wrsIRNhK2yZuYB1c6zdhbFgR SybjqIRhGY1WksiS2/JOhe2gZrAUCTWv1ReVIeP7yRXimSuzIiPW+7cnbUTyM1sH3dSHaTSsSMwMD RXaHLUpHix2gviOsjaauNryzShVcZqIHewoGbwJMBKXJyrES1d2VfjyoZ7AE31MPFxP4=; Received: from p57a6f1f9.dip0.t-ipconnect.de ([87.166.241.249] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nfHIB-0002z0-6b; Fri, 15 Apr 2022 10:26:59 +0200 Message-ID: Date: Fri, 15 Apr 2022 10:26:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2] mt76: mt7915: add debugfs knob for RF registers read/write Content-Language: en-US To: Shayne Chen Cc: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Peter Chiu References: <20220415061444.30720-1-shayne.chen@mediatek.com> From: Felix Fietkau In-Reply-To: <20220415061444.30720-1-shayne.chen@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 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