Thread (11 messages) 11 messages, 3 authors, 2012-06-23

Re: [PATCH] OMAPDSS: HDMI: Discard phy_tx_enabled member

From: Tomi Valkeinen <hidden>
Date: 2012-06-18 13:11:11
Also in: linux-fbdev

On Mon, 2012-06-18 at 18:37 +0530, Jassi Brar wrote:
On 18 June 2012 17:54, Tomi Valkeinen [off-list ref] wrote:
quoted
On Mon, 2012-06-18 at 17:16 +0530, Jassi Brar wrote:
quoted
quoted
So preferably I would move request_threaded_irq() to after
hdmi_check_hpd_state() in ti_hdmi_4xxx_phy_enable()  and convert the
No, you can't move the check. If you move it, the HPD state could change
between the check and the request_irq, and we'd miss it.
Wouldn't we then get an irq, and hence another hdmi_check_hpd_state(), for that?
No, if we haven't requested the irq yet. So what could happen:

- initially the cable is unplugged
- ti_hdmi_4xxx_phy_enable() calls hdmi_check_hpd_state(), nothing is
done as cable is unplugged
- cable plugged in
- ti_hdmi_4xxx_phy_enable() calls request_irq. No irq raised, as the
cable's state doesn't change.

We wouldn't know that cable is actually plugged in at that point.

 Tomi

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help