Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp922645pxb; Fri, 22 Apr 2022 14:23:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWYtE3hrGhp9r9uBGBIQszKgUlPFEHoIsAKUoRbPV/tvlIDcJlWmCQ7a8KzziJIQyKeWGO X-Received: by 2002:a17:902:8f83:b0:154:57cf:e393 with SMTP id z3-20020a1709028f8300b0015457cfe393mr6505589plo.24.1650662635314; Fri, 22 Apr 2022 14:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650662635; cv=none; d=google.com; s=arc-20160816; b=Ib/G+ypsXwKdEe3cJ/4QppDaPHerVw7E6ToTroWeAqsC5bC4j+oN9XvlI391aRwVIZ MqN3ZDcu+e7HZHh8Wj/2CDYJC2X2V0cR/6FT4SrKUQKV0/sjf8C6Qz5CXhSIXWx/r4Ut CkM3r8qvmvQkno3/a6XGF65G3SjSVq3KUqMpq8/5hvZgt6Zs2698fui+d9Oo7TfaCKx0 FeRoD2JeMeZjEs+qW48O7C72IBOOb+7vhxZbGxwTWKK3vvN495Ibq9k7b4wsfSp0xaK0 pZUJCOliXHSgV64VZ6KYf2PEg+tO4dOJ1VijNvpGyQW+xMHXSHSPd2B1u14MF8pnhdCq FnhA== 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=N8vHuTwPATpwwlOw/DsH67ghNaVvbs3LtAD5h9mrBs0=; b=wEeFZDyqRkcHkvR3w1tOCQHDysHUTf/xapdRb5Irkp/TPrLNAoyhOYL+H8vR6ETm5d eRKe3rkeVTg6vGCYrZV9D0B9dXT0B80Pg8nBcSPsE9UBDxMeLz3/x1pJs9K2W4QpCbaC AxH7LPqvAXwANdtgYLLowJ5OUQSyAq0u5laTe4gqtV27mIjGaJeyR8OjZ5Pz5vWHmyFf 3NjVQjGGNJaO5MZQnVvOySRnV+fknxoDCif21g2Vw4XV2j+arjiHnLPmATx9L+uIUQEk WDMDcl25i1om1WGwHKv0fwzUVKtqfy2De0xOGmEXYo6wAX5n4RfMvCGsUVjaNm4U1nTg CeYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FkZysAF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nl11-20020a17090b384b00b001d28dc3d94asi7237100pjb.26.2022.04.22.14.23.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FkZysAF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A7D9A2C2E42; Fri, 22 Apr 2022 12:30:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447679AbiDVNCD (ORCPT + 99 others); Fri, 22 Apr 2022 09:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236930AbiDVNCC (ORCPT ); Fri, 22 Apr 2022 09:02:02 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D85C57B18; Fri, 22 Apr 2022 05:59:09 -0700 (PDT) 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=N8vHuTwPATpwwlOw/DsH67ghNaVvbs3LtAD5h9mrBs0=; b=FkZysAF1vf7oMtSIe49s+Drqah QT72I2uYhUKJYYy8t+JhZQCTdP0HBm9GzVPy744j32ZD9nfwavIWrNMP+snINiiYj3zWgD5l+wr+D xWK3yh7YIaGzNYThvjigGHyvZUQna0BvABZYyOH2Ucx/iXK3RE7xpoSTiANOebh1sE7U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nhss6-00GyU2-09; Fri, 22 Apr 2022 14:58:50 +0200 Date: Fri, 22 Apr 2022 14:58:49 +0200 From: Andrew Lunn To: Ong Boon Leong Cc: Alexandre Torgue , Jose Abreu , Heiner Kallweit , Russell King , Paolo Abeni , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Alexandre Torgue , Giuseppe Cavallaro , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/4] net: stmmac: introduce PHY-less setup support Message-ID: References: <20220422073505.810084-1-boon.leong.ong@intel.com> <20220422073505.810084-3-boon.leong.ong@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422073505.810084-3-boon.leong.ong@intel.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 22, 2022 at 03:35:03PM +0800, Ong Boon Leong wrote: > Certain platform uses PHY-less configuration whereby the MAC controller > is connected to network switch chip directly over SGMII or 1000BASE-X. > > This patch prepares the stmmac driver to support PHY-less configuration > described above. The normal way to do a PHY less setup is to use a fixed-PHY. It offers the same API to the MAC as a real PHY but is fixed speed, dupex etc. The MAC sees a PHY as usual, and you don't need anything special in the MAC. What you need to do is extend your DSD to list the fixed-link. See https://www.kernel.org/doc/html/latest/firmware-guide/acpi/dsd/phy.html#mac-node-example-with-a-fixed-link-subnode Andrew