gpu: host1x: Use different lock classes for each client
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 29 Mar 2021 13:38:27 +0000 (16:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:43:20 +0000 (11:43 +0200)
commit9576dd89554e39f1c6dcb377ff2a961269d2eaac
treec9def14e8e0752736e1beafe00355775cf9fbad2
parent39af2f472f21b4cdcfe9a7289856bec8b6498143
gpu: host1x: Use different lock classes for each client

[ Upstream commit a24f98176d1efae2c37d3438c57a624d530d9c33 ]

To avoid false lockdep warnings, give each client lock a different
lock class, passed from the initialization site by macro.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/host1x/bus.c
include/linux/host1x.h