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 244A9CCD183 for ; Thu, 9 Oct 2025 08:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ePcoIkGRAg7Bnqv1cKgz0ktGTmf09IC6ysZfJyrEkFI=; b=ELXoyXD3IeSjoTP8IzBI+I1rPc iBPDUdxGwMe1GikUmvQ5nAskn+2DrsJJuaRLh2CqdOF5ywJjvn89T2PT8jfCxdQWQgsiXYeDHZtJ9 JiQ7xD30lAKhyEZ4WFCTzS/P3akbT2bAEEQxHYRIuaTDvi6QW+tIA6bs7dIR3pF7GkIC+qb1gaqWf sNrp2mdhROVRgRefA2QQ7wIkfOToQZPwGYXuushfk2pfXFyIbzuHxiN1p9dcDPYo9saWmSm+Gi29B lHH6kUE+6b3dKjDliIUO3w0xWJNjdhHgyKxWFZFmcUZ7sBeXXpASFdK1NHZvboh7tzJpOr/R+aIHG TQS8msxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v6lkD-00000005Sty-132u; Thu, 09 Oct 2025 08:11:25 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v6lkB-00000005St4-0XCH; Thu, 09 Oct 2025 08:11:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1759997480; bh=RonmEpmFdrB09Svc53FAuCpnvVaVT54HD6tdAJ0cFQI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Mhz3p0ZVX9O1CutU7zlEGA4ra5OMgPtDCSibRrTWwyneiKTQ9BBB10pKUWY/fXpFm o3HGNDyCUMrmYHKi7aC9pYwdthz3daiGHrO0ED59aBVLmxXqPMFrJmWgl9teFtRGji x8NBrOidn9zdAvTyiKJlb4lb8eUhHWeuxn55yO4e+vP/m5p837GthVUiUbwvxACBtQ uuMBT0+VKw/57PGMq5CchHbhKoAGE7FHu8rokYi3j+KKChxYYH/ZXq69xbHMif1i1Y 38JB52fg3urkBU3Ou06rMSVNnSizpAL2bgpxgaXDfBYSN9W8/hV3yXCavuLA8+Gwqw byj/jLn0pwL2g== 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)) (No client certificate requested) (Authenticated sender: kholk11) by bali.collaboradmins.com (Postfix) with ESMTPSA id 10FA617E04DA; Thu, 9 Oct 2025 10:11:20 +0200 (CEST) Message-ID: <8e733d4c-c982-4edb-98f9-c6a24fa24aec@collabora.com> Date: Thu, 9 Oct 2025 10:11:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/5] clk: mediatek: Pass device to clk_hw_register for PLLs To: Nicolas Frattaroli , Michael Turquette , Stephen Boyd , Dong Aisheng , Matthias Brugger , Yassine Oudjana , Laura Nao , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Chia-I Wu , Chen-Yu Tsai Cc: kernel@collabora.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Stephen Boyd References: <20251008-mtk-pll-rpm-v2-0-170ed0698560@collabora.com> <20251008-mtk-pll-rpm-v2-3-170ed0698560@collabora.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20251008-mtk-pll-rpm-v2-3-170ed0698560@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251009_011123_329775_35706DA2 X-CRM114-Status: GOOD ( 12.30 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 08/10/25 18:05, Nicolas Frattaroli ha scritto: > Passing the struct device pointer to clk_hw_register allows for runtime > power management to work for the registered clock controllers. However, > the mediatek PLL clocks do not do this. > > Change this by adding a struct device pointer argument to > mtk_clk_register_pll, and fix up the only other user of it. Also add a > new member to the struct mtk_clk_pll for the struct device pointer, > which is set by mtk_clk_register_pll and is used by > mtk_clk_register_pll_ops. > > If mtk_clk_register_pll is called with a NULL struct device pointer, > then everything still works as expected; the clock core will simply > treat them as previously, i.e. without runtime power management. > > Signed-off-by: Nicolas Frattaroli Reviewed-by: AngeloGioacchino Del Regno