Re: [PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-18 Thread Shuah Khan
On Thu, 2012-10-18 at 12:13 +0200, Michael Kerrisk (man-pages) wrote: > On Thu, Oct 18, 2012 at 11:47 AM, Dan Carpenter > wrote: > > On Sun, Oct 14, 2012 at 09:54:24AM -0600, Shuah Khan wrote: > >> diff --git a/Documentation/DMA-API-HOWTO.txt > >> b/Documentation/DMA-API-HOWTO.txt > >> index

Re: [PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-18 Thread Michael Kerrisk (man-pages)
On Thu, Oct 18, 2012 at 11:47 AM, Dan Carpenter wrote: > On Sun, Oct 14, 2012 at 09:54:24AM -0600, Shuah Khan wrote: >> diff --git a/Documentation/DMA-API-HOWTO.txt >> b/Documentation/DMA-API-HOWTO.txt >> index a0b6250..cf1adb4 100644 >> --- a/Documentation/DMA-API-HOWTO.txt >> +++

Re: [PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-18 Thread Dan Carpenter
On Sun, Oct 14, 2012 at 09:54:24AM -0600, Shuah Khan wrote: > diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt > index a0b6250..cf1adb4 100644 > --- a/Documentation/DMA-API-HOWTO.txt > +++ b/Documentation/DMA-API-HOWTO.txt > @@ -468,11 +468,46 @@ To map a single

Re: [PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-18 Thread Dan Carpenter
On Sun, Oct 14, 2012 at 09:54:24AM -0600, Shuah Khan wrote: diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index a0b6250..cf1adb4 100644 --- a/Documentation/DMA-API-HOWTO.txt +++ b/Documentation/DMA-API-HOWTO.txt @@ -468,11 +468,46 @@ To map a single region,

Re: [PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-18 Thread Michael Kerrisk (man-pages)
On Thu, Oct 18, 2012 at 11:47 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Oct 14, 2012 at 09:54:24AM -0600, Shuah Khan wrote: diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index a0b6250..cf1adb4 100644 --- a/Documentation/DMA-API-HOWTO.txt +++

Re: [PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-18 Thread Shuah Khan
On Thu, 2012-10-18 at 12:13 +0200, Michael Kerrisk (man-pages) wrote: On Thu, Oct 18, 2012 at 11:47 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Oct 14, 2012 at 09:54:24AM -0600, Shuah Khan wrote: diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt

[PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-14 Thread Shuah Khan
Enhance the document to discuss the importance of dma mapping error checks after dma_map_single() and dma_map_page() calls. Also added usage examples that include unmap examples in error paths when dma mapping error is returned. Includes correct and incorrect usages to high light some common

[PATCH] Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

2012-10-14 Thread Shuah Khan
Enhance the document to discuss the importance of dma mapping error checks after dma_map_single() and dma_map_page() calls. Also added usage examples that include unmap examples in error paths when dma mapping error is returned. Includes correct and incorrect usages to high light some common