Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9424168pxu; Mon, 28 Dec 2020 16:03:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3xvUOFG5aVqiDqvq+ZtizQsnTXCV4fBkCKy8o32U8kS3LFZQB5VSPJrigpmLcyq5iZHnZ X-Received: by 2002:a17:906:7e0b:: with SMTP id e11mr42646111ejr.533.1609200232693; Mon, 28 Dec 2020 16:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609200232; cv=none; d=google.com; s=arc-20160816; b=Jg7DBMZax+ncJNvyWLqLPj6YqtzMYw1gsdUplG9dC1ncdkniOXoPsOLw47UMPqthqa Tfq5qyW2nAyuD4mcyZy30g9Q1InGCl+ECfl5goAleAC/nH8fuZBkHmzdhsrP+uXH+1Dd 2vhiR2s+SJX7MtIIr7m2usee3KQYhc95BpvprpgvYnLSqPyGg1TM8ftsrSRP3+5XSz3A TdaLfMWI3dopDgUm+0o/bepb8wUpEymUMNErzXagsjiGPBp8F91wfZhn/zh6BUyb+/Vb Wth0CmyVLLs6O69wRMjdlZCw/pzIa8MVg9PJO/0vpcMHyDEBZTmLTmdQ82WUaAGIkaI3 kKRQ== 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=1AjWDQNoUEHRhazTenAHYo1Ra9dE71VsP1N3xZ1CYVY=; b=WmltnWGEpEKzUi79Nqccd1NqF+ZnH39JA6eVnCz6+eZhZ2ixuubyKq0maCeMsKFFKs gsrSuMEI7N4vPebTZWbHdarLn9Yk77X4xXPgL/XGQsvukYdowLLTrIslj1GWazHJAO2S R/ihyXXVjX2hQOdbJZj71g9Iu++Jh7b92LqLg5Bk5snpiFH5EXCtRpdYklTGKwYSp/8c 8dh5uqHoeizgicAIxbv/eBscU+kZqs2ujvUGVhX9RNK9AsV2NIFO7bQS4VxZlCk2ZLSR TsCIyTaq2u0cNcuEbBk36vZbihbdKqrYIIdgrgTbqf63FDGiNg+32oxMhrnjsaIElIzq PGkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wqZtNoyu; 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 o11si21238539edq.506.2020.12.28.16.03.30; Mon, 28 Dec 2020 16:03:52 -0800 (PST) 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=wqZtNoyu; 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 S2392386AbgL1Oyq (ORCPT + 99 others); Mon, 28 Dec 2020 09:54:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:52078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441390AbgL1ORM (ORCPT ); Mon, 28 Dec 2020 09:17:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2565D206D4; Mon, 28 Dec 2020 14:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165016; bh=NNZwcEfpwbXIVyZo4YkPxPqtl3xvEcGYnuyijk9fYQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wqZtNoyunE015zabXtM508cFwsoW2ShxPKJRpyS4OEjViGzHSWbt4L1oofiw/bMkv Gug6fqTCHJndq3jrwMeQl0c+ZcbMBGd9xWIXlcfZvAQgX8X5XOpP+rTXSabEwHN+xD q2b+Pek0kGWZuErdUzQ9LWsGWbLX2zod985audkQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Blumenstingl , Stefan Agner , Kevin Hilman , Sasha Levin Subject: [PATCH 5.10 350/717] arm64: dts: meson: g12b: odroid-n2: fix PHY deassert timing requirements Date: Mon, 28 Dec 2020 13:45:48 +0100 Message-Id: <20201228125037.795599848@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Stefan Agner [ Upstream commit 1c7412530d5d0e0a0b27f1642f5c13c8b9f36f05 ] According to the datasheet (Rev. 1.9) the RTL8211F requires at least 72ms "for internal circuits settling time" before accessing the PHY registers. This fixes an issue where the Ethernet link doesn't come up when using ip link set down/up: [ 29.360965] meson8b-dwmac ff3f0000.ethernet eth0: Link is Down [ 34.569012] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=31) [ 34.676732] meson8b-dwmac ff3f0000.ethernet: Failed to reset the dma [ 34.678874] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed [ 34.687850] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Hw setup failed Fixes: 658e4129bb81 ("arm64: dts: meson: g12b: odroid-n2: add the Ethernet PHY reset line") Reviewed-by: Martin Blumenstingl Signed-off-by: Stefan Agner Signed-off-by: Kevin Hilman Link: https://lore.kernel.org/r/df3f5c4fc6e43c55429fd3662a636036a21eed49.1607363522.git.stefan@agner.ch Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi index 6982632ae6461..39a09661c5f62 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi @@ -413,7 +413,7 @@ max-speed = <1000>; reset-assert-us = <10000>; - reset-deassert-us = <30000>; + reset-deassert-us = <80000>; reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; interrupt-parent = <&gpio_intc>; -- 2.27.0