Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7860077ybi; Tue, 9 Jul 2019 05:32:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0MV+fO3tb08LKeAgNOs0swa6r9hmqHwAndr7uLNAy6A1bLW9hJ0sduHo/vn1cEId8Snen X-Received: by 2002:a17:902:145:: with SMTP id 63mr32803061plb.55.1562675526142; Tue, 09 Jul 2019 05:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562675526; cv=none; d=google.com; s=arc-20160816; b=NK4eQAW7XbEwxd2xYyZJ9+vGght1NardML5BO7UxUsO5uaVHri3c7YSmowL0bi55hQ oznwziSnny/FZe3lzwmosRR5WI5oZvocEcCx2HeXIhVKufchcfr8JvQTicztDA+qIQZY m8Y5oKw1u/5ZqHlapsVKwTOo1inyDxVty8kOxIFtSx7IQB9IAb1QOJEhNvcraob60Em+ oDjNxDeLdfS62Uu0q4YASrKH4OMSBhOecuEFPNUDV3a6UuyxXAQrfFTZuUTYZGA409+j /naR+x/SxgDk6u6a5jw0Tk2G8RKLRWwwm083kqawFaQBt7RX7BdVKuSp5uVgArgoVQeS 2b4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ruw9sr5LaOJy+RFfxv9kSa06aLehIi1FuKxUjVbSRhQ=; b=NgmSNO71JZ34UyJCBgIdmP4cDPKmElhyUkjgU6k7GoUpM+wS5lApl4F5eucJ+MyGQw CnYa791gKsnazwiHpxbKkVULqZkBDj6idWuu0LMFj/TMkJ5QG/cWoLs81a9sMvWPLilY IDyt6GEHKDOOguaSC35dwc1CeZbrn/6vhvBAIqxNw6nBTNJtpimkOGpPwcZzkh730U4+ m3UQr+IqBRt5PzcbYBmA8rl+sN/BqfGkWv0myTp7xZvuVfXeGZma/7q7f8ClH8R45y81 b1swDr0p87InULts9S9db/Jc53mYQTQcOtRQ8xY1cDbsCy+EEiHdnHmYfOERrttDLRgb jF7A== 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 v16si22824132pfe.39.2019.07.09.05.31.49; Tue, 09 Jul 2019 05:32:06 -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 S1726568AbfGIMbH (ORCPT + 99 others); Tue, 9 Jul 2019 08:31:07 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2246 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725947AbfGIMbG (ORCPT ); Tue, 9 Jul 2019 08:31:06 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 33CBD1F65E6AF96065CC; Tue, 9 Jul 2019 20:31:02 +0800 (CST) Received: from localhost (10.45.141.82) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 9 Jul 2019 20:31:01 +0800 Date: Tue, 9 Jul 2019 13:30:56 +0100 From: Jonathan Cameron To: "Hawa, Hanna" CC: , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 2/4] edac: Add support for Amazon's Annapurna Labs L1 EDAC Message-ID: <20190709133056.00001c57@huawei.com> In-Reply-To: <45e9ac35-9ffc-8f5f-cbdb-f85453227363@amazon.com> References: <1562500658-14717-1-git-send-email-hhhawa@amazon.com> <1562500658-14717-3-git-send-email-hhhawa@amazon.com> <20190709173229.0000135f@huawei.com> <45e9ac35-9ffc-8f5f-cbdb-f85453227363@amazon.com> Organization: Huawei X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.45.141.82] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Jul 2019 14:01:03 +0300 "Hawa, Hanna" wrote: > On 7/9/2019 12:32 PM, Jonathan Cameron wrote: > >> Signed-off-by: Hanna Hawa > > A quick drive by review as I was feeling curious. > > > > Just a couple of trivial queries and observation on the fact it > > might be useful to add a few devm managed functions to cut down > > on edac driver boilerplate. > > > > Thanks, > > > > Jonathan > > > >> +#define ARM_CA57_CPUMERRSR_VALID GENMASK(31, 31) > > For a single bit it's common to use BIT(31) rather than GENMASK to make > > it explicit. > > Will fix. > > > > > > >> + edac_dev->mod_name = dev_name(dev); > > I'd admit I'm not that familiar with edac, but seems odd that a > > module name field would have the dev_name. > > Will fix when I got more inputs. > > > > >> + edac_device_free_ctl_info(edac_dev); > > More a passing observation than a suggestion for this driver, but if there was > > ever a place where it looked like a couple of devm_ allocation functions would > > be useful, this is it;) > > > > edac_dev = devm_device_alloc_ctrl_info(dev, ...) > > ... > > devm_edac_device_add_device(dev, ...) > > I agree. > I can implement the devm_* functions in separate patches as this is not > related to my patches (and not to delay this patches). > Great. Jonathan > > > >