From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (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 1CA7D3D5248; Thu, 4 Jun 2026 06:11:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780553480; cv=none; b=qIk0exY5A7KzZfyDkhk+sFfhr0T+2uin22dsB9mjr82E8p8bYUXapLDRIN/Zh5qGarnLDuGBoqs7WK/MI9RLwQRDKgHUSdp+EEv8tjz4h+yxX2Ta5gR0ZuRBtndHY6y3J8T9N0D7FiDQGLLlyjym9RKXIzA736pvKMwwf3VNyR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780553480; c=relaxed/simple; bh=CBYbMz5FezKMMS2rtw4TjIxhbup+kPw5i/fGW3S+F4U=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=tqxuKd0lGHiH4xB8iwtTms7E6C4oYEMPxMONwK/iiaNzKRNm2dbOruwTbplDN2hWFB5s/J+ZeMM3wdcQk+QHixthel6NP4kQi98b9EX5FrX7Yohw4vtkVAMOOQLht2txCIJ5TRwPSZYfDTdfyeKQfPdQ7+j8b3Fh+1WAZ2qXoCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=r7Y7EfoO; arc=none smtp.client-ip=80.241.56.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="r7Y7EfoO" Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4gWDhy3TK1z9tYd; Thu, 4 Jun 2026 08:11:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1780553474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CBYbMz5FezKMMS2rtw4TjIxhbup+kPw5i/fGW3S+F4U=; b=r7Y7EfoOtMPl3kOml41+BEJJVGO63Tm/g1xvvvFAu24KxYiqLXDzSVVAfyzouEAbM3uO1c yJDB1+Z6RadzKaCn3XAjDE6a1ztN83lAYsU5XuI4zQEQZHaQB1iW3x0LrW3bHn708Lx2XN kA5ZUwKc29oC5WzcD/spCQ8gaS/XDysZSZ33W1/c3bu36mlipkdfGuhlBRL7C5tCLNv22c mKhUsgK125Tspi/48lcNWSO8dIV0K+8xXa4LLrvG/2s4WzFENqSUU1PpzMR14OlunV9/pY PkiXiX6ohvHINxue6aevNjoUDLDCwtaMO+wCM4SB9dgZfWxcL0Tze6p/cyMl0Q== Message-ID: <50095a4839fdaaf9522a2ccf26d19e3f7bb98866.camel@mailbox.org> Subject: Re: [PATCH 0/2] rust: clk: Add ExclusiveClk and use it in pwm-th1520 From: Maurice Hieronymus To: Michael Turquette , Stephen Boyd , Miguel Ojeda , Boqun Feng , Gary Guo , =?ISO-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Drew Fustini , Guo Ren , Fu Wei , Michal Wilczynski , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= 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 Date: Thu, 04 Jun 2026 08:11:06 +0200 In-Reply-To: <20260526-rate-exclusive-get-th1520-v1-0-34cf034e1764@mailbox.org> References: <20260526-rate-exclusive-get-th1520-v1-0-34cf034e1764@mailbox.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MBO-RS-ID: b569da53ff35be8ec8c X-MBO-RS-META: okhenwescwhzk8xbub6q5gdfgio1gcqx On Tue, 2026-05-26 at 19:04 +0200, Maurice Hieronymus via B4 Relay wrote: > Add a Rust binding for clk_rate_exclusive_get() / > clk_rate_exclusive_put() > and use it in pwm-th1520, which previously carried a TODO noting the > missing binding. >=20 > Based on pwm/for-next. >=20 > Signed-off-by: Maurice Hieronymus > --- > Maurice Hieronymus (2): > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rust: clk: Add ExclusiveClk wrapper for cl= k_rate_exclusive_get > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pwm: th1520: Lock clock rate with clk_rate= _exclusive_get >=20 > =C2=A0drivers/pwm/pwm_th1520.rs |=C2=A0 8 +++--- > =C2=A0rust/kernel/clk.rs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 65 > +++++++++++++++++++++++++++++++++++++++++++++++ > =C2=A02 files changed, 68 insertions(+), 5 deletions(-) > --- > base-commit: 0e5e0db3e954b32a410ab4f74a4faac7a0e8889f > change-id: 20260526-rate-exclusive-get-th1520-764a949de18e >=20 > Best regards, Any opinions on this patch?