Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4248324rwd; Sun, 4 Jun 2023 00:45:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Xjs+30kIBFuFtz+on4vOARxIbOYLMdN3O2oUR17h+ayhfb+d5HnDFzbsyvGNMLlI4N0NM X-Received: by 2002:a17:902:c94a:b0:1ac:7405:d3ba with SMTP id i10-20020a170902c94a00b001ac7405d3bamr6178368pla.40.1685864752998; Sun, 04 Jun 2023 00:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685864752; cv=none; d=google.com; s=arc-20160816; b=aTELDr/jw3Ug2vqH/PTT9zKHnM6ZPyu1/u/lZE8mropbLqUhrtQwaQfTxzYOGzlVRG tI+l66yKJnGfM8YH6g3LgauHSGeUSq3sJaZ4OPJCyUnnS2rYr0zR5zrBhgs8mFP3PEy1 IVwmUQ3rAaoIJWYc9IXuXW10Y7JqHf0kH+lxAaEctWVGZ/e+mD/ikZlAjEHnyKKNng1h JTogrPD86lyUOgDufpBIdSr2X6TMNFtq0VP8tnVs6Ten7F/DK5J1ZUn+jQFysRtRFh/Y tb5nGt/mbIZOpJ8cZhcI87yyraPuYpGu3Yfct7fJw9ieVS28mJMfG4ZKwrVwbrDyV/NY IBjQ== 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=xIhKNTPXPe0u0jsGPi0f2cIWsy51Xap3dptIpk88dVw=; b=X7J6brD7A/0CxxRJApKdFDaip+7ArLqh5eXu8GcuSYe/ZIGHlr7B1iASJSa9ll3GYG /ZJDT1XqrVJq2oSqxHyEbX7LGiwRb7r7OkhQgYmHhs6n6YnLk5a772N78vtd3m8AScxL RGSpctyMFJXAf4mL56uKlG0XXW+ZU88E2FPdB8OF59LiWt7MRuqyg0WzZkYLGhICGkvH sRkzrrAtUW/SGsVpMsUoymNqhIauQ9xjX4MoQ8L3+2ISvgdnIIJO7fyIZoqfBtVXD0zE zk34C0FvVpAkkAiKqjKpBC4KiPmq4b5P3gGUL6/OmqG6mddrgJkH5KJYqsqMqa9+YUub oFvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=aBZpo9am; 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 g21-20020a170902869500b001ab18d794a5si3545559plo.297.2023.06.04.00.45.38; Sun, 04 Jun 2023 00:45:52 -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=aBZpo9am; 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 S230005AbjFDHOy (ORCPT + 99 others); Sun, 4 Jun 2023 03:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbjFDHOv (ORCPT ); Sun, 4 Jun 2023 03:14:51 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 649B0CE; Sun, 4 Jun 2023 00:14:50 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-977d0288fd2so63452266b.1; Sun, 04 Jun 2023 00:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685862889; x=1688454889; 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=xIhKNTPXPe0u0jsGPi0f2cIWsy51Xap3dptIpk88dVw=; b=aBZpo9amahon3ntrSsg2wteLLxu4t7tqyGv95gv3ZHpEeiM8eqfHkNcoO/IQ7z9SwE zymWvbJ4G1AtHsG/hxqmWZ+PlBs6fiXIIaY39HODoNe0s8jZRdoY5OLs6w9n32UDxK7F 5kApV6hcVgQ5heBbpGT27297qXuGu2UfRvlqZQG/4CGwIlxdXd6rqTux8vHQltdza16a 6NzBkLH0uWU0fPhlgxSSGrChc5aJK1tkYNFiZ68/YvfikLup1Li1WXyNtegvknaNvYEF f7L0IwOEo6Bs8DRxT/H/Ak1wKgi7IEIzQywmZEYiIXH26r9sEbxIRXhPoxTAyyfBVOJ1 cJoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685862889; x=1688454889; 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=xIhKNTPXPe0u0jsGPi0f2cIWsy51Xap3dptIpk88dVw=; b=Bn80bVMIyLrsLcUKHWmH01ZLIcuiqLnbYIJTSR2nLe6Eoru36WtD/Ux6MXxezwm93y ePoAbNNIPFYtr8O7Gpm31sMFjDFHIGAAxUuCD8hMmeB2pMFWEVXwT3ik+W+rEru2cGH5 TbQQfXgJy3UT+uA9QzVghWNmzq8WLQ7fEYbrNXC+FCi3Vy9RCV5psIdd3W14vY3GG7c6 03FVDvbA95mAgiuR+PMbP9qsB4cPSk3UJWugyaZAzKwxfUXJpW5zUMgIuFqvNYhMP6En XH0R0o7O3In0/x6knPzSXbALaI6a0n2X6TaJVefcRoZaazlFn+Nzlbr4W9Ke/tq2Z9Ld +NAA== X-Gm-Message-State: AC+VfDw3eEvFgFgyqLzSubP1WWH+Bf2pBpx9sl8ABBtoklhK8zF8vveK x5cGRVQEC2M52aVSnZuPqSc= X-Received: by 2002:a17:906:9b8a:b0:967:142b:ff07 with SMTP id dd10-20020a1709069b8a00b00967142bff07mr3545323ejc.21.1685862888389; Sun, 04 Jun 2023 00:14:48 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id t5-20020a17090616c500b0096a6be0b66dsm2707305ejd.208.2023.06.04.00.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jun 2023 00:14:48 -0700 (PDT) Date: Sun, 4 Jun 2023 10:14:45 +0300 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= 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 , 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 16/30] net: dsa: mt7530: move lowering port 5 RGMII driving to mt7530_setup() Message-ID: <20230604071445.a5hg2tiybqp2iqwz@skbuf> References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-17-arinc.unal@arinc9.com> <20230522121532.86610-17-arinc.unal@arinc9.com> <20230526131739.5mso5y2d3ieelasf@skbuf> <08e9c220-cf15-4c61-f7f4-ad8073a3bcf7@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <08e9c220-cf15-4c61-f7f4-ad8073a3bcf7@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 Sun, Jun 04, 2023 at 10:05:44AM +0300, Arınç ÜNAL wrote: > It wouldn't. I'll drop this patch, thanks. For reference, PMCR_TX_EN (bit > 14) for port 5 is also set in the case of PHY muxing with this code on > mt7530_setup_port5() which doesn't use phylink. > > /* Setup the MAC by default for the cpu port */ > mt7530_write(priv, MT7530_PMCR_P(5), 0x56300); > > 0x56300 = 0101 0110 0011 0000 0000 > > Maybe I should make a patch to use the definitions on mt7530.h for this? > > Arınç Yes, I don't believe magic numbers make things particularly obvious for other driver writers, they should be avoided if possible.