linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: virtio: Update i2c-adapter's of_node
@ 2021-08-18  3:35 Viresh Kumar
  2021-08-19 17:24 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Viresh Kumar @ 2021-08-18  3:35 UTC (permalink / raw)
  To: Wolfram Sang, Jie Deng, Viresh Kumar
  Cc: Vincent Guittot, arnd, linux-i2c, virtualization, linux-kernel

Set of-node of the adapter to the virtio device's of-node to enable
automatic parsing the of the I2C devices, if present in the DT.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/i2c/busses/i2c-virtio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-virtio.c b/drivers/i2c/busses/i2c-virtio.c
index d3e60d9cde10..2dde69cfb9aa 100644
--- a/drivers/i2c/busses/i2c-virtio.c
+++ b/drivers/i2c/busses/i2c-virtio.c
@@ -228,6 +228,7 @@ static int virtio_i2c_probe(struct virtio_device *vdev)
 	vi->adap.algo = &virtio_algorithm;
 	vi->adap.quirks = &virtio_i2c_quirks;
 	vi->adap.dev.parent = &vdev->dev;
+	vi->adap.dev.of_node = vdev->dev.of_node;
 	i2c_set_adapdata(&vi->adap, vi);
 
 	/*
-- 
2.31.1.272.g89b43f80a514


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

* Re: [PATCH] i2c: virtio: Update i2c-adapter's of_node
  2021-08-18  3:35 [PATCH] i2c: virtio: Update i2c-adapter's of_node Viresh Kumar
@ 2021-08-19 17:24 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2021-08-19 17:24 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Jie Deng, Vincent Guittot, arnd, linux-i2c, virtualization, linux-kernel

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

On Wed, Aug 18, 2021 at 09:05:50AM +0530, Viresh Kumar wrote:
> Set of-node of the adapter to the virtio device's of-node to enable
> automatic parsing the of the I2C devices, if present in the DT.
> 
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

Applied to for-next, thanks! Since I need to rebase for-mergewindow
anyhow, I might just squash it into the main patch.


[-- 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:[~2021-08-19 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18  3:35 [PATCH] i2c: virtio: Update i2c-adapter's of_node Viresh Kumar
2021-08-19 17:24 ` 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).