Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp787009rwd; Thu, 8 Jun 2023 07:46:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wlSnpHTAa3Vm+f95zoeh8QFZQxrPZyoTkq4z+qx3cS+FYYS7l3LJgD6XK4Wb0VCxtIifW X-Received: by 2002:a05:6a20:6a03:b0:117:19d1:8385 with SMTP id p3-20020a056a206a0300b0011719d18385mr2657672pzk.20.1686235561820; Thu, 08 Jun 2023 07:46:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686235561; cv=pass; d=google.com; s=arc-20160816; b=WMGN6IN9hgyA7FZ+KniV0UGw11nHo5jDtSEqH5HnniTRUiqbNyvO9obe1CPbxI4U+8 mFpkzJ3SODZxDeU4ZmUhmCIBQ84cVSCoIKiel1/D99wEP85AG4c0va0YSYZEJKggUnZX MS7M2eY0IQLzEbtNGRgiHZcMxyc26Fb2PPetCqICCf3R+Y/vWgNimSVl18rNnkRN1Srr NmUHZGd3XtQrVWeeObc87Dibg+C1xCxBdoVlVLroPfGY578CJUsN/KNUumFIrsYZ7uaQ 93QZjdbvSFdtDXiHmbpJ93h4GRcO4ZJiNjrPsG7Yyrwg3D56PmGzVz6Eh+d2hQonouvz uoPg== 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=FWQasI7pqDanYzTdl2LxdfkKDAZhg5DcwVnZ8jotK38=; b=rP9YFWowEeDVnFj4HO8VmNYAJ2RNHz59VhVosBfoqZ1Inu2qSJspuK7tNGiy7J94e1 0Q1Bs7PaHzEMF+tmyIGlEilRsvdaciR3A6TUomxN99guNGE2K06m7rTn3bRi53xdkY1f kdIJjpVLZ/w3uKMYl4ob86uhEHgJI2O0K1lUbNGQyoRgTQO9rk34uk7rPgG2mk//Uw8/ jOdSBoOu9EqlzUj0LJSmJ4/QEcu6VWT2Q9ofGNojWELsY3O7BV2HiTz87y9+gT5rv1sf qNv3wPvBbWxqD218IATwFwiBeUJ2JXww6Ip7bhV/4hZYSA1IRq2K+zx7Xmm1eOq2h152 1kCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=fxVA6h5Q; 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::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j184-20020a638bc1000000b0053efe1af2d0si1140407pge.224.2023.06.08.07.45.48; Thu, 08 Jun 2023 07:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=fxVA6h5Q; 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::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236843AbjFHOhB (ORCPT + 99 others); Thu, 8 Jun 2023 10:37:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235708AbjFHOg7 (ORCPT ); Thu, 8 Jun 2023 10:36:59 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2054.outbound.protection.outlook.com [40.107.212.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FA38E57; Thu, 8 Jun 2023 07:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nusk3HZ6kyBT6fM/M4GE27lSm0C248DN/6U9vwftCexLPQWITmrqZ238ZTbCO2gXoeqLAoiDAjOj6JsQcyCoI2dEHZY5aeaQ95bAXUNZallnh/X354h6Jd3wdG4FokQWg3WKwrvr83QKg7dnGkBG0YG+y6OylNAIGP3NeSIgp/qjJ2j59XFLznzY2My1evbFsE7WVy7jgwxM0ZffGB2V0/Xfd1ZM/sQweu39+0MW05mr1vp1zgrM5lFbdLaSloljpfBCFAJnVM71sm3N12PLKbE4FNPQkRR7Q81cTDsjCyUpiPAEKLUYQvRYMEGE4xQpGsdnJgD5AD2mup/ydaVEog== 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=FWQasI7pqDanYzTdl2LxdfkKDAZhg5DcwVnZ8jotK38=; b=RpbSYpRdKJbnAcgnL7lC6aKkkMMyess9ZPZbRoTwVZaYe+c2UGpjOmyD6IBhaM7t3rnNuC/L0dih5+FUqwSvvISAkA68zXr/Xk12EICVXb2GKLZRlRf1W3wa33sK3fUgjZY4LWjtYRP+7w2MfW/i+AZJ5QunMlOxDMXnyf6iTvL5RAX75ButAUi5alY/wiNIqE/UqHhoxauJi4lQKP5x+NhAqNS+ne+MWphackG/jRgns+QbH+rkVFj3QeJeJh5mQCPDMU0lBwMEuQgNJkfYuciDxLEECyJgzZEpQ9AryaGuJpvDS5+w3yNPsepbng4R3HsqdBabAhzsMLGeRrpAoA== 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=FWQasI7pqDanYzTdl2LxdfkKDAZhg5DcwVnZ8jotK38=; b=fxVA6h5Qfbv5GUftJu2izw07lcXmKF998ilTYOFtv33T8DTUAWNoeCtDWIrxuhYrnuSGEnTUvAqsYPi2sALfHUn4G3Z8nLLIPl8vGTVoWHzX6ldHQkM32a7wxnKxYAAxVD9gvqIew2ghtdTERFNrAnRdhjc1/illZl276vfQsTY= 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 CH3PR12MB8236.namprd12.prod.outlook.com (2603:10b6:610:121::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Thu, 8 Jun 2023 14:36:55 +0000 Received: from DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::f7fc:407f:3bae:bd96]) by DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::f7fc:407f:3bae:bd96%3]) with mapi id 15.20.6455.037; Thu, 8 Jun 2023 14:36:54 +0000 Message-ID: <80c27ea8-4d82-a41d-1ccb-17d8da974faa@amd.com> Date: Thu, 8 Jun 2023 09:36:51 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v5 03/26] cxl: Rename member @dport of struct cxl_dport to @dev Content-Language: en-US To: Dan Williams , alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, bwidawsk@kernel.org, dave.jiang@intel.com, Jonathan.Cameron@huawei.com, linux-cxl@vger.kernel.org Cc: rrichter@amd.com, linux-kernel@vger.kernel.org, bhelgaas@google.com References: <20230607221651.2454764-1-terry.bowman@amd.com> <20230607221651.2454764-4-terry.bowman@amd.com> <64817846759c9_e067a294f5@dwillia2-xfh.jf.intel.com.notmuch> From: Terry Bowman In-Reply-To: <64817846759c9_e067a294f5@dwillia2-xfh.jf.intel.com.notmuch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BN9PR03CA0549.namprd03.prod.outlook.com (2603:10b6:408:138::14) To DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB6390:EE_|CH3PR12MB8236:EE_ X-MS-Office365-Filtering-Correlation-Id: c5e2afec-9f11-4645-14e1-08db682dce4f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nUbgu6xgDGghThJNyXwuLj4glgRV8BpXnOWSAiwcVtUvdFt72Nd1+UPKqExCk2vi7SA5j73nW3mrUNqyKtMcliK6KkFRsi737GpEFQqddxC5vGkBbL5thBA0KA0bgN+csDgmekgCMTJoBgRCcw1yCTG+7A+qiU7ghwLLxiGekMCiXSUY+ExzuSHhHXKjxLPa3UJN78DZivlSHiISjnN/xpdPMcYDT+1WYl6+t31RUUdqBh/YtZmQWC1NTJSBzc9oD4TYm6y5NFjhQgzyyGsNV69AR/WZucUtYa6rPd36vO5Rj+Hhzvd8LYUGbiZKqeWXe/9yA/aobEtZ/6QwgeLux9k1xXgGRgllQvE8kulhAXAkKMKiM1X/19AwuGBmjVhjvzsj3tVHFYViOnfsLfsqk/JeFIV4EDakq10L6Z7OmIaPk0DMyUYr/9gQp89RiAeooGpDsD3zS63b/IhTBt2fn4l9DAY++MPhCvrnNLwtxzPtETKU3YsSA3gt3U+cqHCYkiAWh/9+bWKXCrZsYC3ncfRA1x06T1IK58ywtpVQBb5us3QItmqXhw17O1/TUK3gQbGjEqO3h8iSS3cTlJtyjwBW7ePpmw83Qma+YAtndZqKT2e8ZtSqSJ9zddUuDxCc/SpLUrIE7jGI078YlwlrCg== 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:(13230028)(4636009)(376002)(346002)(396003)(366004)(136003)(39860400002)(451199021)(8676002)(2906002)(316002)(7416002)(5660300002)(66946007)(66476007)(4326008)(66556008)(8936002)(41300700001)(6486002)(6666004)(6506007)(53546011)(6512007)(36756003)(186003)(31686004)(2616005)(83380400001)(478600001)(38100700002)(31696002)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UUxrRVpwd21hUTVtZXBTQWRrbG5INHBwWjlUMDR0TEFKbjlrMTBROXhGS0xs?= =?utf-8?B?eHEwZENRdVpMczVxcDkzTE4yMCtURkZxak4zdnZZY0xscWRiL0JBeUE0NmlK?= =?utf-8?B?WGFvYWM4cStvbThqcWhmcDJoUlBYd28xeXJBdTU1Wk55KzhuWUZ1V1A1dkF4?= =?utf-8?B?WVQ2SnB5YWpkSUJYUktJV0xqd0VzTThJSkFkWEFLWk5MeWZIMC9JcGV6OUlR?= =?utf-8?B?NXFDcFVJakpmZithaXp3TnF3eDJZdXVpcHVuOUl2cDNqdHZZSTY3V3Vibkg5?= =?utf-8?B?Sm9PYnJkRUNMMmVucU9GeEJoSUZiNUVhZnFqVkQ1aElqVjNTYzRiMXQ0MDdv?= =?utf-8?B?bUZKRVdUOExmVms1a0IzcFE0MVFLZnM5c2tzOVplSVdYMG9DK0dXUW1WNzBY?= =?utf-8?B?Ny85MWtrZ1cxR2VKd2h4amRpYkl0UTkvREdJWGNDS1h1MWh1OF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e2afec-9f11-4645-14e1-08db682dce4f X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB6390.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2023 14:36:54.8406 (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: rzucwwDmvJMqvtPnfKFJfnzN6ea4p0QDsiba62ds91ACKa6Dl6Md1R+UVxaXeUSRX9tjfaRhRQgSqTPp901kGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8236 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Dan, On 6/8/23 01:42, Dan Williams wrote: > Terry Bowman wrote: >> From: Robert Richter >> >> Reading code like dport->dport does not immediately suggest that this >> points to the corresponding device structure of the dport. Rename >> struct member @dport to @dev. > > This one I don't agree with. > > This can switch to ->dport_dev if you like. The reason for ->dport was > for symmetry with the ->uport of a 'struct cxl_port'. So if you change > this to ->dport_dev then also make the ->uport_dev change for symmetry. > > Unlike a 'struct cxl_port' a 'struct cxl_dport' is not a device in its > own right which is what I see when I read dport->dev. > Ok, I'll change the structure member names and code to use the following: struct cxl_dport::dev -> struct cxl_dport::dport_dev struct cxl_port::uport -> struct cxl_port::uport_dev Regards, Terry >> >> While at it, also rename @new argument of add_dport() to @dport. This >> better describes the variable as a dport (e.g. new->dport becomes to >> dport->dev). > > There is already other occurrences of dport_dev as an argument, so I > think that works here too.