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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 0457CE98E10 for ; Mon, 23 Feb 2026 10:08:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 624D010E2DB; Mon, 23 Feb 2026 10:08:45 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="BAvuDi+K"; dkim-atps=neutral Received: from mail-ej1-f74.google.com (mail-ej1-f74.google.com [209.85.218.74]) by gabe.freedesktop.org (Postfix) with ESMTPS id 19BEE10E2D7 for ; Mon, 23 Feb 2026 10:08:40 +0000 (UTC) Received: by mail-ej1-f74.google.com with SMTP id a640c23a62f3a-b8d78d3fabfso349471266b.3 for ; Mon, 23 Feb 2026 02:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1771841319; x=1772446119; darn=lists.freedesktop.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=OdnKcgHkjFRmgggTpTfgYETTa8fsvbvkTrjIctXuE0E=; b=BAvuDi+KPHm6u7EklmGtdDREg/B/EyvS+EYWRSzNJfC6q6R2ombUE78dwDZ/MYXzsg J4XOlY62X/n4k3aGVvlTkqbWS8rO2F4EQJcQ6slbzrRpDRhvaI12jG0GvT/JK7GektiZ boCBzI/GrkBN0mBeJB9d7vFTbTcHQ7j5i67+JGLIuRg1wJQtHpTAF83Z7Ymxf8lZmUZu EaKhx441PSbmvokvsOrUld7pYgHudfM8WKExPf9QULevvlswBFGe1EvCQtOneJNr4B/K ELP/DQZ9T5odl4Ac3J29Q/BxULGMea2p1xvAT6k5Kpa638Ro4k3n/ibnza/mCRIN++SW cYsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771841319; x=1772446119; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=OdnKcgHkjFRmgggTpTfgYETTa8fsvbvkTrjIctXuE0E=; b=JXWsIxhYBekvTX/gFEfV8GfNDzkrh1n2jGjmWh6o4m3f/CqhudiW8WkFxpQxiMmMgl oBvTTuqkJdnDuTvMXKZvMdpmqMFefUDJSJaLPDurJ6vwIb66tVnFNBIiSSgHNmZfSzmZ gI7Qj/NZLBDcnarQCm+HDldQRt8DkdhIT8W/LYLiAkAnedLI/0XmfF7V7Z//FR5Nig7s SP2NI+UMaed/N1WqA5+RnO1gph3dTpnYzkVyhiaYOpkk89JdKPYxb+Y0Mw+5Rl7UncJd b+nMU4OUommrF1p1iBeclfBNZl1DtnkjYRxLqfpaiWgkfn5DGIdDXmYC0RvIemHaabni NrJw== X-Forwarded-Encrypted: i=1; AJvYcCWkRGOiKDp44RIIZsMwlOBmgvPU1kKC/iw7tNZCycSZSGVt0KOGbQL/yYm80X51z9HSOi6z24yPCsE=@lists.freedesktop.org X-Gm-Message-State: AOJu0YyUAtZnTUurK3cnOBnpbD1OoKDgDWsOcw9laEKbeVfMRO4LBNwh HHEtqKBVMTANSNiuwj+Nv2V58OXSZicRk+VWFQlW4sRlHYlL+itZYQOoYrh+PXLAEMUk+yGM+iO nAlmh0nqf1WWKqmfqNw== X-Received: from edgi6-n1.prod.google.com ([2002:a05:6402:a586:10b0:659:32e4:b9bf]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a17:907:3e25:b0:b8f:ad6:db92 with SMTP id a640c23a62f3a-b908196acb2mr410233066b.3.1771841318227; Mon, 23 Feb 2026 02:08:38 -0800 (PST) Date: Mon, 23 Feb 2026 10:08:27 +0000 In-Reply-To: <20260223-clk-send-sync-v5-0-181bf2f35652@google.com> Mime-Version: 1.0 References: <20260223-clk-send-sync-v5-0-181bf2f35652@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=1832; i=aliceryhl@google.com; h=from:subject:message-id; bh=jAawhmP9tDMdeWRIiWq9BA5B+z9O+mAwAwRx1JUlWqQ=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpnCcgbTxLXepdurAu3GuF7CkmSYRcJGHXg5wHK hhZLv4P056JAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCaZwnIAAKCRAEWL7uWMY5 Rmg5EACUr4q9yVqlI5z1xy9rbC8EGqAU70l/fbrINwUJqLf9Vt3GtkZDEI/b6AlgN8RQX4mTF5N HbhQXKgYr3ZoF6FEaPGouSxpJfyULOX2dOGt9yKD2+/TUDXWtEMqF3IUZi2EVrynHGVLOQ73+m+ 2f9n2iLzZXtFHFAqD6y2m4alR5jk3jY3z6OJxCUBgZsPNs0LI7md9QylC/vN1NfF5gvEv/QouDJ soiXmdHJCUYyBnyOsmDvPwMu/fbl+x92jpt87qPSH9hLWfJbGFojiA/aPlR2W3jIJCkbCVMntgY 1Ae/ApT2P85bQovYJ1xpIrQ3H0f6ywsWkuPhtEderymKHmGPSukBCAx9tbtw9kt8rX+Osg8+grg fg8/woo0bSdW0aIwDRIeUpet1ZR6eMqgjOoJyYt3ECDnWWOZrj61nr1OPmCuQAIMqcYD8rT2XxM nJ73kRZ3WpHs5JtCSYUPj+qacn/BhfJdTlXQrHmhF3ZYoHv+bJv+XYe/Z6b5rSx9PXx+nQb5Bg9 TrnpR3YQeos5D8NteZVWdTP/iLDuezjrC85tGipCA7HdZgQpAhFbDQn7ump6S53j+KhQ/g62O6M Vaaurm+dt3EGb3ZPkYJiKXj1PZ10PFUfFE7r/ZFauGbCVwih6pBzgXs3nTUUkcLAP8gj6dP9+Zi c6sJUxRyO1VAaWg== X-Mailer: b4 0.14.2 Message-ID: <20260223-clk-send-sync-v5-3-181bf2f35652@google.com> Subject: [PATCH v5 3/3] pwm: th1520: remove impl Send/Sync for Th1520PwmDriverData From: Alice Ryhl To: Stephen Boyd Cc: Michael Turquette , Maarten Lankhorst , Maxime Ripard , Drew Fustini , Guo Ren , Fu Wei , "=?utf-8?q?Uwe_Kleine-K=C3=B6nig?=" , Michal Wilczynski , Viresh Kumar , Miguel Ojeda , Gary Guo , "=?utf-8?q?Bj=C3=B6rn_Roy_Baron?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Daniel Almeida , linux-clk@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Alice Ryhl , Boqun Feng Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Now that clk implements Send and Sync, we no longer need to manually implement these traits for Th1520PwmDriverData. Thus remove the implementations. Reviewed-by: Gary Guo Reviewed-by: Daniel Almeida Acked-by: Uwe Kleine-K=C3=B6nig Reviewed-by: Michal Wilczynski Signed-off-by: Alice Ryhl --- drivers/pwm/pwm_th1520.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs index b0e24ee724e4501b812e5f9c7904b483bfe5e2dc..6cd6fa3d298484cbd84b88cfdd3= 244217855fa05 100644 --- a/drivers/pwm/pwm_th1520.rs +++ b/drivers/pwm/pwm_th1520.rs @@ -99,21 +99,6 @@ struct Th1520PwmDriverData { clk: Clk, } =20 -// This `unsafe` implementation is a temporary necessity because the under= lying `kernel::clk::Clk` -// type does not yet expose `Send` and `Sync` implementations. This block = should be removed -// as soon as the clock abstraction provides these guarantees directly. -// TODO: Remove those unsafe impl's when Clk will support them itself. - -// SAFETY: The `devres` framework requires the driver's private data to be= `Send` and `Sync`. -// We can guarantee this because the PWM core synchronizes all callbacks, = preventing concurrent -// access to the contained `iomem` and `clk` resources. -unsafe impl Send for Th1520PwmDriverData {} - -// SAFETY: The same reasoning applies as for `Send`. The PWM core's synchr= onization -// guarantees that it is safe for multiple threads to have shared access (= `&self`) -// to the driver data during callbacks. -unsafe impl Sync for Th1520PwmDriverData {} - impl pwm::PwmOps for Th1520PwmDriverData { type WfHw =3D Th1520WfHw; =20 --=20 2.53.0.345.g96ddfc5eaa-goog