Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9024569rwl; Tue, 10 Jan 2023 23:57:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXt6mlzWzAiEM3P0hZv4n7a5aO5dQtdpwuCknYP95moUKJKd/0C3Q5ZAXXHqIUfEDtksW6ZT X-Received: by 2002:a05:6402:538d:b0:487:2ce6:2b80 with SMTP id ew13-20020a056402538d00b004872ce62b80mr46154510edb.8.1673423874936; Tue, 10 Jan 2023 23:57:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673423874; cv=pass; d=google.com; s=arc-20160816; b=I2NCCdZc353rFWJQA9f0pMl0Puc+9zzgGJVvHV1sB1GoYKGM4+w1i478b1bp4Vp9dW UKReZ+g2dwjC0OHZN88Az+XYuZqVuRjpatkmprQ67ZUSeUNo9CQLAa1MySeDnYlpQpjx NuO/kPAjfHQJn9T3ff0mjFBa/tbLwUw9YVMxXR/2hIMhJkc+finzuAlfQrI0yX1AHb+8 duRrTFxw+aLoxHjHFtFeuyD7uiMaVa9o9qeqJFXkJbCYYuIAgM/nlnjjXPaGZflQgkjn l9bP0ot0nimlPfQGEv/cttUBJsteQwZQPE/mKdV9Sg7rdJto6AC/N66Iy9qHQDIrEFQK Xxlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=vgGGdGFis0D+DHpktD0JWYeIwnQxhZndacWP4HJqdK0=; b=tS5j42fRTJ9gTWnudD41cvPUbRU5pP5PB3zpYjMFBvVKUAZtdFIKtGsKXMxtEF0/8g sn3fgBHipurJ1LeFyhmPODDQoVXceZnb0ut1gt5QYXIW0B3CV83N5NGM2isss3F7K39m ifWYEvWJqh5C8O2PmSQyY/J1XXNLVDeDyL8FpGVyhPuL1q8EHTVsFzsnm9Zub6Y5Kufi TE+2xRipoXGO8A0HByYot0ETS/tHIZo80cAlD9HtofxbVWRSbeXWsLWcMuk8e4aTMPzE EvoAen/WBlrp5GLAF0xH6ISlEX1xjsLyE9uyInKFyyngbAKaw4liosTJ7/EMbXdmdrxG duHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=DNdujzz5; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a056402354700b0047b5ecde3d7si15682193edd.257.2023.01.10.23.57.41; Tue, 10 Jan 2023 23:57:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linux.beauty header.s=zmail header.b=DNdujzz5; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235676AbjAKHY3 (ORCPT + 55 others); Wed, 11 Jan 2023 02:24:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231465AbjAKHY0 (ORCPT ); Wed, 11 Jan 2023 02:24:26 -0500 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AC48E030 for ; Tue, 10 Jan 2023 23:24:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673421862; cv=none; d=zohomail.com; s=zohoarc; b=kAKScusaIEiBKwYSrMJvC+chJD2GAtRauXp/TF1UwGao6ezSgF/7Uo2KQwHj3R/LC9COsANPH3j1fRNVfD26x8qXtMBPTW6SNI4Lx8rvMklv/kaQOJHBd3IwFChY64fjxDN5TxMTJuA2mwaaRicrUFeE55c/uc0DsiOCDFZ7+pQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673421862; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=vgGGdGFis0D+DHpktD0JWYeIwnQxhZndacWP4HJqdK0=; b=UMQ7jE56ChElzeqKm6gaH7nQk4CknyktmfJ9mzl0NrN2uzMG5rdTs4y61Be1LHJh3r75sLVkenvg/uYSUst6I7bno7T2xQ9KBN5w/Zxzs6hNp8vSxlkLIFImJM6qgU4PTFHUHvg/YqQhp0Wcgjle4RSzh3YGsFZY4TRo4R9ZoFg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1673421862; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=vgGGdGFis0D+DHpktD0JWYeIwnQxhZndacWP4HJqdK0=; b=DNdujzz5g1pmIW5G+/Wdu4AU80Amt7Dpkl46O0Ntiluqt8/hggBpXfSrUDNhcuGp M6WTjNcyWDqoOPmhpfcQUIoltrkG3fyepDCOa/tsVuj4yHOXdfdP/4XhTE3ZdpjdzIn vkTv9JWGqA5RCL7bxw8Ji57VYkzYwivBTtIqDe0U= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1673421860992721.8938183625243; Tue, 10 Jan 2023 23:24:20 -0800 (PST) Date: Wed, 11 Jan 2023 15:24:20 +0800 From: Li Chen To: "Greg Kroah-Hartman" Cc: "rafael j. wysocki" , "linux-kernel" Message-ID: <1859fb7306f.116a8646a961741.7679135125847887822@linux.beauty> In-Reply-To: References: <20230111061541.3657154-1-me@linux.beauty> Subject: Re: [PATCH] debugfs: allow to use regmap for print regs MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org Hi Greg, > > void debugfs_print_regs32(struct seq_file *s, const struct debugfs_re= g32 *regs, > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 int nregs, void __iomem *base, char *prefix) > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 int nregs, void __iomem *base, struct regmap *regmap, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 char *prefix) >=20 > This is confusing, please just provide a new function for regmap instead > of trying to overload this function. You can use the same function > inside the debugfs core like this, but never export such a complex set > of parameters to actual users, that's just painful. Thanks for your review, updated in v2. Regards, Li