Files
i2som-imx-linux/drivers
Laxman Dewangan e52ca26060 i2c: tegra: check the clk_prepare_enable() return value
commit 132c803f7b upstream.

NVIDIA's Tegra SoC allows read/write of controller register only
if controller clock is enabled. System hangs if read/write happens
to registers without enabling clock.

clk_prepare_enable() can be fail due to unknown reason and hence
adding check for return value of this function. If this function
success then only access register otherwise return to caller with
error.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
[bwh: Backported to 3.2:
 - Adjust context
 - Keep calling clk_enable() directly]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2013-03-27 02:41:23 +00:00
..
2013-02-20 03:15:35 +00:00
2013-01-03 03:33:33 +00:00
2013-03-20 15:03:29 +00:00
2013-03-27 02:41:19 +00:00