rtserial bug 16550 + imx
Hello,
is this correct, that the ioctl RTSER_RTIOC_GET_STATUS does not return the correct rtser_status.
Because rxbuf_status and txbuf_status was not filled into rtser_status structure.
i've add
status_buf.rxbuf_status = ctx->in_npend;
status_buf.txbuf_status = ctx->out_npend;and also in the else block.
is this correct ?
Thanks
Best regards
Johann
Quoted 6 lines · Johann Obermayr
Hello,
is this correct, that the ioctl
RTSER_RTIOC_GET_STATUSdoes not return the correctrtser_status.
Becauserxbuf_statusandtxbuf_statuswas not filled intortser_statusstructure.
Quoted 8 lines
i've add
status_buf.rxbuf_status = ctx->in_npend; status_buf.txbuf_status = ctx->out_npend;and also in the else block.
is this correct ?
From what I can see this ioctl only returns the
line_statusand
modem_status data for the three implemented drivers. Besides, you would probably want to read ctx->in_npend and ctx->out_npend under the spinlock, as everywhere they are used, it is with this spinlock.
--
Gilles.