Re: [PATCH 1/3] dmaengine: add possibility for cyclic transfers

From: Linus Walleij
Date: Mon Aug 16 2010 - 08:27:21 EST


2010/8/16 Lothar Waßmann <LW@xxxxxxxxxxxxxxxxxxx>:

> Why not implement this feature using cyclic SG lists (created with
> sg_chain())? This would give you endless DMA transfers without any
> special DMA API extensions.

That would be elegant...

The driver will have to detect that the sglist is chained like an
ouroboros to program the DMAC apropriately, is is easy to
detect if an sglist is chained onto itself?

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/