Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp512197rdb; Thu, 30 Nov 2023 10:25:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGFek65oljXsQGoPpbP9UyGVZnoXxtqzElQ+BmO6QrTs1jJjHNbIVjUkWJkk5d4ZAvafxZ X-Received: by 2002:a9d:66cb:0:b0:6d8:41a7:7a69 with SMTP id t11-20020a9d66cb000000b006d841a77a69mr481919otm.4.1701368731902; Thu, 30 Nov 2023 10:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701368731; cv=none; d=google.com; s=arc-20160816; b=iFDn8ZvT5TDXBrIVNnkq+GpakcHMA264AhLt0FYEG5rjVa/SfU30vfFCJ+67VibqHM zLQGDD29RS+F2PHQudz6FUT9BTYEqeiojjbFJ5HNC0icdq2tl38Kqc/7DFn9Tp3GCrQL nHGl4j522AG1JJDCrnjr3fiROywQNpLzhQbrXQXzddyfmKzd8lSlwr8fCherQDJHvcZ1 hbt0yBhlBWoLxph0IN+4IqiRVahLXGUjksIyFFlnlfo5a8XCCBo3E/iY/D6oCQeY3wsv 5FMUaSndGmlqn5n9B5y0qBFjerLEHSepbRvU0BPzOs7s05APKt1EH0PgTZGaFP3FE49O 2SnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=A6XaBmabZtFG50aNMROWpohKVYoF4xocW5H2FTxC+9Y=; fh=Ro4G+9lvn+KGg51C9N8KXvAXm3ZGou9+X/eOgDc9YmQ=; b=MC/RKp03LtEXQPx2RnKBxAuuRqr7ihN6ym5bZJmZwg5wTHe7NTPsDKv0aqmnVcpa+F mEegRR54qwAZpG6x81LtRrYOWhUtxhD5F0JXuGxECgISNxBGXCdXMt4964uV4k1qAhdP 9JB7kHWVbUwr+4rn6Jt4cSLd+7pS6Cawk+7mL5sVmgmbHD4ZHGKtLhBIKXMj9L0ZchK0 uzptcpM+KIdb5zpb3E4h9mXa0f92XTzircmZTmPTthMClpK+iYNa0lJs2PtOQSXMySRk PO5wyTpJG95+23pF9Ugl94Xju6Fg81XXVU1jyIp3twq1KFXtW4mAISMqPB0LePq51Bsc etfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FIB82FiF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id k67-20020a632446000000b005c1b2e37aeasi1851268pgk.384.2023.11.30.10.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 10:25:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FIB82FiF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0193B8521361; Thu, 30 Nov 2023 10:25:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346424AbjK3SZN (ORCPT + 99 others); Thu, 30 Nov 2023 13:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjK3SZM (ORCPT ); Thu, 30 Nov 2023 13:25:12 -0500 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D26E10DE; Thu, 30 Nov 2023 10:25:18 -0800 (PST) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5cfa3a1fb58so13456837b3.2; Thu, 30 Nov 2023 10:25:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701368717; x=1701973517; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=A6XaBmabZtFG50aNMROWpohKVYoF4xocW5H2FTxC+9Y=; b=FIB82FiF1IREPr40mhLtGjOAH5+tZ+N4fN9adfxHhRNtzuysyPh7yICx3CxV6OeT7T qloV/mYI8FqcVcioYXVBFeJhryRIRH20WL7RM4IJUUreeotDpdTinemIXP0263OOchPU +o1bj53NU1XRz7W6yR8CLnHOBMZ2J9akM8Cwm4WYb/2wUdfI9qxykn1QjAswXi+QxDhM zBtkODV9dSZ54f9DHY2jZH6LBtdeMS0cBH1If/bCxIxWpW628OcybI1l4OPoXEHQQsVT w2dXMtUMdKcGJJPCIkX/4/FL7uBmBYswlbMQEjvW4ysFGs7qAlpZ530cm9gBdW7/Web6 4+TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701368717; x=1701973517; h=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=A6XaBmabZtFG50aNMROWpohKVYoF4xocW5H2FTxC+9Y=; b=MqEV3EXPnPogqGfoNcKX6TK9NDLtukWIzA8+FlSgyI9QqNygVLwzKHpYhI1rzl4ZE1 qgh/zT9cXwxhGGrf75soNDcmIAt/dY3YRVR2KT/i4dlFIYukWeCdihHWbBhnHoodBGpB DGP+Ez0i80wd45XQzTUpBfVxEwCqD3+9ZfnihkdTCYjXOhVz15WQnSqlfoVMcHNxqrfD VaB1KuBxeT7AxqZnXn7pWSQ3XWo1kUla4Xlhm2PaLTx5iosafmAlGGBoC5Nv3ZHvyRAx bAmcVOaSdIdPplyymNDhFCfZhwoLLGKzyHMP3aNWPCVeK76bEfwovQpdoPz/iYzStf1q Layw== X-Gm-Message-State: AOJu0Yy9Xnk+8LFlCDwvdcaPIM2nLyt54l1xlSMcR4L0v9yYWgBI5T7K 2I0NlXezc/I6dXWOgKfuiBaBRertt7TbBuyTrI0= X-Received: by 2002:a81:9a02:0:b0:5d3:b0c5:3001 with SMTP id r2-20020a819a02000000b005d3b0c53001mr1430153ywg.23.1701368717599; Thu, 30 Nov 2023 10:25:17 -0800 (PST) MIME-Version: 1.0 References: <20231121151733.2015384-1-tmaimon77@gmail.com> <20231121151733.2015384-3-tmaimon77@gmail.com> <6aeb28f5-04c2-4723-9da2-d168025c307c@lunn.ch> <9ad42fef-b210-496a-aafc-eb2a7416c4df@lunn.ch> <25d0c091-3dce-4d62-a112-c82106809c65@lunn.ch> In-Reply-To: <25d0c091-3dce-4d62-a112-c82106809c65@lunn.ch> From: Tomer Maimon Date: Thu, 30 Nov 2023 20:25:06 +0200 Message-ID: Subject: Re: [PATCH v1 2/2] net: stmmac: Add NPCM support To: Andrew Lunn Cc: alexandre.torgue@foss.st.com, tali.perry1@gmail.com, edumazet@google.com, krzysztof.kozlowski+dt@linaro.org, linux-stm32@st-md-mailman.stormreply.com, benjaminfair@google.com, openbmc@lists.ozlabs.org, joabreu@synopsys.com, joel@jms.id.au, devicetree@vger.kernel.org, j.neuschaefer@gmx.net, robh+dt@kernel.org, peppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org, avifishman70@gmail.com, venture@google.com, linux-kernel@vger.kernel.org, mcoquelin.stm32@gmail.com, netdev@vger.kernel.org, davem@davemloft.net Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 10:25:29 -0800 (PST) Hi Andrew, Thanks for your input. On Thu, 30 Nov 2023 at 19:26, Andrew Lunn wrote: > > > I will check with the xpcs maintainer how can we add indirect access > > to the xpcs module. > > https://elixir.bootlin.com/linux/latest/source/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c#L449 > > It creates a regmap for the memory range. On top of that it creates an > MDIO bus. You can then access the PCS in the normal way. > > Andrew Best Regards, Tomer