Skip to content

Commit e03ce14

Browse files
dougnazarjnettlet
authored andcommitted
MXC-CEC: Return writable for poll when no link status.
If there is no link we need to allow writes otherwise libcec will block on select() in the SocketWrite() call. The write() will still fail with EAGAIN. Signed-off-by: Doug Nazar <[email protected]>
1 parent d61841f commit e03ce14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mxc/hdmi-cec/mxc_hdmi-cec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static unsigned int hdmi_cec_poll(struct file *file, poll_table *wait)
628628
poll_wait(file, &rx_queue, wait);
629629
poll_wait(file, &tx_queue, wait);
630630

631-
if (priv->link_status == 1 &&
631+
if (priv->link_status == 0 ||
632632
priv->tx_answer == CEC_TX_AVAIL)
633633
mask |= POLLOUT | POLLWRNORM;
634634

0 commit comments

Comments
 (0)