Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1916976rwd; Mon, 15 May 2023 05:04:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/IRt0XOJNekB+BNpRi9yo4bxrTA4ODKs5sryirCBwil84Abai+QNRr/lv/Z6cQ0jWwhTP X-Received: by 2002:a05:6870:5247:b0:196:4801:837c with SMTP id o7-20020a056870524700b001964801837cmr9411898oai.15.1684152279678; Mon, 15 May 2023 05:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684152279; cv=none; d=google.com; s=arc-20160816; b=nZ4OdWy9VqdU0KcD8r6suB5tVep2I7XcvCZmaA7Ml/jf18YcMQT3gEqGU37D+/No/s gRdum9TE7BUkIW1rCEX8vZznCo/KlOzdo4ABFneKjeDl95PXF4UV4macW+gln1BDvs9K 1quzrOozRqnGurxYwAVfMUY+BwIsMa88hJUoTYoqKRIuPNtxywPtnNYsO/dpMTTDFAIr 5iHg8H/l+44vJLgwXEebJMlfr1te0PN/+apXKaH8hQic6MUP2/lbM1N1f/LK1jadXgXm vxnyb9buMlVrYjwV0weYgqoiMXKpPOibimSddxI+rAisvhUKV2lQVOLUMK+OTzakYnDp JTdQ== ARC-Message-Signature: i=1; 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=nJeMmmVh2vw+WCM0aVHMw7xbSvnwY1j3ghh3DoK6qnM=; b=XZ/Nv1wEYxRsOUZhFeQxrNjaXpqlGRIzTLPDRPblf4wb/s4Ne0EIIhUrPEJQ/qPeL5 Hn6kpU6AqLVQ0eX96Ayg2ixuUzkKL2Du9cqsUriaj+923KmyqGMVS6XrtGVAo+2ALH7e kzYpKZhn0pbV6gYNXUs8wcfBwCLHOvZvTgtdyHRQ/cWeBK28S7ObCXyyMFJFBWxaZrsO 0ufQh9uv3Ftzvgen5ouXMZ3XwcPmOB0iwBsqlor2hQob49Vaksdo+m62rh9HpZABa/0B /DDNB8oxGocw5M5skjUg8+IYK+INOu/5Rev5CPtTRh36knXNhQ0v8DFfT4lM3zPrhnWV wk+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JKcjfZ84; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a056870c11500b0018454734d72si16929366oad.2.2023.05.15.05.03.30; Mon, 15 May 2023 05:04:39 -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=@collabora.com header.s=mail header.b=JKcjfZ84; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240917AbjEOL4Q (ORCPT + 99 others); Mon, 15 May 2023 07:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241573AbjEOLza (ORCPT ); Mon, 15 May 2023 07:55:30 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F0F30D7; Mon, 15 May 2023 04:49:59 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab] (unknown [IPv6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7F9B366058D2; Mon, 15 May 2023 12:49:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1684151398; bh=uLQ/16EflB7+33SpW7tkukm03+MQ1MMQ8JfjTfIpkps=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JKcjfZ84MUxXab+z5aVIruWHTLwJdV9jfEJ5NSggWUTVLJLr8tPH+O1w7M671QAl/ L3/SXo9DvaH+19OChEMyRYVh9Ca00ow8z7ztrZMUHUxwOE2+H1TjMjwt0HCk9x/Fxd 2NX2gWg2UwaO9oi+jymEODLXywC1thWn1Zj37B/wvZzB209h8b2fvoNTwRMwID8uAB DunoY+ZWzqNmdysO8jcGc18iMS02xFevLMi+Zgr/E4pQ7gST2MLj0PT8I8MH3ertpZ bEd6h8IWkYWzmXGcMjrluBlTAUtmQ8X9/bBEf2ibdDVkW3RBkcSYHLivJM6Ra84UQt sNVQsVA6v4LuQ== Message-ID: Date: Mon, 15 May 2023 13:49:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH] clk: mediatek: mt8365: Fix inverted topclk operations Content-Language: en-US To: Matthias Brugger , Markus Schneider-Pargmann , Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat References: <20230511133226.913600-1-msp@baylibre.com> <8603c2b2-2a5b-48f6-9b08-9b3b518b716b@gmail.com> From: AngeloGioacchino Del Regno In-Reply-To: <8603c2b2-2a5b-48f6-9b08-9b3b518b716b@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Il 12/05/23 13:51, Matthias Brugger ha scritto: > > > On 11/05/2023 15:32, 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. ...with the not inverted ones, you mean! Anyway, Reviewed-by: AngeloGioacchino Del Regno >> >> Reported-by: Alexandre Mergnat >> Fixes: 905b7430d3cc ("clk: mediatek: mt8365: Convert simple_gate to mtk_gate >> clocks") >> Signed-off-by: Markus Schneider-Pargmann > > Reviewed-by: Matthias Brugger > >> --- >>   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),