From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E92C6C77B73 for ; Fri, 26 May 2023 16:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QPCs2RvnLYjQeclotu5burrtCjAi39Ewwbr7Fn4wYno=; b=Nh2NbehCeZVM20 GZSJbKgGS+NG+irrVMcZJRCxKWObwRy6O0EPo7fhW4AJl7sJSUn5xWtT1K4G7Fed8qk0ADkSMFkX6 HJQNSOY/QSj/o6XVpF2Kq029qHnMsDWiAI3U6ihF4/X0p93VCMgf1vcjISru8gxMvlIbwlwmRhcl2 kxkXjC/c8qB3AOIuwch5RUO9KD9rKqjEamaw18mgUB2FsZjtFrvbp2dbsinzZlj51FgtVEJ+Sxy/o ex3fSW2Wb0QkoY3bDdJxfLJ77w53Zxw+tdwzomaBEKcl1Pc+ITf7INrD16rseN2Gxnr7cDQleY3D9 6FQJiVdWp69fJmkiEgqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q2aa1-003A4g-0D; Fri, 26 May 2023 16:46:17 +0000 Received: from mail-pl1-f177.google.com ([209.85.214.177]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q2aZv-003A3L-2V for linux-arm-kernel@lists.infradead.org; Fri, 26 May 2023 16:46:15 +0000 Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1ae3a5dfa42so6516335ad.0 for ; Fri, 26 May 2023 09:46:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685119568; x=1687711568; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rZ7xESGkDIP+gv/TyxcTjr26EqMcpWBeDTIWa0uSfo8=; b=DvmMzjbmswgq6l94A2JoDAWbbFBhIXCIO8sV1h8+5MLkJlUf4SjQyi0B+a/4j5PHWk aFRzcqNAQlxT0XKAfhVyKSvTL7gtne9NMX397bT9Hb4dSx5llpoiNUL3jJQpD5n93rxK wI7gJ2/tyDOVMdsnllmKjxFr2uYLeamUS2GoqNIlIYd1Xf9Yg0/xXs4AqHUMR0VYVm+A VaPuk4sVGF11gP0I2YtA3lqUcHo0BkPX9Ojs1NmjBE22oORPyOD9TJ33O/K5s4siMscx ewTD37nZApIU5bBlpyO4B0eIUH3WKrV689dlkBKs+m0xZhOJiEwPNBp68GZ8yAl+6rBh ak5g== X-Gm-Message-State: AC+VfDwlHZVRzRQ/vDasPZcJoVBn4SeArlW3yoLclATifYEn1627XgG0 rRjHiv0/aDIWd9sfFOJzN1YvHA== X-Google-Smtp-Source: ACHHUZ7Xubhmddh9lHC80YV+z3qVxVDPAYZeGbq4cA+Ll4YhSqJ35CM4QoUFgfB49VTsdGyJNaRudw== X-Received: by 2002:a17:903:4282:b0:1b0:fe9:e57e with SMTP id ju2-20020a170903428200b001b00fe9e57emr2665913plb.0.1685119568432; Fri, 26 May 2023 09:46:08 -0700 (PDT) Received: from localhost ([75.172.135.98]) by smtp.gmail.com with ESMTPSA id jc21-20020a17090325d500b001afba6edc8esm3481642plb.166.2023.05.26.09.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 09:45:48 -0700 (PDT) From: Kevin Hilman To: Markus Schneider-Pargmann , Michael Turquette , Stephen Boyd , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat Subject: Re: [PATCH] clk: mediatek: mt8365: Fix inverted topclk operations In-Reply-To: <20230523114618.laajn2et5nbcxszv@blmsp> References: <20230511133226.913600-1-msp@baylibre.com> <20230523114618.laajn2et5nbcxszv@blmsp> Date: Fri, 26 May 2023 09:45:47 -0700 Message-ID: <7hsfbjxcqs.fsf@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230526_094611_819003_8EECCEC2 X-CRM114-Status: GOOD ( 18.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Markus Schneider-Pargmann writes: > just wanted to ask if I need to do something specific for it to go into > a rc? Sorry if I missed doing something for that, I haven't had to fix > something in an rc that often before. I think the Fixes tag is enough to indicate that. Steven, is there still time for this fix be queued up for v6.4-rc? Thanks, Kevin > On Thu, May 11, 2023 at 03:32:26PM +0200, Markus Schneider-Pargmann wrote: >> The given operations are inverted for the wrong registers which makes >> multiple of the mt8365 hardware units unusable. In my setup at least usb >> did not work. >> >> Fixed by swapping the operations with the inverted ones. >> >> Reported-by: Alexandre Mergnat >> Fixes: 905b7430d3cc ("clk: mediatek: mt8365: Convert simple_gate to mtk_gate clocks") >> Signed-off-by: Markus Schneider-Pargmann >> --- >> drivers/clk/mediatek/clk-mt8365.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/clk/mediatek/clk-mt8365.c b/drivers/clk/mediatek/clk-mt8365.c >> index 6b4e193f648d..6d785ec5754d 100644 >> --- a/drivers/clk/mediatek/clk-mt8365.c >> +++ b/drivers/clk/mediatek/clk-mt8365.c >> @@ -583,15 +583,15 @@ static const struct mtk_gate_regs top2_cg_regs = { >> >> #define GATE_TOP0(_id, _name, _parent, _shift) \ >> GATE_MTK(_id, _name, _parent, &top0_cg_regs, \ >> - _shift, &mtk_clk_gate_ops_no_setclr_inv) >> + _shift, &mtk_clk_gate_ops_no_setclr) >> >> #define GATE_TOP1(_id, _name, _parent, _shift) \ >> GATE_MTK(_id, _name, _parent, &top1_cg_regs, \ >> - _shift, &mtk_clk_gate_ops_no_setclr) >> + _shift, &mtk_clk_gate_ops_no_setclr_inv) >> >> #define GATE_TOP2(_id, _name, _parent, _shift) \ >> GATE_MTK(_id, _name, _parent, &top2_cg_regs, \ >> - _shift, &mtk_clk_gate_ops_no_setclr) >> + _shift, &mtk_clk_gate_ops_no_setclr_inv) >> >> static const struct mtk_gate top_clk_gates[] = { >> GATE_TOP0(CLK_TOP_CONN_32K, "conn_32k", "clk32k", 10), >> -- >> 2.40.1 >> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel