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 46D433D34A0; Tue, 3 Feb 2026 16:58:35 +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=1770137915; cv=none; b=iZa0xhXeLjdVkDDSCtyJ/lRZsmyUJZXK7t77QgCp+cx4Xkn1uVmxawKQ25xuTVm2GzOgYIsKk0LMiCB8eZ2YSbhiOl5KYFGySwA/jQX5NsRddr+MEu2r6BJ7rcQP9/ONT2moMhtu4j01AtHGLiJ+g7Z0I/HSOBvBNJZ0ip3E51c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770137915; c=relaxed/simple; bh=WxmlTgy0bTXH+yTAEyI8pJk9rrPb8d6K81hCjqQk99E=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=urtw+7O6h9MMbR8MgraAirwRooCsJmXsxECn6sedlVMWG1Og5/VXvQ2TwH3/Q5RGjF+OP4nWKKe/jnw/2t65dLGE38chzZaDc5J70KiBiAzbv5YqhJ2TcHrBvWMqvTvid6or8IxaBCNCI3nKDocgJ0Qa40YKDcmaSPJkspuTFlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PatvW/Fe; 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="PatvW/Fe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAB20C116D0; Tue, 3 Feb 2026 16:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770137914; bh=WxmlTgy0bTXH+yTAEyI8pJk9rrPb8d6K81hCjqQk99E=; h=Date:From:Subject:Cc:To:References:In-Reply-To:From; b=PatvW/FeOqaD0/AGUGWfu+D/oZ5PFg0xDRNlYV+ebA78rtsQYefCAXTKRXXG5aJ4S P8Wcu4gN+/6xCdbzi0UzOduiWN5nLel1xOmS3l5XMvCDW67Z96PGTvhM6QSC4oye4B mRMU3m8cZkmfP3deqtdtcyMUp2qWPtiKpdVTWPSoDa2MOfrs6jU5OJY9lhT9h+/eCd GG2AJSiH8lKZZ0zsWGhBVATSEe3A4Z5IwpPbuRIBVN3izJqMMLl24cZZz9JdwCMapS XcibbwAB1OWctZLYRGuRBbqEYseEXQC756WNjxeokuXJpPM1j3ZtIQV/2SRZMTkgoE U9el1uBjxXRcg== Precedence: bulk X-Mailing-List: rust-for-linux@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, 03 Feb 2026 17:58:28 +0100 Message-Id: From: "Danilo Krummrich" Subject: Re: [PATCH v2 5/6] rust: debugfs: Allow access to device in Devres-wrapped scopes Cc: "Matthew Maurer" , "Bjorn Andersson" , "Konrad Dybcio" , "Satya Durga Srinivasu Prabhala" , "Miguel Ojeda" , "Boqun Feng" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Daniel Almeida" , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "David Airlie" , "Simona Vetter" , "Michal Wilczynski" , "Dave Ertman" , "Ira Weiny" , "Leon Romanovsky" , "Trilok Soni" , , , , , , To: "Gary Guo" References: <20260203-qcom-socinfo-v2-0-d6719db85637@google.com> <20260203-qcom-socinfo-v2-5-d6719db85637@google.com> In-Reply-To: On Tue Feb 3, 2026 at 5:47 PM CET, Gary Guo wrote: > I think it is a big strange to have this on `Devres` (in patch v6 it has = `Devres::dir` doesn't make > too much sense). I would suggest that we domsomething like > > impl<'a, T: 'a + Send> Scope { > pub fn devres_dir( > ... > ) -> impl PinInit, Error> + 'a; > } Good catch, I did not notice that this is implemented on Devres, rather tha= n debugfs. This should not be implemented on Devres. > To me `Devres` is just a generic container type, just like `Arc` and `ARe= f`, so > the assoc functions should be defined on the concrete type. Indded.