From mboxrd@z Thu Jan 1 00:00:00 1970 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 987703A7F70; Tue, 24 Feb 2026 16:42:38 +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=1771951358; cv=none; b=G0Z6h2/XVNFbMwl7m7iF5D0xke7X6f+E2+hnkWJGC0nK/GDgB8apemoHLP5ekSyuJ1i18oTryaSZyjBXTzlzf2P2uGx7l8nc4hG1LCgRWnm+Rlxpb7A3VQXYqIGwYQXx81MyhjOTiNFu9H13h2rESdbJdpjV3+Io12H5bnueHgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771951358; c=relaxed/simple; bh=YRQlQ6MCIsYjUFukWeNyAIgQdUxG7sGbhDfq2JfCUHo=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=ZXIeah41/VJuQ/XRB+Uv1CW7VYYDuM8DZEf8may/QkWMykW0TRMUVvGZUW9jToJs6pbm19sF2OY9OP4LLx0UAl7UaF8gXKsX/1rVXk6pH37yTgV1fF/+6QoiOGCHx26M4+iOmLxgF3RVBzozjPp+QE+wZseVepISuPPXUetOFzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tn29oDym; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tn29oDym" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94C6CC116D0; Tue, 24 Feb 2026 16:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771951358; bh=YRQlQ6MCIsYjUFukWeNyAIgQdUxG7sGbhDfq2JfCUHo=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=tn29oDymGPjH73/ziawaVMH+uaHe989A9o+IPI1YsV0IkMNdoT5/LspWz09jMKcv7 QfqYjDDH3k0vW0CynC8PTsy8eo/s7op+TSDGkO/MuPJuuUa3Si5KbVHVxbt9nJH1WL oyhy7Ag6og/JhSfl2tv2NZkHsyAWpDTG8e5XeX57vBkKFPIpEAxOr77bmxw8o/lE9j HXKGGbs+mTWmbC88zE6k3SAgjTChWZh4Pt1L3C9dLH1VuhV50TnNnbSgxLVr/cVPil dp5ks/KcoMFCEqu8/V9ZMzPK62rmjUaUZvpGNV1opefVi4HYR8yJA/MfvunxZvZOgF zt86RPFP7tpMQ== Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 24 Feb 2026 17:42:33 +0100 Message-Id: Subject: Re: [RFC PATCH v3 1/5] rtc: add device selector for rtc_class_ops callbacks Cc: "Rafael J. Wysocki" , "Alvin Sun" , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , , , "Greg Kroah-Hartman" To: "Alexandre Belloni" From: "Danilo Krummrich" References: <20260220225341c5eeb835@mail.local> <20260221111619162a41a1@mail.local> <20260222000556ea1938c0@mail.local> <2026022415010804e28202@mail.local> In-Reply-To: On Tue Feb 24, 2026 at 5:35 PM CET, Danilo Krummrich wrote: > The reason we sometimes can is because, if you would need access to the > irq::Registration from ioctls (e.g. for calling synchronize(), enable(), > disable() etc.) it would be caught, because you couldn't access it withou= t it > being in rtc_data in the first place, and being forced to have it in rtc_= data > guarantees that the ordering can't be wrong. I.e. as long as we can model a data dependency we can catch those things at compile time.