Skip to content

Commit

Permalink
Merge pull request #1 from dougnazar/cec-rework
Browse files Browse the repository at this point in the history
MXC-CEC: Return writable for poll when no link status.
  • Loading branch information
warped-rudi committed Jul 29, 2017
2 parents 9dd0a28 + 5fc0429 commit af1b0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mxc/hdmi-cec/mxc_hdmi-cec.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ static unsigned int hdmi_cec_poll(struct file *file, poll_table *wait)
poll_wait(file, &rx_queue, wait);
poll_wait(file, &tx_queue, wait);

if (priv->link_status == 1 &&
if (priv->link_status == 0 ||
priv->tx_answer == CEC_TX_AVAIL)
mask |= POLLOUT | POLLWRNORM;

Expand Down

0 comments on commit af1b0f1

Please sign in to comment.