Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5043494rwd; Tue, 23 May 2023 17:19:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CxK8xp/xu2qiq+5xIViiTOLBXjb6tgI2JFBnyUdpw7KFNeM0vc8KdFV2dtxvu5yqKLEJv X-Received: by 2002:a05:6a00:1253:b0:64d:1585:fff2 with SMTP id u19-20020a056a00125300b0064d1585fff2mr857594pfi.29.1684887589182; Tue, 23 May 2023 17:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684887589; cv=none; d=google.com; s=arc-20160816; b=KZYU3W7dzQsj9hx9e7Y0fwi6JUfCw0Q6D97WoJJtc93z833LTYdglfz7NYvv8C3neQ uiTA5KNmR5cyULx6uw1y2BjjIFkRulRWYbWxW3WX4taSDX1npfa21c72b3rAWdKvUNBo kP35UCODrh6UNQfo1GElWsoR/1nimSd9WRA9Ei7mxtAtHYIaZab50xZtHZbrw2StFBjc ZhOZCVSeroADGPQm3bLwNC46GtqJ1puZvoQ7vcoec6pk7yk/h0sihvfukE2eA1GX7Djp 5ckMVEObo4PcJxpNTTxt+Faz4vyukzHBUXrt7GPkTa3JmFdsQZ4CX13ISwLUHGXmMgSl usjA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KfLyueRja94XAnWOsYm9wZ408OVM2wk37CpVvLhfa+w=; b=APV0mzQHfcVJH6+xrxW2RBPT3x6aEq2hmYOpndQYSdaSKHW1bCD01HQSP0Ny9fW3R5 pR9UGHdV+kcCyeoGmzgALTqRAjspHd9bkoqVgQYuPSZ3NNobB+6YwMbRROEtc5Y8gwi5 MiJyz+8pCK6QCH6E1gUIFrmidbqUHM5fNDXdRJmUFfD5+kmAC00Ia5lUs2bxzzZ1JYAN DBLRl9fUvVK32Iwtg1hqDxXD+pnK0KAWMGuBzA/XxlekJVZqBQc2Vvd6TDKohgii+I6R 2XO/QPU9hyDr3t1R38Q7uTYsfTUzB43YOvGKWVp0JDiegeP9NOxLHCSbD5jP8ZvWwqxa FYEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VdRp9cC2; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r30-20020a638f5e000000b005289dd0ef00si5194798pgn.568.2023.05.23.17.19.34; Tue, 23 May 2023 17:19:49 -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=@lunn.ch header.s=20171124 header.b=VdRp9cC2; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238948AbjEXAHa (ORCPT + 99 others); Tue, 23 May 2023 20:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238947AbjEXAH3 (ORCPT ); Tue, 23 May 2023 20:07:29 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 162DFC5; Tue, 23 May 2023 17:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding: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=KfLyueRja94XAnWOsYm9wZ408OVM2wk37CpVvLhfa+w=; b=Vd Rp9cC2PyCDng1i5HXXzq9HazpQi0mr0isc6Ntoc/Nf3aG1pLorCACJ+gi2Tu3zzyPAAx++0FfcBL0 KULgDGHAOaT9Uj5YyJCKauDPXjD0R2Rw74gRgO0Ns86jeEmNtQKv7cZIdI8os8FRclZQIUy3UA7gl Q7qteg6Snt3J8lg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q1bTI-00Djcg-2u; Wed, 24 May 2023 01:31:16 +0200 Date: Wed, 24 May 2023 01:31:16 +0200 From: Andrew Lunn To: arinc9.unal@gmail.com Cc: Sean Wang , Landen Chao , DENG Qingfang , Daniel Golle , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Richard van Schagen , Richard van Schagen , Frank Wunderlich , Bartel Eerdekens , erkin.bozoglu@xeront.com, mithat.guner@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next 02/30] net: dsa: mt7530: use p5_interface_select as data type for p5_intf_sel Message-ID: <8f73b826-5a1e-462d-91e4-5c518751c1ee@lunn.ch> References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-3-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230522121532.86610-3-arinc.unal@arinc9.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Mon, May 22, 2023 at 03:15:04PM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > Use the p5_interface_select enumeration as the data type for the > p5_intf_sel field. This ensures p5_intf_sel can only take the values > defined in the p5_interface_select enumeration. > > Signed-off-by: Arınç ÜNAL > Acked-by: Daniel Golle > --- > drivers/net/dsa/mt7530.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/dsa/mt7530.h b/drivers/net/dsa/mt7530.h > index 845f5dd16d83..415d8ea07472 100644 > --- a/drivers/net/dsa/mt7530.h > +++ b/drivers/net/dsa/mt7530.h > @@ -675,7 +675,7 @@ struct mt7530_port { > > /* Port 5 interface select definitions */ > enum p5_interface_select { > - P5_DISABLED = 0, > + P5_DISABLED, Is this change important in this context? Maybe add something to the commit message about it?