Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1409631rdb; Mon, 2 Oct 2023 08:42:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZs177Aoq6F7ejSo7pBaxRSQ/s75HxgtS6RzOzd11dZ0LoDIywJrUBnqWPdYynnK9suL1O X-Received: by 2002:a05:6a20:8e0a:b0:133:bbe0:312f with SMTP id y10-20020a056a208e0a00b00133bbe0312fmr15159785pzj.50.1696261322353; Mon, 02 Oct 2023 08:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696261322; cv=none; d=google.com; s=arc-20160816; b=OnHq8k1KnYWsJHN1lFEIn2x+qga2aEfiXuBvURpebSLzHxTwaoVMHnUTJyJm1l4u/c Y/btTKpvVghz6m0oRwiYrmA7OcVTBrVYRzJ84sB4XoD3CJUzVJ7zOsvD0PkWoRSUmgHI 7V6TdR1elvOf9twldiPRTvlYGo8zxntbFQ1FzdLRQzdLfyovCO4040Ro9yZaApRT7Spw Jl8d//Wizd/jdhj63YLQYSu1wcnCSlsxESjtYLV2mFaftnqDJWgM8LrODOo2y2pkygF4 /XihWgf0kTXkjZNO+pZVk1DRD4HdUjF5ctyIzrhEtgHiRDQ7s8F+1YdaxNNmKx8qNQOU 448A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=yEMUiwZJp0W8jjQIPEl4xzK1tgGNbDFjnq0NveZZFE8=; fh=6T4zZ8HeN4FNvjm5k4DIT/y7+At3BG9x6FXMDOBhu9c=; b=tcM+LBpIayjF73ZNU4BuS/inpBe4R8K3fH8RdQBHQGurF3BmX/lIH12LvEH7EUiwO+ Z4juLvoVfdP5GMN5x6yWRe1tgiG+/RUzegtClxessgFb9kbhZbJQX7OnM3osXm4a78PE FRSswxQKc3F2fHkKt3ENQLR87HADYm8tRLsr38PxHIBhrGKOmqW9Pi9Zu9BWQYCiXznh Gpa32vrpZGDaYUGdXRmJWAtLmizn7guzbSys4cYCBiCbv3fVjHJmA+Vm3itmIIkKgAqR JgzouB3i/Dr50/b9QZ9sgC4nlCABPvfnXa5kZz7U4ptnUO1QuizqMZWBaU/3mB2sx1/g W4zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id o7-20020a170902d4c700b001c57c952622si27916413plg.446.2023.10.02.08.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 08:42:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CDA82802D3F2; Mon, 2 Oct 2023 07:34:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237710AbjJBOel (ORCPT + 99 others); Mon, 2 Oct 2023 10:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237538AbjJBOek (ORCPT ); Mon, 2 Oct 2023 10:34:40 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CAE5B4; Mon, 2 Oct 2023 07:34:37 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Rzk436LWDz67fjR; Mon, 2 Oct 2023 22:34:27 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 2 Oct 2023 15:34:34 +0100 Date: Mon, 2 Oct 2023 15:34:34 +0100 From: Jonathan Cameron To: Robert Richter CC: Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , "Davidlohr Bueso" , Dave Jiang , , , Bjorn Helgaas , Terry Bowman Subject: Re: [PATCH v11 04/20] cxl/port: Rename @comp_map to @reg_map in struct cxl_register_map Message-ID: <20231002153434.000073b9@Huawei.com> In-Reply-To: <20230927154339.1600738-5-rrichter@amd.com> References: <20230927154339.1600738-1-rrichter@amd.com> <20230927154339.1600738-5-rrichter@amd.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100002.china.huawei.com (7.191.160.241) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 07:34:43 -0700 (PDT) On Wed, 27 Sep 2023 17:43:23 +0200 Robert Richter wrote: > Name the field @reg_map, because @reg_map->host will be used for > mapping operations beyond component registers (i.e. AER registers). > This is valid for all occurrences of @comp_map. Change them all. > > Signed-off-by: Robert Richter Makes sense. Can we pull the one I moaned about in the previous patch into this one? That way the renames are all together. If not, I'm fine with just moaning :) Whichever patch split you go with across this and previous... Reviewed-by: Jonathan Cameron > --- > drivers/cxl/core/port.c | 2 +- > drivers/cxl/cxl.h | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c > index 99df86d72dbc..b993dea61436 100644 > --- a/drivers/cxl/core/port.c > +++ b/drivers/cxl/core/port.c > @@ -712,7 +712,7 @@ static int cxl_port_setup_regs(struct cxl_port *port, > { > if (dev_is_platform(port->uport_dev)) > return 0; > - return cxl_setup_comp_regs(&port->dev, &port->comp_map, > + return cxl_setup_comp_regs(&port->dev, &port->reg_map, > component_reg_phys); > } > > diff --git a/drivers/cxl/cxl.h b/drivers/cxl/cxl.h > index 68abf9944383..3a51b58a66d0 100644 > --- a/drivers/cxl/cxl.h > +++ b/drivers/cxl/cxl.h > @@ -572,7 +572,7 @@ struct cxl_dax_region { > * @regions: cxl_region_ref instances, regions mapped by this port > * @parent_dport: dport that points to this port in the parent > * @decoder_ida: allocator for decoder ids > - * @comp_map: component register capability mappings > + * @reg_map: component and ras register mapping parameters > * @nr_dports: number of entries in @dports > * @hdm_end: track last allocated HDM decoder instance for allocation ordering > * @commit_end: cursor to track highest committed decoder for commit ordering > @@ -592,7 +592,7 @@ struct cxl_port { > struct xarray regions; > struct cxl_dport *parent_dport; > struct ida decoder_ida; > - struct cxl_register_map comp_map; > + struct cxl_register_map reg_map; > int nr_dports; > int hdm_end; > int commit_end;