Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6174730rwd; Wed, 24 May 2023 11:49:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Fm9ehWfKdBXAOH1Nbd82uQ7laMeBgfTzwKZ2/lKdhy6ZpF27ZKkobsIKpdtkyI6v7MBqO X-Received: by 2002:a05:6a21:6d9b:b0:105:e434:670b with SMTP id wl27-20020a056a216d9b00b00105e434670bmr21646868pzb.4.1684954140130; Wed, 24 May 2023 11:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684954140; cv=none; d=google.com; s=arc-20160816; b=0aEsE6F1w4z0K8DuGMf8fRAEfo8+Neo1z00lKwgQokbHDj9pn5AK+HXqzfJ69Dt9BU HpKKvltvJ0aKULtTMFWK+Iy3GEGT5Js6OTCTaYelAiNDGWQApBimGtg1w6U5vgX+NxSh g2q3GdQHy8FCLqzmIjMj+dmtqxi4RbagWAnsmXB2Mm6stvyMnA1DM8pCzbPoscb7tH93 Y6yCAyR0m9YbEuac/td6BKGRNzYihyTWC1kwx5IRMxKFPmAkQCYEjvRaYMXdArFJ6byc D9xb7e6zIA8fxx6+39yxh4ztwoEwaTrH/Kq7W0GTYKsBaqNbqo1hxiU2AJFD1E21fIEk ubFA== 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=PbGGH2S3w7HcoJCp7d0j90HcXaq6j3Fgosa8UJEEVfY=; b=VIsu/sgWEBwgEWqtHv7BjVBs8NWRdcpu8l87ZJPea7sthaBepwGSzhjt8OGp3sPlqc yIFte7HwE99YX4bqJIpNguEOEkg42zB4wfLsgkc3xANLcUr2YLpMl+BJbThtDtwS5BOy y2lFKq/J79wxu9IZvvIylRluT+rlriyiNIQ6YXRhk19EE0QVLoz8Ud9ailbvmXowfmlj 2/c9qyZRaFQIria6yg9B1KczJFNAsj/+v34/qi7SFRZq8B++v7+RY4xoDHF1OwH3dGIJ y+xQfynxDD7xIwrM3F+aQbp9ZyGVa56NoMnK02EAZ7TkMLdGLLvfR1ZAfkHHvKT2QDbt 0j9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UwL5D7dq; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a639509000000b005340840c0c8si2372834pgd.327.2023.05.24.11.48.47; Wed, 24 May 2023 11:49:00 -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=@gmail.com header.s=20221208 header.b=UwL5D7dq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232915AbjEXSEl (ORCPT + 99 others); Wed, 24 May 2023 14:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjEXSEk (ORCPT ); Wed, 24 May 2023 14:04:40 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B519194; Wed, 24 May 2023 11:04:33 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f60ec45314so9986425e9.3; Wed, 24 May 2023 11:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684951471; x=1687543471; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=PbGGH2S3w7HcoJCp7d0j90HcXaq6j3Fgosa8UJEEVfY=; b=UwL5D7dqjeyyVogHuw+vr4kTyy8m3QwcpUwkIf50pcw11+nKU8hibHk9iQG3PduHz3 l+MnVdjeb1HWtGpz5cosOld1neklNsNQJqIIzjtCrey1rQHzTYfc/RHtoVpOg73HgXlL 0qNFcHTgyNGa8ajdOaCjick2Bo5LalpYUy2I2XDcwGWCVJxmq2uTVBSXjUagVxZ5Z7px cokK63ETdLfT4Wozb+QLhD7APgo3Yt+BA4FSCQCSqQHM0ogLU5qEEWksemPSQ6hKc/jx 2wVsyrvkc7afl5km4Rtigfr1zTvWO2za8QiPtjCiMTeITDmmle6UJVNFIA08ku3696kr OjHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684951471; x=1687543471; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PbGGH2S3w7HcoJCp7d0j90HcXaq6j3Fgosa8UJEEVfY=; b=LYfMyjqXvufEDeVtjdw1ixaos6rvgkT/oKPa3dYbnxLwpAK84NRyz0HVi6hs95wjsf CkTXh/4G9Ww/czCeU1O/hW7xha7kIn85zztFFdUeXn9FQ0yDzNg7DUf2KchEKFvCDFAq 2eAhggWy58patjJrIfLQrRSfcekb5k+XoGKXyNeyqfHk/TKm+ZzOXH6aGWDWHPgXjOK2 R5V+O83gIo5dwstvEsSAslQWXqV8ocTSWM3lAtBRtHbcupxfYu6bTKk5AKIz2eCX7f4u 2N1f3oW7PC3hGIXsD15HtWlphW5Ku0vzkt2Mjb9przUgP8iHubDiVuo5mmvJDQxx2mI+ SkUA== X-Gm-Message-State: AC+VfDwze+RbLrr2+xzsj+ddlFeELnl0/0hkNoHQRw+B3V8HqZj12vPR 1IDqdJsuXY3v1FHRac3/1FA= X-Received: by 2002:a05:600c:ac5:b0:3f6:536:a4b2 with SMTP id c5-20020a05600c0ac500b003f60536a4b2mr461872wmr.27.1684951470896; Wed, 24 May 2023 11:04:30 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id o9-20020adfeac9000000b0030647d1f34bsm15367534wrn.1.2023.05.24.11.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 11:04:30 -0700 (PDT) Date: Wed, 24 May 2023 21:04:27 +0300 From: Vladimir Oltean To: arinc9.unal@gmail.com Cc: Sean Wang , Landen Chao , DENG Qingfang , Daniel Golle , Andrew Lunn , Florian Fainelli , "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 09/30] net: dsa: mt7530: empty default case on mt7530_setup_port5() Message-ID: <20230524180427.t77iohojxelpa4yk@skbuf> References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-10-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-10-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,FREEMAIL_FROM, 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 Mon, May 22, 2023 at 03:15:11PM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > There're two code paths for setting up port 5: > > mt7530_setup() > -> mt7530_setup_port5() > > mt753x_phylink_mac_config() > -> mt753x_mac_config() > -> mt7530_mac_config() > -> mt7530_setup_port5() > > On the first code path, priv->p5_intf_sel is either set to > P5_INTF_SEL_PHY_P0 or P5_INTF_SEL_PHY_P4 when mt7530_setup_port5() is run. > > On the second code path, priv->p5_intf_sel is set to P5_INTF_SEL_GMAC5 when > mt7530_setup_port5() is run. > > Empty the default case which will never run but is needed nonetheless to > handle all the remaining enumeration values. > > Tested-by: Arınç ÜNAL > Signed-off-by: Arınç ÜNAL > --- Reviewed-by: Vladimir Oltean