]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Do not link logical devices to DT nodes
authorThierry Reding <treding@nvidia.com>
Wed, 5 Jun 2019 08:47:16 +0000 (10:47 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 5 Jun 2019 13:06:03 +0000 (15:06 +0200)
commitd7a571345f58a7fb9a91100aefdaeb310d443b95
tree550cf60874d8061cdd992ecde2f3f02576b797e4
parent13379c1f1a4a23631f8a982ed09e97ebb56a1a17
gpu: host1x: Do not link logical devices to DT nodes

Logical devices created by the host1x bus infrastructure don't need to
be associated with a device tree node. Doing so will cause the driver
core to attempt to hook up IOMMU operations and fail because it is not
a real device.

However, for backwards-compatibility, we need to provide various OF_*
uevent variables that were previously provided by of_device_uevent() and
which are parsed by libdrm in userspace when querying the available
devices. Do this by implementing a uevent callback for the host1x bus.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/bus.c