]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: iosm: fix driver not working with INTEL_IOMMU disabled
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Mon, 7 Nov 2022 07:35:02 +0000 (13:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2022 14:00:25 +0000 (14:00 +0000)
commit5eb24c27ebe0d8b4d51e459d859753f4a56fb7dd
tree8c6a49fbca80df77e02c7383f675e07bbe1ed223
parentadc7ab9eb694ff8ab17f0f4b5bf46db3ffe585a4
net: wwan: iosm: fix driver not working with INTEL_IOMMU disabled

With INTEL_IOMMU disable config or by forcing intel_iommu=off from
grub some of the features of IOSM driver like browsing, flashing &
coredump collection is not working.

When driver calls DMA API - dma_map_single() for tx transfers. It is
resulting in dma mapping error.

Set the device DMA addressing capabilities using dma_set_mask() and
remove the INTEL_IOMMU dependency in kconfig so that driver follows
the platform config either INTEL_IOMMU enable or disable.

Fixes: 867964cfe86c ("net: iosm: infrastructure")
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/Kconfig
drivers/net/wwan/iosm/iosm_ipc_pcie.c