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 1AC1031E10B; Mon, 17 Nov 2025 22:05:04 +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=1763417106; cv=none; b=ZPU+Kt3kfG666Nxm67OlQ02ANC6hSgLIKQL19H696TMLwgPFYaHxLqRgMLmANMTrS5GM3T8Bi5YsW5Geo8zN8rfq3qOYS6rN8tsbRaKKmkNdUfXeYLgWnIrYGCHlhxmvx2AfSZ6Q332gJQW8yM1yZB40CwsSCQZDE68EmPV/9nA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763417106; c=relaxed/simple; bh=5/G8GIkoO7z2N8ciB1v5Rc2n9Ta4Nf0bZTaX7MC2Olw=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=f3Z8PfN5AbPlpolijiindKgkQPmwu4OfIQCzHJJ2YCdbwIZD+0l42cwBRgAbct6ASfGwx0oaqPMNfWlTwaiDu2oMLPwWK9k6qHyGWIcNQzQrOLPngqR5DGYesn/KqBbhqBqXKl/USHeSjbkKR865USBpt/dzZmoKcODTWYzRBLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tQAqFEYq; 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="tQAqFEYq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F33EAC2BCB6; Mon, 17 Nov 2025 22:04:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763417103; bh=5/G8GIkoO7z2N8ciB1v5Rc2n9Ta4Nf0bZTaX7MC2Olw=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=tQAqFEYqeC+cHKxLKAxS4qQCq5OcyG2fl4sxNMXCdvs0/SbfDVAbi27opRi7+v0T9 CiHX5Yzvy+uIe14n/2VQv63FAajjXIBP1j2NjbWezUXXryVVM3w8HdS2HdEkJK0gdX Oe8yOpK8r66UArcxA7Ji54TP/w3gYyANv6BQHGEpFWvVZsZHtswu6DcDKSJOdNtLCK X5vcJK0kq3lnH0Q3OGaVVgiRYMFOnzNGSmnDGUXCYToVwEGfnTqutbkkP1gTM4/2uf VyWHgNC3Jm/mdQQjdgLshNUczH6YEjiSVk2N1sA5G2q33EY8TZX04yzfko6mcqDLl3 Ammys52N69phw== 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, 18 Nov 2025 11:04:53 +1300 Message-Id: Subject: Re: [PATCH v7 1/2] rust: Add trait to convert a device reference to a bus device reference Cc: "Greg Kroah-Hartman" , "Miguel Ojeda" , "Alex Gaynor" , "Rafael J. Wysocki" , "Lee Jones" , "Pavel Machek" , "Dave Ertman" , "Ira Weiny" , "Leon Romanovsky" , "Boqun Feng" , "Gary Guo" , , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Bjorn Helgaas" , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , , , , To: "Markus Probst" From: "Danilo Krummrich" References: <20251027200547.1038967-1-markus.probst@posteo.de> <20251027200547.1038967-2-markus.probst@posteo.de> In-Reply-To: <20251027200547.1038967-2-markus.probst@posteo.de> On Tue Oct 28, 2025 at 9:06 AM NZDT, Markus Probst wrote: > Implement the `AsBusDevice` trait for converting a `Device` reference to = a > bus device reference for all bus devices. > > The `AsBusDevice` trait allows abstractions to provide the bus device in > class device callbacks. It must not be used by drivers and is intended fo= r > bus and class device abstractions only. > > Signed-off-by: Markus Probst Applied to driver-core-testing, thanks! [ * Remove unused import. * Change visibility of AsBusDevice to public. * Fix build for USB. * Add impl for I2cClient. - Danilo ] -- Given that it's already quite late in the cycle, I expect the LED stuff to = land in the next cycle, hence I picked this one up in the driver-core tree. - Danilo