aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2017-03-06 01:35:57 +0200
committerArchit Taneja <[email protected]>2017-03-10 15:34:04 +0530
commit181e0ef092a4952aa523c5b9cb21394cf43bcd46 (patch)
tree3ea777db22007f9d5e6f368fec59714ad0c2aaff /scripts/gcc-plugins/cyc_complexity_plugin.c
parentb0e583e5b6b90eed40456c394410c154a5160814 (diff)
drm: bridge: dw-hdmi: Fix the PHY power up sequence
When powering the PHY up we need to wait for the PLL to lock. This is done by polling the TX_PHY_LOCK bit in the HDMI_PHY_STAT0 register (interrupt-based wait could be implemented as well but is likely overkill). The bit is asserted when the PLL locks, but the current code incorrectly waits for the bit to be deasserted. Fix it, and while at it, replace the udelay() with a sleep as the code never runs in non-sleepable context. To be consistent with the power down implementation move the poll loop to the power off function. Signed-off-by: Laurent Pinchart <[email protected]> Tested-by: Neil Armstrong <[email protected]> Reviewed-by: Jose Abreu <[email protected]> Signed-off-by: Archit Taneja <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions