Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1172367lqo; Sat, 11 May 2024 10:19:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpB10+rTCKXEBUly8d2JaiMs/Ro8sM970AvypuKR6lNphfVM4S1U/t8r+NSUs9s76jv+LXeufUyP9O8zTYE1dkfnsh0X3ZfsY9z4UedQ== X-Google-Smtp-Source: AGHT+IFq5p8MSz+fXBsUWVqZBNbKFtF3WqkKaxQTWyDAF/TOPP51kqteEOLxiBGaxK7NlfbdjOLm X-Received: by 2002:a05:6512:368c:b0:51f:27e7:a4e2 with SMTP id 2adb3069b0e04-52210473f91mr4132884e87.58.1715447977437; Sat, 11 May 2024 10:19:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715447977; cv=pass; d=google.com; s=arc-20160816; b=G/or4e+FxL520hRvvVYj357D1Rep3KzfMcGsBOpQNGYgMlVr9LMDSJI+CB+6E90KPq D3+sc0BIXej8GPzvtDNzzLxWV5D7W4jDe9jcK9n2YDBqaQG9ME57XikVC2TVgoFuOkgX QcvxyUDhNXyxvWV0r3d1TT79aIlvF5fkRoPfUSTuBMwNJ/7xONqUHMaqLWE5EyC4luit YbIaOZkpgQhOvWMQghcTEj09Z5Dj/4ydmkheEAVfJZ+DPt7M2Cp7DQo9/zUhh5F4PcSk wfpC70ibF0+v1NgBF6ALTcKYxu6EZXQa0T56wwRnQc+KWEuH8JVutarCwVwhP204qg5F NDMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=59ogc1letU28eIr+Nqtw/+iuMiLVkRN/Xzvbe5jpoVo=; fh=UP3q0D+9lUzGemUPfNK0LBxj2sZ95I7GEXMtFOrdHBc=; b=Wv4Pv63WQ/voJgEHw5vHvzy5Xt4JTQDFcIrnn4n0bsbX9WSbmfEgvVpVh9IRlMIVt8 2IaNaGVlcgh09DmGvwnzwBKi0wutGyO17LVSv0515ZCJgd/CU6Max+FViVgB4LUfFDPs 41yFUe7p4/M6EeV93fVAA8FXYaD2yg+MdfXDD3EHg3r/NIg55lypV4OJc6mMeA9duDxR uChGct8GEuWkb7T8wkUnXFQiTBHfBGL5n5RLitcttkfwfkyZnnVfGw4S0m5ougqfIilm fWKqS6UYg4NNTgZybdshoPZc3eRVCQmq+sk/GuhR6ZGMaVuCzwCmXxIgD8K5hUKpRlCi cqhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xDGCoYOq; 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-176664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176664-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be6d45si314383066b.811.2024.05.11.10.19.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 10:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xDGCoYOq; 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-176664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176664-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 CE8591F21E35 for ; Sat, 11 May 2024 17:19:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7537A1BF54; Sat, 11 May 2024 17:19:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="xDGCoYOq" 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 03A5C1C286; Sat, 11 May 2024 17:19:23 +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=1715447965; cv=none; b=KPSTwGvIJ60tv5/GcjviLVns++jhwIfkYABheS6UZARUIMS0JNmlEb2QaLu/rnaP0ehMWaCfj2Z7gKHsFjFGqECrXLN0s8ydECd57hjbMpQY5tPDVeHOcmebvRQCniU0pGDBeVb5/g6YTdeyEljyaGb+afcg4YX1DEJqe8Wvdhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715447965; c=relaxed/simple; bh=JtxrfXquorAq2bYCxyWwuvOZACiGSKXrqHZI31bJbrw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LYljZr0CS9R/sIobF7hEjqcURfEjqzpeeF/JXeZIpqDt8oiUemA4C3fei17T9ezrENuSBqQVs25z1O8V4e/SZQKiWj/ffu3NUZO/a9x7i22VydHEwwlECSDc/9bZEUj5xSQabwq74T+sxApDCuVeJgh+Bg96/3PhWtIORi6wjbE= 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=xDGCoYOq; 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-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=59ogc1letU28eIr+Nqtw/+iuMiLVkRN/Xzvbe5jpoVo=; b=xDGCoYOqA3ZePLHzgyyNU8baNs cMh46enKLDcmsupbkSUaxNCYBv3dbLF3DYISeVT9gQXO7TlumS8YV5niIOTjDNE+aVQ1K/ThimNzB eqFr1Z1IbYywhZernKUwrz8hMWtj+6rrejvhxbntgZd6YA62cGxNdvX4/2tN1ro3Dc4g=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s5qNH-00FCtF-Gz; Sat, 11 May 2024 19:19:07 +0200 Date: Sat, 11 May 2024 19:19:07 +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 Subject: Re: [PATCH v2, net-next, 2/2] net: stmmac: PCI driver for BCM8958X SoC Message-ID: <63c3efa6-94a2-40c7-b47d-876ff330d261@lunn.ch> References: <20240510000331.154486-3-jitendra.vegiraju@broadcom.com> <20240511015924.41457-1-jitendra.vegiraju@broadcom.com> <4ede8911-827d-4fad-b327-52c9aa7ed957@lunn.ch> 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=us-ascii Content-Disposition: inline In-Reply-To: On Sat, May 11, 2024 at 06:12:38PM +0100, Russell King (Oracle) wrote: > On Sat, May 11, 2024 at 06:16:52PM +0200, Andrew Lunn wrote: > > > + /* This device interface is directly attached to the switch chip on > > > + * the SoC. Since no MDIO is present, register fixed_phy. > > > + */ > > > + brcm_priv->phy_dev = > > > + fixed_phy_register(PHY_POLL, > > > + &dwxgmac_brcm_fixed_phy_status, NULL); > > > + if (IS_ERR(brcm_priv->phy_dev)) { > > > + dev_err(&pdev->dev, "%s\tNo PHY/fixed_PHY found\n", __func__); > > > + return -ENODEV; > > > + } > > > + phy_attached_info(brcm_priv->phy_dev); > > > > What switch is it? Will there be patches to extend SF2? > > ... and why is this legacy fixed_phy even necessary when stmmac uses > phylink which supports fixed links, including with custom fixed status? It might be because it is a PCI device, and they are trying to avoid DT? Maybe because they have not figured out how to add DT properties to a PCI device. It is possible. Andrew