cp210x.c (568400b15a5145cb5d1479ece14e7b6d3a3cb554) cp210x.c (f191c63779a0debf2a7f85a5c8d0c09d35b50ddb)
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 * Copyright (C) 2010-2021 Johan Hovold (johan@kernel.org)
7 *
8 * Support to set flow control line levels using TIOCMGET and TIOCMSET

--- 1177 unchanged lines hidden (view full) ---

1186 if (I_IXON(tty))
1187 flow_repl |= CP210X_SERIAL_AUTO_TRANSMIT;
1188 else
1189 flow_repl &= ~CP210X_SERIAL_AUTO_TRANSMIT;
1190
1191 flow_ctl.ulXonLimit = cpu_to_le32(128);
1192 flow_ctl.ulXoffLimit = cpu_to_le32(128);
1193
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 * Copyright (C) 2010-2021 Johan Hovold (johan@kernel.org)
7 *
8 * Support to set flow control line levels using TIOCMGET and TIOCMSET

--- 1177 unchanged lines hidden (view full) ---

1186 if (I_IXON(tty))
1187 flow_repl |= CP210X_SERIAL_AUTO_TRANSMIT;
1188 else
1189 flow_repl &= ~CP210X_SERIAL_AUTO_TRANSMIT;
1190
1191 flow_ctl.ulXonLimit = cpu_to_le32(128);
1192 flow_ctl.ulXoffLimit = cpu_to_le32(128);
1193
1194 dev_dbg(&port->dev, "%s - ulControlHandshake=0x%08x, ulFlowReplace=0x%08x\n",
1195 __func__, ctl_hs, flow_repl);
1194 dev_dbg(&port->dev, "%s - ctrl = 0x%02x, flow = 0x%02x\n", __func__,
1195 ctl_hs, flow_repl);
1196
1197 flow_ctl.ulControlHandshake = cpu_to_le32(ctl_hs);
1198 flow_ctl.ulFlowReplace = cpu_to_le32(flow_repl);
1199
1200 cp210x_write_reg_block(port, CP210X_SET_FLOW, &flow_ctl,
1201 sizeof(flow_ctl));
1202out_unlock:
1203 mutex_unlock(&port_priv->mutex);

--- 714 unchanged lines hidden ---
1196
1197 flow_ctl.ulControlHandshake = cpu_to_le32(ctl_hs);
1198 flow_ctl.ulFlowReplace = cpu_to_le32(flow_repl);
1199
1200 cp210x_write_reg_block(port, CP210X_SET_FLOW, &flow_ctl,
1201 sizeof(flow_ctl));
1202out_unlock:
1203 mutex_unlock(&port_priv->mutex);

--- 714 unchanged lines hidden ---