All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: don't link DP aux i2c adapter to the hardware device node
@ 2017-01-13 17:36 Lucas Stach
  2017-01-23  8:16 ` Daniel Vetter
  2017-01-23 16:33 ` Thierry Reding
  0 siblings, 2 replies; 17+ messages in thread
From: Lucas Stach @ 2017-01-13 17:36 UTC (permalink / raw)
  To: dri-devel; +Cc: Daniel Vetter, kernel, patchwork-lst

The i2c adapter on DP AUX is purely a software construct. Linking
it to the device node of the parent device is wrong, as it leads to
2 devices sharing the same device node, which is bad practice, as
well as the i2c trying to populate children of the i2c adapter by
looking at the child device nodes of the parent device.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/gpu/drm/drm_dp_helper.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c
index 3e6fe82c6d64..f91ade1edbde 100644
--- a/drivers/gpu/drm/drm_dp_helper.c
+++ b/drivers/gpu/drm/drm_dp_helper.c
@@ -1020,7 +1020,6 @@ int drm_dp_aux_register(struct drm_dp_aux *aux)
 	aux->ddc.class = I2C_CLASS_DDC;
 	aux->ddc.owner = THIS_MODULE;
 	aux->ddc.dev.parent = aux->dev;
-	aux->ddc.dev.of_node = aux->dev->of_node;
 
 	strlcpy(aux->ddc.name, aux->name ? aux->name : dev_name(aux->dev),
 		sizeof(aux->ddc.name));
-- 
2.11.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2018-02-07 13:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-13 17:36 [PATCH] drm: don't link DP aux i2c adapter to the hardware device node Lucas Stach
2017-01-23  8:16 ` Daniel Vetter
2017-01-23 16:33 ` Thierry Reding
2017-01-23 16:42   ` Lucas Stach
2017-03-29 13:56   ` Rob Herring
2017-04-05  8:52     ` Lucas Stach
2017-04-05 12:04       ` Thierry Reding
2017-11-14 14:34         ` Andrzej Hajda
2017-11-20  7:54           ` Daniel Vetter
2017-11-20  8:53             ` Andrzej Hajda
2018-02-05 16:11         ` Thierry Reding
2018-02-05 16:29           ` Lucas Stach
2018-02-05 17:11             ` Thierry Reding
2018-02-05 17:33           ` Thierry Reding
2018-02-05 17:39             ` Lucas Stach
2018-02-05 18:07               ` Thierry Reding
2018-02-07 13:53                 ` Andrzej Hajda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.