Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp4065588rwa; Tue, 23 Aug 2022 15:40:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR70FBuFZ/P8sxkqB3V9wwH4mYHkCdTbi6Z3hoWBiCvj4VlTvtDjM5qGCkjql0JM5wdafREu X-Received: by 2002:a63:82c2:0:b0:422:5284:f189 with SMTP id w185-20020a6382c2000000b004225284f189mr22361640pgd.498.1661294419235; Tue, 23 Aug 2022 15:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661294419; cv=none; d=google.com; s=arc-20160816; b=018mUi73rMIadZt2tgfi4xyVb/L5vvQlA6CsagEXfHapWYNAWvfh2/5iR+7ndu4E1k M1JOuUJT9tMV8fRynU7cnFWVVjpgmf/xIINp1q4wcV1bsObSH0T4q81VX9syN2KgaGGI JJQBipkDlSi0ZXt+rpzkF3y7w6Zc43PWBCj/2ErbbqG5WCf/1xhvRuutMzgOrKSnPJ5T S+WuugbBASKDyjsDVGITEYMTl19A/g29KlpgkAiuXsw7rRPu7CdO3CWMiBXV+Rcnbb5k vrxs6336YHgqn3Z232l4xJIdPmioVO8SbVps22gYP5S/8LoML5mNRmQfssUvjjLcSY6T y6Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=B6z0uPfDcuR5zFRgiL9Pel1VSjsCo0WFAWiPIW6rn30=; b=hlI6NbO+vahVw9qjZ1lPcaWBV3Dtlgi8H29ex0OiptGnjrAYCcvTwhGwshA7d6e2eW vwRoG96WFrr3v9r8/QxufYxzs9AeWtUgW07JlVzUJYgbiuxXxqaR5i2osaJOmPoJ0h9H sS2tevMWnQ8BB9Fnuq0DN0FPx+nyfr0evhcEPxYESk4irVPiD8lyqzqm+d7wmqpjTnhV kDFvHx2IiFXq2mXhm5j1z+crbXYdabj+jmYgdA7DDZy0LXVfJ46XagQJ9Ed1b3Rm0SKI SYivrj8CeLH0slgbLtrgEZgxsVGxp6yQPgJT8+tLwo+z5OKMgRGltcWEte6Ju0JrpV6U WQJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N5edXaO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on9-20020a17090b1d0900b001f3250578ffsi18185147pjb.20.2022.08.23.15.40.06; Tue, 23 Aug 2022 15:40:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N5edXaO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232053AbiHWW1p (ORCPT + 99 others); Tue, 23 Aug 2022 18:27:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233491AbiHWW0k (ORCPT ); Tue, 23 Aug 2022 18:26:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71A088DE2; Tue, 23 Aug 2022 15:26:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5B2AC616DA; Tue, 23 Aug 2022 22:26:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77486C433D6; Tue, 23 Aug 2022 22:26:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661293586; bh=aWG79MFk02Dxky/hrQXH1us3auS0+9GXcsSIf2YTNLY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=N5edXaO6NZ626HwZ0OSXLbJfoHLaBH29GodiFWqicsRi7gpCihc8jRk06wkgIMc3M BeE77gNYAwzIJ5odnRwhorAX7NBNr2SFgIJgwoMNWaWcSbrb8abH/zeWFDMEGCwpwJ WDmXRfzMT2DrBNNXOG6P6I26fEnBkkPQRcNgkjD5e6WCsck/CQlAE7XehmCxKOKNu3 nwSFLjoPuCybaBWX2vx9zv93Y1+wT3AiYItjcT5ePhdK6QmmbMM9aqORsEJSDclBUN aQ2A25KFBi0BMrnrFbealdLPsET5wCR7HbF2HJTW+lWLBbETtOBK3Ej+vYxX57HOAK BIz6kWnpNP0DQ== Date: Tue, 23 Aug 2022 15:26:25 -0700 From: Jakub Kicinski To: Qingfang DENG Cc: Russell King , Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: phylink: allow RGMII/RTBI in-band status Message-ID: <20220823152625.7d0cbaae@kernel.org> In-Reply-To: <20220819092607.2628716-1-dqfext@gmail.com> References: <20220819092607.2628716-1-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, 19 Aug 2022 17:26:06 +0800 Qingfang DENG wrote: > As per RGMII specification v2.0, section 3.4.1, RGMII/RTBI has an > optional in-band status feature where the PHY's link status, speed and > duplex mode can be passed to the MAC. > Allow RGMII/RTBI to use in-band status. > > Fixes: 9525ae83959b ("phylink: add phylink infrastructure") > Signed-off-by: Qingfang DENG Russell, PHY folks, any judgment on this one? Qingfang is there a platform which require RGMII to be supported in upstream LTS branches? If there isn't you should re-target the patch at net-next and drop the Fixes tag. Not implementing the entire spec is not considered a bug. Please clarify this in the commit message. > diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c > index 9bd69328dc4d..57186d322835 100644 > --- a/drivers/net/phy/phylink.c > +++ b/drivers/net/phy/phylink.c > @@ -632,6 +632,11 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) > switch (pl->link_config.interface) { > case PHY_INTERFACE_MODE_SGMII: > case PHY_INTERFACE_MODE_QSGMII: > + case PHY_INTERFACE_MODE_RGMII: > + case PHY_INTERFACE_MODE_RGMII_ID: > + case PHY_INTERFACE_MODE_RGMII_RXID: > + case PHY_INTERFACE_MODE_RGMII_TXID: > + case PHY_INTERFACE_MODE_RTBI: > phylink_set(pl->supported, 10baseT_Half); > phylink_set(pl->supported, 10baseT_Full); > phylink_set(pl->supported, 100baseT_Half);