Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2747741lqt; Mon, 22 Apr 2024 23:25:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHEVfCESPUPgiMCJf7AvtJFLRP+hyZ9kEcSFrW8IrE28e2kbVXjCJFbc1hfq7uuU9WG6OmSprhpLECWVMfWRkoUDnJqf6+11G5hibs4Q== X-Google-Smtp-Source: AGHT+IGfjfk+O9evbdz+i3W6yJZ+L1Z1y3Mmgi6kPiWoobLMySLJK7UBHXDBxWrq47ZgRpPgrGCc X-Received: by 2002:a17:903:120b:b0:1e7:8686:c37b with SMTP id l11-20020a170903120b00b001e78686c37bmr17796110plh.22.1713853539118; Mon, 22 Apr 2024 23:25:39 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h2-20020a170902f54200b001e0b2870953si9384334plf.595.2024.04.22.23.25.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 23:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=PtRU205b; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-154548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4C642B23117 for ; Tue, 23 Apr 2024 06:25:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28B02225DD; Tue, 23 Apr 2024 06:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="PtRU205b" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2074.outbound.protection.outlook.com [40.107.236.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7D9520B33 for ; Tue, 23 Apr 2024 06:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.74 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713853526; cv=fail; b=gUkQkXNkunsOWeo+ITrGOyDCE2OKFUncetPSZYGegOCetsYb1hEQ9Oqdsrh1HBmXAY+5V5S3uk2niu/FshC8Rg6jZW5d7Zn5asNNz5NBO4o4Vetfe86LP8mzwwfkLyLJjrqm7p4gB9l3mpj29czN8iyxuRBp6zdA8N9gwvnHkFM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713853526; c=relaxed/simple; bh=k25HpKc4Z/qq84XsdwaO0uzDpXGRpU4r4FlBi9pdYDI=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=XM67FV738CarNOYgM8WU19NBjO7RmfKgQVDlGDN0jEDz0WCKoBpqkO30s+3rAZqw70mmQLSgkPz2FtvZfDPTdZfBg1nOla8tzZ0+7XWfvrOcabU9FacDZI/ntgK9qKWGXYN0nwuGD10e1oYcFqbyMCPr6F2MBC5+uAxvrPmFNOM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=PtRU205b; arc=fail smtp.client-ip=40.107.236.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dhMFPp2WWLZV8gkDiqs3W8gVJ1ANaGTp2ym0FyExKgyrG3pgN0hwYXXcqKnetyCh7WRcTBFwQX4bt+5bpVVsVIwfOaRnaXRWZfZ2PuZXrPppd0qwsyXvq/I2AaIVmJNXcpGXXyz73/B2AUur8h0LQqk57LEJZ9RbdFz3LnuiX+hxe739etFFXyK3F27DZe37to5iQ/3MXxkR+xxCkwjf+bHFmjseAnbeAb7EnlLzwglV2DfXPzH1QzKQ8jexgWVlWjdo5pt5hZjYKdFkR7TgTxsxXDwBJ5kAHQ2ZgoNRSGRRvxhDGT04hjhvmx84pesYgqAkF+nVPvEhYbYuaQsPZA== 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=szjXbmAAeNibh86VHCO5mpIM+I1UnQEqYCJuNl9ppQw=; b=hLutbCClh2h3iOlX8BZzrbPnmGpZOssg3hkpQNw2Ujs1KVJ2YL1fQfm0YibPby9nAL0pWrqak/ta2nxHzBrx27OGaPdEcx6JK+5Fulp2iFwUKMGUt1pbxGO6TghSwRs0XwTtkEAv+/ppmkpqpgcHcccb6GVu+DaX7JIxCffEZNjWY5EIksfgSNCxSvy83ELj3C09xyY2cShZcY3xfnUFWAH+2+jFi9tWMWp7B8xnz5f1E8Adirk9+pWrlsFXSCacEu8cGRKjjIq4dd2l21SrWKkOE/8NCxf6LctAXu8YbeIQdkvT5CoAhHLQDP7w4zES3l5bqK3OfdIIFleRXrAHzw== 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=szjXbmAAeNibh86VHCO5mpIM+I1UnQEqYCJuNl9ppQw=; b=PtRU205b6Sza8qu0p/f1lwNam8d8jkdf1i3jwX2vV/PQpSrJ5srzNLxiuh/DNKkS36jXfRutlJ69+61xX0HACaMUFJ7g3jic1EdO6bAWgu6D2gQfIGLp0+A6OImKIEnck2zSxMtFn9Nwk3Itw3Hz9GjtTSsTFVtEQWvMBUmdgUE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8109.namprd12.prod.outlook.com (2603:10b6:a03:4f5::8) by DS0PR12MB7701.namprd12.prod.outlook.com (2603:10b6:8:133::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 23 Apr 2024 06:25:22 +0000 Received: from SJ2PR12MB8109.namprd12.prod.outlook.com ([fe80::c3fc:3be9:dde7:745f]) by SJ2PR12MB8109.namprd12.prod.outlook.com ([fe80::c3fc:3be9:dde7:745f%7]) with mapi id 15.20.7472.044; Tue, 23 Apr 2024 06:25:21 +0000 Message-ID: <702f0ca6-7edb-4328-92e8-1853ba010910@amd.com> Date: Tue, 23 Apr 2024 08:25:08 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] phy: zynqmp: Store instance instead of type To: Sean Anderson , Laurent Pinchart , linux-phy@lists.infradead.org Cc: Vinod Koul , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kishon Vijay Abraham I References: <20240422185803.3575319-1-sean.anderson@linux.dev> <20240422185803.3575319-2-sean.anderson@linux.dev> Content-Language: en-US From: Michal Simek Autocrypt: addr=michal.simek@amd.com; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4Ay/EMSoGbQouzhC69OQLWNH3rMQbBvrRbiMJbEZwARAQABzSlNaWNoYWwgU2lt ZWsgKEFNRCkgPG1pY2hhbC5zaW1la0BhbWQuY29tPsLBlAQTAQgAPgIbAwULCQgHAgYVCgkI CwIEFgIDAQIeAQIXgBYhBGc1DJv1zO6bU2Q1ajd8fyH+PR+RBQJkK9VOBQkWf4AXAAoJEDd8 fyH+PR+ROzEP/1IFM7J4Y58SKuvdWDddIvc7JXcal5DpUtMdpuV+ZiHSOgBQRqvwH4CVBK7p ktDCWQAoWCg0K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/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1P190CA0005.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::18) To SJ2PR12MB8109.namprd12.prod.outlook.com (2603:10b6:a03:4f5::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8109:EE_|DS0PR12MB7701:EE_ X-MS-Office365-Filtering-Correlation-Id: e5935387-88f9-4f78-2561-08dc635e2709 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?YU1QaDJtMjIrYTBQdHdjZFptN2NqaWl0TmdTV1J5YUNHbVgyU0tDTUEyVXBj?= =?utf-8?B?NWJycVVmRzZDRzFyd05KeTYzRDhuSWRPY3hGYm5DcHZzZW5Jc0JXZnFYSXB4?= =?utf-8?B?OEtYU0NaRVlneHkzUmloSkd2T0dxSk1Ybm5DaWpFNmFzbGNWbzU4SzNmcEh4?= =?utf-8?B?V3huM3cxYVFOaGRmTTN2SmwyQjUyY3diTk9FZ1dpTkRiWDRIOGd0dnpEY2VK?= =?utf-8?B?U2lkV0dER0JITjNwbmk0Nld4SktadjRVV2hxM1ZtRDFzZUNTREI5eVZONUNa?= =?utf-8?B?em53eDlZQW5NOWxTNHRPbUdQcXpaN2ZWeDk4SldtK1U3TVBrUjI0b0FZcm12?= =?utf-8?B?Z2xZd1BLWk1TekJzaWdXZE9lTVZiTlM4L3lnaEpOdGVvbG54dTFTd3g1aXNO?= =?utf-8?B?RFg5cFU5TzhrRThOV1o0NDBJcVZ5cXhOWVk5d0RoUXdYM0lMRnY4TGozSnVU?= =?utf-8?B?Y1NSaFNNN1NLUEpqVmJHcWZVMzUwNVNoKzVqY0xLY0lPSlNITytyL3hMY3ZO?= =?ut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VDAvZWZvaG5Z?= =?utf-8?B?WlZrUnZzNmFSTFBkQW1uY1QyZWlLamN3SFQzNmpGVWJ0WVBYdXNrdFhZdzN0?= =?utf-8?B?QXhKSE5Rd0pwcU1EcDIxWVB5dXdraWRnS2hnUk1kMnFzczEvamFYNjdwQjJL?= =?utf-8?B?N3MvZitkdFhBZlYyVDdyMlhId05CekluT1NMMEhaZkNkTEZTRmlaUVY3ZjZG?= =?utf-8?B?Z1kybUc5WHpZR2VzZFdONjJVOUhPenRQTXFhVkZmNUtIZ2ZMcWQySmEwaU0x?= =?utf-8?B?RC9NTkdCUmN1dWh6ZkJpa2d5V2tOUFFTNzJBM2dBU0FzZDNSNFVlbXJnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR12MB8109.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U1huL0tHYitWeTJUNjI2SUYvMldMeWV0NERTcitIUjFVQjg0QmVyZnJVRHhQ?= =?utf-8?B?QVZCVHg0SUxJRGs2SWtOUnZBYk5namZYT1RVakRYbm4rQk5JT0NYUlpvT2Fu?= =?utf-8?B?L0RsemtnaHU4TllpQlZsS2F5R2hPMWZFUGw3dUZHMkp2a2R3c1JvSTZPRjUz?= =?utf-8?B?WmlXYS9sTEsvck51VEJLY1FCZzNBd2syc0g5Q293RmxUNmt3dHVQQmRvSW8w?= =?utf-8?B?My9KZDlNOWh6V1BJVERRWXJLMDZnM0dkdFUrcGNrNzhEdDExMnZ5eTByMVNI?= =?utf-8?B?Ukx5MG5MZFBLdTR0d3pKeXhmVjFhS1F5NnNqZ1NJa1VWS0R1aTliSUJlMG9m?= =?utf-8?B?alNmWUorNnJrY3cvYUpFcHJiSnhnM0NBYzl2WnA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-Id: e5935387-88f9-4f78-2561-08dc635e2709 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8109.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 06:25:21.7144 (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: K0XgmkF4SG5OZ20SaWrTllPPQ85lvnuEMcq5y6J3h0AI4+Xk+i3VwNKk7t5fL333 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7701 On 4/22/24 20:58, Sean Anderson wrote: > The phy "type" is just the combination of protocol and instance, and is > never used apart from that. Store the instance directly, instead of > converting to a type first. No functional change intended. > > Signed-off-by: Sean Anderson > --- > > drivers/phy/xilinx/phy-zynqmp.c | 107 +++++++------------------------- > 1 file changed, 24 insertions(+), 83 deletions(-) > > diff --git a/drivers/phy/xilinx/phy-zynqmp.c b/drivers/phy/xilinx/phy-zynqmp.c > index f72c5257d712..b507ed4c3053 100644 > --- a/drivers/phy/xilinx/phy-zynqmp.c > +++ b/drivers/phy/xilinx/phy-zynqmp.c > @@ -146,22 +146,6 @@ > /* Total number of controllers */ > #define CONTROLLERS_PER_LANE 5 > > -/* Protocol Type parameters */ > -#define XPSGTR_TYPE_USB0 0 /* USB controller 0 */ > -#define XPSGTR_TYPE_USB1 1 /* USB controller 1 */ > -#define XPSGTR_TYPE_SATA_0 2 /* SATA controller lane 0 */ > -#define XPSGTR_TYPE_SATA_1 3 /* SATA controller lane 1 */ > -#define XPSGTR_TYPE_PCIE_0 4 /* PCIe controller lane 0 */ > -#define XPSGTR_TYPE_PCIE_1 5 /* PCIe controller lane 1 */ > -#define XPSGTR_TYPE_PCIE_2 6 /* PCIe controller lane 2 */ > -#define XPSGTR_TYPE_PCIE_3 7 /* PCIe controller lane 3 */ > -#define XPSGTR_TYPE_DP_0 8 /* Display Port controller lane 0 */ > -#define XPSGTR_TYPE_DP_1 9 /* Display Port controller lane 1 */ > -#define XPSGTR_TYPE_SGMII0 10 /* Ethernet SGMII controller 0 */ > -#define XPSGTR_TYPE_SGMII1 11 /* Ethernet SGMII controller 1 */ > -#define XPSGTR_TYPE_SGMII2 12 /* Ethernet SGMII controller 2 */ > -#define XPSGTR_TYPE_SGMII3 13 /* Ethernet SGMII controller 3 */ > - > /* Timeout values */ > #define TIMEOUT_US 1000 > > @@ -184,7 +168,8 @@ struct xpsgtr_ssc { > /** > * struct xpsgtr_phy - representation of a lane > * @phy: pointer to the kernel PHY device > - * @type: controller which uses this lane > + * @instance: instance of the protocol type (such as the lane within a > + * protocol, or the USB/Ethernet controller) > * @lane: lane number > * @protocol: protocol in which the lane operates > * @skip_phy_init: skip phy_init() if true > @@ -193,7 +178,7 @@ struct xpsgtr_ssc { > */ > struct xpsgtr_phy { > struct phy *phy; > - u8 type; > + u8 instance; > u8 lane; > u8 protocol; > bool skip_phy_init; > @@ -330,8 +315,8 @@ static int xpsgtr_wait_pll_lock(struct phy *phy) > > if (ret == -ETIMEDOUT) > dev_err(gtr_dev->dev, > - "lane %u (type %u, protocol %u): PLL lock timeout\n", > - gtr_phy->lane, gtr_phy->type, gtr_phy->protocol); > + "lane %u (protocol %u, instance %u): PLL lock timeout\n", > + gtr_phy->lane, gtr_phy->protocol, gtr_phy->instance); > > return ret; > } > @@ -643,8 +628,7 @@ static int xpsgtr_phy_power_on(struct phy *phy) > * cumulating waits for both lanes. The user is expected to initialize > * lane 0 last. > */ > - if (gtr_phy->protocol != ICM_PROTOCOL_DP || > - gtr_phy->type == XPSGTR_TYPE_DP_0) > + if (gtr_phy->protocol != ICM_PROTOCOL_DP || !gtr_phy->instance) > ret = xpsgtr_wait_pll_lock(phy); > > return ret; > @@ -674,73 +658,33 @@ static const struct phy_ops xpsgtr_phyops = { > * OF Xlate Support > */ > > -/* Set the lane type and protocol based on the PHY type and instance number. */ > +/* Set the lane protocol and instance based on the PHY type and instance number. */ > static int xpsgtr_set_lane_type(struct xpsgtr_phy *gtr_phy, u8 phy_type, > unsigned int phy_instance) > { > unsigned int num_phy_types; > - const int *phy_types; > > switch (phy_type) { > - case PHY_TYPE_SATA: { > - static const int types[] = { > - XPSGTR_TYPE_SATA_0, > - XPSGTR_TYPE_SATA_1, > - }; > - > - phy_types = types; > - num_phy_types = ARRAY_SIZE(types); > + case PHY_TYPE_SATA: > + num_phy_types = 2; > gtr_phy->protocol = ICM_PROTOCOL_SATA; > break; > - } > - case PHY_TYPE_USB3: { > - static const int types[] = { > - XPSGTR_TYPE_USB0, > - XPSGTR_TYPE_USB1, > - }; > - > - phy_types = types; > - num_phy_types = ARRAY_SIZE(types); > + case PHY_TYPE_USB3: > + num_phy_types = 2; > gtr_phy->protocol = ICM_PROTOCOL_USB; > break; > - } > - case PHY_TYPE_DP: { > - static const int types[] = { > - XPSGTR_TYPE_DP_0, > - XPSGTR_TYPE_DP_1, > - }; > - > - phy_types = types; > - num_phy_types = ARRAY_SIZE(types); > + case PHY_TYPE_DP: > + num_phy_types = 2; > gtr_phy->protocol = ICM_PROTOCOL_DP; > break; > - } > - case PHY_TYPE_PCIE: { > - static const int types[] = { > - XPSGTR_TYPE_PCIE_0, > - XPSGTR_TYPE_PCIE_1, > - XPSGTR_TYPE_PCIE_2, > - XPSGTR_TYPE_PCIE_3, > - }; > - > - phy_types = types; > - num_phy_types = ARRAY_SIZE(types); > + case PHY_TYPE_PCIE: > + num_phy_types = 4; > gtr_phy->protocol = ICM_PROTOCOL_PCIE; > break; > - } > - case PHY_TYPE_SGMII: { > - static const int types[] = { > - XPSGTR_TYPE_SGMII0, > - XPSGTR_TYPE_SGMII1, > - XPSGTR_TYPE_SGMII2, > - XPSGTR_TYPE_SGMII3, > - }; > - > - phy_types = types; > - num_phy_types = ARRAY_SIZE(types); > + case PHY_TYPE_SGMII: > + num_phy_types = 4; > gtr_phy->protocol = ICM_PROTOCOL_SGMII; > break; > - } > default: > return -EINVAL; > } > @@ -748,7 +692,7 @@ static int xpsgtr_set_lane_type(struct xpsgtr_phy *gtr_phy, u8 phy_type, > if (phy_instance >= num_phy_types) > return -EINVAL; > > - gtr_phy->type = phy_types[phy_instance]; > + gtr_phy->instance = phy_instance; > return 0; > } > > @@ -756,14 +700,11 @@ static int xpsgtr_set_lane_type(struct xpsgtr_phy *gtr_phy, u8 phy_type, > * Valid combinations of controllers and lanes (Interconnect Matrix). > */ > static const unsigned int icm_matrix[NUM_LANES][CONTROLLERS_PER_LANE] = { > - { XPSGTR_TYPE_PCIE_0, XPSGTR_TYPE_SATA_0, XPSGTR_TYPE_USB0, > - XPSGTR_TYPE_DP_1, XPSGTR_TYPE_SGMII0 }, > - { XPSGTR_TYPE_PCIE_1, XPSGTR_TYPE_SATA_1, XPSGTR_TYPE_USB0, > - XPSGTR_TYPE_DP_0, XPSGTR_TYPE_SGMII1 }, > - { XPSGTR_TYPE_PCIE_2, XPSGTR_TYPE_SATA_0, XPSGTR_TYPE_USB0, > - XPSGTR_TYPE_DP_1, XPSGTR_TYPE_SGMII2 }, > - { XPSGTR_TYPE_PCIE_3, XPSGTR_TYPE_SATA_1, XPSGTR_TYPE_USB1, > - XPSGTR_TYPE_DP_0, XPSGTR_TYPE_SGMII3 } > + /* PCIe, SATA, USB, DP, SGMII */ > + { 0, 0, 0, 1, 0 }, > + { 1, 1, 0, 0, 1 }, > + { 2, 0, 0, 1, 2 }, > + { 3, 1, 1, 0, 3 }, Do you think that this is more understandable than was before? Thanks, Michal