dmaengine: pxa: document pxad_param
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 17 Jun 2018 17:02:14 +0000 (19:02 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 18 Jun 2018 19:32:15 +0000 (21:32 +0200)
Add some documentation for the pxad_param structure, and describe the
contract behind the minimal required priority of a DMA channel.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Vinod Koul <vkoul@kernel.org>
include/linux/dma/pxa-dma.h

index e56ec7a..9fc594f 100644 (file)
@@ -9,6 +9,15 @@ enum pxad_chan_prio {
        PXAD_PRIO_LOWEST,
 };
 
+/**
+ * struct pxad_param - dma channel request parameters
+ * @drcmr: requestor line number
+ * @prio: minimal mandatory priority of the channel
+ *
+ * If a requested channel is granted, its priority will be at least @prio,
+ * ie. if PXAD_PRIO_LOW is required, the requested channel will be either
+ * PXAD_PRIO_LOW, PXAD_PRIO_NORMAL or PXAD_PRIO_HIGHEST.
+ */
 struct pxad_param {
        unsigned int drcmr;
        enum pxad_chan_prio prio;