Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp921648pxk; Fri, 25 Sep 2020 01:06:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT/CAlGJ42ONOlMdGIfc068agPDHH2bzQ2ER6V+MlaxGu64/mXkIdO4cFIA6Uk9a4w+tid X-Received: by 2002:aa7:c885:: with SMTP id p5mr2674eds.127.1601021162702; Fri, 25 Sep 2020 01:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601021162; cv=none; d=google.com; s=arc-20160816; b=DJeMbHxieoKf37D0QB3jofqBfG4lMijqWMu898N01X/s5l/DRQObvzrZmIwWbCopL9 Ol3w19kEfVw4bnrMkH8qajBpa0vJw0HHH8HJMBIMOrz/RjKIQgasNkukF3KHwtAasp/5 rwU5Fhd0YPXpFbpxJhVgK3VlU1CGqvIAhMynTQwiP6dLdg3PpYuEA5h01w7JsfYl9Bt1 zN3+dnPqq8ORsQeoaMHrAh6iXVJV46dtQtSaVgnzLn53HpCIbc/JD2P3Ia89Edbuu1u8 gLyTnIQZi4X0Jn8BJrqOQ2OjLNsdpnmcpDBfS/zyUJwUd86bt0tuVtHoo4vZmsRElpYp Kmsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9nCoifbkeuSkm32g7FfRMjrrGtoOLRMD6Zxww8rwgSY=; b=GD8pah6VyhLju06aeyBWAjfXH9HBspZdAFQ2WtUYTtekED8h9K/afmKYIkGmEq3L/I A6Bq8eZGypAS+Jaqk0XvzZe2JaQw0DSUg3CoAlGuuyw4rktn/wo1vtkF2g8qVAaiPHEn K9G/N3DiwT/qGB2tIEeW+2PtN4Zio/Y/keQujTER5SnwRSvU55uKxob73VqsRu/FhaZI ine2ANldsPskfqq3pD6pdXhAFlwIg5vZ07vHzZ0LmpQdjPmw8iIA6bHk4PbxYLI//T5C JgI0U8iekBPo77DDn1l8P9YgKFGnw3CKYkiivHkYdyjmRRGg0OrzEx5JqZjf3Yo2xUN7 HMBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=k4bh6DUj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si1402025ejx.162.2020.09.25.01.05.39; Fri, 25 Sep 2020 01:06:02 -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=@googlemail.com header.s=20161025 header.b=k4bh6DUj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727286AbgIYIEd (ORCPT + 99 others); Fri, 25 Sep 2020 04:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbgIYIEd (ORCPT ); Fri, 25 Sep 2020 04:04:33 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E485C0613CE; Fri, 25 Sep 2020 01:04:33 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id n22so1573667edt.4; Fri, 25 Sep 2020 01:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9nCoifbkeuSkm32g7FfRMjrrGtoOLRMD6Zxww8rwgSY=; b=k4bh6DUjkzSke+B7L/UMoe1ivoznzvxi0ad4wPwtsZGoWWxk3Udc+bdz7nyo6ZmxfS qkPJshm7a2kWgy6KAEhURguLEO4FJflS+R/I1mdeCCmfiU0BhzyucFSgjoSIiknjqS/3 5LDc1Qz9DCmxM2zeZzyCXs/M58SfCe0gx94TBzDZfRMHZIqRM3vulgl2BldpdenUS4DZ kpg0EXJManOmZwY0vT1SeOP6Eelac7dtp/TS1xaLt96PfJmjz0QCDPIep9SaoEuM/8kK 01FVFLu6nuBWpYrWDrn1QrmQ4azWiIXsyAjZ5Qn35TwO0+DxfgkqlpufcovPi7zAnE2S xJgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9nCoifbkeuSkm32g7FfRMjrrGtoOLRMD6Zxww8rwgSY=; b=I8jH8rObMLf/jHiPZz2Palh2ChFKmL7HWibRRy2aVFoJ8jEd6TEUpjrtYVPn2m5+Dz /a2Dyvmr/QvsaCX1DC60mCE4vW/nA0E3nnAagg2Ffwy2VV+yV/DVFyBzTbNmybWrYwwS 5T79fWLl4nKSSjvvQls1PBvSwb9uRZaVxbXd91lXN3PhT1eKZkIpR+b81tpZ7giPV7Au A9IT63eIwdlwI+Aqa+Y4F7rbkRkoe6zeEBJQjxpY1xnAwZsbYt1v56Z0IMK1uzteIYRY enre3o7FHVXVWmwKfMKm+waXdZGoOAe1m9T9BUlucJqFJlbe03wHSw+ZF3p4gtA5RvKK jf9A== X-Gm-Message-State: AOAM531R6XI4dEZm59YjXvJn+D5RDjLt7FDAunv5LZktVfnEieNNPO0g 0Wg5PtOoU2Wg3mv3vFifNYr6qsgImP2PBePRPJI= X-Received: by 2002:aa7:d6c6:: with SMTP id x6mr14862edr.338.1601021072020; Fri, 25 Sep 2020 01:04:32 -0700 (PDT) MIME-Version: 1.0 References: <20200925033017.1790973-1-art@khadas.com> <20200925033017.1790973-6-art@khadas.com> In-Reply-To: From: Martin Blumenstingl Date: Fri, 25 Sep 2020 10:04:21 +0200 Message-ID: Subject: Re: [PATCH 5/8] arm64: dts: meson: remove reset-gpios from ethernet node for VIM2 meson-gxm-khadas-vim2 To: Art Nikpal Cc: Neil Armstrong , khilman@baylibre.com, robh+dt@kernel.org, jbrunet@baylibre.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, art@khadas.com, nick@khadas.com, gouwa@khadas.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Artem, (adding back the mailing-list recipients) On Fri, Sep 25, 2020 at 9:50 AM Art Nikpal wrote: > > hello > > > what is the problem that you observe here? > > did you investigate further why resetting the PHY changes this? > > just try next commands > ifconfig eth0 down && ifconfig eth0 up > and ethernet never up again - need full reboot only this means that "something" is either set up incorrectly in the Linux kernel or that u-boot does some magic (and the same magic is then missing in the Linux kernel) I'll dig out my Khadas VIM2 to test this. what should I look out for (are there any error messages, dhcp not getting an IP address anymore, etc.)? > but if reset-gpios will be remove it works fine already - i have checked it many times > > for example VIM3 same didnt use reset-gpios that's interesting - I'm surprised to see this I did a quick check and for 15 out of 18 .dts(i) files with RGMII phy-mode we use the reset-gpios: $ grep -R 'phy-mode = "rgmii' arch/arm64/boot/dts/amlogic/ | wc -l 18 $ grep -R 'ethernet-phy@0' -A10 arch/arm64/boot/dts/amlogic/ | grep reset-gpios | wc -l 15 so really I would like to add the reset-gpios to the VIM3 .dtsi as well once we figured out what's wrong on the VIM2 Best regards, Martin