Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2268002lqo; Mon, 13 May 2024 12:53:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZ8Om9Z6NwOZHSzLpS5AxrjtNAfpFZJkuRKih8nLBhOijC+CRQkiuRhVdtgMYsDKa/bMwq2a8v8O++LarQDD7JiBX2QJHIXY6uvYVpOg== X-Google-Smtp-Source: AGHT+IHGlMfZRpE+yNrTd+uqQ8WcwkxTRkfP7rXQdTtQS4BMOB56/ofKITzKFGJWFU3BKj8in2CM X-Received: by 2002:a17:906:abca:b0:a59:c3d0:5508 with SMTP id a640c23a62f3a-a5a2d5caf38mr1261170066b.35.1715629982316; Mon, 13 May 2024 12:53:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715629982; cv=pass; d=google.com; s=arc-20160816; b=CKkA0DvSZ78k34I4DywtBZ5s9PU/NBMHSPdLJ2Q2WkADRWGPyL/43Bxb6gKUiE7Hsq QakAxC4KPgtC3Zm2m4YdsoTGgx/BvBcBa4q3zgdkKsRQ9JhHpagMeMo08KLqpppZ7qt5 JlR5miXKe4ltFlBuy7R6XefS5QdxPRRjkJc6SlUKu2XB0ZkBq3jXe03wPA0WmYElcPlp Mt7qX4xokq3ZVezFrouzQGU3adrZg6jlivPU/LZXP5m+Y9CpIKyNlF3k7gOUyQyYrO4B SwafjcIInf7279sdSA1saPEZ7pHXZbHc8RplS95HGZl35R7HVgfHwfDw4+3p+scapio8 0nIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=413blUidoZWelONSsN0SMSimPfYxVtpWsVLy1UsodyE=; fh=wmDYyvlRQZHXaMl+s1hrScg3X9V9dpZAC9OpXov1ElE=; b=C8694c8YS/qBFJN20IGU8oSkM7k324O+/nBOalaTdomsAUSYfUCdJR5FJalTPcoK3o 2neELj4lR9S58iDEL4Z71Ou6ham7oaIz3H6Qr1LHDZQJ65WGY3yTdp68YdSrTQmyqHdl hWvaJqc938wtYiNfzJUjFVdjfjH/aTshAYPoVGnoz1Cr8f3e0xXix+XpSMybHb84hpW0 sQXxe0V50slFokLv/dolwDaoLs+JG9W4apqE4sYGSyzKO1MxydWaxo3DALO6YJTOZWhK /mJYbRtPRa7FiNs4W34w5kRWw1gSR5C+SXbY+qS9hlsGPlJQASXn9EFdj6HYusuT9HR7 xuYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HjkpJ9i7; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-178050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be63d2si549070166b.717.2024.05.13.12.53.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 12:53:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HjkpJ9i7; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-178050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 115DD1F22CB2 for ; Mon, 13 May 2024 19:53:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 686B67BB15; Mon, 13 May 2024 19:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="HjkpJ9i7" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72F503BB30; Mon, 13 May 2024 19:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715629971; cv=none; b=BZJ8+PPZ49InjpV0qxgIGjAmRVSV2AVQYQTmc6a9x7VYadfCNFapWLauwV6EZ7S3rU9fMLo3wcVCCrRW0bFljTcVM1vGBnVvof8jd9n2Fh4018lLlcLjwmHF8pmcYcTQvSF7bIdF6JoJERFbDwLwp+OJ9mpBtNr/SMxiNcVc4i0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715629971; c=relaxed/simple; bh=LsycYNcfqeN2Wiip2jKgMk5yKEaDaKLdXjNiCQWLjpU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LOUJyAJXsLT5yI8OuPvo1WvGA4UeK2OoS1PEK0U5g3JcshJc1uTtKhqt/khcCSwrflH+kEYvZYcVKiFwdCJ0/Cc8jEP+hKHuMs25PjcdvWPR8Tk022jHgrhJxPXH2spK5zhGCTzH3majs8tyXDTrgC4hvh8WKHuNM5iKXgRkVx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=HjkpJ9i7; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=413blUidoZWelONSsN0SMSimPfYxVtpWsVLy1UsodyE=; b=Hj kpJ9i7j63HHIGE8iWKQpPmGWAhk2KaaRQMv3bM76nCk15Un+1uyE/2KAqkk5dMahEAZRQfEe6XLFV hFaRpBlCIS2/lQ1+cJB+BpSwhrdN+TMBq6BjjMbepbomlwauFsj1XB9k5qZOqQPr5M6oP8nQjWu33 TvR6/xe16rM1Coo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s6biq-00FKdS-HE; Mon, 13 May 2024 21:52:32 +0200 Date: Mon, 13 May 2024 21:52:32 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Jitendra Vegiraju , netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, bcm-kernel-feedback-list@broadcom.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, richardcochran@gmail.com, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Herve Codina Subject: Re: [PATCH v2, net-next, 2/2] net: stmmac: PCI driver for BCM8958X SoC Message-ID: References: <20240510000331.154486-3-jitendra.vegiraju@broadcom.com> <20240511015924.41457-1-jitendra.vegiraju@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, May 13, 2024 at 06:41:35PM +0100, Russell King (Oracle) wrote: > On Mon, May 13, 2024 at 10:38:46AM -0700, Jitendra Vegiraju wrote: > > Thanks for reviewing the patch. > > On Sat, May 11, 2024 at 12:34 PM Russell King (Oracle) > > wrote: > > > As pointed out in the other sub-thread, you don't need this. If you need > > > a fixed-link and you don't have a firmware description of it, you can > > > provide a swnode based description through plat->port_node that will be > > > passed to phylink. Through that, you can tell phylink to create a > > > fixed link. > > > > > Thank you for the pointers or software node support. > > Since the driver is initially targetted for X86/_64, we were not sure > > how to deal with lack of OF support. > > We will try out the software node facility. > > You may wish to have a look at drivers/net/ethernet/wangxun/ which > also creates software nodes for phylink. How complex is the switch configuration? So far, you have not said anything about it. Is it derived from b53/SF2? There is an alternative route you can take. Work with bootlin and use DT overlays. https://lore.kernel.org/linux-pci/20240430083730.134918-1-herve.codina@bootlin.com/ Looking at the product brief, the BCM89586M has MDIO busses, SPI busses, GPIO, etc. It is unclear if these are available on the PCIe interface, or are only connected to the Cortex-M7? I would guess the QSPI, DEBUG/JTAG and the UART go to the M7, for its boot media and console. But the other interfaces could be for Linux to control over the PCIe. Additionally, the PHY-less ports doing XFI, 5G, 2.5G SGMII etc, would have either an SFP or multi-gigi PHY connected, hanging of one of the MDIO busses, GPIOs used for SFP LOS, TX-enable etc. Oddly there is no I2C for the SPF, but i suppose you could do SPI->I2C. Anyway, all that is going to need a complex configuration, so maybe DT overlays make sense, because once the initial work getting Bootlins patches merged is complete, you get the rest pretty much for free. Andrew