Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1434045imm; Thu, 4 Oct 2018 13:36:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV625OPYQNHWJqLhaedGF7M1t7RE8wadxXeY7945GazIpWERIHMZqXWmV63vBDe5OBu81Ra+D X-Received: by 2002:a62:1316:: with SMTP id b22-v6mr8503951pfj.37.1538685418236; Thu, 04 Oct 2018 13:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538685418; cv=none; d=google.com; s=arc-20160816; b=gFjDwxLq0dCxrAB+oCnF3sF2o/tGuUuh4ZJ/RnnoD6XZ2FGhtYLbThcwMFQ9XAMD2Y CtJa8GX3H+TIpz4y+Wz2zh5hqHStUnbfmH7q7JDYYkZtXuI6x9MvZhBckcJlHhI49D+a Dcnc2ZjLiQypOXteKAMtSlRapQ5cEf3xzKSH+qM67owxltmzsJ6BvvrTma+lN8ucPKJz aSvqcSlOtbabT43Cj1p9Yy/E3zG+P7UAtEgMUM2MjGBBCqZO8x9qUUJAbSXfE+7Nb+/A TbqgKxfqDF3meQbJFGFiz8SsSKtMWdKy358Q8aeAZxp34NpeMPeg/ejNxfdR9jpa3QBv Bieg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MWeEVCvdQHxeTPakBEyGOiu01GTwguzb5enQsqf40Vc=; b=nXtsyg7c4jxWVnBnWyA9jQPdnLhqWqqhHBtHOtI4GxxSZsEql+QHVtkaexUtJCIOVU 6Cd7XxwplgDS3yWNzI7kyUgcgmqDj9KN1j0wG2HQcMLna0gn6CrmvVPdDx4HC3n7irzM /3fXcMMSqg5o8dJLkoJ46ZWfa9cLskb9WwCd1S5Zg83iQwJNG+HXvyZYZU9005fufMrr /UILhG8OyzBsUgUaZeBqnPGnRVQkXfLqZj8tI9AkuIYTxIi4lX590bK20KZ68vsG0NYr 0MC1BEK+6fj+BL++A58oCCchMqqGhXxq4wX7Zv8R0ao7obQ2OaEHAXWzWTTd50d9MNGU yiyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8-v6si6042620pls.94.2018.10.04.13.36.41; Thu, 04 Oct 2018 13:36:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727787AbeJEDbU (ORCPT + 99 others); Thu, 4 Oct 2018 23:31:20 -0400 Received: from mail.skyhub.de ([5.9.137.197]:59030 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbeJEDbU (ORCPT ); Thu, 4 Oct 2018 23:31:20 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id y9bLJaC3APof; Thu, 4 Oct 2018 22:36:22 +0200 (CEST) Received: from zn.tnic (p200300EC2BCA7500329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:7500:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 44DA31EC032D; Thu, 4 Oct 2018 22:36:22 +0200 (CEST) Date: Thu, 4 Oct 2018 22:36:21 +0200 From: Borislav Petkov To: Manish Narani Cc: robh+dt@kernel.org, mark.rutland@arm.com, michal.simek@xilinx.com, mchehab@kernel.org, sudeep.holla@arm.com, amit.kucheria@linaro.org, leoyang.li@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org Subject: Re: [PATCH v8 03/10] edac: synopsys: Modify the comments in the driver Message-ID: <20181004203621.GE5149@zn.tnic> References: <1538667328-9465-1-git-send-email-manish.narani@xilinx.com> <1538667328-9465-4-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1538667328-9465-4-git-send-email-manish.narani@xilinx.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 04, 2018 at 09:05:21PM +0530, Manish Narani wrote: > There are some comments which can be updated for better readability of > the driver. Update abbreviations to capital letters in the comments. > > Signed-off-by: Manish Narani > --- > drivers/edac/synopsys_edac.c | 98 ++++++++++++++++++++++---------------------- > 1 file changed, 48 insertions(+), 50 deletions(-) From: Manish Narani Date: Thu, 4 Oct 2018 21:05:21 +0530 Subject: [PATCH 2/2] EDAC, synopsys: Correct comments Spellcheck and improve/correct comments. Signed-off-by: Manish Narani Signed-off-by: Borislav Petkov CC: Mauro Carvalho Chehab CC: Michal Simek CC: amit.kucheria@linaro.org CC: devicetree@vger.kernel.org CC: leoyang.li@nxp.com CC: linux-arm-kernel@lists.infradead.org CC: linux-edac CC: mark.rutland@arm.com CC: michal.simek@xilinx.com CC: robh+dt@kernel.org CC: sudeep.holla@arm.com Link: http://lkml.kernel.org/r/1538667328-9465-4-git-send-email-manish.narani@xilinx.com --- drivers/edac/synopsys_edac.c | 104 +++++++++++++++++------------------ 1 file changed, 51 insertions(+), 53 deletions(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index fbaf33540ce3..b4666310a5f6 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -96,12 +96,12 @@ #define SCRUB_MODE_SECDED 0x4 /** - * struct ecc_error_info - ECC error log information - * @row: Row number - * @col: Column number - * @bank: Bank number - * @bitpos: Bit position - * @data: Data causing the error + * struct ecc_error_info - ECC error log information. + * @row: Row number. + * @col: Column number. + * @bank: Bank number. + * @bitpos: Bit position. + * @data: Data causing the error. */ struct ecc_error_info { u32 row; @@ -112,11 +112,11 @@ struct ecc_error_info { }; /** - * struct synps_ecc_status - ECC status information to report - * @ce_cnt: Correctable error count - * @ue_cnt: Uncorrectable error count - * @ceinfo: Correctable error log information - * @ueinfo: Uncorrectable error log information + * struct synps_ecc_status - ECC status information to report. + * @ce_cnt: Correctable error count. + * @ue_cnt: Uncorrectable error count. + * @ceinfo: Correctable error log information. + * @ueinfo: Uncorrectable error log information. */ struct synps_ecc_status { u32 ce_cnt; @@ -126,12 +126,12 @@ struct synps_ecc_status { }; /** - * struct synps_edac_priv - DDR memory controller private instance data - * @baseaddr: Base address of the DDR controller - * @message: Buffer for framing the event specific info - * @stat: ECC status information - * @ce_cnt: Correctable Error count - * @ue_cnt: Uncorrectable Error count + * struct synps_edac_priv - DDR memory controller private instance data. + * @baseaddr: Base address of the DDR controller. + * @message: Buffer for framing the event specific info. + * @stat: ECC status information. + * @ce_cnt: Correctable Error count. + * @ue_cnt: Uncorrectable Error count. */ struct synps_edac_priv { void __iomem *baseaddr; @@ -142,13 +142,11 @@ struct synps_edac_priv { }; /** - * get_error_info - Get the current ecc error info - * @base: Pointer to the base address of the ddr memory controller - * @p: Pointer to the synopsys ecc status structure + * get_error_info - Get the current ECC error info. + * @base: Base address of the DDR memory controller. + * @p: Synopsys ECC status structure. * - * Determines there is any ecc error or not - * - * Return: one if there is no error otherwise returns zero + * Return: one if there is no error otherwise zero. */ static int get_error_info(void __iomem *base, struct synps_ecc_status *p) { @@ -195,11 +193,11 @@ static int get_error_info(void __iomem *base, struct synps_ecc_status *p) } /** - * handle_error - Handle controller error types CE and UE - * @mci: Pointer to the edac memory controller instance - * @p: Pointer to the synopsys ecc status structure + * handle_error - Handle Correctable and Uncorrectable errors. + * @mci: EDAC memory controller instance. + * @p: Synopsys ECC status structure. * - * Handles the controller ECC correctable and uncorrectable error. + * Handles ECC correctable and uncorrectable errors. */ static void handle_error(struct mem_ctl_info *mci, struct synps_ecc_status *p) { @@ -230,10 +228,10 @@ static void handle_error(struct mem_ctl_info *mci, struct synps_ecc_status *p) } /** - * check_errors - Check controller for ECC errors - * @mci: Pointer to the edac memory controller instance + * check_errors - Check controller for ECC errors. + * @mci: EDAC memory controller instance. * - * Used to check and post ECC errors. Called by the polling thread + * Check and post ECC errors. Called by the polling thread. */ static void check_errors(struct mem_ctl_info *mci) { @@ -253,8 +251,8 @@ static void check_errors(struct mem_ctl_info *mci) } /** - * get_dtype - Return the controller memory width - * @base: Pointer to the ddr memory controller base address + * get_dtype - Return the controller memory width. + * @base: DDR memory controller base address. * * Get the EDAC device type width appropriate for the current controller * configuration. @@ -284,12 +282,12 @@ static enum dev_type get_dtype(const void __iomem *base) } /** - * get_ecc_state - Return the controller ECC enable/disable status - * @base: Pointer to the DDR memory controller base address + * get_ecc_state - Return the controller ECC enable/disable status. + * @base: DDR memory controller base address. * - * Get the ECC enable/disable status for the controller. + * Get the ECC enable/disable status of the controller. * - * Return: a ECC status boolean i.e true/false - enabled/disabled. + * Return: true if enabled, otherwise false. */ static bool get_ecc_state(void __iomem *base) { @@ -309,9 +307,9 @@ static bool get_ecc_state(void __iomem *base) } /** - * get_memsize - reads the size of the attached memory device + * get_memsize - Read the size of the attached memory device. * - * Return: the memory size in bytes + * Return: the memory size in bytes. */ static u32 get_memsize(void) { @@ -323,8 +321,8 @@ static u32 get_memsize(void) } /** - * get_mtype - Returns controller memory type - * @base: pointer to the synopsys ecc status structure + * get_mtype - Return the controller memory type. + * @base: Synopsys ECC status structure. * * Get the EDAC memory type appropriate for the current controller * configuration. @@ -347,11 +345,11 @@ static enum mem_type get_mtype(const void __iomem *base) } /** - * init_csrows - Initialize the cs row data - * @mci: Pointer to the edac memory controller instance + * init_csrows - Initialize the csrow data. + * @mci: EDAC memory controller instance. * - * Initializes the chip select rows associated with the EDAC memory - * controller instance + * Initialize the chip select rows associated with the EDAC memory + * controller instance. * * Return: Unconditionally 0. */ @@ -381,11 +379,11 @@ static int init_csrows(struct mem_ctl_info *mci) } /** - * mc_init - Initialize driver instance - * @mci: Pointer to the edac memory controller instance - * @pdev: Pointer to the platform_device struct + * mc_init - Initialize one driver instance. + * @mci: EDAC memory controller instance. + * @pdev: platform device. * - * Performs initialization of the EDAC memory controller instance and + * Perform initialization of the EDAC memory controller instance and * related driver-private data associated with the memory controller the * instance is bound to. * @@ -421,10 +419,10 @@ static int mc_init(struct mem_ctl_info *mci, struct platform_device *pdev) } /** - * mc_probe - Check controller and bind driver - * @pdev: Pointer to the platform_device struct + * mc_probe - Check controller and bind driver. + * @pdev: platform device. * - * Probes a specific controller instance for binding with the driver. + * Probe a specific controller instance for binding with the driver. * * Return: 0 if the controller instance was successfully bound to the * driver; otherwise, < 0 on error. @@ -493,8 +491,8 @@ static int mc_probe(struct platform_device *pdev) } /** - * mc_remove - Unbind driver from controller - * @pdev: Pointer to the platform_device struct + * mc_remove - Unbind driver from controller. + * @pdev: Platform device. * * Return: Unconditionally 0 */ -- 2.19.0.271.gfe8321ec057f -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.