Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2698454rwd; Fri, 26 May 2023 09:55:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6HeydoYedbGcVGawTYTu+rUa/I6LJZsYTopRMnraim7bBZjBvdkO7S9t5tkYt4wIalJjNb X-Received: by 2002:a05:6a00:1511:b0:643:b330:4b78 with SMTP id q17-20020a056a00151100b00643b3304b78mr4774320pfu.14.1685120126406; Fri, 26 May 2023 09:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685120126; cv=none; d=google.com; s=arc-20160816; b=nuq+3LrjXm9NgFq0YvFGFuQpwTw4Yb+GaZpW9OmIQBBwDhADqx+EuOkLQ27TXRTvpf lpE0BL34c4MQDHo0C7EJh9zC6TK5hQwbxm+RCwE+oiLx++KuzbGO/fQNTR6oxr5NwYjt fvtlSf+fKyk7aDDSGti9gN/uh2QJg6JfeBhczQWXxvO+Bu2a9ZtoMw9FW8hYgDtQzZta rfQ9XPynP0ZEVHyxRezuEZfkil2tXgvxnv4+ZKo2vDgp2hvksNxUBUD0COdx9n/YyZlb TS3rSkA4lnA2pnBKofXsKP27dwQsJc9K0SS+lV90JW56F+i1YLJPS2tw/eIZheDBO0n3 5P+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=rZ7xESGkDIP+gv/TyxcTjr26EqMcpWBeDTIWa0uSfo8=; b=oCu/C/M1UG1+CSEpg1lrDL+Il8Xtqgj3sy+Tl9PFQkVO/tFGCS6KjjTniQCOM5LwCa Zk1ZGSsiLDdgvmVc1MiOoVs8ln8F59UTrx26R4hNA2W4Zi5YndosrUQNG4cec53ZCVls 7iosQp/cwEx0vsLrSb3N7i3jpDZVVTCbhvKpL+xi3WMiAH29P2K3hBMZs5mLWaXv8xpK LNF+6OClhx/Gr8v/kBtobepCxu91R0VSyDVpTo2wp4b3/MkfmGHc4an+1NMAoK1mo21J leqcHN1WeXqp2IL/e683X1HK1EqSv032HuP5SkGSJFA/0LoECchuznJU23a7Dg7bBnCb 9BQQ== ARC-Authentication-Results: i=1; mx.google.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y28-20020aa79e1c000000b0064f74cf9defsi839671pfq.350.2023.05.26.09.55.09; Fri, 26 May 2023 09:55:26 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjEZQqM (ORCPT + 99 others); Fri, 26 May 2023 12:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbjEZQqK (ORCPT ); Fri, 26 May 2023 12:46:10 -0400 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C2E8BC for ; Fri, 26 May 2023 09:46:09 -0700 (PDT) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1b02497f4cfso248195ad.3 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=FRrKuTiEl6n5Y3SnJf7OM9YV33dkaJsET/iDYZbH2iDp5VEd+6QdkqWJLIcF7byu35 ERe/EyYmkO6oGZlmZZD4Pu4WeIN4eoToGi4pQ/nOs5SMnbdHH/UWVsj9R1dHx/1nkE/l svK3D9XEzcDe/OuaZfEgtaLjN0uXqlQI87ma88b7GE6lcFRnlexK+Zsgk6DbpJS1j4+U 0WmWDMnChBIENDNx4ZHLj9ao7/kiRFg5L5Fahg+UbB9cESus4bW+LxNLPeBl3sAz0AWk gViCwh65WqPWzRzKHBUKPB9rB1T1UAoXEB4+1bxETax/wteUAyJIncG85owVreUXL3gu KyNw== X-Gm-Message-State: AC+VfDxX+tPlgGrRAg2bnWa9T37WEnQhsgCr/sdxmoaDmwKMQxHLBGQc rG6R9/pvvZUIjOuJsrbZ39u9KQ== 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 Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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 >>