i2c: tegra: use readl_poll_timeout after config_load reg programmed
authorShardar Shariff Md <smohammed@nvidia.com>
Wed, 31 Aug 2016 13:28:40 +0000 (18:58 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 8 Sep 2016 20:32:46 +0000 (22:32 +0200)
commit685143a1598b36227250f6c0a90ec234218f58ff
tree2e1a6dd0ff908afe3b773e0fa542947a6d67a230
parent17f80487f653dfcc6cc3a8b64891442dc4182f62
i2c: tegra: use readl_poll_timeout after config_load reg programmed

After CONFIG_LOAD register is programmed instead of explicitly waiting
for timeout, use readl_poll_timeout() to check for register value to get
updated or wait till timeout.

Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-tegra.c