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 E989F8C1E; Tue, 7 Jan 2025 12:04:51 +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=1736251492; cv=none; b=m18+Tm2jXiFkbqXjmzfGL1VPZ7G0VpmAQD4jpt84ng2blT1MBnIP6QIaVMIcqsQd/snSSR/LLqJww7bW1ggTPQzqNrTDyMtzlXaVm16GnD4lsf6jCnGMCgM6XnErj1uddAY7ignYphOt+vFby4qxmow8aqVYqSVsoxJP9HDruio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736251492; c=relaxed/simple; bh=jNO66Lvk4gGfb8OygBeSWxfpSXrqWD1Y9OHqnXMeE/8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eZnF4cko7J4zVgYUAMm4Zr3EcmshHgBAUbWCzEhw4pRo8iE2rq3iYoSGHvJI3iJcCj2skx50HEWwpoZXSIuIwqIQvPRZTMEv8Qqy8YZpPhOg5Rukp/0t3TU3OVHK5mW3mJtSQz9CONOzRMx3UZrTZUAk0wDnHuj+02SiRfcYqzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N1t8sgOL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="N1t8sgOL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0C27C4CED6; Tue, 7 Jan 2025 12:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736251491; bh=jNO66Lvk4gGfb8OygBeSWxfpSXrqWD1Y9OHqnXMeE/8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N1t8sgOLXrjN3XykcLakSLLnQuc3KXVEIIznSgB6kTXrxZUyegGs4d2IS3/1MbcL0 PZyXt2Gez/0Lxx/mRnmW7GDemfXlIwTOA3JKEOMTdAU8TPWG5O7Ehkg3hN85oToGo0 u+HMFn5k1DxRd0ig3ikgADRgrgst3yymO76Qe9hE= Date: Tue, 7 Jan 2025 13:04:48 +0100 From: Greg KH To: Viresh Kumar Cc: "Rafael J. Wysocki" , Miguel Ojeda , Danilo Krummrich , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , linux-pm@vger.kernel.org, Vincent Guittot , Stephen Boyd , Nishanth Menon , rust-for-linux@vger.kernel.org, Manos Pitsidianakis , Erik Schilling , Alex =?iso-8859-1?Q?Benn=E9e?= , Joakim Bech , Rob Herring , linux-kernel@vger.kernel.org Subject: Re: [PATCH V6 14/15] cpufreq: Add Rust based cpufreq-dt driver Message-ID: <2025010707-repurpose-clapped-0d22@gregkh> References: <41a674fc8ebca6174bcc3af6cdd9155a18b19d42.1736248242.git.viresh.kumar@linaro.org> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41a674fc8ebca6174bcc3af6cdd9155a18b19d42.1736248242.git.viresh.kumar@linaro.org> On Tue, Jan 07, 2025 at 04:51:47PM +0530, Viresh Kumar wrote: > +impl platform::Driver for CPUFreqDTDriver { > + type IdInfo = (); > + const OF_ID_TABLE: Option> = Some(&OF_TABLE); > + > + fn probe(pdev: &mut platform::Device, _id_info: Option<&Self::IdInfo>) -> Result>> { > + cpufreq::Registration::::new_foreign_owned( > + pdev.as_ref(), > + c_str!("cpufreq-dt"), > + (), > + cpufreq::flags::NEED_INITIAL_FREQ_CHECK | cpufreq::flags::IS_COOLING_DEV, > + true, > + )?; > + > + pr_info!("CPUFreq DT driver registered\n"); When drivers work properly, they are quiet. Please don't make us have to go and remove lines like this from new drivers being added to the tree like we did for older drivers in the past :( thanks, greg k-h