Skip to content

Commit 675f72d

Browse files
committed
i2c: tegra: Set ACPI node as primary fwnode
jira LE-1907 Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2 commit-author Akhil R <[email protected]> commit 5bf7188 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 <[email protected]> Signed-off-by: Akhil R <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> (cherry picked from commit 5bf7188) Signed-off-by: Jonathan Maple <[email protected]>
1 parent fd43375 commit 675f72d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-tegra.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,6 +1821,7 @@ static int tegra_i2c_probe(struct platform_device *pdev)
18211821
i2c_dev->adapter.class = I2C_CLASS_DEPRECATED;
18221822
i2c_dev->adapter.algo = &tegra_i2c_algo;
18231823
i2c_dev->adapter.nr = pdev->id;
1824+
ACPI_COMPANION_SET(&i2c_dev->adapter.dev, ACPI_COMPANION(&pdev->dev));
18241825

18251826
if (i2c_dev->hw->supports_bus_clear)
18261827
i2c_dev->adapter.bus_recovery_info = &tegra_i2c_recovery_info;

0 commit comments

Comments
 (0)