Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2829844pxb; Mon, 18 Oct 2021 02:49:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze3bc3dyOIB/gW5357/NTlLD7M+aAzvBItA2Ars729+7aVyus0K5UwhB3DzEwK4LdHBneC X-Received: by 2002:a17:906:3411:: with SMTP id c17mr28723410ejb.290.1634550597892; Mon, 18 Oct 2021 02:49:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634550597; cv=pass; d=google.com; s=arc-20160816; b=JksWKCBxUG9SukTS4/0aiwrBPnSw2K6lx0LRTi7FToLS4f3+PwSK7EFU2V5yNqRzJs mOGM7RVz+gYxODTjcAnwnkDsuKQEs0TpWQcZl45ayTc4rERjYCPkXvs86E7UIuuKAN3w d7PMNZucyDQCwlugI7Oh+yP3NJW7Mvt+Fby6w/z9gZfGS5e5QWDtsLYGBhdtdpSx5qo2 z0h2objf5L7g9mvU3J4Pjz/LonZeLXdm2QZhRrtNa5/8/eNRdTiksp5NM82rgK7fG6ex fnqZLv9KhKrbCIm2gfr4jErIQoUzny37ZBlME6e2U7LT8QlbR9pm9m3rW54sG26M2MBs GKRQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hKBFXW8PBkYDZt5ElBVQTJ7oBDS3mtrETh1Hop4Q/fY=; b=gWRKBAR6pB4Mzu7S9vM+QnosJAvJCV9PLaIYcAohIt0uv8Ce2Jk4JGiHJtcK+F3deV ubSOZuLJ9jVxzZjmLUg5S9t0BmUusy7UDBa6nZtPUTul95VP9PLitLilHzciHCN6oLQf N5rl/uK4j4OykcmQN/1/hMeZ6KMrKmLqmC6A+1UPKzO/A0GJnI6mYLa8fWZ2SjW3Q0y4 hPg7qPm57DsHpr78OpkbaMdQ3vXvewmGshle1bJ8Up4HEh2ieUZ8OAwMWmBhdH4Xj4kx WZD8Z70PbcfMBmncwsNKrC5JOv6tF4UjcHe/WrO5yRRAow39bwBEzHiSm6h19WYNdXvf +wZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=D2XOxc97; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si26580469edc.353.2021.10.18.02.49.35; Mon, 18 Oct 2021 02:49:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=D2XOxc97; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231570AbhJRJt7 (ORCPT + 99 others); Mon, 18 Oct 2021 05:49:59 -0400 Received: from mail-eopbgr70107.outbound.protection.outlook.com ([40.107.7.107]:38266 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231468AbhJRJt6 (ORCPT ); Mon, 18 Oct 2021 05:49:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CAdBEHdRDyTaWrSRO8wEbWpU5SUs8GGZegXWOvG8Dbdmfcjv4KXv2Uk9lOtyC5wvqII0olmImWQEQ103iXt1ZXBo9N0fi+/vLTi2f5i1SifiTiybvHGyY9aceAA4NXSaWEtJx2s4ZJzuiTOZuz098Tkr0BJC26vyyo/bnxU1NMvk17wiAnqzymz2EBIFTQN793tNC5czzFDTa0EJk7RODEjpR5j25YjhVyNjzy45ieZprH7l6TZ5mqJBvmiZUkTrYkwC5hVmOf9rEHO18YkIzfl+SpqlCzEYmc28sWsUafHFdlZ9R1rUo6LY3ciKh9HgQCvUbmi9ws6+ct2PjvBmlA== 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=hKBFXW8PBkYDZt5ElBVQTJ7oBDS3mtrETh1Hop4Q/fY=; b=XuzqkOk6LHwPuWX/BpwqvAgXHYZDUQfXNDTsIb0gL8CxBIjAaJ9TiKUP/ubbqbcSR7ZUCmA2kXXRRnouf3XEstXuyXwqcGb8RjhnRyxbV50cELyfTzQUygmm2gxIGDCy8cVEJmwlJE1sidk2pHCOdXT2p3pqLb8oy/SujBaJE7Y+d0noteRXUegC80DG6ypySdlCKoPttcjUN8Srq6aK+zhfxiG6lHfx1cHEBzagTdlnTdQKoQYrH4REgw64B+fhl3E3eDsiA9M6it36ItvXb4dku65l/A2AOzLzJxmM3KjEjjsBC9qGPnm4cU2JzFuHo7XK993xtX3NOFbCxADUGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hKBFXW8PBkYDZt5ElBVQTJ7oBDS3mtrETh1Hop4Q/fY=; b=D2XOxc97G2rT56HleXVxRoRfi2Wx9HR9v61/qZbRxrHRmc/387761m/FzxRUli6bGHh0Vt7ap6JMxFIzmUkgUb3SRpMjXNhtCsUjp9tzY8TU3GrVa3qcgmt2tXNqGLln2Nk63qvNOu1uIbDnqG8YA2qbb4vBgtpvts+Ijkjplgo= Authentication-Results: agner.ch; dkim=none (message not signed) header.d=none;agner.ch; dmarc=none action=none header.from=toradex.com; Received: from DBAPR05MB7445.eurprd05.prod.outlook.com (2603:10a6:10:1a0::8) by DB6PR05MB3238.eurprd05.prod.outlook.com (2603:10a6:6:25::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Mon, 18 Oct 2021 09:47:44 +0000 Received: from DBAPR05MB7445.eurprd05.prod.outlook.com ([fe80::98f8:53ac:8110:c783]) by DBAPR05MB7445.eurprd05.prod.outlook.com ([fe80::98f8:53ac:8110:c783%3]) with mapi id 15.20.4608.018; Mon, 18 Oct 2021 09:47:44 +0000 From: Francesco Dolcini To: f.fainelli@gmail.com, Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski Cc: christophe.leroy@csgroup.eu, Stefan Agner , Marcel Ziswiler , Francesco Dolcini , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] phy: micrel: ksz8041nl: do not use power down mode Date: Mon, 18 Oct 2021 11:42:58 +0200 Message-Id: <20211018094256.70096-1-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0151.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:41::12) To DBAPR05MB7445.eurprd05.prod.outlook.com (2603:10a6:10:1a0::8) MIME-Version: 1.0 Received: from francesco-nb.toradex.int (93.49.2.63) by ZR0P278CA0151.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:41::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 09:47:44 +0000 Received: by francesco-nb.toradex.int (Postfix, from userid 1000) id EB74710A08AC; Mon, 18 Oct 2021 11:47:42 +0200 (CEST) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a3129c3f-1838-4c07-93d1-08d9921c55b1 X-MS-TrafficTypeDiagnostic: DB6PR05MB3238: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tisc5kfhQ7j7dCCptNyPGeDkyPjx+qQIx5isTUi6xAGmtE8j7GzR6a88w88G85eoBED6dRfoJjMC5xNy5/ZnxrHbSGtYlYteM/MyveSGywC2DPjxOD/wJ+0OhqMsSbFiV8QHeC14XqYEdChNT5PqC1uD5g+deFL524BPLyN886jDqZu4gYnqd4he/S3Z32i7CyRG5P5MmpgGREGPM0joPghd8tV3PqCH9lYXdz4gtEk+sdocCP/1aTh3w/hlIDVdWzjrx1namq8UihrM5qZDdefF2Zg9Ou9cUEpqYp0nVaYMPxvewiAKpKb6PE4Dj4OAjZ4cx+9yO/VOF+nBNe5oG24eq2DCUW41EAbCSCE94/7w/e4paEOK7yPgFmXRlb1pWEONUHa8lwg5e/5ITmQa16Thj2/1RDQ1rl4EzAG/x8bphdm9ds/jNX0eEVZceGD2haIkfCKMxRYNDEpu9JV/0pNmQ2Ouef9iIVFnPoXH9D6ZMT6t9SZKr/wlHO17FBv13kvanN6kkgZWk9bV0HQPatCb+kr5Cxv7sPPC7njLv08jS/BtmRTCvbUS9KLbTixE8lHi7rkoO1Ff7x1ZFOjITW1t+VX/ulQI5s8gBFVYZ0wjRjX0m4Y1XUshsOSw3s73ggNSsl1/jEV1zPnRQYiw41dihogHAoElyrl27N4zUaqe/oc+B7prb/pCY6IjkF4D61vUY7LEBbApG2Z87HsA7JHpfhJmbNFsnRSBU/jYIjk+/ICa4GDA7YCV2YOaqtUc34tKRjGOKjNaN1j3xUowHpR79B0mOC/nYzMVAKxJgfY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBAPR05MB7445.eurprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39850400004)(376002)(396003)(346002)(366004)(136003)(508600001)(66556008)(52116002)(7416002)(66476007)(66946007)(83380400001)(8676002)(966005)(186003)(5660300002)(6666004)(8936002)(2906002)(26005)(86362001)(54906003)(4326008)(36756003)(38350700002)(38100700002)(42186006)(316002)(110136005)(6266002)(1076003)(2616005)(44832011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PnYLSskQfCcbwrCxk7AlRtcDR6e9r9pWTV/VbGQru3iL122xVF9tkT72Xl4m?= =?us-ascii?Q?wLL/lE2SUtGemPGOLVw1DUY0xrgZMTCAD4kKdcYb01fHRwC4ZrOVDim0XhaF?= =?us-ascii?Q?TMnyygINWOovdq6+mrO/KDdjb2pB9/1yo66ui43o+E1I6fW2UlIDtEh8c4Nx?= =?us-ascii?Q?E46R1EGm9LTTXtpYNcloVZrwBBn3QQXH2YMDwP7f5cPpscEC590TiQnhnFG3?= =?us-ascii?Q?QI0j0i+yBbMg6gdihXDJJD/+1r11N64nvGImx5IGx+rXBpG/RBqW7IOg7QJO?= =?us-ascii?Q?WF5mk9QAs6YQO2x1WCBWuRccPuVBPhtIUqzMPU55vOY0H6vrr/zN7idGm1F/?= =?us-ascii?Q?PPCc747vXD6yao+b//GXjgJJjfQ4AEx7gV99pl+5oATtMQ47aHrSUol6db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Re7VSmECTw9CfCqPOflIQ4BM81YBdnxM?= =?us-ascii?Q?3DD+SvSpawN8uGGqlufBPWDz?= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3129c3f-1838-4c07-93d1-08d9921c55b1 X-MS-Exchange-CrossTenant-AuthSource: DBAPR05MB7445.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 09:47:44.4783 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rRu/JrdCPWjYxvkeEmdrE/sVKzpSgbjIaJ4XRBByKDZLEfZFeKDE4AzwZP39M6hoEsUie6MMnV6ZFVcPDtwMxqUsA3Psmx5rdas2EbKxFfg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3238 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Agner Some Micrel KSZ8041NL PHY chips exhibit continous RX errors after using the power down mode bit (0.11). If the PHY is taken out of power down mode in a certain temperature range, the PHY enters a weird state which leads to continously reporting RX errors. In that state, the MAC is not able to receive or send any Ethernet frames and the activity LED is constantly blinking. Since Linux is using the suspend callback when the interface is taken down, ending up in that state can easily happen during a normal startup. Micrel confirmed the issue in errata DS80000700A [*], caused by abnormal clock recovery when using power down mode. Even the latest revision (A4, Revision ID 0x1513) seems to suffer that problem, and according to the errata is not going to be fixed. Remove the suspend/resume callback to avoid using the power down mode completely. [*] https://ww1.microchip.com/downloads/en/DeviceDoc/80000700A.pdf Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- There was a previous attempt to merge a similar patch, see https://lore.kernel.org/all/2ee9441d-1b3b-de6d-691d-b615c04c69d0@gmail.com/. --- drivers/net/phy/micrel.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index ff452669130a..1f28d5fae677 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -1676,8 +1676,6 @@ static struct phy_driver ksphy_driver[] = { .get_sset_count = kszphy_get_sset_count, .get_strings = kszphy_get_strings, .get_stats = kszphy_get_stats, - .suspend = genphy_suspend, - .resume = genphy_resume, }, { .phy_id = PHY_ID_KSZ8041RNLI, .phy_id_mask = MICREL_PHY_ID_MASK, -- 2.25.1