All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] ARM: dma-mapping: update comment about handling dma_ops when detaching from IOMMU
@ 2018-10-15 10:55 ` Wolfram Sang
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfram Sang @ 2018-10-15 10:55 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: linux-renesas-soc, Russell King, Wolfram Sang, Geert Uytterhoeven

Update the comment because we don't set the pointer to NULL anymore.
Also use the correct pointer name 'dma_ops' instead of 'dma_map_ops'.

Fixes: 1874619a7df4 ("ARM: dma-mapping: Set proper DMA ops in arm_iommu_detach_device()")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/mm/dma-mapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index 66566472c153..e3b04786838f 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -2287,7 +2287,7 @@ EXPORT_SYMBOL_GPL(arm_iommu_attach_device);
  * @dev: valid struct device pointer
  *
  * Detaches the provided device from a previously attached map.
- * This voids the dma operations (dma_map_ops pointer)
+ * This overwrites the dma_ops pointer with appropriate non-IOMMU ops.
  */
 void arm_iommu_detach_device(struct device *dev)
 {
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-12-10  8:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-15 10:55 [PATCH RESEND] ARM: dma-mapping: update comment about handling dma_ops when detaching from IOMMU Wolfram Sang
2018-10-15 10:55 ` Wolfram Sang
2018-10-17  9:16 ` Simon Horman
2018-10-17  9:16   ` Simon Horman
2018-12-09 21:51 ` Wolfram Sang
2018-12-09 21:51   ` Wolfram Sang
2018-12-10  8:40   ` Geert Uytterhoeven
2018-12-10  8:40     ` Geert Uytterhoeven
2018-12-10  8:58     ` Wolfram Sang
2018-12-10  8:58       ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.