]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: backend: Fix probe failure with multiple backends
authorMaxime Ripard <maxime@cerno.tech>
Fri, 6 Nov 2020 14:22:31 +0000 (15:22 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 18 Nov 2020 08:01:30 +0000 (09:01 +0100)
commit81bdd8998a72a9c7c92eb23e3d2111d08bdb01e5
treeeb5b176a4eca132d4982fa906657b4f6bbedf6b4
parenta1fe7c755400af92f0070a66f48f00b659aeacac
drm/sun4i: backend: Fix probe failure with multiple backends

Commit 2dd30c1b50dd ("dma-mapping: introduce DMA range map, supplanting
dma_pfn_offset") introduced a regression in our code since the second
backed to probe will now get -EINVAL back from dma_direct_set_offset and
will prevent the entire DRM device from probing.

Ignore -EINVAL as a temporary measure to get it back working, before
removing that call entirely.

Fixes: 2dd30c1b50dd ("dma-mapping: introduce DMA range map, supplanting dma_pfn_offset")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/sun4i/sun4i_backend.c