From patchwork Mon Jun 5 15:39:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 13267693 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 C52AE1F93A for ; Mon, 5 Jun 2023 15:40:49 +0000 (UTC) Received: from mx0d-0054df01.pphosted.com (mx0d-0054df01.pphosted.com [67.231.150.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 066D7E40; Mon, 5 Jun 2023 08:40:33 -0700 (PDT) Received: from pps.filterd (m0209000.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3559p71O019626; Mon, 5 Jun 2023 11:40:05 -0400 Received: from can01-yt3-obe.outbound.protection.outlook.com (mail-yt3can01lp2172.outbound.protection.outlook.com [104.47.75.172]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3r02e3gqhv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Jun 2023 11:40:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PQ7TnvACKgrKvMdutffge5cEKR2JthcLtLHtzHDt63yYDSvWjBTIAtOVA8riVHQhcJhxajedwtGko7uYgl8P5Uz5kal4QEZkByN53s4XR6/tX+GK+NpY03rpQYTnp/bwm+QXvHYeREGrwFAJRZxsZNQWimAUObYQIo3KtnlT1LjIiIul6nunjEal1LmNxGZd5vIo1bvqgOSz4MSDTwO76LsbI9kejsq0rwUDn395tOZ/2kz9WSmR/8jpdpsqYpFtwZxrVcZmN3Ws3VUi3UUKQU8l5D/ug8kEHxSkbUfPUfEgNGzpt1GcrMOM6hqgKl1njc3X8TRPtieCYsmLjQKJQg== 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=ElBkSjCN2dBPlBZj1RzGMov8o3nsJgmBF5DvkvhsJHM=; b=fiXob6SSaiB+LhWwR9MHU89Q5FPFV6i6eCj6bVj8Xh90h7CSftILc4jLNVU2qWoHqV+dyx5xyBFJJnA7leJj3mKsbFFsXjYKmpLyVFuXurBTcEXFVNMwHHP5CCy6IRnauruspGKiE/+QMRxro8Dfn0tFwDa6fN+wVxub2Gv64GJuz9mdqm/P5syD/YfDkJiUicVP7j55yXQTgjffImUU7BtvhZOtzYllc1TYsD/TQ2sV/lklqSvI0J3w4XHg0M+/qWZ48hbHXQ4Yb8fPLQzST23iDEVDKnxCM6DL+3WUXpk7mD3n7sDfS5kM5X2QbK2T2LqntpUSvPN7z1lConSNRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=calian.com; dmarc=pass action=none header.from=calian.com; dkim=pass header.d=calian.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ElBkSjCN2dBPlBZj1RzGMov8o3nsJgmBF5DvkvhsJHM=; b=CHoceHxwLibZy7g3k6I6I7jU89dECFTq7xO/OOUOJGtp9qJzK39pQ6UnVndBhfNlOLKFVagMDB//fPYqpDK7sXrX2NUPuVcmh/NahDr4iDFhQgSle74Ho8BSXBmzemSgNCUwixZXGdqtHDtYzjXKGG2FnMPUJXA9FiDwb2mAgHc= Received: from YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:b9::6) by YT3PR01MB10571.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:f8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Mon, 5 Jun 2023 15:40:03 +0000 Received: from YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM ([fe80::c059:dcd5:ca20:4a0]) by YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM ([fe80::c059:dcd5:ca20:4a0%6]) with mapi id 15.20.6455.030; Mon, 5 Jun 2023 15:40:03 +0000 From: Robert Hancock To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Hancock Subject: [PATCH net-next v2 1/2] net: phy: micrel: Move KSZ9477 errata fixes to PHY driver Date: Mon, 5 Jun 2023 09:39:42 -0600 Message-Id: <20230605153943.1060444-2-robert.hancock@calian.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230605153943.1060444-1-robert.hancock@calian.com> References: <20230605153943.1060444-1-robert.hancock@calian.com> X-ClientProxiedBy: CYXPR02CA0063.namprd02.prod.outlook.com (2603:10b6:930:cd::8) To YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:b9::6) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: YT2PR01MB8838:EE_|YT3PR01MB10571:EE_ X-MS-Office365-Filtering-Correlation-Id: a9b9c4b0-ba42-45ec-4046-08db65db212b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N4JfactCoqgU65PBIzDas4zsxELFxbwRnk/wbxlvt4hRnCZSBQvrT77njp3LpCxCeD7ui8/W5GuLWBAIDCHtSJOMEFXBDKuZD2AJ6/8ch0uRlzyv5pO3pO0yvhLrkX55LCFY1MU8MeQhMeXs+bbvyu+N92fNz9lC5QiTvLSlvu5MYxVvJcQyI9RStZemOdN7fSyOfMkpLf/qjwjIIHM99mclJEM0Q1corkdd9nX0+Gr5XLRC1Pz4FMkQmvtTqt+iCSo2eqqogwrwsl+Vk7lCcuh8U2T7qM1RdVxGXpUJ9jcNMA2nVM4rD9ZpHkntOdpcZ0VLJaZgL0WNpvmnB+yg+Z/zvqY30KDKu7bEwlgGn8IJyEwDq3eC2X0ubkl104/veuje1neN/c1TLZFsudJ51XemXzP0MXY1oib5F2tMz3fG2m13s5yNbOD7H/+K4w9okheO6Eg+FvyFsGQmq4C4blauJRcv1GHjy8hH+MoUKJltvFq6R/KhGjTKA1SJ+evCR78TH0rw8tr+OV0ZF4zpsWHxtralK0yPTF/3WqaSi3FkC5p6VHJfXjcyD4IyZNVYBHvhI0sQKZb4dbMAsg9JtrIUmtvH+CpQV34hZuzIeOqFWquwNNT6RxB9RPYQyJ7xYGzRiPhODFTytebFXv7BOw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(376002)(366004)(346002)(39850400004)(451199021)(36756003)(2906002)(86362001)(44832011)(7416002)(5660300002)(83380400001)(6666004)(6486002)(52116002)(186003)(6512007)(1076003)(26005)(6506007)(107886003)(921005)(478600001)(110136005)(66556008)(316002)(38100700002)(66476007)(4326008)(38350700002)(2616005)(41300700001)(66946007)(8936002)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AsVpNf3m9F9S1voMmt0k6kz5K9U+lw16Td5FgCjgT8f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kbDZWSD10KAnIxGVKG4WexYsoXegzYu6MJx7uQ1Vb8iS04sQQKdGh/LcRnOy8QSUzbOlHt5PqPf4g0YBE+QkZhZ3ASHe8eG5lFdk+ZTXZYiy4KPbby9VaQPUtcr4TjCs1nSN2gvY9k9PdJ3rEThVojGqz9mZXXmyzg/cIFIAPtda10daAoLHseHQHQNyft6VCf4ok7V3l3kW98suvzqDf3NBdV1SUKbRZWEwUmlr3eIA6XNkObSl3hVmeMcdR3o2XozhvtHSAnjSPo/Xn9My/uGcjqB+vqyTU1wCEIv6ommoIrpW/4BDMg5OV6F7yjrCa7z8x+kz74wi4G2QCNdG4tutZFdxT40KqdiMDg8JA9oFtj6vbtFXH9nkRpgwFt0e2O48zp2iIrIx6nnFvR6I3wmATB7cjOQHYnYpMLHoUMTP7ky84388tON0qsBZs77aUcgn3y6mHj8zPNw/ZyNAWKL/4o9eDSKDL8JmWuavSV/zljgxopRemF78tyj/b0swiIEvMyZPIk9w7fjjY+b4sEcGJ7/w== X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9b9c4b0-ba42-45ec-4046-08db65db212b X-MS-Exchange-CrossTenant-AuthSource: YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2023 15:40:03.3382 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QLhzyQcfpsF3CB79hgDlOWHGh3w2H+Q0qCkkXyF0ELrinRjIQvCCSuOZ12i29l/NLXDDt9EFQKGbwsU+zuM+mEbQWAO9GN1uFL+VmAdMraU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT3PR01MB10571 X-Proofpoint-GUID: HqJnBsRfDUSnDziJM-Hu7kohp0UM_oQN X-Proofpoint-ORIG-GUID: HqJnBsRfDUSnDziJM-Hu7kohp0UM_oQN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-05_31,2023-06-02_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 clxscore=1015 bulkscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306050135 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 X-Patchwork-Delegate: kuba@kernel.org The ksz9477 DSA switch driver is currently updating some MMD registers on the internal port PHYs to address some chip errata. However, these errata are really a property of the PHY itself, not the switch they are part of, so this is kind of a layering violation. It makes more sense for these writes to be done inside the driver which binds to the PHY and not the driver for the containing device. This also addresses some issues where the ordering of when these writes are done may have been incorrect, causing the link to erratically fail to come up at the proper speed or at all. Doing this in the PHY driver during config_init ensures that they happen before anything else tries to change the state of the PHY on the port. The new code also ensures that autonegotiation is disabled during the register writes and re-enabled afterwards, as indicated by the latest version of the errata documentation from Microchip. Signed-off-by: Robert Hancock Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- drivers/net/phy/micrel.c | 75 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 2094d49025a7..6d18ea19e442 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -1774,6 +1774,79 @@ static int ksz886x_read_status(struct phy_device *phydev) return genphy_read_status(phydev); } +struct ksz9477_errata_write { + u8 dev_addr; + u8 reg_addr; + u16 val; +}; + +static const struct ksz9477_errata_write ksz9477_errata_writes[] = { + /* Register settings are needed to improve PHY receive performance */ + {0x01, 0x6f, 0xdd0b}, + {0x01, 0x8f, 0x6032}, + {0x01, 0x9d, 0x248c}, + {0x01, 0x75, 0x0060}, + {0x01, 0xd3, 0x7777}, + {0x1c, 0x06, 0x3008}, + {0x1c, 0x08, 0x2000}, + + /* Transmit waveform amplitude can be improved (1000BASE-T, 100BASE-TX, 10BASE-Te) */ + {0x1c, 0x04, 0x00d0}, + + /* Energy Efficient Ethernet (EEE) feature select must be manually disabled */ + {0x07, 0x3c, 0x0000}, + + /* Register settings are required to meet data sheet supply current specifications */ + {0x1c, 0x13, 0x6eff}, + {0x1c, 0x14, 0xe6ff}, + {0x1c, 0x15, 0x6eff}, + {0x1c, 0x16, 0xe6ff}, + {0x1c, 0x17, 0x00ff}, + {0x1c, 0x18, 0x43ff}, + {0x1c, 0x19, 0xc3ff}, + {0x1c, 0x1a, 0x6fff}, + {0x1c, 0x1b, 0x07ff}, + {0x1c, 0x1c, 0x0fff}, + {0x1c, 0x1d, 0xe7ff}, + {0x1c, 0x1e, 0xefff}, + {0x1c, 0x20, 0xeeee}, +}; + +static int ksz9477_config_init(struct phy_device *phydev) +{ + int err; + int i; + + /* Apply PHY settings to address errata listed in + * KSZ9477, KSZ9897, KSZ9896, KSZ9567, KSZ8565 + * Silicon Errata and Data Sheet Clarification documents. + * + * Document notes: Before configuring the PHY MMD registers, it is + * necessary to set the PHY to 100 Mbps speed with auto-negotiation + * disabled by writing to register 0xN100-0xN101. After writing the + * MMD registers, and after all errata workarounds that involve PHY + * register settings, write register 0xN100-0xN101 again to enable + * and restart auto-negotiation. + */ + err = phy_write(phydev, MII_BMCR, BMCR_SPEED100 | BMCR_FULLDPLX); + if (err) + return err; + + for (i = 0; i < ARRAY_SIZE(ksz9477_errata_writes); ++i) { + const struct ksz9477_errata_write *errata = &ksz9477_errata_writes[i]; + + err = phy_write_mmd(phydev, errata->dev_addr, errata->reg_addr, errata->val); + if (err) + return err; + } + + err = genphy_restart_aneg(phydev); + if (err) + return err; + + return kszphy_config_init(phydev); +} + static int kszphy_get_sset_count(struct phy_device *phydev) { return ARRAY_SIZE(kszphy_hw_stats); @@ -4735,7 +4808,7 @@ static struct phy_driver ksphy_driver[] = { .phy_id_mask = MICREL_PHY_ID_MASK, .name = "Microchip KSZ9477", /* PHY_GBIT_FEATURES */ - .config_init = kszphy_config_init, + .config_init = ksz9477_config_init, .config_intr = kszphy_config_intr, .handle_interrupt = kszphy_handle_interrupt, .suspend = genphy_suspend, From patchwork Mon Jun 5 15:39:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 13267692 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 B03B91F93A for ; Mon, 5 Jun 2023 15:40:37 +0000 (UTC) Received: from mx0d-0054df01.pphosted.com (mx0d-0054df01.pphosted.com [67.231.150.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 846F510A; Mon, 5 Jun 2023 08:40:29 -0700 (PDT) Received: from pps.filterd (m0209000.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3559tOme024705; Mon, 5 Jun 2023 11:40:08 -0400 Received: from can01-yt3-obe.outbound.protection.outlook.com (mail-yt3can01lp2172.outbound.protection.outlook.com [104.47.75.172]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3r02e3gqhw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Jun 2023 11:40:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I4TnJustRvcet1Q3O1uovYMErJSA1YeqQlvuD9sa/WH0+NkkwcDzR+IK/q19lvs/nU6iME2HCOCXpw8ZOFxWBm3g+pL1YpJxZBMfFPObSEIKSYvx4HeyU+MQR6gtqrLFmUOQZ0M6HT6H7XxgLV4LXLucXJdj0NYapYbgoPso46ASuVskINXsTdBLUZjw/zC+xlu1OMHnwl/UpiR2xPZns2R4Y4M70JTFQVwY3dgq2DDx3qkvrEKcpZEbJ5zJFg/de58dyQoIMzmoS6MNPlswaXeUT5LX1VXvP21X9QhStLJpinxC8ZvjrWmZACpnbC6Lg4zx5ISmmKqobVgMGvmUqg== 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=CMKvmj/qor/Z4U9ywTTACd7t7rxz/O+ZcpEynFZNMDY=; b=ViN4vPUbdxtR5HwvWZ/Bsb1bzaw87LL4MddmPnxkb80oZKACHA0IVgpgKbnsmVLTNhAMA/LMjKGrifsIKg0h7Dh3K+ul12tY5m6mBjAV5hCTJPxZXFDQJ6F+huyYEQbHJs3qBEEZ8R/f7VrZJe7d74foy7WtkXABUhRP7nJPec0GCrqabM+fPkBf/BcfTBF968UW9ArESq8LoUoLHU7hjByxjMpBcU6rcbEb9FagMkzmIUtSyvLWymVaHCQ1d/7Ctj2syCKRjPARL5j3PG7DfTPM4CMV4Pct1u2zELgX4iAQ7gEjOcW7AiHbyvLtaZrvCC0UFvW4wAN7hJqY2vOZGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=calian.com; dmarc=pass action=none header.from=calian.com; dkim=pass header.d=calian.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CMKvmj/qor/Z4U9ywTTACd7t7rxz/O+ZcpEynFZNMDY=; b=y/kITPKNo7Oe1W0FVsm2tieo3JE0d4rrRKGTkK4wq3pdxpTfff37Fafuoqrl6mCiZ1guRj1o7SBgUEOSbYNapXroZeojKJ8n7bwYicJBOAUXNnnxw2qSRPfOlltPzMxE+c8t0HK55pG5qszcyPjWOHit0GrZ3MJ89wWkNrRu+JU= Received: from YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:b9::6) by YT3PR01MB10571.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:f8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Mon, 5 Jun 2023 15:40:06 +0000 Received: from YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM ([fe80::c059:dcd5:ca20:4a0]) by YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM ([fe80::c059:dcd5:ca20:4a0%6]) with mapi id 15.20.6455.030; Mon, 5 Jun 2023 15:40:06 +0000 From: Robert Hancock To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Hancock Subject: [PATCH net-next v2 2/2] net: dsa: microchip: remove KSZ9477 PHY errata handling Date: Mon, 5 Jun 2023 09:39:43 -0600 Message-Id: <20230605153943.1060444-3-robert.hancock@calian.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230605153943.1060444-1-robert.hancock@calian.com> References: <20230605153943.1060444-1-robert.hancock@calian.com> X-ClientProxiedBy: CYXPR02CA0063.namprd02.prod.outlook.com (2603:10b6:930:cd::8) To YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:b9::6) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: YT2PR01MB8838:EE_|YT3PR01MB10571:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b09b854-3316-49f3-ead5-08db65db2313 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4Bj+lOIjtW5lUSe83zmd/vCBiYrx/6PO9iiF0StPLFDYJB5Ps4KAGRIEXrcnd558CvhXzYvKZiFML99gVfVFHcFoECZk7BOGqszAKFd91w03qGpd43auN+diHjiEGh8MbpKZTN5neCqJXf6TmYwdwi+Ug/2/ISILVkEeeuj+TKv/ZcVk3sUKBcDmqZjgIhXKb0LJSsEwhZPTcRlic5ocNbxfNCqeLOQqdrYZy/yKgw84cmLuZAO/pf/Dbt5MNsn2hlET9/P7FkNKCHwC9GI0zP683v6Y+yAuU4ZYxlcbFZKh7efggaEtn92hBXNx0JJNT1FxaORKQ2cdcRI8HuGS5GjB11VZSYs7dvuvInUTBedr9cZCxNW3iQI0BTcaWC3HaJd3Y9RV8HM2ATGbB4U+wiursLQT+6D/WUR0KYuR06CxrGS4ZR7J3B87xSMG2PjtQwPPCcUrtfAlTsYhs4IM7reNZISo6Leoup9pJxF9DuZNe/9TJAsbjieZ3Ro23ztqD9QjWUVBUpMoe06cG1wcBvnCBf/ZhurUFcf76ogN7hby6BPcY2lZcqip1H1rFCCDJsAaPpdFZSs6I82G1lUvqVncrdiF2D4F5WW+UYp5dAqbvWWihjjfWvZWlLdl61BG37NpmefDL9rPNSY/d9EjOQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(376002)(366004)(346002)(39850400004)(451199021)(36756003)(2906002)(86362001)(44832011)(7416002)(5660300002)(83380400001)(6666004)(6486002)(52116002)(186003)(6512007)(1076003)(26005)(6506007)(107886003)(921005)(478600001)(110136005)(66556008)(316002)(38100700002)(66476007)(4326008)(38350700002)(2616005)(41300700001)(66946007)(8936002)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5LCHQihWLhcKRfnQjOqpA8PhXQ9gUE7Nc4ePdq1SExPwnaiCbBCpTjK54/j2pv6m1BcUykVFqQLIqJw3EXV3KzdsFxT/aHUTk2UauarknsSYQjXk3fnegtYE+pZqlGfuZ7S0uKjp3W5SfURO4a2d2yYiOieiQO3Q6yoshnlaSBqughZHMH6j4Yz2/wkOldl0THakL2UbL+NG5Vp01sv12iFokiBF8m98alkKv4PSNTQrD3mt+mY6N9AewYx5bf/n3AUhshxHldy5eg8A03swITbNruineYGrKJC8hSWo6fbvWnkXDFjFZ/GGzoucuYnYrXwDvfkGQ3BN8nh23UbDuwAYdVT36soZQNGuT1xdvNlGZsvULaoghh6BN0AGSo5uVQ0SvYCBFCGHQnafFpGSejp/yckj3V8CUZhuipafV7fYuuRLVKFBmTMyJBwWTRHXojeq8gSUJPgAqClakB+PiooXuz40HF1VkVlv++sYWeMpcJs26uATIdwfY3SI+nDYRSdyt0xxC2pdMD4HHb6IdT5sOAV3a0pvlTAOyUex1ovBCzpziwYuDg/0maRcdmTZui9JSJHWog9BKMogbSB5BKV3ia8Cn+6f40HwGcOuoaI8n2A1kl2YRxkp2NhYQPyBP1jmUDPV2uQaPRxs9tztzwQdwWa0R5p3pFT0Gao714CGmiKcF6zACM2t61xp8EtFpdBEJjvCqe8jhzC5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tiRdVfsSCjf299YXPoKBgvAkjcjjnEFzr5ifhIY/o/Ann0YVDAExBaPypFnM+U0I0lUDQSF3VjsitmEenNzXaGAUqgzqYSyutWjNFAF2X6BECkja3TF6upL6rnaCoP1Xg/aJOABexPS5EWQL31kwkr3qwPaAHU462CjwYd2Mu/3ZMUA9iftCQJX9pCTXX6MWIBqHHRn3dlcbKZqouyHUCCi8oDEr9Fb7m9gJ6yO0X14HTOa5ZfCXRTS7g+NXIwQy5JUFYyRENtqet+Ldxj0YHkJKi1pYOWAHQPqnGJnrGJf44XSkweV+qWzgEN2Xu2ezXLkXv/v2wif5iHPgDPVLq+JC5Op+UJv990afjFrq25UpOLbms6COG43n1xXzIe6RSZoZCDrxMjrRxFxs5G0osex6qT5cyR65h+Cc2OTCVVtzSBIwZK/El6t7pUW4KVOu8iW0EHgxDhLMmwzpg2iy7g0MUtsl9WsxWq/lz889JWwZXR3zgIJea36l7fb1kV5p7CdYUE7/H2srQllOOf5Az8+O2B7n8Q7MlL/rLGoufT0WXxV1rRju4nrIlvYeg5bzYMuDO88bFbKG/eBEC+ehixtFdu5XhKs2p8Rjz2BNSKB5NGeBUrN60t2PAICwTFUSHFIJK6zS8bAouqj1ZMQTK0ArTDkqliATnWD+f0AGhWNjfH7TwkHOu67jJXYR1eXn6wHWN1/IhLRJxQMtF7WUBdHeoEIYUGvK5bfel1qiXRkdj+qFC8mXBcJmw0x4tk+pOLMNFQVq+I7TSVWG26yNCNRu8YdMwH/Jefmy4hFb2qYUAsTPBeBJQqBfP4GU1/cETXdqi5QL0zsoPGHFuYombnAwVz0iX+x4j4mRuVvIuf8hcdiVlGMQE+T+wTiFY8VLqjdyWY9qxSsk0zkqLWFw6scT6lk5xcv7zx20yq/AcP74cODGA== X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b09b854-3316-49f3-ead5-08db65db2313 X-MS-Exchange-CrossTenant-AuthSource: YT2PR01MB8838.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2023 15:40:06.5461 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3I1k1TqDidHK1tcAIG6UB3k9ZxaY+22ER9p/WUuAuqqxqrvJ+xWtIIubCXLgEbga0IQ5q8dyjkuAHmunjESnVeTO0YPbX5/aCSUTZqj7cdA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT3PR01MB10571 X-Proofpoint-GUID: zTksXJQcBL-E_F3EbeKs2VrsR_w3EnAO X-Proofpoint-ORIG-GUID: zTksXJQcBL-E_F3EbeKs2VrsR_w3EnAO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-05_31,2023-06-02_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 clxscore=1015 bulkscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306050135 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 X-Patchwork-Delegate: kuba@kernel.org The KSZ9477 PHY errata handling code has now been moved into the Micrel PHY driver, so it is no longer needed inside the DSA switch driver. Remove it. Signed-off-by: Robert Hancock Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- drivers/net/dsa/microchip/ksz9477.c | 74 ++------------------------ drivers/net/dsa/microchip/ksz_common.c | 4 -- drivers/net/dsa/microchip/ksz_common.h | 1 - 3 files changed, 4 insertions(+), 75 deletions(-) diff --git a/drivers/net/dsa/microchip/ksz9477.c b/drivers/net/dsa/microchip/ksz9477.c index 3019f54049fc..fc5157a10af5 100644 --- a/drivers/net/dsa/microchip/ksz9477.c +++ b/drivers/net/dsa/microchip/ksz9477.c @@ -889,62 +889,6 @@ static phy_interface_t ksz9477_get_interface(struct ksz_device *dev, int port) return interface; } -static void ksz9477_port_mmd_write(struct ksz_device *dev, int port, - u8 dev_addr, u16 reg_addr, u16 val) -{ - ksz_pwrite16(dev, port, REG_PORT_PHY_MMD_SETUP, - MMD_SETUP(PORT_MMD_OP_INDEX, dev_addr)); - ksz_pwrite16(dev, port, REG_PORT_PHY_MMD_INDEX_DATA, reg_addr); - ksz_pwrite16(dev, port, REG_PORT_PHY_MMD_SETUP, - MMD_SETUP(PORT_MMD_OP_DATA_NO_INCR, dev_addr)); - ksz_pwrite16(dev, port, REG_PORT_PHY_MMD_INDEX_DATA, val); -} - -static void ksz9477_phy_errata_setup(struct ksz_device *dev, int port) -{ - /* Apply PHY settings to address errata listed in - * KSZ9477, KSZ9897, KSZ9896, KSZ9567, KSZ8565 - * Silicon Errata and Data Sheet Clarification documents: - * - * Register settings are needed to improve PHY receive performance - */ - ksz9477_port_mmd_write(dev, port, 0x01, 0x6f, 0xdd0b); - ksz9477_port_mmd_write(dev, port, 0x01, 0x8f, 0x6032); - ksz9477_port_mmd_write(dev, port, 0x01, 0x9d, 0x248c); - ksz9477_port_mmd_write(dev, port, 0x01, 0x75, 0x0060); - ksz9477_port_mmd_write(dev, port, 0x01, 0xd3, 0x7777); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x06, 0x3008); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x08, 0x2001); - - /* Transmit waveform amplitude can be improved - * (1000BASE-T, 100BASE-TX, 10BASE-Te) - */ - ksz9477_port_mmd_write(dev, port, 0x1c, 0x04, 0x00d0); - - /* Energy Efficient Ethernet (EEE) feature select must - * be manually disabled (except on KSZ8565 which is 100Mbit) - */ - if (dev->info->gbit_capable[port]) - ksz9477_port_mmd_write(dev, port, 0x07, 0x3c, 0x0000); - - /* Register settings are required to meet data sheet - * supply current specifications - */ - ksz9477_port_mmd_write(dev, port, 0x1c, 0x13, 0x6eff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x14, 0xe6ff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x15, 0x6eff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x16, 0xe6ff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x17, 0x00ff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x18, 0x43ff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x19, 0xc3ff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x1a, 0x6fff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x1b, 0x07ff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x1c, 0x0fff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x1d, 0xe7ff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x1e, 0xefff); - ksz9477_port_mmd_write(dev, port, 0x1c, 0x20, 0xeeee); -} - void ksz9477_get_caps(struct ksz_device *dev, int port, struct phylink_config *config) { @@ -1029,20 +973,10 @@ void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port) /* enable 802.1p priority */ ksz_port_cfg(dev, port, P_PRIO_CTRL, PORT_802_1P_PRIO_ENABLE, true); - if (dev->info->internal_phy[port]) { - /* do not force flow control */ - ksz_port_cfg(dev, port, REG_PORT_CTRL_0, - PORT_FORCE_TX_FLOW_CTRL | PORT_FORCE_RX_FLOW_CTRL, - false); - - if (dev->info->phy_errata_9477) - ksz9477_phy_errata_setup(dev, port); - } else { - /* force flow control */ - ksz_port_cfg(dev, port, REG_PORT_CTRL_0, - PORT_FORCE_TX_FLOW_CTRL | PORT_FORCE_RX_FLOW_CTRL, - true); - } + /* force flow control for non-PHY ports only */ + ksz_port_cfg(dev, port, REG_PORT_CTRL_0, + PORT_FORCE_TX_FLOW_CTRL | PORT_FORCE_RX_FLOW_CTRL, + !dev->info->internal_phy[port]); if (cpu_port) member = dsa_user_ports(ds); diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 768f649d2f40..813b91a816bb 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -1270,7 +1270,6 @@ const struct ksz_chip_data ksz_switch_chips[] = { .tc_cbs_supported = true, .tc_ets_supported = true, .ops = &ksz9477_dev_ops, - .phy_errata_9477 = true, .mib_names = ksz9477_mib_names, .mib_cnt = ARRAY_SIZE(ksz9477_mib_names), .reg_mib_cnt = MIB_COUNTER_NUM, @@ -1303,7 +1302,6 @@ const struct ksz_chip_data ksz_switch_chips[] = { .port_nirqs = 2, .num_tx_queues = 4, .ops = &ksz9477_dev_ops, - .phy_errata_9477 = true, .mib_names = ksz9477_mib_names, .mib_cnt = ARRAY_SIZE(ksz9477_mib_names), .reg_mib_cnt = MIB_COUNTER_NUM, @@ -1336,7 +1334,6 @@ const struct ksz_chip_data ksz_switch_chips[] = { .port_nirqs = 2, .num_tx_queues = 4, .ops = &ksz9477_dev_ops, - .phy_errata_9477 = true, .mib_names = ksz9477_mib_names, .mib_cnt = ARRAY_SIZE(ksz9477_mib_names), .reg_mib_cnt = MIB_COUNTER_NUM, @@ -1423,7 +1420,6 @@ const struct ksz_chip_data ksz_switch_chips[] = { .tc_cbs_supported = true, .tc_ets_supported = true, .ops = &ksz9477_dev_ops, - .phy_errata_9477 = true, .mib_names = ksz9477_mib_names, .mib_cnt = ARRAY_SIZE(ksz9477_mib_names), .reg_mib_cnt = MIB_COUNTER_NUM, diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index 5aa58aac3e07..a66b56857ec6 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -60,7 +60,6 @@ struct ksz_chip_data { bool tc_cbs_supported; bool tc_ets_supported; const struct ksz_dev_ops *ops; - bool phy_errata_9477; bool ksz87xx_eee_link_erratum; const struct ksz_mib_names *mib_names; int mib_cnt;