Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4278739rwd; Sun, 4 Jun 2023 01:34:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6P45/qt/qxSCtUYNqiIm4I3zfLEpfnmjMVqsxd6B4aBV+VgcQwlD4Bun2LO+PJdSIBkunE X-Received: by 2002:a17:90a:24e:b0:250:c4c1:882 with SMTP id t14-20020a17090a024e00b00250c4c10882mr2077312pje.30.1685867650497; Sun, 04 Jun 2023 01:34:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685867650; cv=pass; d=google.com; s=arc-20160816; b=VREIPM9NtldchWjOOsTAuGHN6rzGqXys3wtGVRiz8WtjszaxTpN+kCB34IBxwbeUes 8uZ7VT/p2woHeL04yVNf7zNmKgT+NQVCf/aCZo7ST8wuLzbjXM+o4G2UXNfZP4A1vz3G hiChFRBe/UNEpheJVvIEty1cXnPFtUIKEm9Wuiy4IGdo7O9KqnrcpWW2iqiPXo7L3Aza FdaRYMUTRza6DVSHOKGp8bpOStDDr6Jjmj2xutAnQ3aUSatrcs9Z2hGfvcKLWzQ14WU/ fZDMt0Vur5dB3WMpQRCsjf3dY4r5ipeBSuAZdNlg76tXwQ1EwOwlkb0jY+8WO3i5OLJF BWeA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qjRmj6H2wGtXEr4zcHqv6N4BE15oNkHWiHsODHkVZ8U=; b=eY6P2LB/uvwVgB1UePdjqrahs4hkLt3QoIyaQJS5IrJUB5VsT0QowmK7Z2sSlAubry 4TFGlz7r1tJ5YS6wavOQF+Pt4Vwj0dKNLGMb9ZTtZXMeeJIRA0wIlCWux27WT5WUY08h 6vPmdeaTicczclml7cQDOUa//DrrbwDXwy66mAJ/EnysdRyr3NFthO3+bzMVBsMGnEKt ZrEGC+afZevYvKP/fmrWJy5lO4ySjkdyJI7J0i/qJww27UMHV2G29LQgYJNcVt1RPhmw knpmppgowegMsNi99vB1ader9Lhbh6HRO6zbLVeVwckWipmf6mvVVC2fzrP7Ev7XtQ7D uA1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=H+h1UxFc; 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 t16-20020a63b250000000b0053f6910ccc8si3909738pgo.747.2023.06.04.01.33.56; Sun, 04 Jun 2023 01:34:10 -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=H+h1UxFc; 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 S230128AbjFDHHD (ORCPT + 99 others); Sun, 4 Jun 2023 03:07:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjFDHHA (ORCPT ); Sun, 4 Jun 2023 03:07:00 -0400 Received: from sender3-op-o17.zoho.com (sender3-op-o17.zoho.com [136.143.184.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5D8BCE; Sun, 4 Jun 2023 00:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685862356; cv=none; d=zohomail.com; s=zohoarc; b=MaeXxhj1EARya0kutlg6dIJYkGvmpgCYqa/kPfl4vcm0yNcbRqKEh6OijB7VfrTJx7K+j2+FQ/HCEpmGiOXYkWEmpTFY0Ib4hgSo79qt3ktGFDNjvnxzE5CXglSUD5Pvl0jT4SwkQcYd0TpBtOobpBwzgFIvT/ar2iOBTgcWUjo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685862356; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=qjRmj6H2wGtXEr4zcHqv6N4BE15oNkHWiHsODHkVZ8U=; b=maz+dZLgS0frMtmfzlLluHX6/IdSypC3Qw3fZu1UMJY6kMTynmEcf/KQZtOhrOxn4DY3dzVQB9qAtoFebfATQ6gSZx6jZnyaLYH2qmeW2xkI5phiEgUCzojAVeTn6oRf/C19XHTX/CG09t1Hwza7/rB0qvLMhh30DQuGBu6oAPg= 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=1685862356; 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=qjRmj6H2wGtXEr4zcHqv6N4BE15oNkHWiHsODHkVZ8U=; b=H+h1UxFcgBzwpFYKxhEbsuRxeEoR4mVInvzkmTnWHr4px0n60ohxbeqlIlo01z0a uqWwNgRF1zkTNJLbgOQI2OpEEJIzDibqsycjV+SZHv7/Q9JU4GgA8tWtxSKXUv4a3w/ MEz1n85pEZOfr6KufyG5ujVEjMl5mDreBFQeDTNs= Received: from [192.168.83.218] (62.74.60.162 [62.74.60.162]) by mx.zohomail.com with SMTPS id 1685862354320242.65733119193078; Sun, 4 Jun 2023 00:05:54 -0700 (PDT) Message-ID: <08e9c220-cf15-4c61-f7f4-ad8073a3bcf7@arinc9.com> Date: Sun, 4 Jun 2023 10:05:44 +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 16/30] net: dsa: mt7530: move lowering port 5 RGMII driving to mt7530_setup() Content-Language: en-US To: Vladimir Oltean 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 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> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230526131739.5mso5y2d3ieelasf@skbuf> 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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 26.05.2023 16:17, Vladimir Oltean wrote: > On Mon, May 22, 2023 at 03:15:18PM +0300, arinc9.unal@gmail.com wrote: >> From: Arınç ÜNAL >> >> Move lowering Tx driving of rgmii on port 5 to right before lowering of Tx >> driving of trgmii on port 6 on mt7530_setup(). >> >> This way, the switch should consume less power regardless of port 5 being >> used. >> >> Tested-by: Arınç ÜNAL >> Signed-off-by: Arınç ÜNAL >> --- > > This patch assumes that the MAC has its TXC ticking even when PMCR_TX_EN > is unset. Why would it do that? 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ç