Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp565359rwd; Thu, 25 May 2023 00:13:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xBRVyhDWGe5nZg1ILPLhaWpXKbkLYShQT/u3xDPQiZZvqGlMnNcss43SHBQFh48ggpnEw X-Received: by 2002:a05:6a00:1396:b0:64d:413b:1e1b with SMTP id t22-20020a056a00139600b0064d413b1e1bmr7833038pfg.23.1684998817107; Thu, 25 May 2023 00:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684998817; cv=none; d=google.com; s=arc-20160816; b=fuo6sfwsiF1kzMtq1p9rW2b57t8WGK5ITR/YmaIvEC+5B9upUX2sd7ezOAIYHB4CR8 XFDorO2imaVccAOi7+tglya7gAPwhfUZZ3GbGgQvcS3Q2a3GH7AOrdg0pWbsCMU9xGbw cKY7WhPuamocKv9U1rzdZeA/MEG2O7zdn9ThFgaNF4v1WDlhU4PEl5pybgZ38z8Y0nWh nihjp+fN79JvFQqkzchjgj/Yn46JUEJmCxuA0IwxHPmlqIThLOUZnnDSwzOR2ziiR0tu qfA+HAqedpVUUC98Z8GcESIL3ealC7qQTnyZ9LU3aQYi2VhlwUG5XK+Zj7tdHpUqreI4 Nbbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8n8iOYyYZVUfxiH0/iEZbqyr+i/7ghiJPs0pDzg9C1M=; b=YFCsCuaVyiLcQZ6Lo+8NvkB0fdISyFOA8qq1Q0QzNwU90wxcREC1UHemeg82WEsLea VLwJyedAZxMlRz7tb8yK7cFW1ALFheD60FsQcKtHGFQZoOaQnMcrtbUXoyD2Xu1ybC0J JXLylA8zE96jPf3xSNllLj7ghFBDvOy6J/+Ovq1SUIVa7HVogG5agkZCrQurltgV+6Mq mpQOIppbJmf4eAWH1rEpxZo9H9P3eQzu1gpCKfoouAZB3fE//82vqpJkkFV+BNtUDXbq 4Vc/6B71Gz4Oo5LVi2QT3SwY5mWh3OFoCdXomaiLzOrU8ZpNMEnrHlAYC7TKOPW7WmFN zvnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=CEG+EMXy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020aa79841000000b0064d3e1db254si819252pfq.347.2023.05.25.00.13.24; Thu, 25 May 2023 00:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=CEG+EMXy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238327AbjEYGbQ (ORCPT + 99 others); Thu, 25 May 2023 02:31:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjEYGbP (ORCPT ); Thu, 25 May 2023 02:31:15 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19486189; Wed, 24 May 2023 23:31:13 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-561bcd35117so2714027b3.3; Wed, 24 May 2023 23:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684996272; x=1687588272; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8n8iOYyYZVUfxiH0/iEZbqyr+i/7ghiJPs0pDzg9C1M=; b=CEG+EMXyuQ6cQIaCVG5zhC6DLoaW9Y9bYtqLKPYbsnsc//kGjybkaBY5ND1eHqCBfa o5lFTInLRncn+bPWvIhJMiacT9q/WLWrhawblI7EvTZaiEKt45THhZCqqXcFJ01vVVnl P7dvLt8hkWxf7RD/qimHZ4Qt6TVTRry2nzymNq6h/5p58Vkm9rAd4+ORN1TZA5P0Trmj XCZvAfF8ebTLNxVA6YY2qQgg/2pj6X50DYMrNJZ+OUJQ+yxJxlYaBbt+Xr6KNiqUWjai iwCmHR/s9qugPawoChN67lNCjPzowMYKDl+6lEXREEesC9ygQfKlCL9Q/RZvgZYVjVgF 0neA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684996272; x=1687588272; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8n8iOYyYZVUfxiH0/iEZbqyr+i/7ghiJPs0pDzg9C1M=; b=Hg2belZHGQQln81K+WJrkl32UzuDm5p4FmETL5MxRnxsWjyYgYdm8QVa6WvJT2+Lar n3KEMj6nz0l7Hoga2mtluNTCvXf5LPxoBJAmYYUv3cvrPFypBc2A4DT4aRBnLTVF+TAD K53Tx8MF3CL5+G+gmw0ErAwbz7boqcl0oRd52JzeTBP3vqe0qPuH22vVlJxS8vcSe9Bb RMPliy0pEl0ojCaVXtJU8b9lZmoAv4YqTjv9KIuIyYUooXvdQErqKazmGgARwf50Dtae Ikuj+Krm2sTX7AwCjof6lPsdQ4vDl6ERGzkDvBGgmYYIOYwmZQxMW56NhjYoJ7o/5V2N 30OQ== X-Gm-Message-State: AC+VfDwvenbCyzizD+uNx3X1ATAU6wNnAkc/SOwKAc6lnmf7LlkassI/ 0vPUyxPHovwiq/pBGFECjYPji9vNsqDXLEss7w== X-Received: by 2002:a81:c308:0:b0:565:323d:8182 with SMTP id r8-20020a81c308000000b00565323d8182mr11261506ywk.22.1684996272237; Wed, 24 May 2023 23:31:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Johannes Pointner Date: Thu, 25 May 2023 08:31:00 +0200 Message-ID: Subject: Re: DP83867 ethernet PHY regression To: Francesco Dolcini , Bagas Sanjaya , Andrew Lunn , Praneeth Bajjuri Cc: Heiner Kallweit , Russell King , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Grygorii Strashko , Dan Murphy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 24, 2023 at 3:22=E2=80=AFPM Bagas Sanjaya wrote: > > On Mon, May 22, 2023 at 04:58:46PM +0200, Francesco Dolcini wrote: > > Hello all, > > commit da9ef50f545f ("net: phy: dp83867: perform soft reset and retain > > established link") introduces a regression on my TI AM62 based board. > > > > I have a working DTS with Linux TI 5.10 downstream kernel branch, while > > testing the DTS with v6.4-rc in preparation of sending it to the mailin= g > > list I noticed that ethernet is working only on a cold poweron. > > > > With da9ef50f545f reverted it always works. > > > > Here the DTS snippet for reference: > > > > &cpsw_port1 { > > phy-handle =3D <&cpsw3g_phy0>; > > phy-mode =3D "rgmii-rxid"; > > }; > > > > &cpsw3g_mdio { > > assigned-clocks =3D <&k3_clks 157 20>; > > assigned-clock-parents =3D <&k3_clks 157 22>; > > assigned-clock-rates =3D <25000000>; > > > > cpsw3g_phy0: ethernet-phy@0 { > > compatible =3D "ethernet-phy-id2000.a231"; > > reg =3D <0>; > > interrupt-parent =3D <&main_gpio0>; > > interrupts =3D <25 IRQ_TYPE_EDGE_FALLING>; > > reset-gpios =3D <&main_gpio0 17 GPIO_ACTIVE_LOW>; > > reset-assert-us =3D <10>; > > reset-deassert-us =3D <1000>; > > ti,fifo-depth =3D ; > > ti,rx-internal-delay =3D ; > > }; > > }; > > > > Thanks for the regression report. I'm adding it to regzbot: > > #regzbot ^introduced: da9ef50f545f86 > #regzbot title: TI AM62 DTS regression due to dp83867 soft reset Hello Francesco, I had a similar issue with a patch like this, but in my case it was the DP8= 3822. https://lore.kernel.org/netdev/CAHvQdo2yzJC89K74c_CZFjPydDQ5i22w36XPR5tKVv_= W8a2vcg@mail.gmail.com/ I also raised the question for the commit da9ef50f545f. https://lore.kernel.org/lkml/CAHvQdo1U_L=3DpETmTJXjdzO+k7vNTxMyujn99Y3Ot9xA= yQu=3DatQ@mail.gmail.com/ The problem was/is for me that the phy gets the clock from the CPU and the phy is already initialized in the u-boot. During the Linux kernel boot up there is a short amount of time where no clock is delivered to the phy. The phy didn't like this and was most of the time not usable anymore. The only thing that brought the phy/link back was resetting the phy using the phytool. Regards, Hannes