From: Mika Westerberg Date: Wed, 10 Apr 2013 00:36:40 +0000 (+0000) Subject: i2c-designware: enable/disable the controller properly X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~62^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca4ed8715a6677ce2cdd7aa471685e653b5114d;p=pandora-kernel.git i2c-designware: enable/disable the controller properly The correct way to disable or enable the controller is to wait until the DW_IC_ENABLE_STATUS register bit matches the bit we program into DW_IC_ENABLE register. This procedure is described in the DesignWare I2C databook. By doing this we can be sure that the controller is in correct state once the function returns. Signed-off-by: Mika Westerberg Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed