From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33D80C00528 for ; Tue, 1 Aug 2023 19:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8SdZ+kf8NGOtZ59n1OORzif05VA/pS+mLnNGAxtCSSM=; b=b3p79ArNDd0sB1 JGLVyfQ3GD5R7uTbvF6UWRx9CPkEjsWK/dbHyJzFjs1GATLAtJbyk4MtpqOnt600ViYXJb87ZcXId OL/lKhMLrGfyUTVGWwcl2+/oPxt4UK6eCfzJ7Bfe1MNCscPvYiF7CMOHpsSamwHSzI/rEWwGLwVIB X/uSFM7+HONagAriT98IGQrosHL2LhlOpBasOIXF9yzyhUbDMARiR0jfpSB7fma+PQa6++GLyjR86 tDFXYNcFtE2CMfHyjC2t2xx9REeMCpSmeKfX11Bj4QPwD/6tffnUIjzRBvz5g25olA4E7/cx5eZ4T fXG6WYLqov3r0uDzrYbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQvVr-003BVp-2i; Tue, 01 Aug 2023 19:58:35 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQvVo-003BUT-1J; Tue, 01 Aug 2023 19:58:33 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 44ECB616D1; Tue, 1 Aug 2023 19:58:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7976AC433C7; Tue, 1 Aug 2023 19:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690919910; bh=79BwIOnM6SioCje3neXfEamXafGIUojs9GGzwDzIaT8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WaG0UuuiBslQIwwDoxSGmwylSNwUwUH7DIQ7eAy76ZMwNQxm6uzQTZe+DpR8IvAQD AR9sF34c6pu020pThaegFYojP886SrOpKscmfRnTNlEgNYWd06/PU127Un7orzG1/E 9rUKbhIJY4SvTChDop2NC6sJMRkZgC9FxkLKSBCJ5AX8gdvgUcXJEF/V5ZaRjvw4ws g4igCCOm2Ui3wG63wvnwlKi2DoXv7gVow1xbUTW25ecmVHjRgzWHzoVjMTgMGAYnGS yrqItcGmOO8B2dQEyoty0KKnJhLztUcShDR3TUA3S9ggYOAW7cy5RY8WUi7dlpa5+q jNZZJhtmtcNHQ== Date: Tue, 1 Aug 2023 12:58:28 -0700 From: Jakub Kicinski To: Shenwei Wang Cc: Marc Kleine-Budde , Russell King , "David S. Miller" , Eric Dumazet , 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 , dl-linux-imx , 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: [EXT] Re: [PATCH v3 net 1/2] net: stmmac: add new mode parameter for fix_mac_speed Message-ID: <20230801125828.209c5e88@kernel.org> In-Reply-To: References: <20230731161929.2341584-1-shenwei.wang@nxp.com> <20230731161929.2341584-2-shenwei.wang@nxp.com> <20230801-portside-prepaid-513f1f39f245-mkl@pengutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230801_125832_545455_4BB34A62 X-CRM114-Status: GOOD ( 24.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 1 Aug 2023 18:43:52 +0000 Shenwei Wang wrote: > Subject: RE: [EXT] Re: [PATCH v3 net 1/2] net: stmmac: add new mode parameter for fix_mac_speed Looks like new platform enablement, the correct tree to target this at is net-next (i.e. [PATCH net-next]). > > -----Original Message----- > > From: Marc Kleine-Budde > > Sent: Tuesday, August 1, 2023 1:37 AM > > 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 ; dl- > > linux-imx ; 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: [EXT] Re: [PATCH v3 net 1/2] net: stmmac: add new mode parameter > > for fix_mac_speed Why is this quote included? Please get a sane email client. > > 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. > > > > > > The mode can be one the following: > > > MLO_AN_PHY - Conventional PHY > > > MLO_AN_FIXED - Fixed-link mode > > > MLO_AN_INBAND - In-band protocol > > > > > > 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'. > > Using 'uint' makes the code look cleaner because adding one extra > parameter may cause some function declarations to span multiple > lines. This change keeps function declarations compact on a single > line. Marc is right. Just do it. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel