Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6854013rwd; Mon, 19 Jun 2023 13:36:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7BZP492dBLtTcTgytjktdK1+hVVlbZsromKHuSHkkHMBMvHPDJ5MU+AvWECjlDhXobCm20 X-Received: by 2002:a05:6808:3088:b0:39c:877e:d8ca with SMTP id bl8-20020a056808308800b0039c877ed8camr9925230oib.27.1687206977631; Mon, 19 Jun 2023 13:36:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687206977; cv=pass; d=google.com; s=arc-20160816; b=nFTwXADTtMmy3DLljkbHh85mrfjdpTQ5oc+He10Kr0Ws4o61iaVbV6AADjnLAq3J8T 0PlL+51csTikI6kk3mmJ05aQtQm4T8Y4ioEJcvjet29itSUKmgco1YCGzKwUGlfuUV0N qME60mA/a78HLi68r6rY6NEZQJfu0dDWCWAhTchQxtwIakpuxocjTZO0zT1OvC+mrpjz Vo4K4sYHXHJ2iKFMdRQpyWg1muaVd/fX5P1Hpl4vOHDBhJumgf7FzexQAr4hON7pr8E+ pnUZB0mU53meWQ6c+pgQBVn80rRanixVNVf6znlajQ8Up28g+9TcRGO8n3UM3BG19G9d J8KQ== 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=lOo0UBB5PaZieq+njLLi8H3gz54rimM0wEfIVZoKEOM=; b=jbd/qeX6AG8QcwAEWkETgw9hFTytKaMwUXGRvBBT2DJKG0b4K8M4h2ggY6vv2ooRdm H8uLREJ+7wkr7+S9O5WwV/3ZkV2aGPleuKvxbleZoUVdK9KbHjU34SheSSDnMU0xadSZ HWSTotgIGwP9lLWTWAMqj/Ln6XCHnelCGs6vr6oWLhtVH4eFASQntnOcI8cVgGxSRPAK zrkS2ackurNfLct4KePVGEyktjLyc6p/l+RFJINGKC5dMhHDu3Y55jhsVpKqf3GBwb8G NO7mG5drjgX00PeyRY7ZKVHdur4HscXQ4MBXYQWOUa73MdBRF5mgMlEBtTxHZxZ2LeF5 yuow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=XsjTQaaB; 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 c19-20020a17090abf1300b0025c0a65a763si407123pjs.121.2023.06.19.13.36.03; Mon, 19 Jun 2023 13:36:17 -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=XsjTQaaB; 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 S229887AbjFSUSX (ORCPT + 99 others); Mon, 19 Jun 2023 16:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjFSUSV (ORCPT ); Mon, 19 Jun 2023 16:18:21 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2101.outbound.protection.outlook.com [40.107.94.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 650931B4; Mon, 19 Jun 2023 13:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gF7uNA7DcO5MoLeqQq79pCkGu0juxCkxKMWWN0+FHvgxk9LbU5qDNiJwdwXaSb4kmGpgRV9JV46qcoMZGzlsuOtokYwQAtTJuI0TZVuRy7ZDTlniUXyiyKEhEtYe5crql0b0Y0d5FSpezGsrDd2V9juZoxGrebKNPElI+S0M/sR2fryFlptmnEmeeEU9gFjZGUsu57w0xXKjJLdzCala8jnj4xO8kIwkr4qo6bfpjaYbNVpEvyJ8GEp3tO3Fenx7b0EdVQdyQBLk1AmawGNgDAZ3WKZzc3LalzQNavNmzxCaoaphEZITmdU6wSwCahEWYpYxI6s5cqkKprCPw3cDCw== 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=lOo0UBB5PaZieq+njLLi8H3gz54rimM0wEfIVZoKEOM=; b=dmfq4cCtg+WPyOVCcvTJoRG3mdJHXjRW2TvLsn3fYMv/kLOGLNu84qCBTd8oQTyKGSHvtq1L9Z+0TXn3LdhubUmSlcs5aIayAXy7HJnw5Kwit662LMs09UttZTjB7x3m+eAqBIbJ/gzqXU0/VaS7dHkQqKyz48jaMZn/pLxWfqWfTaDjYdbHruJ1yKbucsVmU7qQb0p2OXQXFr5Kri8CCftyTH1tbH1pIHcttj2wUP4ODbEVBIEltWEjNV1sI9H4GwSFV5xdduqn3Opv2Tx6DgvPG+hE/dH2CsPAnluSXcyV9AFFGnj+4mLwvG2bl1xjrhlKrv93oCtXKAfziaPU4w== 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=lOo0UBB5PaZieq+njLLi8H3gz54rimM0wEfIVZoKEOM=; b=XsjTQaaBiZze+DwqHuc6NKsp+5gp1sBIzJN4/YBv4PrE8I4BRAD953ZHMZD/iHfg5ng3so45YBf59JvZyUXUo3lmxBVrEFFFGEDPV8+ojfauA3YXrU2TX3UFPiSw03gKTZB6zax8NaSsaX9ZtcMB6pzAew/JKo42Ba6PG2FIbY4= 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 BY5PR13MB3634.namprd13.prod.outlook.com (2603:10b6:a03:226::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Mon, 19 Jun 2023 20:18:16 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e%5]) with mapi id 15.20.6500.036; Mon, 19 Jun 2023 20:18:15 +0000 Date: Mon, 19 Jun 2023 22:18:08 +0200 From: Simon Horman To: Rasmus Villemoes Cc: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Robert Hancock , stable@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: dsa: microchip: ksz9477: follow errata sheet when applying fixups Message-ID: References: <20230619081633.589703-1-linux@rasmusvillemoes.dk> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230619081633.589703-1-linux@rasmusvillemoes.dk> X-ClientProxiedBy: AM0PR01CA0142.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::47) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|BY5PR13MB3634:EE_ X-MS-Office365-Filtering-Correlation-Id: aef21cb9-6710-46aa-bc39-08db71025082 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AISz2EzF08e8+8R4ukcixXPo4umuIsGuTimfxsABKszgWwla2eD1xtN9MIh4i8zDc1wo6riuqvCUyHKoZDeezCwMTNH2y+zJUS3cMxX+vBA+78MlDZEA+ZG3DHn6RGly+sdLHE8HZZQfs8l5muI5gliwGNCvEtLMkU4h154iY0sllh1PCdO8AObePadmACq7hIHiSh07oUD/7VVVaN9EY++U/SCrdsn0PUZyKlfgXpia6KyNYhzHtqhDLmIZ230rwGZrCR6yV/3ZjygAdt52Tts/AwS39Faxd8c4tRxrUniuEgQdTYsgLERlzW7YQdLatg1h2cR3kN15MPz8BrrdV7HLcgqterjmTeR1Ncv4bf4WGsWsWNQhJpzywY4EP6naRRQ2d3MmLGS9P8c5akQSjYA3IiWzHFabGj7ZbdUWw1DTwk1Xt8UmFzlBVgYk7k2zH3+2vNtefuhvaVIf7sRk8FQyJb042i0cUy4iTBrGISYOFoZP2iPhMqEw9ISBv6UJsQmQWV08VC2aqmbYY8SUH1SY5GatmC9bg/Bxi4lsxLVhR+2U/nOaA4tjfVHY494Gkvo8QVFU8C4bHbYJP1fX4tXufHWGHQKPcSpiBNlQvMs= 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)(376002)(366004)(39830400003)(396003)(346002)(136003)(451199021)(186003)(54906003)(6666004)(6486002)(86362001)(6506007)(6512007)(478600001)(2616005)(38100700002)(316002)(83380400001)(66946007)(66556008)(66476007)(6916009)(4326008)(41300700001)(7416002)(5660300002)(44832011)(2906002)(36756003)(8676002)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?e8Aa13+g9UmhTb0cByKZJrO7+jBJW7p44PkD8uT3T5CvNZFkk5w+isfEpC5C?= =?us-ascii?Q?tkZNRZp+Z/dKkWbZyLguiUsCxvoa1lGLdp8DSjCoIj9mkWina67F+3Uxj99Z?= =?us-ascii?Q?FemUjSf47YEXa6vC7RrSvRw5LlYpXmLAa3ItUajVlXm4MpqoLmvZpq0/XB/5?= =?us-ascii?Q?uOrrpZspTzCWTZ2OyG7hLxxrK1jGo5FPQzMHalH1O+TQ4zW0RjK8gzpPD7BI?= =?us-ascii?Q?ZR1Mr7u7q9GeQ3TW8dy7h5++kdDGAZi44B/BNcLEhIDV+6VGZNFn0yyXeOa1?= =?us-ascii?Q?1ixqU216kGbrzdDnT3TSZVd2eWRqh1zZe7PZQl/8FqqRB1TZ6g7D8UVE28E7?= =?us-ascii?Q?hQbAUJVcfBE3hsEjXDw6WhTa0d4XBuVh48xLu/d+hh9N41Krjwq0RdxC9Ib8?= =?us-ascii?Q?tLHNMBKHIoHsfRPMfo4OFtZDG5TDr/YNXvqeniQNr2LWUbVs2hxhKU+7nSLH?= =?us-ascii?Q?IIUHITbA5RU0VfBBnLQvpiSMU/UlCFOnhzl2QNIpXvDVFP0qMSVatkUYQ8eb?= =?us-ascii?Q?KW2JYAEYSqGpQeKRZBgzoh8K8+0yKkxk/67VrLZMG3F4IIvpPIWyVCIdv/kG?= =?us-ascii?Q?C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R/bcYPHe0HA6VaAK/j4E7gEpshyPZdveNY?= =?us-ascii?Q?ipCV6VVbDm+Ei9QScvwdgebLZsHjSMhwHzM5yb1NFyxOgHdt5Gd7ekl5ZNwC?= =?us-ascii?Q?VmqQ9t8JNJa73zoTS1MgtyMrN8ek6hUGm5tEJQtwSFcj8V5eEgQqecqvEvI/?= =?us-ascii?Q?582asbx+Zy/mTbOBriruyxQuNkHoMnDkLXmJ/rDAJTjdk100gbydyHMKTH2B?= =?us-ascii?Q?7VY7QQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: aef21cb9-6710-46aa-bc39-08db71025082 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2023 20:18:15.9197 (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: 5geHW/Y1LmHetEk3FbthIvjEhbT7zhMi083NawzSK+6qWO0mS2AtCx2UrgyzedgzK+GoqMLv+eeHQz3/D+2pkdx0eWKf+AD6WC3F/lHXKbA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR13MB3634 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 Mon, Jun 19, 2023 at 10:16:32AM +0200, Rasmus Villemoes wrote: > The errata sheets for both ksz9477 and ksz9567 begin with > > IMPORTANT NOTE > > Multiple errata workarounds in this document call for changing PHY > registers for each PHY port. PHY registers 0x0 to 0x1F are in the > address range 0xN100 to 0xN13F, while indirect (MMD) PHY registers > are accessed via the PHY MMD Setup Register and the PHY MMD Data > Register. > > 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. > > Without that explicit auto-neg restart, we do sometimes have problems > establishing link. > > Rather than writing back the hardcoded 0x1340 value the errata sheet > suggests (which likely just corresponds to the most common strap > configuration), restore the original value, setting the > PORT_AUTO_NEG_RESTART bit if PORT_AUTO_NEG_ENABLE is set. > > Fixes: 1fc33199185d ("net: dsa: microchip: Add PHY errata workarounds") > Cc: stable@vger.kernel.org > Signed-off-by: Rasmus Villemoes > --- > While I do believe this is a fix, I don't think it's post-rc7 > material, hence targeting net-next with cc stable. Hi Rasmus, unfortunately this does not seem to apply to net-next. Please consider rebasing and reposting. Please include Andrew's Reviewed-by tag unless there are substantial changes (seems unlikely). -- pw-bot: changes-requested