Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05C1BC636D4 for ; Fri, 3 Feb 2023 03:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232301AbjBCDEe (ORCPT ); Thu, 2 Feb 2023 22:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbjBCDEc (ORCPT ); Thu, 2 Feb 2023 22:04:32 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0448F222D2; Thu, 2 Feb 2023 19:04:05 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id EA3B124E167; Fri, 3 Feb 2023 11:02:56 +0800 (CST) Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Feb 2023 11:02:56 +0800 Received: from [192.168.120.49] (171.223.208.138) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Feb 2023 11:02:55 +0800 Message-ID: <81217dc9-5673-f7eb-3114-b39de8302687@starfivetech.com> Date: Fri, 3 Feb 2023 11:02:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v4 0/7] Add Ethernet driver for StarFive JH7110 SoC Content-Language: en-US To: Conor Dooley CC: , , , , "David S . Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis References: <20230118061701.30047-1-yanhong.wang@starfivetech.com> From: yanhong wang In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/1/19 7:21, Conor Dooley wrote: > Hey Yanhong! > > On Wed, Jan 18, 2023 at 02:16:54PM +0800, Yanhong Wang wrote: >> This series adds ethernet support for the StarFive JH7110 RISC-V SoC. The series >> includes MAC driver. The MAC version is dwmac-5.20 (from Synopsys DesignWare). >> For more information and support, you can visit RVspace wiki[1]. >> >> This patchset should be applied after the patchset [2], [3], [4]. >> [1] https://wiki.rvspace.org/ >> [2] https://lore.kernel.org/all/20221118010627.70576-1-hal.feng@starfivetech.com/ >> [3] https://lore.kernel.org/all/20221118011108.70715-1-hal.feng@starfivetech.com/ >> [4] https://lore.kernel.org/all/20221118011714.70877-1-hal.feng@starfivetech.com/ > > I've got those series applied, albeit locally, since they're not ready, > but I cannot get the Ethernet to work properly on my board. > I boot all of my dev boards w/ tftp, and the visionfive2 is no exception. > The fact that I am getting to the kernel in the first place means the > ethernet is working in the factory supplied U-Boot [1]. > > However, in Linux this ethernet port does not appear to work at all. > The other ethernet port is functional in Linux, but not in the factory > supplied U-Boot. > > Is this a known issue? If it's not, I'll post the logs somewhere for > you. In case it is relevant, my board is a v1.2a. > > Thanks, > Conor. > > 1 - U-Boot 2021.10 (Oct 31 2022 - 12:11:37 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-10 No, this is not a issue. These patches need to rely on the yt8531 phy driver of motorcomm company and the corresponding clock delay configuration to work normally, and the yt8531 phy driver is being submitted. I have applied the motorcomm patchs during my test on board v1.2b, so the ethernet cannot work without the application of the motorcomm patchs. For the patchs of yt8531, see [1] 1 - https://patchwork.kernel.org/project/netdevbpf/cover/20230202030037.9075-1-Frank.Sae@motor-comm.com/ Thanks, Yanhong.