Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp28506pxf; Wed, 10 Mar 2021 19:36:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzy80VNU2ufQzppDeucHkrjhiInZ4duJ+Tyr1VurTM9Mdrm7D7aQaHspF9e1ZXMV2AYeSTP X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr6576338edb.104.1615433815318; Wed, 10 Mar 2021 19:36:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615433815; cv=none; d=google.com; s=arc-20160816; b=jt7NqTl5GrqnrxJL4zzG4xsWbVC6dZGFrYROSpjgrd550Pjllk83kDPNVMdNgNC4Vg WpPCn6SsrDD2O3so8qqeVEo2s39/6Ssb7tsEHueTFoE3tmTvj+p8Ay1NdkILKUOAiySM w+JrBcEREZ7aWdK+HKCOg4m8JnpKetjrAZx2XxipXKT1SGh76U2wPWogJOJMOO3izFR9 qKyRitwi3VNFAGTSm4ne2S9SceSnNs8q7n/2O+TQiZU/+KCINJ0Fc9wdhRIoabiFnxXh axVJ+6itwHDYIfdixSLE+VAFMQok9BpnpOzsUGrymkBB/TKVqF3WD2Le8MuoKF0iMIgc sIlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Q3VYOKPLK02wgZWHswLew0WYlzNBXfD24og6vidOw2M=; b=jvB2DomYGnZQZtzQI5CGTFhnFRsAPzNBMsgis5bKYkSbo68z9r+Ki1HAGX8tRM5oTI x4P+pAyBIHbAJd9sjUDO62KVULMp4jC1pvXvHoFegE2dNWfMj8g0V3UqsXRnoqYXML+P m2ytrSznC0sgGq6YqijxEdDXX6j5nPBNo+V1Imdzf76Ik36H59cSwJ0K0B+/+UjayeR5 kB2w0f9M1T3dCRXOE0A81xkyyCd203B4SDMHmEm7BZ/rXFH6zgv37W7xj57tgKTSKM5G bzjSoGpV9OFyhn/lAjcpFwLMaD8iFx+o1xEsBUklesF2m5cKso8+F1a5p337vfUtnj8v FSOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fiqFsmN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si247469ejg.130.2021.03.10.19.36.30; Wed, 10 Mar 2021 19:36:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fiqFsmN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230458AbhCKDff (ORCPT + 99 others); Wed, 10 Mar 2021 22:35:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbhCKDfF (ORCPT ); Wed, 10 Mar 2021 22:35:05 -0500 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD8F6C061574; Wed, 10 Mar 2021 19:34:54 -0800 (PST) Received: by mail-io1-xd34.google.com with SMTP id o11so20458343iob.1; Wed, 10 Mar 2021 19:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q3VYOKPLK02wgZWHswLew0WYlzNBXfD24og6vidOw2M=; b=fiqFsmN51ODtfC6BXdCcCJY3bzDL/GDBMkcujMQ7rsJseC3Hi44Pevit56gdgUCmxO rucShBW3uEy8BZbQvEEMiPrKiz7egAguc2jr0UX4FX3e+kiAkR1v035L3oO80NxDFAYG dIgKFgGlOuYEl65nYClh7uPi1DyNzGsdkpfzep/zUZEmLeAzX3oKHGQfPexPbp6Mnfo6 MIySTlJWiGx0megFNySpxfDECEt58y0tY+AbG7A0ue837CqxI075mO8dkqp51Fwphgq7 RTjXq/exaY/0YSe6dTq1jmOTA5dw335Qo+Woj2yg8zeQiNQwC/2w/P7GO2DLEaYVTKmc 0yFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q3VYOKPLK02wgZWHswLew0WYlzNBXfD24og6vidOw2M=; b=Kf/cZRE6J+doDvtPUkXhWlB3zuC2R8HnC+Llwr6CQ2gwVet6EU9eGqNf4x3rT/QdhW 9eEUhZMZkWZXifA/jv+5lG8QnTWCyeMvba5yPEvA+A+iickQRuRv7N1PESbJZSWn1bOX N7YdbxLv47Qc6wgHIU3ZyTNos7FEYCP+8cBmUw1vuhYElMKFIVYDNn7QSXy/rKl3UXps ishoGj8uRVvBvAQIW7QcsRgynfVw/iikCBZEdS9iqMm6CkAmOZ7ozX8c8kxFZs1/Xs7+ mzlSLF1qX8gBD0maWHPAl0WyM0Lq1aB0AhTohoyepNzAHzxsgOJ+jkSyYSV6+eeTxYPA JbRw== X-Gm-Message-State: AOAM531gn2SBDky39DlKUik6nNMt2qcG2dXVrUyjXPLrtk0Zufgpez9/ n/Y2FEoBdfAySp71543qdJ+85eTgrvFHlJ0YPNA= X-Received: by 2002:a02:817:: with SMTP id 23mr1641989jac.23.1615433694363; Wed, 10 Mar 2021 19:34:54 -0800 (PST) MIME-Version: 1.0 References: <20210310211420.649985-1-ilya.lipnitskiy@gmail.com> <20210310211420.649985-3-ilya.lipnitskiy@gmail.com> <20210310231026.lhxakeldngkr7prm@skbuf> <169c64ac-c200-fa5d-6563-3be5263d0b99@gmail.com> In-Reply-To: <169c64ac-c200-fa5d-6563-3be5263d0b99@gmail.com> From: Ilya Lipnitskiy Date: Wed, 10 Mar 2021 19:34:43 -0800 Message-ID: Subject: Re: [PATCH 3/3] net: dsa: mt7530: setup core clock even in TRGMII mode To: Florian Fainelli Cc: Vladimir Oltean , Sean Wang , Landen Chao , Andrew Lunn , Vivien Didelot , "David S. Miller" , Jakub Kicinski , Matthias Brugger , Philipp Zabel , Russell King , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On Wed, Mar 10, 2021 at 7:20 PM Florian Fainelli wrote: > > > > On 3/10/2021 7:17 PM, Ilya Lipnitskiy wrote: > > Hi Vladimir, > > > > On Wed, Mar 10, 2021 at 3:10 PM Vladimir Oltean wrote: > >> > >> Hello Ilya, > >> > >> On Wed, Mar 10, 2021 at 01:14:20PM -0800, Ilya Lipnitskiy wrote: > >>> 3f9ef7785a9c ("MIPS: ralink: manage low reset lines") made it so mt7530 > >>> actually resets the switch on platforms such as mt7621 (where bit 2 is > >>> the reset line for the switch). That exposed an issue where the switch > >>> would not function properly in TRGMII mode after a reset. > >>> > >>> Reconfigure core clock in TRGMII mode to fix the issue. > >>> > >>> Also, disable both core and TRGMII Tx clocks prior to reconfiguring. > >>> Previously, only the core clock was disabled, but not TRGMII Tx clock. > >>> > >>> Tested on Ubiquity ER-X (MT7621) with TRGMII mode enabled. > >>> > >>> Signed-off-by: Ilya Lipnitskiy > >>> --- > >> > >> For the networking subsystem there are two git trees, "net" for bugfixes > >> and "net-next" for new features, and we specify the target tree using > >> git send-email --subject-prefix="PATCH net-next". > >> > >> I assume you would like the v5.12 kernel to actually be functional on > >> the Ubiquiti ER-X switch, so I would recommend keeping this patch > >> minimal and splitting it out from the current series, and targeting it > >> towards the "net" tree, which will eventually get merged into one of the > >> v5.12 rc's and then into the final version. The other patches won't go > >> into v5.12 but into v5.13, hence the "next" name. > > I thought I figured it out - now I'm confused. Can you explain why > > https://patchwork.kernel.org/project/netdevbpf/patch/20210311012108.7190-1-ilya.lipnitskiy@gmail.com/ > > is marked as supeseded? > > That looks like a mistake on the maintainer side, I do not believe that > patch should be Superseded since you just submitted it. Thanks for taking a look. I thought maybe I did something wrong with submitting the same patch to net and net-next, but the net-next series (https://patchwork.kernel.org/project/netdevbpf/patch/20210311020954.842341-1-ilya.lipnitskiy@gmail.com/) depends on it, so the way I did it made the most sense for me. Let me know if I did something wrong. > -- > Florian