Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353491pxb; Mon, 20 Sep 2021 19:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGYWLwQK3cS/5inOhoT54PBLpwxNu0TYq+VM+QDE9ZUaRd/1dq68tHMBF3i7YqqM6p0/zN X-Received: by 2002:a92:dc85:: with SMTP id c5mr19534273iln.104.1632192710968; Mon, 20 Sep 2021 19:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192710; cv=none; d=google.com; s=arc-20160816; b=VUWH/asNXh9RvHMqYeh/QRaD4QAmnLOAXDnJsSgTOSHPA8TElIoKdRV9qUEwd8bECR ZuWb8RQYoAT7qxpe8IZH0yIl1pVOOp1qEw/YhPV4OjAwHEJGNSbFZ/TBiyUq217YFyc5 EJOcZaExDFc8fYg6Cq/GMya3lZNoFgRWE0dofr4LoADbOIKDIgtg8hJBlo6Ioz9QRDOL dSRqFpGIxBjUI48eVSg+2cJhPWd1Gzn0YQb3ApT79nx+E+1N5qHMI6DtFtP0qbKQuHY6 SRutXK4oUDhFn2P6ckBV8AdtRljmLbf92FYJqn0IKWta4MQ8vOyYdd8hwM7YUNXXAdwG B1rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+OyAwDI2o5WbV94lk8yV2UWWf1Lyf+DTtHysfy25KRI=; b=dEuN8n7TGsO9NExgpbAEBmafNsspLHrplrPU1x3A1cAqkYpFD/v+K9zi9aFpqQVEDq JcT5P46T4kjo6bPLvYsgr/jYfE16NT7pSjTIBE/mSABYHUElld2s+WKOzIYRp2ZrT+3i pyrMLyNEBrqIkWr8MH1Exi9egIXs/SnGlvUBtg655vRoEFGlApdWYbpR8aei7IcJ9+6+ /43dZv371GYoR1+46FaCNoutr3pD6JAqvjlqElV4Ss++kQsrQX4He73sBUQay5feOIaK 9WnfBCq34yPnCGJ72TPCMV8KkcNJs7OHI8KDy7KvwZRP4i0Ro5EnR7A1pATxHGjRdDVL olMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VfaxTGlf; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si15409837jaf.48.2021.09.20.19.51.38; Mon, 20 Sep 2021 19:51:50 -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=@linuxfoundation.org header.s=korg header.b=VfaxTGlf; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349672AbhITSrZ (ORCPT + 99 others); Mon, 20 Sep 2021 14:47:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:56462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382807AbhITSm1 (ORCPT ); Mon, 20 Sep 2021 14:42:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B5DBA63344; Mon, 20 Sep 2021 17:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159118; bh=G0yWxee8sWhPe+DfRiOp12xOteHQ5FHmPimc8+eYH0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VfaxTGlfF5KKrVyYVnyQPWBr+fKpZJ6UCqE5pf+4iO3U4ari4sFYJjjahI3cuVMyD sSNJ6pLZEY5tAzjTM5rE387aQKNmSVwVMTbk3eFqhyxRnqrz54jAH1H/aPuku+BGV9 IrPaXlCMxY/GwqT5FrixLci/ehXBchGwoQFZribE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aleksander Jan Bajkowski , Martin Blumenstingl , Hauke Mehrtens , "David S. Miller" , Sasha Levin Subject: [PATCH 5.14 084/168] net: dsa: lantiq_gswip: Add 200ms assert delay Date: Mon, 20 Sep 2021 18:43:42 +0200 Message-Id: <20210920163924.397678210@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aleksander Jan Bajkowski [ Upstream commit 111b64e35ea03d58c882832744f571a88bb2e2e2 ] The delay is especially needed by the xRX300 and xRX330 SoCs. Without this patch, some phys are sometimes not properly detected. The patch was tested on BT Home Hub 5A and D-Link DWR-966. Fixes: a09d042b0862 ("net: dsa: lantiq: allow to use all GPHYs on xRX300 and xRX330") Signed-off-by: Aleksander Jan Bajkowski Signed-off-by: Martin Blumenstingl Acked-by: Hauke Mehrtens Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/dsa/lantiq_gswip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 64d6dfa83122..267324889dd6 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1885,6 +1885,12 @@ static int gswip_gphy_fw_load(struct gswip_priv *priv, struct gswip_gphy_fw *gph reset_control_assert(gphy_fw->reset); + /* The vendor BSP uses a 200ms delay after asserting the reset line. + * Without this some users are observing that the PHY is not coming up + * on the MDIO bus. + */ + msleep(200); + ret = request_firmware(&fw, gphy_fw->fw_name, dev); if (ret) { dev_err(dev, "failed to load firmware: %s, error: %i\n", -- 2.30.2