i2c: tegra: enable/disable clock unconditionally during xfer
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 17 Jul 2012 14:28:16 +0000 (19:28 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 19 Jul 2012 22:38:52 +0000 (15:38 -0700)
commit31d11e3ffeed7f7573bac147913941e815c20636
treeb4724c4778a1955df878e0772b7f3a418591f144
parent300f256fc517fe77fa85aaf2345925c5b1ed4aad
i2c: tegra: enable/disable clock unconditionally during xfer

Do the clock control for enable/disable during each transfer
regardless of whether clock is always on or not.

If clock is always on then in probe the reference count of the
clock incremented and doing again enable will just increment
reference and disable will decrement the reference count
and so there is no harm on calling enable/disable always
during transfer.

Change-Id: Ibf67413fb84f826f04e890fe3dd2a20cd0469922
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116473
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>
drivers/i2c/busses/i2c-tegra.c