Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp474542rdb; Thu, 30 Nov 2023 09:26:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIFBfwesiVooY8hcQdtE45xioClw+ygxyE9Aajp7V6dCRPKRDZmP29y2X1hnHHdjhjtQ71 X-Received: by 2002:a17:90a:1944:b0:280:235:19d with SMTP id 4-20020a17090a194400b002800235019dmr25064951pjh.36.1701365215573; Thu, 30 Nov 2023 09:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701365215; cv=none; d=google.com; s=arc-20160816; b=PLmfe4CBq4bBe+QQ0EBU54dJciV/0YlqiOwZck+ePCVLEomyoHGo+WouheVkcWcS7o T81LSqefJgxK0hVjn5VRN84liJuIOcRhAWslV/v6VI+XZ2HndjmADTRXQFzySlhPvDZT BEtUKnKfjzuWvdrBfiUEoNZ6Cemd4c/cecEOirjAgqF+TSOp2WOAl/0/AixBva8pCJI/ MammxWNf78zzkXMzvYuX1nJJrCsetuaIWl3IwEXye3iL+MB2YjHJKQ0jVhxq/v/CJpXD wRfmEfwHW5QuyRYwQZJE+bPjccrFdZ1/8MYUPB3MvwrfyLdt4QGJSHrjU19T/TAhB+oo aePw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8uE72B/ZbsCd2fU3mnrHk7yTs0g881UEt43C00CniGU=; fh=SQHUSLZOByHXzKKaCWG3qmEyW2ICHjQMHJx9M+ZY0DM=; b=BmApSmLk1BKFyT40KB0iBpqL/55fLNkT9TBfqbt+n1DUDJuttu4eBPGx6wV6mLIqvN mdQE71JfeIH/o2Ei6PhrpaF21geH1omBp133uZkJnHsyjnxqYIoszkxrYJpZABhjbd2V H/VyZNL1iknocT2YhWollDWclQtEjIml0suJ7e8sxqp64mDRCtmrAWL5bYlsG4oUl9IW ZBdEUAaQMdXweJ51lxp5Nvt2dn7hNUUwkfQGBdOb3YAuvqnGOPfk1Wgw1HE3EkCEufoD iITT5grkTNGo0wiAeZ0iTmSZrK0kU9lTd3Q74KJNMStwfGjn4LJK1GH2YmaFA94vEjoV QtXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tCGiikmX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id i7-20020a17090a2a0700b0028644ca705fsi1031728pjd.140.2023.11.30.09.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:26:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tCGiikmX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 91EAA808BE6A; Thu, 30 Nov 2023 09:26:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232242AbjK3R0i (ORCPT + 99 others); Thu, 30 Nov 2023 12:26:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231486AbjK3R0h (ORCPT ); Thu, 30 Nov 2023 12:26:37 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3ECE133; Thu, 30 Nov 2023 09:26:42 -0800 (PST) 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=8uE72B/ZbsCd2fU3mnrHk7yTs0g881UEt43C00CniGU=; b=tCGiikmXA1Toh2xAc4IbKCLf23 UU8yrlZ7y2ehr8c63qU+z3aBbCS+vKCCKn5pG23ZCFb6gk/utmM3MD64mtt9c+xZNnuI+jbn0d62g i3cJVrgHAMFwgDhwJf6CGxi1i9/XjHsGsXyjIH50HhMJCNaxn0h4RKPWHaPDMyeVTFEk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r8knl-001giW-Mj; Thu, 30 Nov 2023 18:26:13 +0100 Date: Thu, 30 Nov 2023 18:26:13 +0100 From: Andrew Lunn To: Tomer Maimon 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 Subject: Re: [PATCH v1 2/2] net: stmmac: Add NPCM support Message-ID: <25d0c091-3dce-4d62-a112-c82106809c65@lunn.ch> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:26:52 -0800 (PST) > 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