Skip to content

Commit

Permalink
fsldma: add support to 36-bit physical address
Browse files Browse the repository at this point in the history
Expand the dma_mask of fsldma device to 36-bit, indicating that the
DMA engine can deal with 36-bit physical address and does not need
the SWIOTLB to create bounce buffer for it when doing dma_map_*().

Signed-off-by: Li Yang <leoli@freescale.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Li Yang authored and Dan Williams committed Dec 3, 2010
1 parent e8a7e48 commit e2c8e42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/dma/fsldma.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Freescale MPC85xx, MPC83xx DMA Engine support
*
* Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
* Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights reserved.
*
* Author:
* Zhang Wei <wei.zhang@freescale.com>, Jul 2007
Expand Down Expand Up @@ -1322,6 +1322,8 @@ static int __devinit fsldma_of_probe(struct platform_device *op,
fdev->common.device_control = fsl_dma_device_control;
fdev->common.dev = &op->dev;

dma_set_mask(&(op->dev), DMA_BIT_MASK(36));

dev_set_drvdata(&op->dev, fdev);

/*
Expand Down

0 comments on commit e2c8e42

Please sign in to comment.