Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1829232rdb; Mon, 8 Jan 2024 11:31:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiBHlZ2BLcGNUsu/RVw+aB0Q7o8LUWDli2leL6tfAiAD6jRCBIk6CL68AieBla+DyIdAJz X-Received: by 2002:a05:6808:1598:b0:3bb:ce13:e0ce with SMTP id t24-20020a056808159800b003bbce13e0cemr4221458oiw.21.1704742266441; Mon, 08 Jan 2024 11:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704742266; cv=none; d=google.com; s=arc-20160816; b=UUJRWwZ2Yg5OfW91AaBfmFeigx5Xi6uE5ZC6i0IwMDCpR1KpFk0HuJ5prr34hwNCg8 kFtHPNDUD+AFrAE1ZM7TLoqF3XborEZp5SqSyo7q4qPzPwp1E3Q7dzjUX5VoQMxX4am2 +NGgFohXA+8lon1ORN5K1SCvrixPnttIzhcLezkSAvPCSkrKC/pnK8EOdaAiJNl7Zrpt M1B5D56N2c8ZsKA4MvgMqU+myybomNmcnCFFCRqmneYugUheidCYFDiQ+tD/RxAKmSrc SRs7BtnFhwAM8TzEHOLGjtmk5b4vLVXK+Zr4pJk1pEq2yfwV6oC0QQRcQxDzGOABE0lE bb+A== ARC-Message-Signature: i=1; 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=F/NA599aFhBFXwECvVMGWs2VaVppQqKK8L8EV5T6GHU=; fh=oUQXlm9N18NE8BciMxTG8yakJePvyLDL7KOQwgHv8WI=; b=GJmPk15Zjf5N64fwb/WvNDNBOtqyps8LSblo8IwD5fDBfLZRqYM3cGBi/N4TetWOpu aQUbsEZ5OLOKOXvXxqQXwjpPurHQK1kHClVM0lRD0+i21PsSp7OtyoPW1uTj0M+FlWun qbMV7SPdlVhc/dVVljQozIEyV5RQPuX1uYHkSYFkb+NOeCzw2POZsQcdeNZEVe3oObUh ym/iuymkcYtcJ3UxTAn/rais0vdqXXwHfKETErSL2rX8KNTXmf6LZdsc5iCAh60zPxkA 00FKr74U309HMDBLyKoZ9CgOx8a1tTVGxjDR22NfiRmIMA4ivj3Ky8P75Spmx7/LBNtU PuTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5lEDdSOX; spf=pass (google.com: domain of linux-kernel+bounces-20045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j5-20020a0cf505000000b0067f8cf919c0si548874qvm.548.2024.01.08.11.31.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 11:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5lEDdSOX; spf=pass (google.com: domain of linux-kernel+bounces-20045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20045-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F7E71C22676 for ; Mon, 8 Jan 2024 19:31:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1927E53815; Mon, 8 Jan 2024 19:30:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="5lEDdSOX" X-Original-To: linux-kernel@vger.kernel.org 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 B5E9D53801; Mon, 8 Jan 2024 19:30:52 +0000 (UTC) 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=F/NA599aFhBFXwECvVMGWs2VaVppQqKK8L8EV5T6GHU=; b=5lEDdSOXuYx9BWxsWLtwGZ2ZkR sMpqgGbg0f2RkMO95B/OlW7pvDQus8ALxQzTRpVIWzBr0rW8Tds9r6tUNnWDU8oiEKumF8Mtyr18x VJInXXN4ZXU0UEPV5wDmLPg1TwyZ/WIhGqamUtmQ+lYL3C8xP0hv3HqKNfRRjn4TXm40=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rMvKW-004g2X-Ez; Mon, 08 Jan 2024 20:30:36 +0100 Date: Mon, 8 Jan 2024 20:30:36 +0100 From: Andrew Lunn To: Sneh Shah Cc: Vinod Koul , Bhupesh Sharma , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, Andrew Halaney Subject: Re: [PATCH v2] net: stmmac: dwmac-qcom-ethqos: Add support for 2.5G SGMII Message-ID: <4216bcbb-730d-4c51-a9ce-d3f0a0846e31@lunn.ch> References: <20240108121128.30071-1-quic_snehshah@quicinc.com> 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: <20240108121128.30071-1-quic_snehshah@quicinc.com> On Mon, Jan 08, 2024 at 05:41:28PM +0530, Sneh Shah wrote: > Serdes phy needs to operate at 2500 mode for 2.5G speed and 1000 > mode for 1G/100M/10M speed. > Added changes to configure serdes phy and mac based on link speed. Please take a look at: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html The Subject is missing which tree this is for. Also, net-next is closed at the moment. > switch (ethqos->speed) { > + case SPEED_2500: > + val &= ~ETHQOS_MAC_CTRL_PORT_SEL; > + rgmii_updatel(ethqos, RGMII_CONFIG2_RGMII_CLK_SEL_CFG, > + RGMII_CONFIG2_RGMII_CLK_SEL_CFG, > + RGMII_IO_MACRO_CONFIG2); > + if (ethqos->serdes_speed != SPEED_2500) > + phy_set_speed(ethqos->serdes_phy, SPEED_2500); Is calling phy_set_speed() expensive? Why not just unconditionally call it? Andrew