Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9067491rwr; Thu, 11 May 2023 09:30:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6sCUUiqcVWiZQP2R6Dyc9wfysMeVQaUaTEF2L5qmL80xs9lvvMRLH9Xmo3b0R5DuniGLDK X-Received: by 2002:a17:902:ea01:b0:1ac:6d4c:c24b with SMTP id s1-20020a170902ea0100b001ac6d4cc24bmr20539371plg.3.1683822657018; Thu, 11 May 2023 09:30:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683822657; cv=pass; d=google.com; s=arc-20160816; b=F7ZY69QKZyz46oo2sMOhLtWsyZtr9oMl/vmcaWGicGr31LcdzINqSYZalO8M9Y5ujR rAARjmCA4rKCKy0c8xls1xqd33syBE+jXx77Wsx0y8vidh17Mrk/dyrWKQTQ+uLXJ5Rp 3HPsraGlVOYR1PZqC/n7bWJd7Fk7S0L9KXYgCuEc3cmrY1vReIet2fIJSMlf1rSbTfRH XxklsGS7k9awuNGYPO5APhU6oGfoN0G1AY/cIaiOxNsPcj8VaxCGvU51AD5EqXNbGrbA 4u7zgwiBqHVBjUnmHO+SX/q9tLlys1A/dq8Vb9tSAwHQ9eTEQGeYwp0T/eV0kDBsDW8e M3qg== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=epgnWgH6tDtZJdNNcRVpfvYn0RY6pbORDkaUzmDDyQM=; b=LaXeVkmqtIHhpTnEHk1XP7q99ABENTqcFajIX8HxEPzBjeSN9QANFEGbHE5I+kDMOT 1UTzQ8TQlKQ5l5yt/H81N3JMhXrvhCkiiiSa7UWHuehOco0Fhdu62GqMY+DrdTYCxAlr UHyHeakrWuRD9jP2KrRXaRs5jPhVqdEIv2xa2GCdf3+CdH3LcxXjsLvFTZDJSlxrPTNz SLWUK4Io4+L3QFlfcG64QLr3ISUTzH/5XKUhJnaWtn15eYqfeLTOWK26jwyrLWBENwSN cDekh/XLr7wxN2zmFpLDi88hDCdgEAoTshe63IgEFdvk1ex5YfIks2A/UHDpvyJKf92f wQiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Pr2Gh1A0; 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 l16-20020a170902f69000b001ab18d794a5si7735006plg.297.2023.05.11.09.30.41; Thu, 11 May 2023 09:30:56 -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=Pr2Gh1A0; 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 S238752AbjEKQR2 (ORCPT + 99 others); Thu, 11 May 2023 12:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238726AbjEKQR0 (ORCPT ); Thu, 11 May 2023 12:17:26 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2088.outbound.protection.outlook.com [40.107.220.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEE8DE70; Thu, 11 May 2023 09:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nTDJS67XjZl6Bcr0IHXLVyxe0DP5K9y3isrkA4VE97zhHneOmEXHxaOUYDbZKhoqTtO2UYTXkCY2kV6+6wO5XAfmlAfd0BUlnb0cP45Iilsd+uVonpzKbIMNbqf8rNT8WsRZ+yWx/B9+hN/yf1UX2Rh8Q5F0+Mqt1tPjxg+YRJSEZlGio6ngLLzKhDGTUELU5q6J5UZV820852qBTQO8pop6jiw9ha+EsgVZkYab49oc24y7+7x5T1CLpZIbD2NVcK0eqY7G4Y6oAbv+lk7WZI4efAzi4xt0lbOvWr2ICyaUojXCnca6Ky6UDW197sAMEW9y1osBJVwNZOyODPgj9A== 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=epgnWgH6tDtZJdNNcRVpfvYn0RY6pbORDkaUzmDDyQM=; b=CzIk4acaq916TRBZ8SXoOWeQYcmym5TL9rkol/zfMjX2I7Vm/6DDKZxJfLSYVrv3rLzRc+M2RRSpBb1xMyBVSbtorJ/vDJCNKSq7y25f1/G9/RxK8vOndbjH8q5SaZOQiiK8kidiV05mhH32In397oGrsgzTBjiFIVcT9lkeSOjH15CzSG7Mn+MGG3l7tAcjVoXoO8itqaQYeE66SOjE3vR9G49V0PKzL7UsiqtX9X7v07SbKza9bBjEivTch7Xm4hgqPsfFixiynDf+9SrA5jZZ+20gSWVXgzAQq4xlsC0BquWYgXLitdJWzQWWD0FGXSLTOESFf+KeMcuRQ6l+5A== 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=epgnWgH6tDtZJdNNcRVpfvYn0RY6pbORDkaUzmDDyQM=; b=Pr2Gh1A0bJPxopG3aBvDHEwJSoEkxBjEHlNSc7+ObfbyF+LdKBfaRnFeQdPA78oRnjNaCHXfx9TD91wXroXRHEFrYFvEOsDvaluOWXbtAumeh23fG81voJvpYgIrmgOljs5X8EwgvzbX+E/qWSpAi7syA01PXjtYB+iYDZ8yavs= Received: from BYAPR12MB4773.namprd12.prod.outlook.com (2603:10b6:a03:109::17) by PH7PR12MB7354.namprd12.prod.outlook.com (2603:10b6:510:20d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.22; Thu, 11 May 2023 16:17:21 +0000 Received: from BYAPR12MB4773.namprd12.prod.outlook.com ([fe80::4efa:ce77:84f7:93b1]) by BYAPR12MB4773.namprd12.prod.outlook.com ([fe80::4efa:ce77:84f7:93b1%5]) with mapi id 15.20.6363.033; Thu, 11 May 2023 16:17:21 +0000 From: "Katakam, Harini" To: Andrew Lunn CC: "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "davem@davemloft.net" , "kuba@kernel.org" , "edumazet@google.com" , "pabeni@redhat.com" , "vladimir.oltean@nxp.com" , "wsa+renesas@sang-engineering.com" , "simon.horman@corigine.com" , "mkl@pengutronix.de" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "harinikatakamlinux@gmail.com" , "Simek, Michal" , "Pandey, Radhey Shyam" Subject: RE: [PATCH net-next v3 3/3] phy: mscc: Add support for VSC8531_02 Thread-Topic: [PATCH net-next v3 3/3] phy: mscc: Add support for VSC8531_02 Thread-Index: AQHZhAFVaEeZnn4aeEyZcvSiQUtANa9VHQcAgAAW1qA= Date: Thu, 11 May 2023 16:17:21 +0000 Message-ID: References: <20230511120808.28646-1-harini.katakam@amd.com> <20230511120808.28646-4-harini.katakam@amd.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR12MB4773:EE_|PH7PR12MB7354:EE_ x-ms-office365-filtering-correlation-id: 0c0b64ed-27c5-4ac1-e8cd-08db523b32bd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0wLkPdS0RabNYl6WZsQMVwklsN2zZce56h7orzRwVvsN81oi089quQRT8o4iXbAin8VcsoO1fmtcmMTT9ERS0swxyk/Dr8EVFAeif9CUzJBa3TVfL4WbGuMQ88ymgyqj4BSRti3NB2v/4GqW5SMHTrj2Bvxx8n0MYyAO36FD29Uac7Os6H4WhHU8f1c/Ov/Rig03D6ncsUe7lELklrq7YPLHku+DyW6yuXOKQTTVNW4p2K4oOFeZV8bz8CNuiSoqWKObpuQk37PVFj0mfaQ1tIEM7HfsVBTaO39oKfQFg2WXeShMaWU35KCZMZ8GqpuHQDQOBR6u/G7ggIBW1rlbEn1FRNmWH7amBY9woEXBUNHAGgjVJM09UZ+MlcHV5ZGvBxpL+9qTR7DVJLqH662e6EvufXxCSyYahFWEemB6wcqruFrR5zK9UfN8qLqPmtCgb1/Ime/Idi3NIDtmsN62cRdXChxIl6P9d9IgvJf+TUSaTuZ183PX4rPUnGEAkdL8HWUobACVi9pbFaRE0LoFn0bDkKExexmXt6icnakgpHNt3v0k5SUq7aj+iCpPF8oa0p5jZ/qII6QZFIMMP0gKmFcr7ajBQgm1vtnkGsAOhLM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB4773.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(366004)(346002)(376002)(396003)(451199021)(33656002)(38070700005)(86362001)(54906003)(316002)(66556008)(66446008)(6916009)(4326008)(66476007)(76116006)(66946007)(64756008)(966005)(7696005)(478600001)(55016003)(5660300002)(52536014)(71200400001)(8676002)(41300700001)(8936002)(2906002)(7416002)(38100700002)(122000001)(53546011)(6506007)(186003)(26005)(9686003)(83380400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?e4otYyQeGKke/94dBoNDTo5lvGzMQG0ubcIDMAIT1UgHAvwdb80q51DYXKIa?= =?us-ascii?Q?j6VUOkvR4ixwuNYB6kwT3idqT/utOkbf/Ti+2OM9uVY2wk0nXG7WvQbJBlMc?= =?us-ascii?Q?OMNYZgAZX7DGCSG8asUSl731caALfObvvH6UjOBcgyoWklLp79qzaDhsxag6?= =?us-ascii?Q?8egYnhc4FXN7QdBSzJME0u/vOHZOeZI9uO5yhQ/Txs5s+mBSb+UUJYnkxj6j?= =?us-ascii?Q?CP4NhsOkY9TOz1jtZAYFVTgFXjgkBkRjGPTTx1ljGbpWkrMx/5Ge+PEmlefe?= =?us-ascii?Q?HM8efsPqvjVSDGyLyIfF9hKK5RskG74+v/r5pBIqhx594e8Uiy4uJ0h7JpHk?= =?us-ascii?Q?SKcvcShwC3KahuYQmQKVCgDkmrt6qq0JliEQA76owxIY6MlxS6qAGEfvHgYv?= =?us-ascii?Q?E3goOSIdsxu8nEymqnFJLDhxvxp8Z8+VmEFH/O3BrHGOoRs4C/pivke8OkAt?= =?us-ascii?Q?stzR5F5VoHpkPFLHUDhq6sBkX5uOI1O0Huas7clytpVOpaN1OeVJr08oyctq?= =?us-ascii?Q?o18+/909eenWsQ+VA/YuUs4EBAQOKsQl2cA4PjL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Q4vtPOnVHpkWQjh5rUIExEcpSXMWYXP9GRSbVPVbwm2ibrAna9?= =?us-ascii?Q?yCEt3vvLdjWLKSUCyeIpCFBRdgrz4oZWeQ0oT2p9fVZPTMB3L/GuRZAyHTQ2?= =?us-ascii?Q?xS+XHR1TN9caCFMDaZI=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB4773.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c0b64ed-27c5-4ac1-e8cd-08db523b32bd X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2023 16:17:21.0815 (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: i+6uRrHLf9fHcqWbTtCUfwpTl/MeB3G9u8RUi7mAAwwIYf1J62O+lVTMsGZudrqP X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7354 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, 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 Andrew, > -----Original Message----- > From: Andrew Lunn > Sent: Thursday, May 11, 2023 7:42 PM > To: Katakam, Harini > Cc: hkallweit1@gmail.com; linux@armlinux.org.uk; davem@davemloft.net; > kuba@kernel.org; edumazet@google.com; pabeni@redhat.com; > vladimir.oltean@nxp.com; wsa+renesas@sang-engineering.com; > simon.horman@corigine.com; mkl@pengutronix.de; > netdev@vger.kernel.org; linux-kernel@vger.kernel.org; > harinikatakamlinux@gmail.com; Simek, Michal ; > Pandey, Radhey Shyam > Subject: Re: [PATCH net-next v3 3/3] phy: mscc: Add support for VSC8531_0= 2 >=20 > On Thu, May 11, 2023 at 05:38:08PM +0530, Harini Katakam wrote: > > Add support for VSC8531_02 (Rev 2) device. Use exact PHY ID match. > > > > Signed-off-by: Harini Katakam > > --- > > v3 - Patch split > > > > drivers/net/phy/mscc/mscc.h | 1 + > > drivers/net/phy/mscc/mscc_main.c | 26 ++++++++++++++++++++++++-- > > 2 files changed, 25 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/net/phy/mscc/mscc.h b/drivers/net/phy/mscc/mscc.h > > index ab6c0b7c2136..6a0521ff61d2 100644 > > --- a/drivers/net/phy/mscc/mscc.h > > +++ b/drivers/net/phy/mscc/mscc.h > > @@ -281,6 +281,7 @@ enum rgmii_clock_delay { > > #define PHY_ID_VSC8514 0x00070670 > > #define PHY_ID_VSC8530 0x00070560 > > #define PHY_ID_VSC8531 0x00070570 > > +#define PHY_ID_VSC8531_02 0x00070572 >=20 > Does PHY_ID_VSC8531_01 exist? The current code would support that, > where as now i don't think any entry will match. Yes, PHY_ID_VSC8531_01 exists: https://ww1.microchip.com/downloads/en/DeviceDoc/VMDS-10494.pdf And I'm sorry I realize now that this patch breaks that version. Also considering your RC on the other thread, " Just to make it clear why the existing PHY_ID_VSC853/0xfffffff0 is not su= fficient." Currently there is no difference in the phy driver structure between VSC8531 and VSC8531_02. Let me double check the identification on my board and skip this patch if possible. The RGMII delay support in 2/3 is generic anyway. Regards, Harini