Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1006495lqt; Fri, 19 Apr 2024 18:57:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWx8oa3jW9ysPfJPpa8zLPgoAWlP01GLV56f/+mkQwB0FUk4odEq0lFIceuxoxtkt/OK+LI2WBoOArnP1AQGOVRDgGy6zlFsao6wyi8EQ== X-Google-Smtp-Source: AGHT+IGwuv+jLp4QBAofhjWlDDdpVuYfRBALalqiYwXH2FF2a9c9Wr7oN0UlFFLJVUML8R4zo9Kz X-Received: by 2002:a05:651c:49a:b0:2d8:1946:3025 with SMTP id s26-20020a05651c049a00b002d819463025mr2067669ljc.22.1713578222534; Fri, 19 Apr 2024 18:57:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713578222; cv=pass; d=google.com; s=arc-20160816; b=i8VRX4J/e8UwCg5fTqKQuaKY8e+IaxHuvPswc/sddKDyOdnQhJjCm+Hq5GtC+q3Ns3 spy6I5ox/HLB9nATKYn31EPzcAyYCCYjxAuuckJMJXG3iJm52Ek/+GYf88R+8YGTmz7g G7S2USpybJOxMI+4qVayGgb5Ps3lPX85/SXZWOmBQ0IZydXwJtcrjYW8Y5It4B5ySk80 e3IyRKrS/5CppLYuQb45oC++eTCce2OOZcK1CR1G6cytW1e79Q17N9u95J5X7VyFqRJL pCLNMmorsP5ZvdJDTU9ig17mUhNBbZA3gPJS7kPNcIbuPUAVtccwqh0t+mYKHJQvSE4q 4UWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=iv6KpcL67t6HHNK2HWsEt7iSy0j6NTXSkVthhSrdOFA=; fh=wjAMcjjKUA3loui36sFZLnU74SMKCPauIKpBizXhIaI=; b=x9H3gCsr42afhzPBamXeGLgWN9sAiA3y80y+8jXHU8SWHEsmZ5OWvMlD02zOQB64Q9 F1nbsxAXJNQzygY3fH9qNaqfPVgZUoV886xgy2tKBJN1TFm/MgWM5rN+QkDy1wO/8WsS 0UIWXJjQzlKh0EUVU5+xDAntT8zzuDGG6Un/gg8Akow6FzwldBG1tscuZm5uFrvzJULW ARhjcuY8HMAF7IyuoIOhJ4IS58c482PDgqlmGpRdSegCm2tNUQ6G9+2mYqxrRFNMQU/G muaD8jH4P7DFxOBoAv6dIChAkVm2dm++muUqCcBz0grS/ZO8zvEwtEBjSnamkEstdHX3 yPgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B+ILx3mQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n29-20020a50935d000000b0056e6e3ce323si2851096eda.517.2024.04.19.18.57.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 18:57:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B+ILx3mQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E405D1F22E96 for ; Sat, 20 Apr 2024 01:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7B446ABA; Sat, 20 Apr 2024 01:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B+ILx3mQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D0692205E1D; Sat, 20 Apr 2024 01:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713577734; cv=none; b=Ovo3bc0GwzEHYPQ0KZP6UnIM+eVZMSrRy4NWiBf4e+xMbk/Jfd7NKhB1BSk1jpqiIrhX0a9f896NmL4oiLwOoQEErIq/tng5hCvcg0nUrZxJTOOct/lj3ROPUf/FKNC5xgVBwwOqCzKhiPYTqqFZkFhtmLkDPNvxWZp6G90hL/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713577734; c=relaxed/simple; bh=ik3G7vkeW0E61S/ZaBaByGKXdcNuQmCv9GExNSXbmIQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Up6vZmMQpfKvixF/Oz3tE6x1SVThriDeeoJTYnAOnMTy+tEWQ0eCE1uBlEoL6QySmG6vN9U/FOjjvzfcWCtad3vVzvw97kontq6XwILKWfttbOJQ3RQ5KuKRbleLSRBaVMFvr13XQdRBF8Q5syV+5AFkftBxSIxLrpKwTu3mglA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B+ILx3mQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C816C072AA; Sat, 20 Apr 2024 01:48:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713577734; bh=ik3G7vkeW0E61S/ZaBaByGKXdcNuQmCv9GExNSXbmIQ=; h=From:To:Cc:Subject:Date:From; b=B+ILx3mQlB782/3YDGn06XYKMpGenMoykt99N8xguDS6SbbTJuU4pAW/0urZRslcZ TYW2d0f2hIEUFd8EeMEJyNXrMgGRJHp/joxmtb7WxXvwdGAis6RgyvISx9DU4d6GIA E3qDV7gs6BRwoDpFRMwfmniMK0xHUgQNOiOP52jFpursXLC80czIFpwWnpVIm65mye NYA5MnAjAhwQ+8vEw+aTEEmgZ6lPsYDdP97f2Gtfeff1TC4ItnxUEdKJbylUld2I4K OhtVfXjKYsWIdTpYc3sNpT52lmGLyng0NiUNueJv1BCXPg4Kg0RiEP07bvgkkOglxe lizHdeUqfhKaQ== From: Stephen Boyd To: Linus Torvalds Cc: Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] clk fixes for v6.9-rc4 Date: Fri, 19 Apr 2024 18:48:52 -0700 Message-ID: <20240420014853.87829-1-sboyd@kernel.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The following changes since commit 4cece764965020c22cff7665b18a012006359095: Linux 6.9-rc1 (2024-03-24 14:10:05 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus for you to fetch changes up to d3e8a91a848a5941e3c31ecebd6b2612b37e01a6: clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port (2024-04-10 20:50:26 -0700) ---------------------------------------------------------------- A couple clk driver fixes, a build fix, and a deadlock fix. - Mediatek mt7988 has broken PCIe because the wrong parent is used - Mediatek clk drivers may deadlock when registering their clks because the clk provider device is repeatedly runtime PM resumed and suspended during probe and clk registration. Resuming the clk provider device deadlocks with an ABBA deadlock due to genpd_lock and the clk prepare_lock. The fix is to keep the device runtime resumed while registering clks. - Another runtime PM related deadlock, this time with disabling unused clks during late init. We get an ABBA deadlock where a device is runtime PM resuming (or suspending) while the disabling of unused clks is happening in parallel. That runtime PM action calls into the clk framework and tries to grab the clk prepare_lock while the disabling of unused clks holds the prepare_lock and is waiting for that runtime PM action to complete. The fix is to runtime resume all the clk provider devices before grabbing the clk prepare_lock during disable unused. - A build fix to provide an empty devm_clk_rate_exclusive_get() function when CONFIG_COMMON_CLK=n ---------------------------------------------------------------- Daniel Golle (1): clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port Pin-yen Lin (1): clk: mediatek: Do a runtime PM get on controllers during probe Stephen Boyd (6): clk: Remove prepare_lock hold assertion in __clk_release() clk: Don't hold prepare_lock when calling kref_put() clk: Initialize struct clk_core kref earlier clk: Get runtime PM before walking tree during disable_unused clk: Get runtime PM before walking tree for clk_summary Merge branch 'clk-rpm' into clk-fixes Uwe Kleine-König (1): clk: Provide !COMMON_CLK dummy for devm_clk_rate_exclusive_get() drivers/clk/clk.c | 173 ++++++++++++++++++++++------- drivers/clk/mediatek/clk-mt7988-infracfg.c | 2 +- drivers/clk/mediatek/clk-mtk.c | 15 +++ include/linux/clk.h | 5 + 4 files changed, 156 insertions(+), 39 deletions(-) -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git