Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp342238rdb; Thu, 5 Oct 2023 07:33:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcQbUc5OoVX6EfPsnnMSqEaS7hYQPa9ecoJLo2bnojZ6Lkek1MZzMqgytexxgcTwGouRSu X-Received: by 2002:a05:6a00:8c7:b0:68b:e710:ee9c with SMTP id s7-20020a056a0008c700b0068be710ee9cmr6233110pfu.19.1696516418898; Thu, 05 Oct 2023 07:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516418; cv=none; d=google.com; s=arc-20160816; b=p6JWaDykLK86XrZzyax8aeCq0+yi0UKNfWivgqoa7ic//A4EvH3L3NwYeAUcZtnHc7 HAQpgWdqis0VByoJY/Pv6b3aVnosNJvR0hPHhcbLIFqo766OSfWMkkoX1HKUSC11uBxu CQFXHhwyLPgQaebPKxtqrNA5mK5XG9zYte48ZohGbIH3EVeU4XgDrXFvHYG7NNTcHVZq 7sbFfUvLCVAEHLGWh7SpUgWUjEVzBT8oNpdovyWAhZAizPXwY0dzRHiKRusUloZ+vNUm ydWSuu+OmgjUbjIEgLX1cwsbJi0ZyFt9GSeuztaTMuZte1lpE6O+ZN5dQuhaayiJjEf4 1b1g== 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=IMV+VSPNVy0+1fD7ptAHaZfMsjer8LcbhO4C3fbNMJY=; fh=hYBjpzW3EtIxsLsjJ2XalQ6gP8vYvRUsij3DHVRoRs4=; b=vqraeMr82N031bGDzyTDRXkLfUilrRbHpq1Rc7bt+8J9igzbI/vUhzFvvyQAg8Vb23 XLxzGGusBgx7nBfmkTtgKquKMYlRGpRivEqYLGKbzLxOs0sHK/oJOx9zpD62nszChXMS Wjzj8WdoqWTr3vsPBv+wM8v75g9aAJykI7idkfC69cUHi1rfUCt4Ig7ir1Cd+8oa6QPp msEkmnk91CBcChafkPL5eW/BaDpQkbfk7z6RT0m6wvZ6+zTgbO6wq8QycOFB662uECJ3 /HuiFHIjBnJp/jfACGmw+MZD/c5q2xvBWhluXyAPOkTGqro0Xx3kmLxW1UuhzmTJ4BwM vAWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZXDNWhQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id fa16-20020a056a002d1000b00690c75e54e1si1499029pfb.402.2023.10.05.07.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZXDNWhQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5C5A182E53CF; Thu, 5 Oct 2023 07:33:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235250AbjJEOd3 (ORCPT + 99 others); Thu, 5 Oct 2023 10:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235155AbjJEObd (ORCPT ); Thu, 5 Oct 2023 10:31:33 -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 5984526A58; Thu, 5 Oct 2023 05:41:27 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 958D36607327; Thu, 5 Oct 2023 13:41:25 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696509685; bh=NDq8WhFGsx/jhQOnfQkcqwGfnnhxjb66WolDxgBm/Cg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZXDNWhQQjc2aW+VD/brEY8/3/5zNdPZtYXEPmR0nAg2qLqrvv29J7eqCT0wxtBhun Nk2KTwvn6kh6VGbb3AnP/hZjgd9U1pfdX5WeLzdhiaO9VbeXAUXwyYjPtdK5J4C7NR NR3xON5fYD+iIsP6hhjuy6hV3MgsTXeIFCpC6nfhQauhvK7vZsV/JjQoh5UVhTJlz8 EWk6gORts3D/ERtCsICChtTfMxhQalWnLqPBbau5MuX4StPr2/sXRNp5L4dYhZe9+W 8q9RqrQN4gbY0d4fz6yzT5A+WGr0Ypk3b7SS6Td2b/vMwlBDtGRjvvWdqHybHA53+Y ktyQvh6JfpN5A== Message-ID: <3e197ec0-154f-78b6-3bf1-12cf765a3cc6@collabora.com> Date: Thu, 5 Oct 2023 14:41:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH] arm64: dts: mediatek: mt8186: fix clock names for power domains Content-Language: en-US To: Eugen Hristev , matthias.bgg@gmail.com Cc: allen-kh.cheng@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20231005103041.352478-1-eugen.hristev@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20231005103041.352478-1-eugen.hristev@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:33:37 -0700 (PDT) Il 05/10/23 12:30, Eugen Hristev ha scritto: > Clocks for each power domain are split into big categories: pd clocks > and subsys clocks. > According to the binding, all clocks which have a dash '-' in their name > are treated as subsys clocks, and must be placed at the end of the list. > The other clocks which are pd clocks must come first. > Fixed the naming and the placing of all clocks in the power domains. > For the avoidance of doubt, prefixed all subsys clocks with the 'subsys' > prefix. The binding does not enforce strict clock names, the driver > uses them in bulk, only making a difference for pd clocks vs subsys clocks. > > The above problem appears to be trivial, however, it leads to incorrect > power up and power down sequence of the power domains, because some > clocks will be mistakenly taken for subsys clocks and viceversa. > One consequence is the fact that if the DIS power domain goes power down > and power back up during the boot process, when it comes back up, there > are still transactions left on the bus which makes the display inoperable. > > Some of the clocks for the DIS power domain were wrongly using '_' instead > of '-', which again made these clocks being treated as pd clocks instead of > subsys clocks. > > Fixes: d9e43c1e7a38 ("arm64: dts: mt8186: Add power domains controller") > Signed-off-by: Eugen Hristev Reviewed-by: AngeloGioacchino Del Regno Tested-by: AngeloGioacchino Del Regno