Skip to content

Commit

Permalink
i2c: synquacer: fix enumeration of slave devices
Browse files Browse the repository at this point in the history
The I2C host driver for SynQuacer fails to populate the of_node and
ACPI companion fields of the struct i2c_adapter it instantiates,
resulting in enumeration of the subordinate I2C bus to fail.

Fixes: 0d676a6 ("i2c: add support for Socionext SynQuacer I2C controller")
Cc: <[email protected]> # v4.19+
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
Ard Biesheuvel authored and Wolfram Sang committed May 2, 2019
1 parent fb31fbe commit 95e0cf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/i2c/busses/i2c-synquacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,8 @@ static int synquacer_i2c_probe(struct platform_device *pdev)
i2c->adapter = synquacer_i2c_ops;
i2c_set_adapdata(&i2c->adapter, i2c);
i2c->adapter.dev.parent = &pdev->dev;
i2c->adapter.dev.of_node = pdev->dev.of_node;
ACPI_COMPANION_SET(&i2c->adapter.dev, ACPI_COMPANION(&pdev->dev));
i2c->adapter.nr = pdev->id;
init_completion(&i2c->completion);

Expand Down

0 comments on commit 95e0cf3

Please sign in to comment.