[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPybu_1WkQrH=ubuR1Y2HdgGP8iU0_38c1RtRkt1jKEN3bg3Vw@mail.gmail.com>
Date: Wed, 11 Feb 2015 10:12:20 +0100
From: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>
To: Marek Szyprowski <m.szyprowski@...sung.com>
Cc: Hans Verkuil <hans.verkuil@...co.com>,
Pawel Osciak <pawel@...iak.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Mauro Carvalho Chehab <mchehab@....samsung.com>,
linux-media <linux-media@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] media/videobuf2-dma-sg: Fix handling of sg_table structure
Hello again
On Wed, Feb 11, 2015 at 10:00 AM, Marek Szyprowski
<m.szyprowski@...sung.com> wrote:
> Well, this int return value seems to be misleading, but according to
> Documentation/DMA-API.txt, the only error value is zero:
>
> "As with the other mapping interfaces, dma_map_sg() can fail. When it
> does, 0 is returned and a driver must take appropriate action. It is
> critical that the driver do something, in the case of a block driver
> aborting the request or even oopsing is better than doing nothing and
> corrupting the filesystem."
>
> I've also checked various dma-mapping implementation for different
> architectures and they follow this convention.
>
> Maybe one should add some comments to include/linux/dma_mapping.h to
> clarify this and avoid further confusion.
>
>
Or maybe change it to unsigned int...
Let me redo the patch and resend. I will also try to ping whoever is
the maintainer of dma_mapping
Thanks!
--
Ricardo Ribalda
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists