Skip to content

Commit 03a35bc

Browse files
pmalgujar-mrvlwsakernel
authored andcommitted
drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers
Due to i2c->adap.dev.fwnode not being set, ACPI_COMPANION() wasn't properly found for TWSI controllers. Signed-off-by: Szymon Balcerak <sbalcerak@marvell.com> Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 17a0f3a commit 03a35bc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev,
213213
i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info;
214214
i2c->adap.dev.parent = dev;
215215
i2c->adap.dev.of_node = pdev->dev.of_node;
216+
i2c->adap.dev.fwnode = dev->fwnode;
216217
snprintf(i2c->adap.name, sizeof(i2c->adap.name),
217218
"Cavium ThunderX i2c adapter at %s", dev_name(dev));
218219
i2c_set_adapdata(&i2c->adap, i2c);

0 commit comments

Comments
 (0)