Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp313742imu; Tue, 15 Jan 2019 22:38:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN6UU5F8naNwa6ojGAGH8Z14Kh7OXjf58ywUKjsPxGEjEmfMEW6gUqXHKMN97Ss18+jFAVIR X-Received: by 2002:a63:4c4e:: with SMTP id m14mr7466704pgl.173.1547620723312; Tue, 15 Jan 2019 22:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547620723; cv=none; d=google.com; s=arc-20160816; b=iVZbO8LrmCNbAOoSH6hhitKvjRGQKWpcBu7qF+c/0MCPddi+o7SE/JPDrvc+LD6XZN F9GjOY5zntjy6YuoGiPgVrL5/Vvmh826XJS64vCP8zIu0Tnd0ozGHr2Zlsi+ZB6IJy66 n2IgWD7hF67RKH3Ou554I83lHsIHk/s48qbbukcu3r6tcEAUUME3o/Bevr0dIl9uLPzm EUEBcOMtBvkrT7SJ/iE36Q5YQKTBdP61qPdZUv6WnyBf9kl7Hy52O7rkYr0Wde9lrYQH FK9A+c3zk3LBXf32FyhYMRpqDuCm58piocYY4iH8t4/tLAL+8E/GhF1GV6c0QaKd3+Zp cWcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:references:reply-to :subject:in-reply-to:cc:to:from; bh=IrxTQHgzl1G2OMtdNzxOWC14o/n044dYRUOqc40bdBg=; b=MdcGCj3K12JqjeQe2N1pK5Ko33bcT+ixaYm/eX2JZBlVYhODaRPbnjRnhDxt2FItzq wP2iKQXzlgOWNyoXM//ZaYodrTc6Y6WmN7MRoEjAH7a+WbxCltptmMu0ZS2PFpqd8LGO oDdA4NqofyJFD34v5WUYmLcPQdp57f1JCLxWrfexorrExoGr48vzYEd4dNMr7C5b/6l9 /lYxaT9IDz8/wy4jEUJ+cEy2EyyGbogMbC+zjZEWvlFGcoo8qLY5gE+404X8GTr6HNkD lwGBz+7YIbyvm40/TlLMjNAzPqvcWsj3Y9oUdqiT1HYuiwB4fEc5r8nYhibEvHQi3N0+ la1Q== 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 v69si5435766pgb.3.2019.01.15.22.38.27; Tue, 15 Jan 2019 22:38:43 -0800 (PST) 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 S2388602AbfAOR7t (ORCPT + 99 others); Tue, 15 Jan 2019 12:59:49 -0500 Received: from mout.gmx.net ([212.227.15.18]:54367 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727667AbfAOR7t (ORCPT ); Tue, 15 Jan 2019 12:59:49 -0500 Received: from corona.crabdance.com ([173.228.106.209]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MGBB1-1gUtzO3VeZ-00F8Wp; Tue, 15 Jan 2019 18:59:26 +0100 Received: by corona.crabdance.com (Postfix, from userid 1001) id 01E3C6E85603; Tue, 15 Jan 2019 09:57:48 -0800 (PST) From: Stefan Schaeckeler To: bp@alien8.de CC: robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, andrew@aj.id.au, mchehab@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-edac@vger.kernel.org, sschaeck@cisco.com In-reply-to: <20190110095049.GB17621@zn.tnic> (message from Borislav Petkov on Thu, 10 Jan 2019 10:50:49 +0100) Subject: Re: [PATCH 1/2] EDAC: Add Aspeed AST2500 EDAC driver Reply-to: schaecsn@gmx.net References: <1545026517-64069-1-git-send-email-schaecsn@gmx.net> <1545026517-64069-2-git-send-email-schaecsn@gmx.net> <20190110095049.GB17621@zn.tnic> Message-Id: <20190115175749.01E3C6E85603@corona.crabdance.com> Date: Tue, 15 Jan 2019 09:57:48 -0800 (PST) X-Provags-ID: V03:K1:EzR5CvvaIGLH0zWOSwVGWmSucprjb3tra4g1OF2Een2KafAqRjg yFqZ849BZBASOjINZxOP/fle2JvDB4Pw96wU0zquP6SYgQxg9B95NfXmxtzomQ3myKJSeEu Tn6RXzTte0iOff+hz4q/U1qGwYQLUSEQx/V6g0SM1yQQWvjv98IJ/weYbWsICTgqwI+pBy/ WbtTSnBLYI30SSq0NoytQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:XBytXecmnfY=:kiKrTDa3DWashyjYe5WhLX Rpzw/HP/kLoc52zb/FNyUv2ZjNF1BTD5GaJXibn/osDAxbBSHU+Mp1RuvYNtnnCnNawyD4+zt U4ehmsQJ7P4w5IPK6TIDEQmXFti9freSPMY4DqZ+LlVCaJkSE6SlyocPZ5uoEpfvuKz9Tk2bB xGnXw+/g/oTgJhVdpePgRyVakggcUw4xQG5JWonq9LouJtUStFp/ghrQ4FVgFEjAI+lsS6thd SZe00rqVOceztKVgbMNTF/aEqNTcUbtPRfL7HyCgu4k7BrXM+KsfXQgF2VuggyJWOl5OAFdIC NhiPzcHhIaypXR5Jq7/D+NdNCJMsairve+J1fKMGVcXiHD0CA4zDJoRyWPvRpFga7/hyC3Q34 f1RX9Y+Hqu+UqV74uZPDzA9yQTXRVtkOvnV/dGhcqxmZ6iuw48sDpTtZCzj2UAcLfdtLhyejr J7+MPC9etjsuA4BqZdrQAE9TriUnXk8q3+o2gK06/IDRM9W1ljGXucTlZguCw9HfY9EEVMBHN /PxQpuDA837gfm6amPJI/MjLKV9Vc+nmotZbbir36RN3hPICJK7T83xugdP/rKFSQeITyAAH1 pcb95zWxivil3PbHVwgX6MmOSRT50vdN9GSGxrz1Htk83x7IFLno+N97FXy6CL5inv2XPzoFS hGFX2xizwjwzs2uZznOIKDea/7Uus0naK9AJ6I9JLm4WGhIi4uZ1hzPHqHyji5imTg1g100wY Til24Bpo8murnGgl5RBfzsgl6wlbAp0QoKPMTajtf/2Q6MrC4uSo8pFe0Eurh0dbG5H2r26f9 gO0dVOinRpPUPLMpK4Xa2FRzEVOwvx3ZvrVDSu4SMnlIuRHWlIgWxrrRLpmXNU2PR2k86xzgc QJhUFQRcyHUpxtYyX5eV7Sjtwgi7loI4kJ11qV7mj17rEhnWHLd88kzR80m+lS Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Boris, Thank you for your feedback. > From: Borislav Petkov > > On Sun, Dec 16, 2018 at 10:01:56PM -0800, Stefan Schaeckeler wrote: > > From: Stefan M Schaeckeler > > > > Add support for the Aspeed AST2500 SoC EDAC driver. > > > > Signed-off-by: Stefan M Schaeckeler > > --- > > MAINTAINERS | 6 + > > arch/arm/boot/dts/aspeed-g5.dtsi | 7 + > > drivers/edac/Kconfig | 7 + > > drivers/edac/Makefile | 1 + > > drivers/edac/aspeed_edac.c | 457 +++++++++++++++++++++++++++++++ > > 5 files changed, 478 insertions(+) > > create mode 100644 drivers/edac/aspeed_edac.c > > I couldn't see anything out of the ordinary - only nitpicks below. [...] > > diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c > > new file mode 100644 > > index 000000000000..d6ed119909eb > > --- /dev/null > > +++ b/drivers/edac/aspeed_edac.c > > @@ -0,0 +1,457 @@ > > +// SPDX-License-Identifier: GPL-2.0+ > > +/* > > + * Copyright 2018 Cisco Systems > > + * > > + * This program is free software; you can redistribute it and/or > > + * modify it under the terms of the GNU General Public License > > + * as published by the Free Software Foundation; either version > > + * 2 of the License, or (at your option) any later version. > > You have the SPDX license identifier - no need for that text. That's interesting. I did a grep over all 16944 GPL licensed files with an SPDX identifier. 785 of them have a license text while 16159 don't. I will remove mine. > > +static int aspeed_edac_regmap_reg_write(void *context, unsigned int reg, > > + unsigned int val) > > All the static functions don't need the "aspeed_edac" prefix. When stripping off aspeed_edac_, some static function names will become quite "bare-bone": aspeed_edac_init(), aspeed_edac_exit(), aspeed_edac_probe(), aspeed_edac_remove(), aspeed_edac_of_match(), aspeed_edac_isr(), aspeed_edac_config_irq(). Does your suggestion also apply to static variables? E.g. aspeed_edac_regmap, aspeed_edac_regmap_config, aspeed_edac_driver? Also, here some variable names would become quite "bare-bone". Stefan