Commit 598c367a authored by Jeff Webb's avatar Jeff Webb Committed by Jan Kiszka

drivers/serial: 16550A: fix tx timeout bug in rt_16550_write

This was likely a copy-and-paste error that resulted in
rx_timeout being used instead of tx_timeout in two places.
Signed-off-by: default avatarJeff Webb <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent a73102d5
......@@ -963,10 +963,10 @@ ssize_t rt_16550_write(struct rtdm_fd *fd, const void *buf, size_t nbyte)
ctx = rtdm_fd_to_private(fd);
rtdm_toseq_init(&timeout_seq, ctx->config.rx_timeout);
rtdm_toseq_init(&timeout_seq, ctx->config.tx_timeout);
/* Make write operation atomic. */
ret = rtdm_mutex_timedlock(&ctx->out_lock, ctx->config.rx_timeout,
ret = rtdm_mutex_timedlock(&ctx->out_lock, ctx->config.tx_timeout,
if (ret)
return ret;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment