Re: [PATCH v7 2/2] tty: add rpmsg driver

From: Jiri Slaby
Date: Wed Mar 25 2020 - 04:10:38 EST


Hi,

On 24. 03. 20, 18:44, Randy Dunlap wrote:
>> + could be lost.
>> +- It can pause/resume reception by sending a control message (rely on CTS state).
>> +
>> +Control message structure:
>> +struct rpmsg_tty_ctrl {
>> + u8 cts; /* remote reception status */
>> + u16 d_ept_addr; /* data endpoint address */
>> +};
>
> Is that struct packed or padded?

As it seems, this documentation is in contradiction with code, anyway:

+struct rpmsg_tty_ctrl {
+ u16 d_ept_addr; /* data endpoint address */
+ u8 cts; /* remote reception status */
+} __packed;

thanks,
--
js
suse labs