Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5635221rwl; Tue, 11 Apr 2023 08:04:02 -0700 (PDT) X-Google-Smtp-Source: AKy350ZeCpq0gQrblPgyZb7aPuSueT5ibFZUvtiujm6zgjNWqB57LSQZVB/9sQQ2qI+osdILcUqT X-Received: by 2002:aa7:c393:0:b0:500:2cc6:36da with SMTP id k19-20020aa7c393000000b005002cc636damr13027601edq.19.1681225442659; Tue, 11 Apr 2023 08:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681225442; cv=none; d=google.com; s=arc-20160816; b=ruJq71S9e1/8QpOR4Hkn60y2e/2G9GomhGzzhn5e3QmzMcviR/5mw6PdCDWP8H5Nyj FK1Oy75IQiRJJJval+cKWB3jGzOEwm7tXTmB/oz+IW9/2MM4fMs0z81+zhOg23Nkcdh4 IBDyp0w7HwLNwO4dZON+iSrdM0rPTv8HFyOiC9PS8MsaQDBcIGY85Uf+g38aex13ra+k zvNptFaSbpvNndCPLXLbEpb1zSwbG8+uZFWKZLLM8cQwavUlBU6+R8KWxLSy/6bywK+L 5KBoFV2kXlnjsND62zIU3Z+07BRCu5q7mbomCuZgxHkTdwOH/al47GNU8y9szwEhcVqn 3A3Q== 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=ooA/O5How6wQvdMPwj1oVf9NjGnfxxmKWhsoBtFQ4c0=; b=SGqzmHPxAxU8UgpP4e0vyogsKXh3Gazma2E44Sl8YVpNbJUlfn6L1rk26aDyWzzJU/ 1qW+0YMAvr4P07NFoWLVlKnNOgc4lCW/CMKzTGHG1IOgnRgvgwNgV/mpxUqUEF4Yp+mR qxMKnwtQYt4McPMKBXLVxcbs8zFeKUADzJp4evgJga44clMaax1fGnWvgYbDcmoQi0vE RwPiPlN4GyXBGUKcJKIjW2qmWYLfEMRUdmB+DuQG9X9cC6fIr9wZuVOejjT0HTIV7ev6 dYOAb08+dlAoA9FscB+ykTwlKkeeZZmg7nVghbzyQxvcrHhSLfXn9mSG6uGJnctIhVgE BtdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qfMaiqu0; 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 d8-20020a056402516800b005049ae416f2si6047114ede.568.2023.04.11.08.03.12; Tue, 11 Apr 2023 08:04:02 -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=20210112 header.b=qfMaiqu0; 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 S229932AbjDKOyZ (ORCPT + 99 others); Tue, 11 Apr 2023 10:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjDKOyX (ORCPT ); Tue, 11 Apr 2023 10:54:23 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C35D2100; Tue, 11 Apr 2023 07:54:21 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id jg21so20762050ejc.2; Tue, 11 Apr 2023 07:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681224860; 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=ooA/O5How6wQvdMPwj1oVf9NjGnfxxmKWhsoBtFQ4c0=; b=qfMaiqu0EvyxBXJQV5iXyTIteNFwIp0kn8IXJ+o4Az9OdrCE9VDs6EwSVZQlWYbM2r 0MC7x+fv9U9MFiDopk0B/XMmtjYn074RbaOslhcR817eOP5y6G+e3jCLW5S/OTraueQ2 6iEd/czylPiPpA0BR19KncZbLxMd5pZ7xcuR10nXXVAaMWItAap1rtVrzdhj4uqXmtIQ EZNlbnJ7Xsp35jBwgYryuVnJhul2IksKBKhDqlS1B3phYWL0QHsyFWHPIzAUa1eaOUEI 93U/JkwQ/rFKY5QY6p1Vd6Ue/VlqdBPmdrRywUO08v3i7MZX21EjCP4Lk1bkUASDTXEX uu3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681224860; 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=ooA/O5How6wQvdMPwj1oVf9NjGnfxxmKWhsoBtFQ4c0=; b=wZ6qSyysrlg+KbkI/H/CgC0EiCcXGI+K4w/REIE9mdGxpgZKeh7RemaVGVn49nFtfu T5XBTxHKYdIoVvyYfZ4be7cmY9WTBRx3cGkbhG0Ko4K9UOsbMK+ZIgv3lnKp6SLcGemi D6OXhiEov4AH7GI2fFyXntcYpI2OOELSnbcrK9ZvKXUsXgrOy43cM3cxvz+1UOZQvNyh zbmCKwsY7SpA+eMo/6j0h7qYuEBnPLkQpwnrV8ey6sOajRLRQ0T7C7UwzbnjYo95i8sx jtNAhSKtP4eHLBnYqveax5htH5wzbfv+N2aItNcL8V3YnoooPwvjeVZm5DL3H8/8AoX0 AHMQ== X-Gm-Message-State: AAQBX9cKyxk4Bcvn/C+8UiFwHR7bfJKL8oaIyH6Z4XcpiCIS/U5QGDU0 gW1bVxCHF9fQdReG/CMwA1w= X-Received: by 2002:a17:906:70cf:b0:939:e870:2b37 with SMTP id g15-20020a17090670cf00b00939e8702b37mr12602594ejk.70.1681224859587; Tue, 11 Apr 2023 07:54:19 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id z21-20020a17090674d500b0094e1026bc66sm975125ejl.140.2023.04.11.07.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 07:54:19 -0700 (PDT) Date: Tue, 11 Apr 2023 17:54:16 +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 , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [RFC PATCH v2 net-next 06/14] net: dsa: mt7530: do not set CPU port interfaces to PHY_INTERFACE_MODE_NA Message-ID: <20230411145416.kovyu3wb3dhtgbl4@skbuf> References: <20230407134626.47928-1-arinc.unal@arinc9.com> <20230407134626.47928-7-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: <20230407134626.47928-7-arinc.unal@arinc9.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Fri, Apr 07, 2023 at 04:46:18PM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > There is no need to set priv->p5_interface and priv->p6_interface to > PHY_INTERFACE_MODE_NA on mt7530_setup() and mt7531_setup(). > > As Vladimir explained, in include/linux/phy.h we have: > > Therefore, do not put 0 into a variable containing 0. The explanation is unnecessarily long. I only provided it to make sure you understand.