OSDN Git Service

dmaengine: hsu: Support dmaengine_terminate_sync()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Jul 2018 11:49:08 +0000 (14:49 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 10 Jul 2018 15:40:44 +0000 (21:10 +0530)
commit2abc66cd499aa16876e45c6438788902f7d1ce22
tree6872a8714317318e59a88628cb5bd2ace2ce1c41
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
dmaengine: hsu: Support dmaengine_terminate_sync()

It appears that the driver misses the support of dmaengine_terminate_sync().
Since many of callers expects this behaviour implement the new
device_synchronize() callback to allow proper synchronization when stopping
a channel.

Fixes: b36f09c3c441 ("dmaengine: Add transfer termination synchronization support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/hsu/hsu.c