Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5308952rwb; Mon, 31 Jul 2023 23:44:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWlnmadBDpumd9MWKOuPWjgitypS2sYsva/ZFPFfREeTg4ISBMMfRfoy+ZhP2E9JNg7Gm0 X-Received: by 2002:a05:6a00:179b:b0:676:20f8:be41 with SMTP id s27-20020a056a00179b00b0067620f8be41mr12292573pfg.16.1690872279094; Mon, 31 Jul 2023 23:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690872279; cv=none; d=google.com; s=arc-20160816; b=NcXKmsNciY1rxQTsldej4Kk/7Y7BPh7teKYbcqaW7rv8C0SnK3LEzlGbVRHIy4ppl3 8j8MWPnhtMDnoBtn6IguSObu04VrFyrXIwWJByvTPLYKXyW8InSi79Tuil3oZ/o+Xbep /8jsJaoKzOXgShtUd7olf0aSnV4/Q4kAyWud0rS3BAeMNiyelP5MP0uSQU+km3/UOUk0 BAD7w37T9GRrYieBBK8rSotoZeqSSR9EIxDgaHSOH/OTu4G4x1IgnwFtv3GXtRPuF900 n1/cOjo7S6IYYIR11sLyFxWrJMFz0FbaYELHDGufazvtaeQ3fXIzOT7NMN357joTqlJE 9syA== 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; bh=ZnXcPz+er9HQKadEmvUZBfVa6DwAQ1ImoZzACxBOqLI=; fh=E1IZ5dd0o2ffh82vNzGhU1HmOXwrvMA/dIoEDEOmGSY=; b=fTnVjBDMgU3gLxShX+vF0FEciiM0vQb98GbR74mwN7xEd1NUs/SCvPVm6Z4ArrIvSY H/h4uKA8dRrZRRO9NysoFNvlf+JQwUmQYuvy4o6IDF0Nfx7Ma6WgUN6Wqz7L8sujUl0E bAA24zOd5eIb67PY6dL4EOdvJ5MCBGXKNiq+6hs+yk5jCO99RUqGHUo/kTAr3Dmbte4r XNG0FRp7TUjtIOaskKJUVrtuSalI7MeBxjTtXnge5erH2mrohE9dAQUUwY+N27+6RYOk 8/958jiGw2dEnSxk7J4g/rCO/85ThYpqoG4YLhYdSzGfA+u1482hLbbiV4xfU8ITPNU5 8ocA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a63d94e000000b00563d3ecfb13si8379290pgj.117.2023.07.31.23.44.27; Mon, 31 Jul 2023 23:44:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231712AbjHAGjN (ORCPT + 99 others); Tue, 1 Aug 2023 02:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjHAGjL (ORCPT ); Tue, 1 Aug 2023 02:39:11 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 303A6E9 for ; Mon, 31 Jul 2023 23:39:05 -0700 (PDT) Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qQj0d-00070v-4I; Tue, 01 Aug 2023 08:37:31 +0200 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 76E8C20035C; Tue, 1 Aug 2023 06:37:21 +0000 (UTC) Date: Tue, 1 Aug 2023 08:37:21 +0200 From: Marc Kleine-Budde To: Shenwei Wang Cc: Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Shawn Guo , Sascha Hauer , Neil Armstrong , Kevin Hilman , Vinod Koul , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Jose Abreu , imx@lists.linux.dev, Simon Horman , Alexandre Torgue , Giuseppe Cavallaro , Nobuhiro Iwamatsu , Fabio Estevam , linux-stm32@st-md-mailman.stormreply.com, Jerome Brunet , Bartosz Golaszewski , Wong Vee Khee , NXP Linux Team , Andrew Halaney , Bhupesh Sharma , Martin Blumenstingl , Revanth Kumar Uppala , Jochen Henneberg , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team Subject: Re: [PATCH v3 net 1/2] net: stmmac: add new mode parameter for fix_mac_speed Message-ID: <20230801-portside-prepaid-513f1f39f245-mkl@pengutronix.de> References: <20230731161929.2341584-1-shenwei.wang@nxp.com> <20230731161929.2341584-2-shenwei.wang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bosuzfm7oov47gw7" Content-Disposition: inline In-Reply-To: <20230731161929.2341584-2-shenwei.wang@nxp.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:b01:1d::7b X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 --bosuzfm7oov47gw7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 31.07.2023 11:19:28, Shenwei Wang wrote: > A mode parameter has been added to the callback function of fix_mac_speed > to indicate the physical layer type. >=20 > The mode can be one the following: > MLO_AN_PHY - Conventional PHY > MLO_AN_FIXED - Fixed-link mode > MLO_AN_INBAND - In-band protocol >=20 > Also use short version of 'uint' to replace the 'unsigned int' in the > function definitions. There are not many users of 'uint' in the kernel and it's not used in the stmmac driver so far. From my point of view I would not introduce it and stick to the standard 'unsigned int'. Just my 2 cent, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --bosuzfm7oov47gw7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmTIqBwACgkQvlAcSiqK BOi7Jgf/UaTFYSC4IuXT7k8VsP0wkBG1kcRP+yNZbLdHhdJNmRn2K0iTpv82c/8q ZYpLreaQqEKOb7TszFXyDCSS1Mssv66nj047Dc6LHrnW2VbY7P9LSCMsnSUaoh0a lkOknimCFo9HKbYqND+gh1y/o6Wz5PO36qbaBR1giHbUdB9+Ow0AlTR3V9KeMOb4 OsXSR2ihf5LYXebKvn8StZSwICnzZ78eLFZJsxu0oEMJDnaxIM5VQb9MaCfPbZv8 /Bco4yUWkcOqrMmHnL9TSVvgaNJLzxowhcbwA9rucxpS314AJAqil34OSnmnQeGW 1+lihD2B9mQqxq0drsTeFh5UBcLxNA== =DXrv -----END PGP SIGNATURE----- --bosuzfm7oov47gw7--