Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp943817rdb; Fri, 20 Oct 2023 04:18:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEHoTvTEX5mu+fCkWDyV6yPaTUNE5YJ8Ug1n/vtSSuk/USu184hj2CDVokCGFhcZmYt+uJ X-Received: by 2002:a17:903:246:b0:1c7:2f33:7ccd with SMTP id j6-20020a170903024600b001c72f337ccdmr1793942plh.33.1697800702201; Fri, 20 Oct 2023 04:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697800702; cv=none; d=google.com; s=arc-20160816; b=ftBN5xGTYPd/7nhqo1MScs0N8vAtal+FBAbDHQ8h8ZTyrTpsPGtZIPp9JSn1ElSCwP zQxd6TayoN/K9776pWrp9eEbcRBu1MYNThy0mlHXC6e2s8XxPzVByYkfy3n7RqCRJUBA NJH7ptCjNlOPXmi1iBxyjTq/fHsXPPbdJ05sqY/sjGrGcTxOhZqxdKFU5UL42lId0+IP Jj3ZMYh+pNwDT/cr5iftek4oieqg7yb2cbyqOXCNm0sdEiQESwAH3lAPo0NxIUedtkct uIduyUzqVqJsjefr8mmieOV6VYOws504kN4v0vKr3eZtVKmR90QANu/1efZ0LE3nDAGJ 8U3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=lsAeSoK43n/QTcYg4kVAxzU7Yseh9TpDXJToFJLPGy0=; fh=4bWP0Lhxx0XeoUnJHjUxmxS0/svKF+4Yu35f/cnuX5U=; b=RN5hnVIyUtCWsSpHFVwBlpPlTwNFjtC+yip7i6wWs7hr2ia53CTMhcDbk2w5rMAA5X aaoMV7rvtE8H8kfcDIyNlRchh20B3CMC7Ivp7KNbEVylvneXoAjiQd22VDxLuAM4Ct7u nMQy42Mv0Gu+nx66wRgqSf2WcZpERf05j3NVuehD1ySuLeavFOGFyZwJYG0DuzjYjt2C m0mWlCRAfADdMXFvXSIp7BHNo0JLP39XqVfesF9gc3sQlj2uZuLh2B7U5eoNrbG+Eepw 3dkXSjjx5RARPDdxEm98dk/T9jdls3AF9PS2LLASNOaKIwttfHxLxktIXBSpf4naebfe o19A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=izV7M6VY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id n4-20020a170902968400b0019c354055d0si1479888plp.304.2023.10.20.04.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 04:18:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=izV7M6VY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 430CF834A9E5; Fri, 20 Oct 2023 04:18:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377030AbjJTLSK (ORCPT + 99 others); Fri, 20 Oct 2023 07:18:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376927AbjJTLSJ (ORCPT ); Fri, 20 Oct 2023 07:18:09 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50CC0CA; Fri, 20 Oct 2023 04:18:07 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39KBHhj2034034; Fri, 20 Oct 2023 06:17:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697800663; bh=lsAeSoK43n/QTcYg4kVAxzU7Yseh9TpDXJToFJLPGy0=; h=From:To:CC:Subject:Date; b=izV7M6VYkysbLu+/iIr8qmIiWUhriC6gaQutRJ8boYmoZeSud70WGh7XKu2015igZ fSLUgh2ExPno2Zkxdpyb4XOrWRy2S6a3D/cj2wFEg9ickerZi7BW+YOj6FO1KTnQdF kgGVBPnyjLObOKOd40tmMq2Nz4em9V8tjkQY1AJ8= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39KBHheH015355 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Oct 2023 06:17:43 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 20 Oct 2023 06:17:43 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 20 Oct 2023 06:17:43 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39KBHciW020272; Fri, 20 Oct 2023 06:17:39 -0500 From: Ravi Gunasekaran To: , CC: , , , , , , , , , , , Subject: [PATCH net-next v2] net: ethernet: ti: davinci_mdio: Update K3 SoCs list for errata i2329 Date: Fri, 20 Oct 2023 16:47:38 +0530 Message-ID: <20231020111738.14671-1-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Fri, 20 Oct 2023 04:18:19 -0700 (PDT) The errata i2329 affects certain K3 SoC versions. The k3-socinfo.c driver generates the revision string for different variants of the same SoC in an incremental fashion. This is not true for all SoCs. An example case being J721E, for which the actual silicon revision names are 1.0, 1.1 for its variants, while the k3-socinfo.c driver interprets these variants as revisions 1.0, 2.0 respectively, which is incorrect. While the work to fixup the silicon revision string is posted to the soc tree, this patch serves as a fail-safe step by maintaining a list of correct and incorrect revision strings, so that the fixup work does not break the errata workaround for such corrected SoCs. The silicon revisions affected by the errata i2329 can be found under the MDIO module in the "Advisories by Modules" section of each SoC errata document listed below AM62x: https://www.ti.com/lit/er/sprz487c/sprz487c.pdf AM64X: https://www.ti.com/lit/er/sprz457g/sprz457g.pdf AM65X: https://www.ti.com/lit/er/sprz452i/sprz452i.pdf J7200: https://www.ti.com/lit/er/sprz491d/sprz491d.pdf J721E: https://www.ti.com/lit/er/sprz455d/sprz455d.pdf J721S2: https://www.ti.com/lit/er/sprz530b/sprz530b.pdf Signed-off-by: Ravi Gunasekaran --- Changes since v1: * For J721E, retained the incorrect SR ID and added the correct one * Add AM65x SR2.1 to the workaround list v1: https://lore.kernel.org/all/20231018140009.1725-1-r-gunasekaran@ti.com/ drivers/net/ethernet/ti/davinci_mdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c index 628c87dc1d28..25aaef502edc 100644 --- a/drivers/net/ethernet/ti/davinci_mdio.c +++ b/drivers/net/ethernet/ti/davinci_mdio.c @@ -516,9 +516,11 @@ static const struct soc_device_attribute k3_mdio_socinfo[] = { { .family = "AM64X", .revision = "SR2.0", .data = &am65_mdio_soc_data }, { .family = "AM65X", .revision = "SR1.0", .data = &am65_mdio_soc_data }, { .family = "AM65X", .revision = "SR2.0", .data = &am65_mdio_soc_data }, + { .family = "AM65X", .revision = "SR2.1", .data = &am65_mdio_soc_data }, { .family = "J7200", .revision = "SR1.0", .data = &am65_mdio_soc_data }, { .family = "J7200", .revision = "SR2.0", .data = &am65_mdio_soc_data }, { .family = "J721E", .revision = "SR1.0", .data = &am65_mdio_soc_data }, + { .family = "J721E", .revision = "SR1.1", .data = &am65_mdio_soc_data }, { .family = "J721E", .revision = "SR2.0", .data = &am65_mdio_soc_data }, { .family = "J721S2", .revision = "SR1.0", .data = &am65_mdio_soc_data}, { /* sentinel */ }, base-commit: 2030579113a1b1b5bfd7ff24c0852847836d8fd1 -- 2.17.1