Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp976258rwn; Thu, 15 Sep 2022 08:45:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54BDbdGsnqOExo+U2SHOv4XAYVRbOi8/HOYfNVH72nJ+mwzN6oYtTOz7eQCp8H8YhxCOXH X-Received: by 2002:a05:6a00:198e:b0:541:f85a:6c27 with SMTP id d14-20020a056a00198e00b00541f85a6c27mr48654pfl.81.1663256739935; Thu, 15 Sep 2022 08:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663256739; cv=none; d=google.com; s=arc-20160816; b=DwhhBWx9cYFGbje56X+advgD2PgxmyrdtT+YNxqqfejy6OnjRqVwvOwmuJNL1LIXtl GSfZScFZIceCuAunEIm70iCVQ6K+6j1ZOJBX2gKtx+GOroq3Cq2HicieN5xuhmCkzaQX kpm0VJRgPyrJYzsQdmFn7N83pLBCMKc/O7PVwiPfTDPjxILad25bVwmN810uMystisf0 m89vgP/Kp42B+bT3NPAMOiTXnhNxK1B4SbAA7ClNuqVdGZZ0I4+ryp/M1htKpd9WjMYw xeyG41KWq3Lu2BXKEilMgnD6ctL/H4KEwdD5jJHIWSH4V4fHGy7GWygsjc8GXH/bvSmd JRRw== 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:dkim-signature; bh=2pTa6KbYaQlxyhvMDpgi7LOcksXC70NzV5qu9RgLYZU=; b=g1o2M2QINKt7SwjYTFspHkh1qVNXzzCnaeDtBvuW14pzPcxz49d4MAFRpLEQyPiMCz k423pyb0ZIXS2elSrETDePzswzzyruH9V7DIm8+VW6LlXHP78J1LZYoA4pSZd2QvpX3X 4F/klmlDDH4F4bUC3nX/GClqz34DT7oHZnv0t8iL8fjGiSjm+UYCdy+kpwe12zjrmXO/ LD/yIbgWkObrFZpv9BQDlRVJoxN++1QIjPCiy9G6E2VYUmCJpFCmJQtetYKHypfaWuIN YYFi+KFaZ/disBy0YUDxKgpQ14RZ0R0b0G4qsXkQSGXLXTwn/Z1vw6Akyk+PZKlekoVh EANA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pg8XSUHk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk9-20020a17090b33c900b001faefe1cbd7si21057711pjb.158.2022.09.15.08.45.28; Thu, 15 Sep 2022 08:45:39 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Pg8XSUHk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbiIOPVP (ORCPT + 99 others); Thu, 15 Sep 2022 11:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbiIOPUw (ORCPT ); Thu, 15 Sep 2022 11:20:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4AE89E6B3; Thu, 15 Sep 2022 08:15:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6E331B8214F; Thu, 15 Sep 2022 15:15:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32A07C433D6; Thu, 15 Sep 2022 15:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663254943; bh=yFompk6YAJp9uTcLpz/ti5xq8fMotoctti4Pfkdw/oA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pg8XSUHkcuKcmTv5SKKEYpDChFoLmgBQP8lmWzqcc77Hcr/QxJoSDbDcg3RhgeUTM wo7dl9OTpcfzSDfji3THcfS2c2khYv9mXovxlkoIYl/2Nr/YzaLz2c3bHOMigizy4p MMjAe3C00P8odSF8mg5XMax8F/KAd+OXd5e/VWuKwKWm5Pm5ROWvF6F0WgefPyUc4p mqRYc+3RhEw3lSbBaCvbiCxyC57PbE9Nqi4VZFOeECnRm3eYcSOzz/ZBhqWB2NBh08 3pCziL6yen3V35DsT8+d6QF3O68BpVGwi3BiC12ycs/oarsh5YoxaYhNCdLLGjgKEB /khDJ9krOfU5A== Date: Thu, 15 Sep 2022 10:15:40 -0500 From: Bjorn Andersson To: Souradeep Chowdhury Cc: Andy Gross , Rob Herring , Alex Elder , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Sai Prakash Ranjan , Sibi Sankar , Rajendra Nayak , vkoul@kernel.org Subject: Re: [PATCH V10 2/7] soc: qcom: dcc:Add driver support for Data Capture and Compare unit(DCC) Message-ID: <20220915151540.lpl37jfyqz5kxvhx@builder.lan> References: <897931910a9fe4547513b4dcdabd83db68b7cc68.1663250640.git.quic_schowdhu@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <897931910a9fe4547513b4dcdabd83db68b7cc68.1663250640.git.quic_schowdhu@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Thu, Sep 15, 2022 at 07:48:42PM +0530, Souradeep Chowdhury wrote: > The DCC is a DMA Engine designed to capture and store data > during system crash or software triggers. The DCC operates > based on user inputs via the debugfs interface. The user gives > addresses as inputs and these addresses are stored in the > dcc sram. In case of a system crash or a manual software > trigger by the user through the debugfs interface, > the dcc captures and stores the values at these addresses. > This patch contains the driver which has all the methods > pertaining to the debugfs interface, auxiliary functions to > support all the four fundamental operations of dcc namely > read, write, read/modify/write and loop. The probe method > here instantiates all the resources necessary for dcc to > operate mainly the dedicated dcc sram where it stores the > values. The DCC driver can be used for debugging purposes > without going for a reboot since it can perform software > triggers as well based on user inputs. > > Also added the documentation for debugfs entries and explained > the functionalities of each debugfs file that has been created > for dcc. > > The following is the justification of using debugfs interface > over the other alternatives like sysfs/ioctls > > i) As can be seen from the debugfs attribute descriptions, > some of the debugfs attribute files here contains multiple > arguments which needs to be accepted from the user. This goes > against the design style of sysfs. > > ii) The user input patterns have been made simple and convenient > in this case with the use of debugfs interface as user doesn't > need to shuffle between different files to execute one instruction > as was the case on using other alternatives. > > Signed-off-by: Souradeep Chowdhury Thanks for the respin Souradeep. checkpatch --strict still gives me 5 warnings and 49 checks, please fix 48 of those checks. Please also add a space after "dcc:" in $subject. Regards, Bjorn