[PATCH v2 03/10] dmaengine: sun6i: Restructure code to allow extension for new SoCs
From: Maxime Ripard <hidden>
Date: 2017-09-18 08:08:59
Also in:
linux-devicetree, lkml
From: Maxime Ripard <hidden>
Date: 2017-09-18 08:08:59
Also in:
linux-devicetree, lkml
On Sun, Sep 17, 2017 at 05:19:49AM +0200, Stefan Br?ns wrote:
The current code mixes three distinct operations when transforming the slave config to register settings: 1. special handling of DMA_SLAVE_BUSWIDTH_UNDEFINED, maxburst == 0 2. range checking 3. conversion of raw to register values As the range checks depend on the specific SoC, move these out of the conversion to distinct operations. Signed-off-by: Stefan Br?ns <redacted>
Acked-by: Maxime Ripard <redacted> Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170918/d7528b0d/attachment-0001.sig>