From nobody Sat Feb 7 18:29:09 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE2CCC77B73 for ; Tue, 30 May 2023 14:52:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbjE3Owp (ORCPT ); Tue, 30 May 2023 10:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjE3Owi (ORCPT ); Tue, 30 May 2023 10:52:38 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CEE99C; Tue, 30 May 2023 07:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1685458358; x=1716994358; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=L4vUnBXtNja0+OWRdVrOfhc0fbcEoks5geNKas0s+Eg=; b=FWynHoZUxm+DE/neDwTE9RYFcSaVcM5rxkeLuBIsYc1NGScRaZo3vwoL XoukAwb/0w9cFVlYPu15ih10ypD+e3SMri1HRNc3kUGqvwpnLBnrfeza7 OFNdWCChCquf4g/mEBCmD0MNil0Qmuo7/TjEmsxG2lQqmwjVAberGxy/0 HR9CnPofN+Rp50UhpgY9gA58ljk3Xkq6dXDDTirws7BdjE3DQ6hGIzv38 s+8lv1du1NbyMKvbgghNTGTi/jqft+Y+OWzuOSpJ0txg1ChH3ZbcJa6mR 2P8yky3SuY4R4E/Lctp1MZz9N2Z5oPRvCJyCJo80Vn4o62+cNzZHaaFHv g==; From: Andreas Svensson To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Paolo Abeni" CC: , Andreas Svensson , "Baruch Siach" , , Subject: [PATCH net] net: dsa: mv88e6xxx: Increase wait after reset deactivation Date: Tue, 30 May 2023 16:52:23 +0200 Message-ID: <20230530145223.1223993-1-andreas.svensson@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" A switch held in reset by default needs to wait longer until we can reliably detect it. An issue was observed when testing on the Marvell 88E6393X (Link Street). The driver failed to detect the switch on some upstarts. Increasing the wait time after reset deactivation solves this issue. The updated wait time is now also the same as the wait time in the mv88e6xxx_hardware_reset function. Fixes: 7b75e49de424 ("net: dsa: mv88e6xxx: wait after reset deactivation") Signed-off-by: Andreas Svensson Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/c= hip.c index 64a2f2f83735..08a46ffd53af 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -7170,7 +7170,7 @@ static int mv88e6xxx_probe(struct mdio_device *mdiode= v) goto out; } if (chip->reset) - usleep_range(1000, 2000); + usleep_range(10000, 20000); =20 /* Detect if the device is configured in single chip addressing mode, * otherwise continue with address specific smi init/detection. --=20 2.30.2