From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 3C5823B6C1E for ; Mon, 8 Jun 2026 10:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780913323; cv=none; b=hyURuzKzsFH68O2M5Hv2jZyZMfTrrY8dchC1fs/ArEaFz2qTxMtWPhp1GCn8cdoI5n3eMYQBTsQra6OwFAIL04R6xcOH1fxGp97m0fRjQHlyUUt3Bt5gOiApMbuXfwl7rX7RXZlnySBHS7WEJviPmQtokalxRzPWV0Rc4zDZkyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780913323; c=relaxed/simple; bh=UaS8P+BnNs30Wx3OCTtg2sP9AlLlbx00rCICGw91jA4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=TIK1PYrO0LvBZQBr7C16qMQwLJnGPH/f2Z5h3ZOoA4B8kRKcvmkJBzFpV5pBW3GymX+nF84oqYBzLgeEG1qVl3sLiMMFgsjoUzrgBVp71NsR1DLxW7jBfuen+HMmGKHjeGCVL527OuWUtK9adcj8O9uqe5F8rce+DKUt2mEjZkk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=cLoF5su3; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="cLoF5su3" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20260608100839euoutp020c9a3fa08e5bdd096be41c9a751ede98~3Ezp4XLnx1434514345euoutp02y for ; Mon, 8 Jun 2026 10:08:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20260608100839euoutp020c9a3fa08e5bdd096be41c9a751ede98~3Ezp4XLnx1434514345euoutp02y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1780913319; bh=ScX6tmH+TYFIA4SdeDcX5TAQpdwZEO/9NVN1KgaB3hw=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=cLoF5su3stWT+hb6nfTtHwBwrrKHZLRDbQwUroh5t+iFCfiCUD0Z8tIlOkamuIlxG qeOHzEJ58YbyS317GkjyofK7fQ13HHHwF0legf9LOkfvpwVI1TCV7BT/w9fiu/TkE8 lOCBfrOUmSVswJYFE8RtOExm4LjdPdpKByrpZFPY= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20260608100839eucas1p26efb0e1085dba36943f16284a4fee98b~3EzpgqhjL2726127261eucas1p2t; Mon, 8 Jun 2026 10:08:39 +0000 (GMT) Received: from [192.168.1.44] (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20260608100838eusmtip2364ad82459e2916175d35315bdcac074~3EzoopYD61119811198eusmtip2K; Mon, 8 Jun 2026 10:08:38 +0000 (GMT) Message-ID: <2c036c0e-8246-4e55-90b0-97ba8ef46115@samsung.com> Date: Mon, 8 Jun 2026 12:08:37 +0200 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 v2 2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get To: Maurice Hieronymus , Michael Turquette , Stephen Boyd , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Drew Fustini , Guo Ren , Fu Wei , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= Cc: linux-clk@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pwm@vger.kernel.org Content-Language: en-US From: Michal Wilczynski In-Reply-To: <20260605-rate-exclusive-get-th1520-v2-2-695640bf7249@mailbox.org> Content-Transfer-Encoding: 7bit X-CMS-MailID: 20260608100839eucas1p26efb0e1085dba36943f16284a4fee98b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20260605070115eucas1p14ef31f75a9597be42bda6c6597fc7e38 X-EPHeader: CA X-CMS-RootMailID: 20260605070115eucas1p14ef31f75a9597be42bda6c6597fc7e38 References: <20260605-rate-exclusive-get-th1520-v2-0-695640bf7249@mailbox.org> <20260605-rate-exclusive-get-th1520-v2-2-695640bf7249@mailbox.org> On 6/5/26 09:00, Maurice Hieronymus wrote: > The driver derives period and duty cycle from the clock rate read at > probe, so a later rate change would silently miscompute waveforms. > Switch to the new ExclusiveClk wrapper to hold the rate for the lifetime > of the driver data and drop the corresponding TODO. > > Reviewed-by: Alice Ryhl > Signed-off-by: Maurice Hieronymus > --- > drivers/pwm/pwm_th1520.rs | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > Reviewed-by: Michal Wilczynski