linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V1] i2c: xgene: Set ACPI_COMPANION_I2C
@ 2017-04-26  9:48 tnhuynh
  2017-05-16 21:40 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: tnhuynh @ 2017-04-26  9:48 UTC (permalink / raw)
  To: Wolfram Sang, linux-i2c, linux-acpi, linux-kernel
  Cc: Loc Ho, Phong Vo, Thang Nguyen, patches, Tin Huynh

From: Tin Huynh <tnhuynh@apm.com>

With ACPI, i2c-core requires ACPI companion to be set in order for it
to create slave device.
This patch sets the ACPI companion accordingly.
---
 drivers/i2c/busses/i2c-xgene-slimpro.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c
index dbe7e44..6ba6c83 100644
--- a/drivers/i2c/busses/i2c-xgene-slimpro.c
+++ b/drivers/i2c/busses/i2c-xgene-slimpro.c
@@ -416,6 +416,7 @@ static int xgene_slimpro_i2c_probe(struct platform_device *pdev)
 	adapter->class = I2C_CLASS_HWMON;
 	adapter->dev.parent = &pdev->dev;
 	adapter->dev.of_node = pdev->dev.of_node;
+	ACPI_COMPANION_SET(&adapter->dev, ACPI_COMPANION(&pdev->dev));
 	i2c_set_adapdata(adapter, ctx);
 	rc = i2c_add_adapter(adapter);
 	if (rc) {
-- 
1.7.1


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

* Re: [PATCH V1] i2c: xgene: Set ACPI_COMPANION_I2C
  2017-04-26  9:48 [PATCH V1] i2c: xgene: Set ACPI_COMPANION_I2C tnhuynh
@ 2017-05-16 21:40 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2017-05-16 21:40 UTC (permalink / raw)
  To: tnhuynh
  Cc: linux-i2c, linux-acpi, linux-kernel, Loc Ho, Phong Vo,
	Thang Nguyen, patches

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

On Wed, Apr 26, 2017 at 04:48:51PM +0700, tnhuynh@apm.com wrote:
> From: Tin Huynh <tnhuynh@apm.com>
> 
> With ACPI, i2c-core requires ACPI companion to be set in order for it
> to create slave device.
> This patch sets the ACPI companion accordingly.

Again, no Signed-off. I can't apply it without one. lso, please add your
full name to the mail header.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2017-05-16 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26  9:48 [PATCH V1] i2c: xgene: Set ACPI_COMPANION_I2C tnhuynh
2017-05-16 21:40 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).