cp210x.c (7748feffcd80f3ee25dae5e6acd3cf90e8e838d8) | cp210x.c (f61309d9c96a308465bec9d2e5206da265b075a0) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver 4 * 5 * Copyright (C) 2005 Craig Shelley (craig@microtron.org.uk) 6 * 7 * Support to set flow control line levels using TIOCMGET and TIOCMSET 8 * thanks to Karl Hiramoto karl@hiramoto.org. RTSCTS hardware flow --- 1167 unchanged lines hidden (view full) --- 1176 else 1177 flow_repl &= ~CP210X_SERIAL_AUTO_RECEIVE; 1178 1179 if (I_IXON(tty)) 1180 flow_repl |= CP210X_SERIAL_AUTO_TRANSMIT; 1181 else 1182 flow_repl &= ~CP210X_SERIAL_AUTO_TRANSMIT; 1183 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver 4 * 5 * Copyright (C) 2005 Craig Shelley (craig@microtron.org.uk) 6 * 7 * Support to set flow control line levels using TIOCMGET and TIOCMSET 8 * thanks to Karl Hiramoto karl@hiramoto.org. RTSCTS hardware flow --- 1167 unchanged lines hidden (view full) --- 1176 else 1177 flow_repl &= ~CP210X_SERIAL_AUTO_RECEIVE; 1178 1179 if (I_IXON(tty)) 1180 flow_repl |= CP210X_SERIAL_AUTO_TRANSMIT; 1181 else 1182 flow_repl &= ~CP210X_SERIAL_AUTO_TRANSMIT; 1183 |
1184 flow_ctl.ulXonLimit = cpu_to_le32(128); 1185 flow_ctl.ulXoffLimit = cpu_to_le32(128); 1186 |
|
1184 dev_dbg(&port->dev, "%s - ulControlHandshake=0x%08x, ulFlowReplace=0x%08x\n", 1185 __func__, ctl_hs, flow_repl); 1186 1187 flow_ctl.ulControlHandshake = cpu_to_le32(ctl_hs); 1188 flow_ctl.ulFlowReplace = cpu_to_le32(flow_repl); 1189 1190 cp210x_write_reg_block(port, CP210X_SET_FLOW, &flow_ctl, 1191 sizeof(flow_ctl)); --- 694 unchanged lines hidden --- | 1187 dev_dbg(&port->dev, "%s - ulControlHandshake=0x%08x, ulFlowReplace=0x%08x\n", 1188 __func__, ctl_hs, flow_repl); 1189 1190 flow_ctl.ulControlHandshake = cpu_to_le32(ctl_hs); 1191 flow_ctl.ulFlowReplace = cpu_to_le32(flow_repl); 1192 1193 cp210x_write_reg_block(port, CP210X_SET_FLOW, &flow_ctl, 1194 sizeof(flow_ctl)); --- 694 unchanged lines hidden --- |