Skip to content

Commit d570f31

Browse files
Piyush Malgujargregkh
authored andcommitted
drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers
[ Upstream commit 03a35bc856ddc09f2cc1f4701adecfbf3b464cb3 ] Due to i2c->adap.dev.fwnode not being set, ACPI_COMPANION() wasn't properly found for TWSI controllers. Signed-off-by: Szymon Balcerak <[email protected]> Signed-off-by: Piyush Malgujar <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 8c73e7c commit d570f31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-thunderx-pcidrv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev,
208208
i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info;
209209
i2c->adap.dev.parent = dev;
210210
i2c->adap.dev.of_node = pdev->dev.of_node;
211+
i2c->adap.dev.fwnode = dev->fwnode;
211212
snprintf(i2c->adap.name, sizeof(i2c->adap.name),
212213
"Cavium ThunderX i2c adapter at %s", dev_name(dev));
213214
i2c_set_adapdata(&i2c->adap, i2c);

0 commit comments

Comments
 (0)