Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5393809rwd; Wed, 24 May 2023 00:44:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4pbDrsa15nVWbyNSKjeMwhULq+adZTiYhPru5oRoEy2FA0+i9e+okYGIUGpF0WqcBJnQKl X-Received: by 2002:a05:6a00:9a4:b0:64b:50:2410 with SMTP id u36-20020a056a0009a400b0064b00502410mr2230972pfg.19.1684914263939; Wed, 24 May 2023 00:44:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684914263; cv=pass; d=google.com; s=arc-20160816; b=y5uJgIEWos8BIi31JDXE4D8CmRwpu4aip0iI3Zi2O59Esj/HbCKV5J9AQQbIQbPwmv rVCWacIh0WKJMHVwG4qH0KpiYZvr4y1wWG9duoSItV+VtsRcGinFznJa77hk2lXsrwWe sS2mNRf0tTLSujxReoKRvV47SCI8WwRdbuWmMOu146y0gSmEPzV94yaDKVGpfQGYzGbr nha0O+ME+mDPMNC3rgvynp+9nK9BxtYOskSQ2GSaSr8B3pLC/A5ZJCmGXOq1BAthUtVS q1fJ+3zm4RMMURifdVZGs2wqsBrN9UU8ftYzu7v6nrTh7pTtnnERMPlsrL1bhd/+ssEu mMnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=MR0O682RfrFBNse1p8Ql+KZ1F8A1Rs1HR/Xijg/qsHo=; b=YLba+s/eqCeLPuiJdcv6Ds/FFG6nMB0lvNBOrIb0rf55SmTA8/Dm/2F2uql29wvngj uvsjwtC0qekTGBYtHz//ZZJ+YmajEHbCjRmc3OpC1Sua8ThlytMlzpSF71E1ui34poHM vxz//RGDCSan0sPbt2brTEU+qJ+ONHQ03mNAMIiFFmRzz0baq3l8Nt++z9PejwBJahUf 1++FCpBbrN6HWKtfiGESil+wWv77mQ2oG9ycWCFc1wJKdnuJ/pXJ1Fm/V1JyG45rheFD 7PPyK776TMc8bgJ/Tnr4oDO/pqZRD54gnf2sScREkmYngJh8jjPaLm6Oef7fT7p5+fcj oG7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=SdPuQP3V; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 b11-20020a621b0b000000b0064f6c2c05besi404070pfb.108.2023.05.24.00.44.08; Wed, 24 May 2023 00:44:23 -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=@arinc9.com header.s=zmail header.b=SdPuQP3V; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 S240061AbjEXHmb (ORCPT + 99 others); Wed, 24 May 2023 03:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240064AbjEXHm0 (ORCPT ); Wed, 24 May 2023 03:42:26 -0400 Received: from sender4-op-o10.zoho.com (sender4-op-o10.zoho.com [136.143.188.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2FAC1A4; Wed, 24 May 2023 00:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684914092; cv=none; d=zohomail.com; s=zohoarc; b=aKxvFDvhB4Kb4q7WHYCzmGiJUnx499T9hNTbQT49YsO5DtSfhxxDXFrIcz1JD4vRCr8TKos78852opVSGsGND3eIg42TZjO8tn8J1FpM7O03UK4dQ+3f1UF1t6mQ9OoVqmhPShUSAsoXQALsUv2y1w9VKZKb7K0Kes3Rp6zxecc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684914092; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=MR0O682RfrFBNse1p8Ql+KZ1F8A1Rs1HR/Xijg/qsHo=; b=KPARimPIC8bQ0XGSJKJodyslgvqqwIbSgjURvmHDqIvxxz/7EGT7v3FUZhGtJqhkbMi20R7aCqwLSujGVW0r9QRHuNm/mDd24zGH7fgQZNUJIcxJVVU/C2rDH9xjC5CyrcgxfB8htLQO6wKw1wFZm631v1LuJZiuVttPiiV5IdE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1684914092; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=MR0O682RfrFBNse1p8Ql+KZ1F8A1Rs1HR/Xijg/qsHo=; b=SdPuQP3V8HGpH/WOY38f44060GfQW1hFNzUyzqQnbk3V8q3oEWQS1aBWVS3jISpG ztEzUpa3KEcr7aUgp1t7PDKQHvRELaJQFwgzzhHithXUhHqIEP0+ulaf1ZmwKcNAx6h dhKdTXctBbWqqYz7cXsYRfBwrKo5kNysEMZ/RDUA= Received: from [10.10.10.217] (149.91.1.15 [149.91.1.15]) by mx.zohomail.com with SMTPS id 1684914089227639.5522627095868; Wed, 24 May 2023 00:41:29 -0700 (PDT) Message-ID: Date: Wed, 24 May 2023 10:41:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next 02/30] net: dsa: mt7530: use p5_interface_select as data type for p5_intf_sel To: Andrew Lunn 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 , 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 References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-3-arinc.unal@arinc9.com> <8f73b826-5a1e-462d-91e4-5c518751c1ee@lunn.ch> Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <8f73b826-5a1e-462d-91e4-5c518751c1ee@lunn.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 24.05.2023 02:31, Andrew Lunn wrote: > 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? Not important, the first element in the enum is given value 0 so this is merely a style change. I will mention it on the patch log, thanks. Arınç