From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3F51B370E4 for ; Wed, 7 Jun 2023 20:53:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6D5CC433EF; Wed, 7 Jun 2023 20:53:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686171193; bh=XxabwGHJZIgy2CiecXYg53uWKSTWxZu/sbRrH29N62c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ofqhw+RwSJur54j6Ip0TXwpKlMxwqmk3rOjXbQaJmtYHbZdxYkWZb3pSF1dwn1Rxz PfrV8TQPLV0VYDubZ/ZZCZnpJyyIJKzYLZLFqY1DFJKXu8DisYykTnLRg4w3h5VysL d5MA3pZiBY273p9zm7d/6v6rtX7XuT3yKl5wgrRw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andreas Svensson , Andrew Lunn , Paolo Abeni , Sasha Levin Subject: [PATCH 5.4 25/99] net: dsa: mv88e6xxx: Increase wait after reset deactivation Date: Wed, 7 Jun 2023 22:16:17 +0200 Message-ID: <20230607200901.046770935@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230607200900.195572674@linuxfoundation.org> References: <20230607200900.195572674@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andreas Svensson [ Upstream commit 3c27f3d53d588618d81d30d6712459a3cc9489b8 ] 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 Link: https://lore.kernel.org/r/20230530145223.1223993-1-andreas.svensson@axis.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- 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/chip.c index 3a8a49b7ec3d9..393ee145ae066 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -5096,7 +5096,7 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev) goto out; } if (chip->reset) - usleep_range(1000, 2000); + usleep_range(10000, 20000); err = mv88e6xxx_detect(chip); if (err) -- 2.39.2