]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Register context bus unconditionally
authorRobin Murphy <robin.murphy@arm.com>
Thu, 7 Jul 2022 17:30:44 +0000 (18:30 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 14:31:24 +0000 (16:31 +0200)
commit9fb34471ed9d340f57b0bdb36da4cc3228061ba9
treec6673845f7455335844a006bf0a23a7641dfd341
parent969eea7700c814104837f1b7d99bd4385c432e19
gpu: host1x: Register context bus unconditionally

Conditional registration is a problem for other subsystems which may
unwittingly try to interact with host1x_context_device_bus_type in an
uninitialised state on non-Tegra platforms. A look under /sys/bus on a
typical system already reveals plenty of entries from enabled but
otherwise irrelevant configs, so lets keep things simple and register
our context bus unconditionally too.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/context_bus.c