Oleksandr Tyshchenko 2062f9fb64 xen/grant-dma-iommu: Implement a dummy probe_device() callback
Update stub IOMMU driver (which main purpose is to reuse generic
IOMMU device-tree bindings by Xen grant DMA-mapping layer on Arm)
according to the recent changes done in the following
commit 57365a04c921 ("iommu: Move bus setup to IOMMU device registration").

With probe_device() callback being called during IOMMU device registration,
the uninitialized callback just leads to the "kernel NULL pointer
dereference" issue during boot. Fix that by adding a dummy callback.

Looks like the release_device() callback is not mandatory to be
implemented as IOMMU framework makes sure that callback is initialized
before dereferencing.

Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
Fixes: 57365a04c921 ("iommu: Move bus setup to IOMMU device registration")
Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/20230208153649.3604857-1-olekstysh@gmail.com
Signed-off-by: Juergen Gross <jgross@suse.com>
2023-02-13 07:22:08 +01:00
..
2023-02-11 10:58:36 -08:00
2022-12-13 15:22:14 -08:00
2023-02-03 11:35:42 -08:00
2023-01-12 17:02:20 -06:00
2023-02-06 18:54:35 +01:00
2022-12-19 07:13:33 -06:00
2023-01-12 05:56:06 -06:00
2023-02-12 11:13:29 -08:00
2022-12-30 10:49:52 +08:00
2023-01-27 14:05:38 +01:00
2023-02-09 09:09:13 -08:00
2022-12-13 13:09:38 -08:00
2022-12-11 21:25:58 +01:00
2023-01-29 11:06:47 -08:00
2023-01-27 16:09:12 -08:00
2022-12-21 09:19:24 -08:00
2023-02-10 08:55:09 -08:00
2023-02-07 14:17:12 -08:00
2023-02-10 14:18:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-21 09:41:28 -08:00
2023-01-06 13:12:42 -08:00
2023-01-31 11:39:08 -08:00
2023-01-10 23:09:09 +01:00
2022-12-19 08:47:33 -06:00
2022-12-12 10:17:08 -08:00
2022-12-16 03:49:24 -08:00