diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2017-03-06 01:35:57 +0200 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-03-10 15:34:04 +0530 |
commit | 181e0ef092a4952aa523c5b9cb21394cf43bcd46 (patch) | |
tree | 3ea777db22007f9d5e6f368fec59714ad0c2aaff /tools | |
parent | b0e583e5b6b90eed40456c394410c154a5160814 (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 <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170305233557.11945-1-laurent.pinchart+renesas@ideasonboard.com
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions