]> asedeno.scripts.mit.edu Git - linux.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)
commit31fa25f100ec0ce25ccf61d1468928c64d1c2fd9
tree550cf60874d8061cdd992ecde2f3f02576b797e4
parent1e390478cfb527e34c9ab89ba57212cb05c33c51
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