From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 1712A311C39; Wed, 31 Dec 2025 09:15:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767172509; cv=none; b=X4pIxihBIEiXY7iZ682EtpNs/7ET3VrndQsggXSBe6ROWr7FvYCBltl27ZxorBFpoVjCEn8NRX6NHwG7ppUBkUuhtLvyO8Vds+EaXbPRZcpMLle9aAs1x+T4QxaG/ZUi9fsFlqqqPY9W9goqnZZlmkAfxqLhKZj/wU7PF9LDeg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767172509; c=relaxed/simple; bh=uZmzez1T6S0fBcGIezUGYNQA09lX0Gmu4FE7Smv2TMQ=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=slSplxvZp3d86LWsEDp8ExErctqX89EK6s9wZDT7EdcfcXHmRZk/eXt9hJ07z2ESma9iyX+F8oglgm9zu4Owv+9IcT5JDp+7Czc+ytFixzHPVyyQUGxC7047rLlTe2I1e0tUk7FhEoYYKgiLr/nR42SH41/5zvY11ih7CyV9+kE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=OIph+V/F; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="OIph+V/F" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 4A2A24E41EAE; Wed, 31 Dec 2025 09:15:04 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 206C260744; Wed, 31 Dec 2025 09:15:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 05415113B0755; Wed, 31 Dec 2025 10:14:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1767172502; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=0063sSsioo5ahiIjYE6TqPfIYj5Bo6k+tEWffoXGQJI=; b=OIph+V/F3Y1bjGywnpWRPDI58cuEHLeLvz2ZmVj8NSw63tGOtIhdMHPT7+ENbrF26Akrde vHDGQYv5Y9heKah/Wka3akEjYl+2T3YiyuTXXn9ZI219Qn30s8WpFtUeXFftiCiZd2fyJ0 G7MgbXFxkgWHBo7mIPHWNeYuAxO32DXuQd56wrMKhUPxdONPhT1qo6YFIrpaR13WEW1bbg Tjpe1k9KC1rQZx+3aPMbXd1ZuFk6+lbGJ5F3CIxPkF/Tu9QuUx5D6ggvH8G419uEd//NYy iMq4ta1KdagYePHUS2kmz0G/GSK0SWABA7ZZ9JT2G7NYZFAYV+g9Fwczpn9BEw== Precedence: bulk X-Mailing-List: linux-media@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: Wed, 31 Dec 2025 10:14:59 +0100 Message-Id: Subject: Re: [PATCH 2/2] host1x: Convert to bus methods Cc: , , , , , To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , "Akhil R" , "Herbert Xu" , "David S. Miller" , "Thierry Reding" , "Jonathan Hunter" , "Mikko Perttunen" , "David Airlie" , "Simona Vetter" , "Sowjanya Komatineni" , "Mauro Carvalho Chehab" , "Greg Kroah-Hartman" From: "Luca Ceresoli" X-Mailer: aerc 0.20.1 References: In-Reply-To: X-Last-TLS-Session-Version: TLSv1.3 On Wed Dec 10, 2025 at 9:31 AM CET, Uwe Kleine-K=C3=B6nig wrote: > The callbacks .probe(), .remove() and .shutdown() for device_drivers > should go away. So migrate to bus methods. There are two differences > that need addressing: > > - The bus remove callback returns void while the driver remove callback > returns int (the actual value is ignored by the core). > - The bus shutdown callback is also called for unbound devices, so an > additional check for dev->driver !=3D NULL is needed. > > Signed-off-by: Uwe Kleine-K=C3=B6nig Tested-by: Luca Ceresoli # tegra20 tegra-video Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com