Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp97345rwo; Tue, 1 Aug 2023 13:35:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5UYVGacH4+RCm2Lq8PEpmSBRrdzUpvRbWTOqTXszHK4gnHoFLcvly4TjZnsNNDXIU0AYb X-Received: by 2002:a05:6a20:8e24:b0:134:76f6:e9e2 with SMTP id y36-20020a056a208e2400b0013476f6e9e2mr18050555pzj.58.1690922142332; Tue, 01 Aug 2023 13:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690922142; cv=none; d=google.com; s=arc-20160816; b=ZFi5kHxwDgzQdG/abUSGy+wc+Ja8mwT+ZJQqDGXdvg8pBCtaL4X2m+QblEbebNShnx sBUQD6P3iXCUaArKlwxok2u693hwe7i9suQZ5lllvHwIy6bMRp9P0Ht2mIwJazhxoFlO xOkgHE6rRm6pm+FHvoyx9+yjqqjg/y5riqeKzd//vpOWO0e8lESDWs2uvCkyYdLrPzpw GvNLEvpf66Jby0I/ifXAeLEprCdbWGAXJPXpFX2VZlmGv3Uh2lkXtFfI9qezv4O/TCqv ltP01riDMU961sklCmBfv5IJpjiByYzSYKGg5T//+vyDpxSGnt66sGzLK1xvM6MfGTi4 SkMQ== 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=09soEAEwZaU8GXI7lkbPz8PHoNVFGeI/11P3euGx7Ss=; fh=K3iVmBENZ0NV9gB8GF9g6hRQ0hGXlbJYMUcmaGLne8U=; b=QM1kPF6GkNNDXuFnDNUaYiDWnobPD5HH3LbBkIwe+PgH3tKWTQaQ+9KdkbFMS+0Rq2 PaNOWb7CYxDkn+WPw8A9JRix08ToM8oaz1nJxTdAonzPK7fN5BEjV0SmonEwrzaaKs9/ OyQn6G8r+9lmvCAWY+QFWGC8MT0RMWGqv/zn7rxo24nfKxNBdhDkkaASMrdwvh9p3oAW 8UL1MRJAAuovG29Gzw8sxsE2XKsO1Hzb7LoErTJr2KRPUaVn2H7kTTTbVns4aLSwSTDP dsbU2VpQuI4cspqK7Ce4/h3QBewtJkWprCvUc47fdTQTy+HU0oFt1JyT3dp9G7XMQJmZ pW4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WaG0Uuui; 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 69-20020a630048000000b0056433b221b9si5107067pga.477.2023.08.01.13.35.22; Tue, 01 Aug 2023 13:35:42 -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=WaG0Uuui; 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 S231633AbjHAT6f (ORCPT + 99 others); Tue, 1 Aug 2023 15:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbjHAT6c (ORCPT ); Tue, 1 Aug 2023 15:58:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0DB6DB for ; Tue, 1 Aug 2023 12:58:31 -0700 (PDT) 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 44E3A616D0 for ; 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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.