Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2899563lqo; Mon, 20 May 2024 23:54:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCTtVa3yXz3egGzHSR7L+w+JhDLeVk/sNN65Kcddv5rTYLytQVPgo9ovf1rIHFhXfvVU2v/jPuUUYwO6ibgiA4JYnnlO9M8rTDhXlKhA== X-Google-Smtp-Source: AGHT+IFWcHtnVDkJ0Bcx3xBtMW7icCdDdZkDniF3w/lCSwaPmHa4abNTGGSTrKUf8KgEW7H6Adox X-Received: by 2002:a17:907:9455:b0:a59:b88c:2b2a with SMTP id a640c23a62f3a-a5a2d66a7cdmr2479887066b.50.1716274490455; Mon, 20 May 2024 23:54:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716274490; cv=pass; d=google.com; s=arc-20160816; b=ZOEnE1EmoX2s5TCjb/9OU4vdzcggVTaq7lUqfAMCxCoMqM1x5vxDIKbfwDXb9zXv3N 0/gRIF76fkWaUoVedsKtfqdYC276J1usDVS8oZGLBPeqjAK1Lrq6Cb4evdecB0yY2wFU vLGVKVKP8L7moumY0V3+1U18JnHd8pkZqzBFAWd4fd7XvyMbykzpwIajhZEDB+VTO6ro 3/AF4KRA++mjcKAJZVIgU0HHnErCIXzEVL0Bkk1WM88rQAOIH1w9HpwwoA9csmm7XoyW 8I9YCRdKRuVRyNTBm9sG+G0kg9oF+vbvPGZMPUgnjn0BIjaz1Hxs7qwJVa4H3BNriMBo rSVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=At4Se3gmzXZDGmwHKvKP5TWbdoV3Trjfqo3NAyHAEuk=; fh=l/CeBpNGsgg/bwvwPLvd7TaCTg0nVCfb32YqmMXSgbY=; b=mApCdJnJp5T50JINHTFQBmAZ0tNoHTWMSr4rqAptckfDSUiQVY6aY2FSyNz1D7d42o LaPBSIHerT6sIBzeRGAvmPOTkWEwCbt/cMe647/Sw8W/v5tLzFWXKJC2mRLvNTX6zbbH pQI+ywfY/xS2m6r/Mqm1tJ/sym86GLffmO5lOg0y6jeNBJnsilUDLIdrtBx0i+6O5K91 g1nv3FAQAUZK9g0MqDfZ7f5oEumCJhl85hpEx/S11w24/q3aXtwl9PwGnQzghrxpw8Zv 1DAwgav6eEy8XmxK49K4OlVXdd1glaRF+SLuwEWZ+ZiSKR9xc4KTfwVCEtYUZapczqa+ zSfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gnu.org header.s=fencepost-gnu-org header.b=ozh+1Wpm; arc=pass (i=1 spf=pass spfdomain=gnu.org dkim=pass dkdomain=gnu.org dmarc=pass fromdomain=gnu.org); spf=pass (google.com: domain of linux-kernel+bounces-184536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17bafec0si1379588966b.694.2024.05.20.23.54.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 23:54:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gnu.org header.s=fencepost-gnu-org header.b=ozh+1Wpm; arc=pass (i=1 spf=pass spfdomain=gnu.org dkim=pass dkdomain=gnu.org dmarc=pass fromdomain=gnu.org); spf=pass (google.com: domain of linux-kernel+bounces-184536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2C52C1F22304 for ; Tue, 21 May 2024 06:54:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEBDF481D1; Tue, 21 May 2024 06:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gnu.org header.i=@gnu.org header.b="ozh+1Wpm" Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) (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 34354C12C; Tue, 21 May 2024 06:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.51.188.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716274481; cv=none; b=FRLv96eFnrLXLwLfxEZuX7ssh+nNUP3IAvSY28xONvY2qBnZwiiU8g73FLFoMwC2WvGSMO2s105SsbwM5fM2yK44R0o3WsCZe7AK/rz7iMFCcnJB1rtRFH2EkN4iiUVmL5k+0nQMWsXwybS0cHXpmgmeoaVKuklFSaPaz7RfcMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716274481; c=relaxed/simple; bh=WtgR3bLQuAmZGGWX0wAEK013PqHleBU86WX+TrhdJMU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u/T8XGUlJzQnFpdiu7MuAk1l334rOAUXhO3zP2FcYEIZFN2xSqKv+wYbeaws7IDk2/YKxFm41YLypnCDbm0E8dPjj5PrufOrAlqRiNoqWmDIfHoDLzc9L24VwjEU+VViAtlW7CmoOp6MKu1/Ba5YBWwdMTfbCA1l2IKa1PVx0rQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gnu.org; spf=pass smtp.mailfrom=gnu.org; dkim=pass (2048-bit key) header.d=gnu.org header.i=@gnu.org header.b=ozh+1Wpm; arc=none smtp.client-ip=209.51.188.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9JOI-0005RQ-R5; Tue, 21 May 2024 02:54:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=At4Se3gmzXZDGmwHKvKP5TWbdoV3Trjfqo3NAyHAEuk=; b=ozh+1Wpmncnavt AXFMGDLI3yCG9nqxjQi3xlHXRuhCzCApw8YnG8znPIHwDqpu5GrBy26vTZMzCufUViwsBtDh3BYxR jTzIva7f2/3crqmJeA4/dY3PzI5uwCw0oMchnHKGXxUgFZifjKiqGM1390FwklEfehOtrQTfOZI37 WbO0AthpQZ49HleONx99rQZsIdIpY1pCU1SMI0gQIOCWxmZk+x9NzbKx4xDEZfSjyTjE94nvRhekB Lh9MCGJEpp+UPBXlZmxO4HVKLy6HrR8Savea8k8hJ0dXWo6H+K9SZfsAQFvqG1pGBM319e3TD8lSD /uyeuZ69LxWkr/W2qmuA==; From: Mathieu Othacehe To: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Mathieu Othacehe , Karim Ben Houcine Subject: [PATCH] net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8061 Date: Tue, 21 May 2024 08:54:06 +0200 Message-ID: <20240521065406.4233-1-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Following a similar reinstate for the KSZ8081 and KSZ9031. Older kernels would use the genphy_soft_reset if the PHY did not implement a .soft_reset. The KSZ8061 errata described here: https://ww1.microchip.com/downloads/en/DeviceDoc/KSZ8061-Errata-DS80000688B.pdf and worked around with 232ba3a51c ("net: phy: Micrel KSZ8061: link failure after cable connect") is back again without this soft reset. Fixes: 6e2d85ec0559 ("net: phy: Stop with excessive soft reset") Tested-by: Karim Ben Houcine Signed-off-by: Mathieu Othacehe --- drivers/net/phy/micrel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 13e30ea7eec5..1d769322b059 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -5327,6 +5327,7 @@ static struct phy_driver ksphy_driver[] = { /* PHY_BASIC_FEATURES */ .probe = kszphy_probe, .config_init = ksz8061_config_init, + .soft_reset = genphy_soft_reset, .config_intr = kszphy_config_intr, .handle_interrupt = kszphy_handle_interrupt, .suspend = kszphy_suspend, -- 2.41.0