Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5280775rwd; Mon, 5 Jun 2023 00:53:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7N6WT4F79TvYxWXhcYFTMr96G5a2nEcloDqXqK5f08mtHAmB7OkCRkH+HdZvNyHDeugrgS X-Received: by 2002:a05:6808:2804:b0:398:5929:fab2 with SMTP id et4-20020a056808280400b003985929fab2mr7394191oib.14.1685951603328; Mon, 05 Jun 2023 00:53:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685951603; cv=pass; d=google.com; s=arc-20160816; b=u8ajzv657I5wy+MYg/B/lFZeJwxJj/b3Qhf2NUvcksz5UqDcrbmmZLY6uoXaHFXRf8 67XDjzOWhLZ/oK2q/+5Ce1ixafhHKWQyhPqJlNr6tU11+gromXLLSSsT787/7f3ge5gT W3hIu8qR6rn16N9igXCr7Af/jXt3owC+8h+COWg+juRumFKMywrdjqsm7/0q7p61T4gV NWp3qBGajgFWioY7Ue5PBComyQuPU7H2U9w3qm/pHkbsT4U4nVayVBEpeehvfesz4N1G 9JMW7nunmCOPVab6rNXtT8U6xjYOg6PwMD1vJW2DkymagIb6c9SWT/TPUtIg7cMEA9lX x7Og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3bEqJH+KOLwGoBO2BzSwDUe9I4SXFv5QJHB8b1G3LP0=; b=m/0D6XpYVIjlQ69af1V9fwomCZ39F6EOZhojbg9TGWiQ7fY1dqtroebMGVpeQGyOLb nlqGHvLPrnkVGyBQ5rUS0qdWxcrxIdGRxuUbo0ajp+OI9kEfrB8uTgcj2f28YbgHhGOh t/VTFPBxniBxrCt6Da0OCdWPAJ8Ma82B9u4igGRiwOoG9am5toVymhUt49b8oNxHyT2W z8KYT2RONxdYZ0F7sE4zxjsKCT/jsTKFN8eBR8LH1V7FHBUpjiz9fVtH8lfgETopBg4F fCxRSPIRAZf1gnUVkvfXptJxviEdS1bdTjQ2ll7hQd//kSZVBxScRXy3nqSI0X6dZEEJ Tm7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=whQjG4Bq; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a17090aea0900b002465d98f18csi6748630pjy.170.2023.06.05.00.53.11; Mon, 05 Jun 2023 00:53:23 -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=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=whQjG4Bq; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230266AbjFEHif (ORCPT + 99 others); Mon, 5 Jun 2023 03:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230262AbjFEHic (ORCPT ); Mon, 5 Jun 2023 03:38:32 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFF0CBD; Mon, 5 Jun 2023 00:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YkSWEK5pWTb+O1Y8UarAMxLSPuYdPncpBomjI/Qcl4s7pAytEfQNCLqkdVFNuv7rWvKQqDTrmoHL9zxMXQREmL5XO+mTXBh20NjUleWgG5BmxvIocUDLV6vllBcBB7IYU+1a/N/Ggo22ci37457jXKF74na9zl09RQZLVjgZLK1cNZ0JrSoqCCpj2V4o1EVGuytFzp5Ly1YpmXIK1D9W51+fxD5padthG3CRp6M8lXwWS+2IHZCaZf3KQxTtHiYGFUa7UJkCagTayyozY8BYwDQT9MqLgXB+Z9RpYCpbSA5JKnzo+TZ3fO7CgrdF/7fu7sX+3d6XWgrUNAKpxdlC6A== 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=3bEqJH+KOLwGoBO2BzSwDUe9I4SXFv5QJHB8b1G3LP0=; b=b2ziI/l0x0+mnwU8xYfYhzko7MbKmCHJcVflxOIuy/wSKCQBA5wC9zXenSk6mxDKLEJBtvH7+GIPbj0f39uq0jBN+Fb4WaGbKKGJ6VZtKxIC4O0E1ninNC/JR62X+GwDsLhqG3qeYejXDsrqpxOIw+8S7iLVdtQsJTHVMSW3zIw1pGC09eaRnpTaKQqUC7w6uvZ6MAm9mtji8b7pMvWwNCBFt6JWKQ0ecNYrMsunaV8EWn5YXxvCK8Io84dnV6AImEXEp9Sy9STtHWGyKbJjQcJg7v/+BDOeuz5P6tSGjP3IqAW2Jh314q1ReQVPAD3dJO4oL460J3l26IRhr1/+7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3bEqJH+KOLwGoBO2BzSwDUe9I4SXFv5QJHB8b1G3LP0=; b=whQjG4BqHawmcWsnYwF7r/xL+goErQg4RkSaP83rWFUX6EgXpTr3EOk4cVWJ2u1+v6H8KrRJIp/+pfhopCWzevSioF7olfJOlODXtU86qOMjP2Fi7KcKsxckscPCYlY41Z1Vw0daaghsEW8zfnU+RZ60iXTn+UEiIJKdp0m/ntA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by LV8PR13MB6445.namprd13.prod.outlook.com (2603:10b6:408:185::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.19; Mon, 5 Jun 2023 07:38:27 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::5e55:9a39:751f:55f6]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::5e55:9a39:751f:55f6%3]) with mapi id 15.20.6455.030; Mon, 5 Jun 2023 07:38:27 +0000 Date: Mon, 5 Jun 2023 09:38:19 +0200 From: Simon Horman To: Maxime Chevallier Cc: Mark Brown , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Ioana Ciornei , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Maxime Coquelin , Jose Abreu , Alexandre Torgue , Giuseppe Cavallaro Subject: Re: [PATCH net-next v4 4/4] net: stmmac: dwmac-sogfpga: use the lynx pcs driver Message-ID: References: <20230601141454.67858-1-maxime.chevallier@bootlin.com> <20230601141454.67858-5-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601141454.67858-5-maxime.chevallier@bootlin.com> X-ClientProxiedBy: AM0PR02CA0110.eurprd02.prod.outlook.com (2603:10a6:20b:28c::7) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|LV8PR13MB6445:EE_ X-MS-Office365-Filtering-Correlation-Id: f304ee26-6de0-4e90-c9d6-08db6597d9ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QXs4Sp79oj4aG+0TDHqckOEBqSfflhngkwLH75zrpjGvaM6iuv12bjAiZIpApoEHyuaOI+18L9M2RRe6hCOyAyxSlEuXsYvk5j59LZYfP1VCgqAy/Hz4RXdGT8MbkmtbqDG16MItcnEa1/Hz8acZG8El1D1X9G6nu1F6gq8pA5tPu//L0tRSpmG7pccDv0zYs+vj+BUOBZodJ2IK1x4lJ5Wi0WiWjoQYMvvOA0pBbEaI00FRud15dkrKrHQYhsAV1ywztI+RJwV9AcorMn3R6sO+pJk+E8BoJcEqojbluat8EHgNTdR2T2iVoQ/mz2NLwNsHi7KjOSY6NmSh4n213DpdKsBxVN4JZelFRUQvIkJDABKmVtNVkvxUtCkvSrLtGTszRdbeT+RC6nYzNnpgwQffKwxVC5ugwF5gbDI/40ZKiVr6N/aRVsErfDV7cCSp62buQvJV55oZTbZef+Mdx2YyXqcyjeki9yjyshVECIRCJRU4BaQt+WluomG2W4vLfc+KNnDbo6UZ23NSDIjTikdIKnbzOhhaaWOXwn+W8KwQeDX5N8EZnZJqEztbgDFB X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(396003)(346002)(376002)(39840400004)(451199021)(6512007)(6506007)(36756003)(83380400001)(86362001)(38100700002)(186003)(2616005)(41300700001)(44832011)(54906003)(2906002)(4744005)(478600001)(66946007)(66476007)(66556008)(6916009)(4326008)(8936002)(8676002)(316002)(5660300002)(7416002)(6486002)(6666004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ltdSXf4DfZnAM64g0/lWDG0W2AzsYX+4u0Z+N3KvBchtWt6uJAFLpv7t9355?= =?us-ascii?Q?KGXmH8kDdKjrN22H4HkAddnWG7ltqZDEvFNdKgkJOo6RJxID4t2FpbF5Q6fT?= =?us-ascii?Q?qHgI9C4qc7Oi/DhNIx6yNvcNiWIaNAPokPdgiDLurRl69nN0T8xw5ZnDJo0I?= =?us-ascii?Q?9YEBpUHMXtLEV6JDekt/g1H8b+zg25+PB6orJ7g3dY5B0ab5PNxbSuR/Qphb?= =?us-ascii?Q?7fQ5u73Mfy6J5NuwRGg74etwqD0l9K8peD23YXGK9sRS3rx7aXEj+AuGzNCA?= =?us-ascii?Q?KVrP0fx2D1IJkQosdRQHhxRtSh7UkAdXNiOCWZMglFHeJBLG5jREDZBCX5PV?= =?us-ascii?Q?enXhlV5P+TfYvG0MiDgqTmU1KIHIWLsJCf5ams4Edc6K+2m6rK+EAUh015L5?= =?us-ascii?Q?6jUa5iXySik/ffrpkGIyJZk7MNgz2r5PqVCOSiaweKVRGkUZAqfBOjN0Ioj7?= =?us-ascii?Q?Z/cCv/fBTelw/+Ah4otC/m6Jlw+AhffetXjLD4LYSJZPP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tXF+EWabbDSmyhZ/v7L27wemowQ9tamR/9?= =?us-ascii?Q?N7D74zdnAGebXahCM96AERscSj/xbhQPQGXHe93cbkMnDhQrV4rn710L/kIV?= =?us-ascii?Q?AkgRXd6cb7tY6j6t9Oq0Tq2tvG/ZmCotvmECxgNFMSk0LiZdOWJSiND5pFtj?= =?us-ascii?Q?bNpfF+feMljKe9iBytVOJT42dEQQKACTEq4DW66f4YwGn0HdjFMKNLpzOJac?= =?us-ascii?Q?lBEWehfFaNkae7UzQD7b7r+OVTocKZWswaavmzlLy4MjP3wIjKY88lQ0zl6K?= =?us-ascii?Q?f6tnxg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: f304ee26-6de0-4e90-c9d6-08db6597d9ed X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2023 07:38:27.6277 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8CNKLePl40oP3iqBibp8CIXcceHkz4077+jOUpYitdyL1o/9ceyVpIdA/4FXb6EWpF3uk6ei2PNLj3LEo2ThNQZrqBHrLA26uyVIeUmj0xw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR13MB6445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Thu, Jun 01, 2023 at 04:14:54PM +0200, Maxime Chevallier wrote: > dwmac_socfpga re-implements support for the TSE PCS, which is identical > to the already existing TSE PCS, which in turn is the same as the Lynx > PCS. Drop the existing TSE re-implemenation and use the Lynx PCS > instead, relying on the regmap-mdio driver to translate MDIO accesses > into mmio accesses. > > Add a lynx_pcs reference in the stmmac's internal structure, and use > .mac_select_pcs() to return the relevant PCS to be used. > > Signed-off-by: Maxime Chevallier Reviewed-by: Simon Horman