i2c: mediatek: Reset DMA engine in hardware init function
authorEddie Huang <eddie.huang@mediatek.com>
Thu, 6 Aug 2015 07:22:10 +0000 (15:22 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 11 Aug 2015 14:53:11 +0000 (16:53 +0200)
commitea89ef1f7bf7c71b4f533a6ffb3f6f124890b37b
tree2ed339ad06320608a89ee8f2e58fa29b51d05fd9
parent66621f96c95175cc64d91dd213781bf65bbf8ec4
i2c: mediatek: Reset DMA engine in hardware init function

Reset DMA in hardware init function to avoid unknown hardware state
before do any I2C operation.

Signed-off-by: Liguo Zhang <liguo.zhang@mediatek.com>
Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c