]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Get ref for DP AUX channel, not its ddc adapter
authorLyude Paul <lyude@redhat.com>
Fri, 14 May 2021 22:13:05 +0000 (18:13 -0400)
committerThierry Reding <treding@nvidia.com>
Thu, 27 May 2021 18:11:07 +0000 (20:11 +0200)
commit25ae449a2a26e53c7c3b81475c11a6cb3da373ad
tree04bad114d6483759bd7affd234a9b605fb9f52b3
parent34681c724f6781f49aac0a38e38f2dcf719eefb1
drm/tegra: Get ref for DP AUX channel, not its ddc adapter

While we're taking a reference of the DDC adapter for a DP AUX channel in
tegra_sor_probe() because we're going to be using that adapter with the
SOR, now that we've moved where AUX registration happens the actual device
structure for the DDC adapter isn't initialized yet. Which means that we
can't really take a reference from it to try to keep it around anymore.

This should be fine though, because we can just take a reference of its
parent instead.

v2:
* Avoid calling i2c_put_adapter() in tegra_output_remove() for eDP/DP cases

Signed-off-by: Lyude Paul <lyude@redhat.com>
Fixes: dc5d0f19e6cf ("drm/tegra: Don't register DP AUX channels before connectors")
Cc: Lyude Paul <lyude@redhat.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/output.c
drivers/gpu/drm/tegra/sor.c