Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1931914rdb; Mon, 9 Oct 2023 07:27:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETe/E1ijba1sjxAPWNHgrzHlIOIN5P9oi13jeVzgbKPliWWQVr5NqwaPSmBECQQoJQvQN2 X-Received: by 2002:a05:6a00:2da2:b0:68f:e9ce:92a5 with SMTP id fb34-20020a056a002da200b0068fe9ce92a5mr15761070pfb.4.1696861658134; Mon, 09 Oct 2023 07:27:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696861658; cv=pass; d=google.com; s=arc-20160816; b=WIWl1o4vKJifEpQn/+wS5JTV7vYmBEQRiyvj1VnArzuNJnzq7u6C2B9rQFbSSkDbV3 7QPWityyG1ORDhzs1ZpiPOwNzHBTppu4COX6CNZ0mjlvMJKPOGJAc0ieri4pRShv7awO bDHQgjOsgbGKXy5HBFbbapr2HF5RCjJV40VOXd5yVYVGgSQo3Y6sAE3edU8VjHT/HNU8 H6JLO4OoGivcoKCnHo6wrHDUJ96+RFRg0CYNe4MoT94a2lRLCzfAGEqnaY1UNKgzErZ4 T+xnGBUh9w27CiMmrjU9dOUByVu08GGf/yusS/+UhtgaRaGN8SQg61hSYGsGuluAD7Th pcKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=5diiM82jbHUYkOJ48eJks7jgS7GmoFUorUGIGBIyQWk=; fh=BJe/V52+5pNSDNaegN2QF4WH92ht7rg1pYC4iYbmFRs=; b=nnQs2F7vwliA1uIthIFXxiPFCMuogW6KsjACBha7/Rdzf/yS4ODJLKwcsRoa8kcjgB 7mM9iEf5FnLunWSDwLiLW5ajsoodQ6/yIIaS9ARRHQuPCxzdvzPBcgH+71fZkSOYT1a4 x94AXOb7u3yVT4cDma6SFXazDZW2SH76sJTWe+mzBIIC6JYzV2q6w5hOQelnqG43mKJs BIJadUK9FavF3gZh/DwLqL9fMjyyt4zbw8rWiubsRrsrCWDVaPnUztwni2skVAQVHUHw A32toizhQ6Jb5WWX+DRP2eTp/ribtW/nnJWNdF/WarNAC1OoXMmGUwVlstEjFGMsw9Hn PLsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=1unzTRlL; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b75-20020a63344e000000b005578c6a7672si10071032pga.90.2023.10.09.07.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 07:27:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=1unzTRlL; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 963F180784E1; Mon, 9 Oct 2023 07:27:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377005AbjJIO1T (ORCPT + 99 others); Mon, 9 Oct 2023 10:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376783AbjJIO1S (ORCPT ); Mon, 9 Oct 2023 10:27:18 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2041.outbound.protection.outlook.com [40.107.223.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62BB7C5; Mon, 9 Oct 2023 07:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T0dQfuP97LW1DkYPhVugPP4lDc2/mbNu1tCjso9dEhZyzcSBEuYj1G9+6351hZ/3ZZ+WKZFguNZI6t+kYqZoXc2eqwNs5Jhnn4h5c7ybzg6QhaeGHAGPSgOpzh0iaWjpboN67iYKRhnCTSrr3/JZQqqW8XIrX9CDNPMYsDcs3igyCaEMlmRtzhKo0t3jFXPbKHohtvXuOYtLbLzGMvYRxAC63q03UZIeezDP7C39OSqip7eJar69suNp6AKURZFpuzbnCGHivDX/uxOyyYxFdhlMPWi9Bq+RRHI9jmZoOCLajWon4qLsUPSWkgfuuvzx9Gx7bIIVWNIUSw/9pbefqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5diiM82jbHUYkOJ48eJks7jgS7GmoFUorUGIGBIyQWk=; b=ZBIw1jL0rKhRv2FMcx/kxqvlLBZOrVPBoimgt/efV1mJEvT0DFsTJ2r6QoB8eYfDTOjJ82KYiABnGeRcrhQ6uEBDog1wKEmV3sAqNAx05AgDokSDtXFcgr6ncT4qWpom2LVsMPbPGkQskQn436EDK4SQygOKIxbwZHCCAohio+iHRHCVAhzkpCHF0cltYHpEhanm889f8ylMeTBiMtG1ATtid8jym7NVoSa1mxokhK+QY805TJ+auloV2dVLh9syELAKch9qzS+2J/sfsvG0uhQs3gZwNfCkoy3YunmqxRKkz9DRV6SnuyiHpAg6XlQCrPAc8lWsrBcFnrAXPozdew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5diiM82jbHUYkOJ48eJks7jgS7GmoFUorUGIGBIyQWk=; b=1unzTRlLM+lnKJg/l58RzuptE3q0o5a2e+l06s+0gvfCkdS4ucXAGqUXJCjbOEtkJ4VWImzxDFBEHgtxnwLukcgQ4U0wa/o5iegvH7FeCPqnnYBnYkXOOcXuV8fw1MEQGw+I4KInARAyBMCY7EufYvbasqssAflYzWOtaAQRCu0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) by SJ2PR12MB9140.namprd12.prod.outlook.com (2603:10b6:a03:55f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.37; Mon, 9 Oct 2023 14:27:13 +0000 Received: from DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::bc87:8b0e:246d:5d85]) by DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::bc87:8b0e:246d:5d85%7]) with mapi id 15.20.6863.032; Mon, 9 Oct 2023 14:27:12 +0000 Message-ID: <64379000-de39-40c5-90a6-da932c7da602@amd.com> Date: Mon, 9 Oct 2023 09:27:11 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 04/20] cxl/port: Rename @comp_map to @reg_map in struct cxl_register_map Content-Language: en-US To: Jonathan Cameron , Robert Richter Cc: Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , Davidlohr Bueso , Dave Jiang , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas References: <20230927154339.1600738-1-rrichter@amd.com> <20230927154339.1600738-5-rrichter@amd.com> <20231002153434.000073b9@Huawei.com> From: Terry Bowman In-Reply-To: <20231002153434.000073b9@Huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DM6PR21CA0002.namprd21.prod.outlook.com (2603:10b6:5:174::12) To DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB6390:EE_|SJ2PR12MB9140:EE_ X-MS-Office365-Filtering-Correlation-Id: 39c5a314-f107-4ff3-58fa-08dbc8d3d43d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PjpJl6WrKm/2NaAf6LPTgprP9gQItUKsW8i9yAeJfHWN10cdLevzBtdoszcmGmVoF/s+XcDyQQj0KfTHdVb1IzaLq42rgPcOdhYVgUUqw/LU4ANsIZew1ez+chpJ5P2FNjaulJyOEV1aY8rHSFszwnuPzD649jg0HanhShxaJ30+6L0tVWtbjC1/w2L3mOi0YCqDWkMWTv3jqJjyhV1RlGr50rKbj0X8T4KNdqB9ZkLS+EhmZaPgTC18vvbQRnTHG6MdmuV9US06+ZQkdJ4GP2Zu30i2B8t990I3lijgZt3EaQqlSOI7n/NQ095kxrXdNTqbFj0kTbcdK7BtMuIOWW1F/p9hES53rDzje2MTqilBWN7b/FNFnLOjuOj47a7ZXrJwE4xntPhDeOIuViquvrazoOh9K5AlP8kycKG10Y9ILU9kA8ednArnFlFcYHE1JZS3H/zlHcqT0ReIGvl6BAveLROIxKPwIbBqX5y9vL6ucZInsZLRKOJ1xFwq6xO3pjJMOOFA0EGIGeYqr3amxSFIXSa1S3MPl8aTDlLrZUyIQsmhoLTd/1od/dqwxaH6Os/6AdobpSYjLNOSd8P200PedPJ93kcEq8xusCeIxiveQnzipmn4AecQ09MphXL4PPMZG5fEPPeT5739t4r9hw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB6390.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(396003)(136003)(376002)(39860400002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(31686004)(53546011)(6506007)(2616005)(6512007)(31696002)(36756003)(86362001)(38100700002)(26005)(83380400001)(7416002)(2906002)(6486002)(41300700001)(478600001)(316002)(8676002)(4326008)(8936002)(5660300002)(110136005)(66476007)(66556008)(6636002)(54906003)(66946007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M1o4eE1FY2Z3eGZIKzYyRHkyK3lqeXBNVU9HdkpWVGt6WGtobVZsY3VCSEEx?= =?utf-8?B?SDB1OHg2TWsyRVJJM2hJT0RwL005ZjFGOTVzOFlsN0hjMHZJSjdTaUQ0QUlw?= =?utf-8?B?QlRsd25lQlRoaVlOVjFweWZUQ3dKR0s1THJmamI2c3IzUE1ZN2RtY2hXR1dJ?= =?utf-8?B?alJLVlU3Z0IrZm1aZ0Jtc1dhM0VvMWRaV2VVRVNvQjFrS3pXSU9YR3FQMzE4?= =?utf-8?B?Q1BEaFd0czRkU1hzWHBsTlJ6ZFR2eUM1OFBoM2FjS3JMZExJakl4WXhCQkl6?= =?utf-8?B?L213N0hxcitXRkQ5SmZsQi9KZC9mamlHSFJ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?= =?utf-8?Q?BAHtypvOLyc5yHBQjFcMwavN0?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39c5a314-f107-4ff3-58fa-08dbc8d3d43d X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB6390.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2023 14:27:12.8540 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TvGP20rFGeSoc3ICnua2U2GdIZDjQwC3sb74p0V4CL4G/16ddd/i+foECw7ByBDZvrbtq0ACP6F6O/0rnUiu5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9140 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 07:27:35 -0700 (PDT) X-Spam-Level: ** Hi Johnathan, Thanks for the review comments. On 10/2/23 09:34, Jonathan Cameron wrote: > 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. > Yes, we will move the previous patch's variable rename into this patch Regards, Terry > 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; >