From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E968CCD5BD0 for ; Sat, 30 May 2026 14:35:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DF9F11286E; Sat, 30 May 2026 14:35:35 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="WW1RdPAq"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id D9E5811286E for ; Sat, 30 May 2026 14:35:33 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id B16E84070D; Sat, 30 May 2026 14:35:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DF9F1F00893; Sat, 30 May 2026 14:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780151733; bh=YW9seKnP/M1qHHCsdG/YjklFD3veFxmymb7oG7X5SzI=; h=Date:Subject:Cc:To:From:References:In-Reply-To; b=WW1RdPAq9v2x+zA97z8xw5rfY3jdFySIz0YOrBira1zvg1h2Rt/Bd5znPa2vHfEY8 EA3gu/nzZ1Ffv3+yKBd0WENZuhoSAvqH/AvHvezvLjQnQqC5npTYBhmerkXOwP63ih /VLakqbiSnRLd/rhWJRgqbKMbykHI9g3pDnftQfrSGk/b8jy6xuY3t8o6AMnIH6DbM pP58Rv2LaTcYhRkEmpq2hZSHKtARBwR8MKMKQ0FGL0xEo2u03ftPdoNQ/R0MtYeMBE u8Qv6bPkiryqp7elwzeBhkFBv7+kmavvySaAmerKsulJaPHSdLf8LSPsE+A4o9IA3Z SwkuA0rDUEitw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 30 May 2026 16:35:27 +0200 Message-Id: Subject: Re: [PATCH v8 3/5] rust: add basic serial device bus abstractions Cc: "Markus Probst via B4 Relay" , "Rob Herring" , "Greg Kroah-Hartman" , "Jiri Slaby" , "Miguel Ojeda" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Kari Argillander" , "Rafael J. Wysocki" , "Viresh Kumar" , "Boqun Feng" , "David Airlie" , "Simona Vetter" , , , , , , To: "Markus Probst" From: "Danilo Krummrich" References: <20260530-rust_serdev-v8-0-2a95f1da22a7@posteo.de> <20260530-rust_serdev-v8-3-2a95f1da22a7@posteo.de> <4638946fc49a38797b716ea173c93327eb751479.camel@posteo.de> <888dc39c52bb6ddac1a1eed7876c4573bdbef002.camel@posteo.de> <55eae11ea68f129508d0f7e30ac457ba919812b2.camel@posteo.de> In-Reply-To: <55eae11ea68f129508d0f7e30ac457ba919812b2.camel@posteo.de> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Sat May 30, 2026 at 4:27 PM CEST, Markus Probst wrote: > This would work, but I don't see how it would get rid of rust_private_dat= a in > this way. The device private data will but the private bus abstraction da= ta > needs to outlive the devres callbacks (which is done by rust_private_data= ). Why? You only ever use it in the receive callback, which won't be called af= ter device unbind anymore.