Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp46287rdb; Wed, 20 Dec 2023 06:03:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvcLu/I08s4Kh//dqu4Wu32Fh8XoiFMbE80JgKf13i2vDvZhycWHmjarALKuDVMRefFimh X-Received: by 2002:a05:6214:20a1:b0:67f:2254:1628 with SMTP id 1-20020a05621420a100b0067f22541628mr11120582qvd.3.1703081028608; Wed, 20 Dec 2023 06:03:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703081028; cv=none; d=google.com; s=arc-20160816; b=uvza/oh8nbj2QX09g/9goA5rfXlk9sYn76Fwl9xL6fkNmCTryD3KHrn9ffoH5BFWbi K9mhBuJoBnbHSMsyERkjkwls25303ju1rA1B2DH9v546corjnrGG4dw48sHJvijmK6zw JRnauJ5YE1dbThVTujLsVeBLI6ka68X2UVozVum3aD48+UNwJRTkJyqBG0nxXqo+750o yIrU2AAH5cG5eOTgWFqHJgE9Eqz4M88UKrRV7PwD163HTzHKlf9qC+ksAcv+6BM8dF3K Gj5ilAleo2PRC4LS0j8vmHHwRqP7f9MzQfoE4kCBUuNw2+UNBEAL/cljsX420A+7Bs9g DUmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vqS92X2BEmHS+RsAE1iiyXvsAWpx5yxNf10SoA9w8ck=; fh=J0+ywG971bcz+FduLTL1MAe3QOAiwleMxxOFhVbX7Ak=; b=RgLM1jorkjFXdLyg06Ofiw/iAFfqxYIL0YrJkSTBBP3GuxW2Iejj6U4HgD/CYJr2mT uiapeImhj8ii3bS2+EKyKqROQ+C9B43kvNuA3F1v4xSOeCtjjxBVP1pJRm0sxwR5Ujr2 Lbh4qqDRObVurjOaP9nd5Hh6E2qJEO7xXldrYpIilHJb+6/UiGOUyII17sAwMj8brnzO KKu9uRjBbv1S/rIuEZJGwsAq/DEwyEmG/tpz3NEaS0FqfEZInRoWfHckyAV4q7+8aint sAre2CHXNsx26YtLDJ4o7hiQv5o1QUc7hD1VTYoJ99NYoAgMPnXAeXCgOChrKkP1ssZZ BBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=02iIW6zB; spf=pass (google.com: domain of linux-kernel+bounces-7023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v9-20020a0c8e09000000b0067f34458dfcsi8041014qvb.221.2023.12.20.06.03.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 06:03:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=02iIW6zB; spf=pass (google.com: domain of linux-kernel+bounces-7023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C89101C24037 for ; Wed, 20 Dec 2023 14:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 666873B29C; Wed, 20 Dec 2023 14:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="02iIW6zB" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF3F93B285; Wed, 20 Dec 2023 14:02:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703080955; bh=KGE66kX/77SCl68GCuAYkM5Fd1OaPVPaz8BPsJaZaSU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=02iIW6zBQjbAIb+TjCYezbs9kecXN6EY5WKxdS3M7MEqckJfl8938Plvewo1ig5RN QQuWzG5o5g3kRAfyvbIMfrj2RRT38xSZlzXFzX9rW/IcPkG9X7tNJP/Kl1NaBaEc0/ Z9tVT7KYHPalovCBu7Fw5Sbbc8rQAEbxMuv29ku8l/y9TS5xCMBF2dk+4Bm31WJnao YmPdgNN/22SrkG98xRgVwbSIYHSUvwvDXm0QTqFPKwtAxW+vc8hBIOy+5Xh8qSV6LT RJOKiKayyAXdt89OMl7Lf9gcLf5cQWffB4VZ5IltlcVbCnkJ7ysVPVnCHj5nEVkB4V vFGSxqyo6IZqQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (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 madrid.collaboradmins.com (Postfix) with ESMTPSA id 2B9703781F8C; Wed, 20 Dec 2023 14:02:34 +0000 (UTC) Message-ID: Date: Wed, 20 Dec 2023 15:02:33 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/3] MediaTek clocks: Support mux indices list and 8195 DP Content-Language: en-US To: sboyd@kernel.org Cc: mturquette@baylibre.com, matthias.bgg@gmail.com, wenst@chromium.org, msp@baylibre.com, amergnat@baylibre.com, yangyingliang@huawei.com, u.kleine-koenig@pengutronix.de, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com References: <20231103102533.69280-1-angelogioacchino.delregno@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20231103102533.69280-1-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 03/11/23 11:25, AngeloGioacchino Del Regno ha scritto: > Changes in v3: > - Rebased on next-20231025 > - Added comment in the code explaining why the dp/edp parents lists > are split in one PLL per interface > - Added a commit performing the same reparenting on MT8188 as well > > Changes in v2: > - Rebased on next-20231018 > Hello Stephen, friendly ping for this fully reviewed/tested series :-) Cheers, Angelo > This series adds support to specify custom parent indices for MediaTek > MUX clocks, necessary to avoid setting the same parent PLL for MT8195's > top_dp and top_edp clocks, solving DP+eDP concurrent output issues. > > No fixes tags are provided as the clk-mux commit introduces new logic > and the actual MT8195 fix depends on that. > > This commit was tested on the Acer Tomato Chromebook (MT8195) with > dual concurrent display outputs (internal eDP panel and TypeC->DP->HDMI > adapter connected to Samsung UE40JU6400 4k TV); resolution switch on > DP was also tested; eDP output is not paused and internal display keeps > working as expected. > > > After feedback on v1 of this series (effectively the same as v2, except > for the rebase), I looked for an alternative solution with using > clk_set_rate_exclusive() as proposed. Couldn't find any, as that still > doesn't give any guarantee about selecting the same PLL that the driver > was manipulating before setting the right divider MUX, hence that still > wouldn't work correctly. > > For more context, please look at the conversation at [1]. > > Cheers! > > [1] https://lore.kernel.org/linux-arm-kernel/20230713072138.84117-1-angelogioacchino.delregno@collabora.com > > AngeloGioacchino Del Regno (3): > clk: mediatek: clk-mux: Support custom parent indices for muxes > clk: mediatek: mt8195-topckgen: Refactor parents for top_dp/edp muxes > clk: mediatek: mt8188-topckgen: Refactor parents for top_dp/edp muxes > > drivers/clk/mediatek/clk-mt8188-topckgen.c | 27 +++++++------- > drivers/clk/mediatek/clk-mt8195-topckgen.c | 27 ++++++++++---- > drivers/clk/mediatek/clk-mux.c | 14 +++++++ > drivers/clk/mediatek/clk-mux.h | 43 ++++++++++++++++++++-- > 4 files changed, 86 insertions(+), 25 deletions(-) >