public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: tegra: Set ACPI node as primary fwnode
@ 2022-11-17 10:04 Akhil R
  2022-11-17 22:01 ` Thierry Reding
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Akhil R @ 2022-11-17 10:04 UTC (permalink / raw)
  To: christian.koenig, digetx, jonathanh, ldewangan, linux-i2c,
	linux-kernel, linux-tegra, sumit.semwal, thierry.reding, wsa
  Cc: akhilrajeev, Zubair Waheed

Set ACPI node as the primary fwnode of I2C adapter to allow
enumeration of child devices from the ACPI table

Signed-off-by: Zubair Waheed <zwaheed@nvidia.com>
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
---
 drivers/i2c/busses/i2c-tegra.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index 954022c04cc4..69c9ae161bbe 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -1826,6 +1826,7 @@ static int tegra_i2c_probe(struct platform_device *pdev)
 	i2c_dev->adapter.class = I2C_CLASS_DEPRECATED;
 	i2c_dev->adapter.algo = &tegra_i2c_algo;
 	i2c_dev->adapter.nr = pdev->id;
+	ACPI_COMPANION_SET(&i2c_dev->adapter.dev, ACPI_COMPANION(&pdev->dev));
 
 	if (i2c_dev->hw->supports_bus_clear)
 		i2c_dev->adapter.bus_recovery_info = &tegra_i2c_recovery_info;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-12-01 23:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-17 10:04 [PATCH] i2c: tegra: Set ACPI node as primary fwnode Akhil R
2022-11-17 22:01 ` Thierry Reding
2022-11-18  9:38 ` Jon Hunter
2022-11-18 10:18   ` Thierry Reding
2022-11-18 11:06     ` Jon Hunter
2022-11-18 14:27       ` Akhil R
2022-11-18 14:39         ` Jon Hunter
2022-12-01 23:03 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox