Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2011298rwd; Fri, 2 Jun 2023 03:38:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7A6aR3MPlTM0IDiiKCeU/daPzJGd5Qcxk4BqFe6N+ABCPyhz6pifqpLyE4P44VhFC0jeIT X-Received: by 2002:a05:6a00:330d:b0:643:9ad1:b292 with SMTP id cq13-20020a056a00330d00b006439ad1b292mr8350496pfb.0.1685702297147; Fri, 02 Jun 2023 03:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685702297; cv=none; d=google.com; s=arc-20160816; b=RzVmc6TPUXhZkvPhJMXTjUOpVB4QloYhSdkxQO3Zsh+rJbWePafZldfFAW9JWRsdHu fdXV4RboOGdobt6tFHJrvZyAbRFvrAuwTtaxTRIjQj5TCnb+vP9HrR+MEs8ttG/8c6Vv BMzgLEzk13AUS9NTCuulDBSFpuSD8XnjFVrhRHARW1xMRCFJqtMlucSwzBVY/+46n5fY sRWOlSe1trY97yCODOgdFgbO4QH43AflbStUuz3MdpRrvzoFZGcCU7nRTE6K5eSNdaMU bFixN1JQ7f7bZru9hc/xBV9lHzEXJbp+ktJWeL6cuQgdGO4J7pYp6yKXsBEJ41b5n51Z tM1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZEyhbKmXUGNJKfzYpjwNBf4A3rdhZYvesLcdQX+a8SY=; b=JV3V+apSmPiEXNiP+4Ch+tiwg2nC8uI6S0ncKTouL6U6KIs3GKMm4YLjoVoE70kcOL C972GUtzzLGDvqMCKZ4QA1LNjsEdr96qKs17LjWHZbnCX9mVd3zIJ0pr+yCEg7mWGAtG sqhpC6MXpNPoLxJCTJ+IIMlzOiZWd4wtmufLqj98sYMgi81sUdMRYLiPRa43DPWOClt8 Fc08hlGKwhmefLj4bdrQJzGI7MACINpYOs4anA2uFYJ6w56uYkgYKFQwiuqDilLNPNxD bvXMZ7L3YXnUo4qEaV+Crx/prc49ZLdo4FmqmhOGZDDrrkzK7ZQVdbm3wYJfqDEx0Zjf HkBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 x6-20020a626306000000b00640f04eb325si527968pfb.229.2023.06.02.03.38.04; Fri, 02 Jun 2023 03:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235366AbjFBK2F (ORCPT + 99 others); Fri, 2 Jun 2023 06:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235524AbjFBK1u (ORCPT ); Fri, 2 Jun 2023 06:27:50 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE33B2681 for ; Fri, 2 Jun 2023 03:25:58 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1q51yT-00G368-IK; Fri, 02 Jun 2023 18:25:38 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Jun 2023 18:25:37 +0800 Date: Fri, 2 Jun 2023 18:25:37 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Damian Muszynski Subject: Re: [PATCH] crypto: qat - move dbgfs init to separate file Message-ID: References: <20230526164859.49095-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230526164859.49095-1-giovanni.cabiddu@intel.com> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, May 26, 2023 at 05:48:59PM +0100, Giovanni Cabiddu wrote: > From: Damian Muszynski > > Move initialization of debugfs entries to a separate file. > This simplifies the exclusion of the debugfs logic in the QAT driver > when the kernel is built with CONFIG_DEBUG_FS=n. > In addition, it will allow to consolidate the addition of debugfs > entries to a single location in the code. > > This implementation adds infrastructure to create (and remove) debugfs > entries at two different stages. The first, done when a device is probed, > allows to keep debugfs entries persistent between a transition in device > state (up to down or vice versa). The second, done after the initialization > phase, allows to have debugfs entries that are accessible only when > the device is up. > > In addition, move the creation of debugfs entries for configuration > to the newly created function adf_dbgfs_init() and replace symbolic > permissions with octal permissions when creating the debugfs files. > This is to resolve the following warning reported by checkpatch: > > WARNING: Symbolic permissions 'S_IRUSR' are not preferred. Consider using octal permissions '0400'. > > Signed-off-by: Damian Muszynski > Reviewed-by: Giovanni Cabiddu > Signed-off-by: Giovanni Cabiddu > --- > drivers/crypto/intel/qat/qat_4xxx/adf_drv.c | 12 ++-- > drivers/crypto/intel/qat/qat_c3xxx/adf_drv.c | 12 ++-- > .../crypto/intel/qat/qat_c3xxxvf/adf_drv.c | 12 ++-- > drivers/crypto/intel/qat/qat_c62x/adf_drv.c | 12 ++-- > drivers/crypto/intel/qat/qat_c62xvf/adf_drv.c | 12 ++-- > drivers/crypto/intel/qat/qat_common/Makefile | 4 +- > drivers/crypto/intel/qat/qat_common/adf_cfg.c | 24 +++++-- > drivers/crypto/intel/qat/qat_common/adf_cfg.h | 2 + > .../crypto/intel/qat/qat_common/adf_dbgfs.c | 69 +++++++++++++++++++ > .../crypto/intel/qat/qat_common/adf_dbgfs.h | 29 ++++++++ > .../crypto/intel/qat/qat_common/adf_init.c | 6 ++ > .../crypto/intel/qat/qat_dh895xcc/adf_drv.c | 12 ++-- > .../crypto/intel/qat/qat_dh895xccvf/adf_drv.c | 12 ++-- > 13 files changed, 156 insertions(+), 62 deletions(-) > create mode 100644 drivers/crypto/intel/qat/qat_common/adf_dbgfs.c > create mode 100644 drivers/crypto/intel/qat/qat_common/adf_dbgfs.h Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt