From mboxrd@z Thu Jan 1 00:00:00 1970 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 D36BDC433EF for ; Tue, 4 Jan 2022 11:14:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232081AbiADLO5 (ORCPT ); Tue, 4 Jan 2022 06:14:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbiADLOz (ORCPT ); Tue, 4 Jan 2022 06:14:55 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 093A3C061761; Tue, 4 Jan 2022 03:14:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MM0pgbZt8GZt1P5d/6tqfs3rv9NDQ5AH4PVwXzjtAyM=; b=vKNjMZobpKbfIB+rA2RcB4MOY1 cOCFBlyCgj/EjLmUX9h9anzPmd7OlZYYo7WieCFlv5GuaelJozpr6nRqMak2rHNMsf8LtnRe+vJmG 81eYpUszx/MP0Z/3jWM4/iSiLDjIVnnz3wOvbqKwB83e3k5cbaSBucU4GmJMNMOmoJ8Gj6dAt3V/f 7Akn2MuCOw86KnEkxV1XzSb5z4ZaFrdgMtcpGh0SIMDWjHPt0fTJfGgHQhq46wULJ9XmAFOU8XHyq kquUppmUeNppa290wa9MNVoy7LYljlOvxOdsemma5kaWt5mz+Om9CGsLutWHiG9SraV9YPuYz/XzI hprnb3SA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:56552) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n4hmC-0006uZ-Bq; Tue, 04 Jan 2022 11:14:48 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1n4hmA-0007BX-Ov; Tue, 04 Jan 2022 11:14:46 +0000 Date: Tue, 4 Jan 2022 11:14:46 +0000 From: "Russell King (Oracle)" To: Corentin Labbe Cc: linus.walleij@linaro.org, ulli.kroll@googlemail.com, kuba@kernel.org, davem@davemloft.net, andrew@lunn.ch, hkallweit1@gmail.com, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: net: phy: marvell: network working with generic PHY and not with marvell PHY Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 04, 2022 at 11:58:01AM +0100, Corentin Labbe wrote: > Hello > > I have a gemini SSI 1328 box which has a cortina ethernet MAC with a Marvell 88E1118 as given by: > Marvell 88E1118 gpio-0:01: attached PHY driver (mii_bus:phy_addr=gpio-0:01, irq=POLL) > So booting with CONFIG_MARVELL_PHY=y lead to a non-working network with link set at 1Gbit > Setting 'max-speed = <100>;' (as current state in mainline dtb) lead to a working network. > By not working, I mean kernel started with ip=dhcp cannot get an IP. How is the PHY connected to the host (which interface mode?) If it's RGMII, it could be that the wrong RGMII interface mode is specified in DT. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52BEBC433F5 for ; Tue, 4 Jan 2022 11:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1lF1jYuKg5e2z4vlAhhRSVks1b/9HF+5Bx/qvygaDxg=; b=1qVTlvMonN2a/A 4d/ExH5FmEzMcR5NephsUQ5rwfoNUug1821DtL1dBYTRoUxTJANKEOAeKMnYh9oAeHk2KgVpPxwej YENc4rNkitEiAdGu4srRId09dzFxiDlfRo6HAQCZiI909/LOK+hMAuoW7MbfHNSvXTnAdo/ACovsb eYbXCgBajJlUuFyKPqcoX/Kw9hVh95t6D+XSdshNAbx1MG+wr0/SHfkc4rXE+I+ZkK7Bzjz9qLCqU kcc+XSrasGzgnLsP9lIlSRWuYKkWdwwBSuWxlH9rNAklnNV/Byc64yKaDhWwUGJsx8RbssOTvEDaX P5UYgiXPbp/KilTknuKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4hmM-00BGXd-Ig; Tue, 04 Jan 2022 11:14:58 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4hmI-00BGWw-Sv for linux-arm-kernel@lists.infradead.org; Tue, 04 Jan 2022 11:14:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MM0pgbZt8GZt1P5d/6tqfs3rv9NDQ5AH4PVwXzjtAyM=; b=vKNjMZobpKbfIB+rA2RcB4MOY1 cOCFBlyCgj/EjLmUX9h9anzPmd7OlZYYo7WieCFlv5GuaelJozpr6nRqMak2rHNMsf8LtnRe+vJmG 81eYpUszx/MP0Z/3jWM4/iSiLDjIVnnz3wOvbqKwB83e3k5cbaSBucU4GmJMNMOmoJ8Gj6dAt3V/f 7Akn2MuCOw86KnEkxV1XzSb5z4ZaFrdgMtcpGh0SIMDWjHPt0fTJfGgHQhq46wULJ9XmAFOU8XHyq kquUppmUeNppa290wa9MNVoy7LYljlOvxOdsemma5kaWt5mz+Om9CGsLutWHiG9SraV9YPuYz/XzI hprnb3SA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:56552) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n4hmC-0006uZ-Bq; Tue, 04 Jan 2022 11:14:48 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1n4hmA-0007BX-Ov; Tue, 04 Jan 2022 11:14:46 +0000 Date: Tue, 4 Jan 2022 11:14:46 +0000 From: "Russell King (Oracle)" To: Corentin Labbe Cc: linus.walleij@linaro.org, ulli.kroll@googlemail.com, kuba@kernel.org, davem@davemloft.net, andrew@lunn.ch, hkallweit1@gmail.com, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: net: phy: marvell: network working with generic PHY and not with marvell PHY Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220104_031454_963163_1F078188 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jan 04, 2022 at 11:58:01AM +0100, Corentin Labbe wrote: > Hello > > I have a gemini SSI 1328 box which has a cortina ethernet MAC with a Marvell 88E1118 as given by: > Marvell 88E1118 gpio-0:01: attached PHY driver (mii_bus:phy_addr=gpio-0:01, irq=POLL) > So booting with CONFIG_MARVELL_PHY=y lead to a non-working network with link set at 1Gbit > Setting 'max-speed = <100>;' (as current state in mainline dtb) lead to a working network. > By not working, I mean kernel started with ip=dhcp cannot get an IP. How is the PHY connected to the host (which interface mode?) If it's RGMII, it could be that the wrong RGMII interface mode is specified in DT. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel