From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 443231E3DCF for ; Fri, 21 Feb 2025 06:33:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740119633; cv=none; b=mSe9a6O3XaTaBuUA/W9KSWGy3dNh3i8f1aFVxITgnLJiE5/9gUMkBKs9mnnDRp5urDEH1Vef0Pysw04bB3Sbvt/X0PAQ/tofvkREKI7cvxpHiQ+X5EIa1ZKCR4gzT6F8BtDx+1O+ml2XadGwiSiYH2XAO12O/SRA+bBPJFxhinQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740119633; c=relaxed/simple; bh=UnV/+GfcAYzsBk/o1/mbrqjdXTKd+qmvgLBpMdIuhrI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=C3xSsZtw4ycYa0Y/PJVGQC4txnJrMy+ZDgsH9Thco3qTZd3piH2cU3hCS9CMuWpXINi3mvZYRnSx8YGry61mhbKYpqU0uoxve8efhFulfiELkyGs49H2EKgeIQSAxNYXXxMhJNtzWzdsqN9t8ku0PbjlFcs0XGAL8QzroImGmiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=PlcTKdCK; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PlcTKdCK" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-220bff984a0so33691555ad.3 for ; Thu, 20 Feb 2025 22:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740119631; x=1740724431; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q3qkD2W8GHPxS6rjoat2i19yWeUXmPG3MQqxSAFZ/8c=; b=PlcTKdCKDpi1QO7NG8AQYezLG/xToMvncu9ycJf9FhoLe2ZTRb9jfTPK998MKrBpKn +ZOVThGps+zEJqqz6fLAa7SrK9Fz7ahCfSRTtbfR1NOYrI6EMF1nyHuWV9M3VYU7g2b3 EG/ldhckbswoCKjp7JNIBeyV1rJFjPipK/xeR4/WQx4W/WdjK0M4uyEFgahdrRObY5hh vIS+mgHgHllHQjR4uMArpRYwdyiEQu03hWzFejE6rKIFz97MQCMUPz03MolP2V6kR6mW 1y0/mKdP2RV4MdomVsLK0ZwQ3xoR9MsdH/h2iumaq1XcuCHS6jQA8Atr2paIfNikn/xL Nzmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740119631; x=1740724431; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q3qkD2W8GHPxS6rjoat2i19yWeUXmPG3MQqxSAFZ/8c=; b=B1EjfOEXJaMTzVZn1gqQK24vfX1FBwaMcUuquS7EYLNaO0Z6gho4ehYVBNo6PI9iyN EyWugo4Fbhmbtw6Do81hOt+fJJxkScMWnpyMN/St2p9tr2WYaio4HwsBSp3DjxZMhfqC Eh25qlcj0B5q8NiIEgrU9ve93kkSL75Yu6DFd9J778GxcgRJmDPh/h9YiET6JonmmQPY vWfhugExsohMb7FfjB+2QbomuzzYo5bhMT1EgPCRx77nnRtET+3oPCvpvN6pT9OG6TYN wa4DGh2l+2g9Ts78rMDKzCXc3Az5+FtOGkz2eztXAZ02dSa9WRatzCQ9yEnGNZoAa8Ne QUGA== X-Forwarded-Encrypted: i=1; AJvYcCX84Nz49jZtJ/KqvZ6FghYUw09mnGoLDO97xPhm44elmfnvpHOVJSMfJ204/u+VvptFe1d97zfYPOAMxAPDHQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yzaq5xrmOwbebEjCYIjU0N2akpIQtosW0SU+wSn3VKb6vITKhaJ 4QEVXogyxpLXdmrJAInUmBg1Qx53e2UQWrnFFLTKj9T6NlxsiSJoIblSUPdY1nA= X-Gm-Gg: ASbGncvRUgZOSUAgo7Dnxw3YGJRsdpRvCCOkt9o3dF2quBN29R892k9ysgNq+VF7QKZ LwfqxxVugTQ35dMlstT0LJ9vFBoeFIan8AXoNTatiKrvm9cNMknJeDKiij59wMgEwjwIRYMLxRv Gws6rum7EsKEq+P+hqF9FtTOs7ISjoGkXgbepFycVZn5UzPZ+HatYYk9bL7ShwbnvQuit8NJatb Xx5G0SHRBD5TL5FNzbS5iEhW7io+uFN5MaPMByEkQgf6YDEC1ruxdGUxSxtMH31vQWg81aqC8ah 8jA/kLu+m86kZxT4tSWTtQwKl0MQ X-Google-Smtp-Source: AGHT+IGBFTKUqNROscBFlXFQPsAysi8TjZrSjaBBpoMwqoUOJ2o4jmxLvYsGM0FXUS1xsZzgGKCJBg== X-Received: by 2002:a17:902:d2c7:b0:21d:3bee:990c with SMTP id d9443c01a7336-2219ffb5fa6mr30105085ad.42.1740119631572; Thu, 20 Feb 2025 22:33:51 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fceb02d7dasm523355a91.5.2025.02.20.22.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2025 22:33:50 -0800 (PST) From: Viresh Kumar To: Alex Gaynor , Alice Ryhl , Andreas Hindborg , Benno Lossin , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Boqun Feng , Gary Guo , Michael Turquette , Miguel Ojeda , Stephen Boyd , Trevor Gross Cc: Viresh Kumar , Russell King , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: [PATCH V2 0/2] rust: Add basic clock bindings Date: Fri, 21 Feb 2025 12:03:37 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, This adds initial bindings for the clk APIs. These provide the minimal functionality needed for common use cases, making them straightforward to introduce in the first iteration. These will be used by Rust based cpufreq / OPP layers to begin with. For now I have added them under the maintainership umbrella of the common clk framework, please let me know if I should do it differently. This was posted earlier as part of the series implementing cpufreq/OPP Rust bindings [1] (since its V6 version). In order to make sure this gets properly reviewed and I don't accidentally miss relevant reviewers, I am posting it separately now. If possible, I would like to get these merged via the PM tree along with cpufreq/OPP bindings, but its okay otherwise too. -- Viresh [1] https://lore.kernel.org/all/cover.1738832118.git.viresh.kumar@linaro.org/ V1->V2: - Post this as an independent series. - Include more APIs, apart from clk_get() and clk_put(). Viresh Kumar (2): rust: Add clk helpers rust: Add basic bindings for clk APIs MAINTAINERS | 2 + rust/bindings/bindings_helper.h | 1 + rust/helpers/clk.c | 57 +++++++++++++++++ rust/helpers/helpers.c | 1 + rust/kernel/clk.rs | 104 ++++++++++++++++++++++++++++++++ rust/kernel/lib.rs | 1 + 6 files changed, 166 insertions(+) create mode 100644 rust/helpers/clk.c create mode 100644 rust/kernel/clk.rs -- 2.31.1.272.g89b43f80a514