Skip to contentSkip to conversation

rtserial bug 16550 + imx

Xenomai Johann Obermayr 2 participants 2 messages Oct 6, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Johann Obermayr

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.

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_status and

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.