} else {
format_size = UART_FORMAT_SIZE_8;
}
- acm->trans9 = (format_size == UART_FORMAT_SIZE_9);
if (cflag & PARENB) {
if (cflag & PARODD) {
vizzini_set_reg(acm, block, UART_FLOW, flow);
vizzini_set_reg(acm, block, UART_GPIO_MODE, gpio_mode);
- if (acm->trans9) {
- /* Turn on wide mode if we're 9-bit transparent. */
- vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 1);
- } else if (!acm->preciseflags) {
- /* Turn off wide mode unless we have precise flags. */
- vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 0);
- }
+ vizzini_set_reg(acm, EPLOCALS_REG_BLOCK,
+ (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE,
+ format_size == UART_FORMAT_SIZE_9);
rate = cpu_to_le32(tty_get_baud_rate(tty));
if(rate)
unsigned long quirks;
int block;
- int preciseflags; /* USB: wide mode, TTY: flags per character */
- int trans9; /* USB: wide mode, serial 9N1 */
};