OMAP: DSS2: DSI: fix dsi_dump_clocks()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 4 Apr 2011 07:02:53 +0000 (10:02 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 11 May 2011 11:10:54 +0000 (14:10 +0300)
commita9a6500b718a38d4658b8a61edd8fc3aa0418b50
tree68d106aa4fb167d25be15ef24dbedce17802cb0e
parentb2765092aed717ef9fd14bf5f82024359aff0576
OMAP: DSS2: DSI: fix dsi_dump_clocks()

On OMAP4, reading DSI_PLL_CONFIGURATION2 register requires the L3 clock
(CIO_CLK_ICG) to PLL. Currently dsi_dump_clocks() tries to read that
register without enabling the L3 clock, leading to crash if DSI is not
in use.

The status of the bit being read from DSI_PLL_CONFIGURATION2 is
available from dsi_clock_info->use_sys_clk, so we can avoid the whole
problem by just using that.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dsi.c