cp210x.c (c32dfec6c1c36bbbcd5d33e949d99aeb215877ec) cp210x.c (90ca6e7db83a06e9173bee5bb34ded3b37f4948d)
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

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

2135 sizeof(priv->partnum));
2136 if (ret < 0) {
2137 dev_warn(&serial->interface->dev,
2138 "querying part number failed\n");
2139 priv->partnum = CP210X_PARTNUM_UNKNOWN;
2140 return;
2141 }
2142
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

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

2135 sizeof(priv->partnum));
2136 if (ret < 0) {
2137 dev_warn(&serial->interface->dev,
2138 "querying part number failed\n");
2139 priv->partnum = CP210X_PARTNUM_UNKNOWN;
2140 return;
2141 }
2142
2143 dev_dbg(&serial->interface->dev, "partnum = 0x%02x\n", priv->partnum);
2144
2143 switch (priv->partnum) {
2144 case CP210X_PARTNUM_CP2102:
2145 cp2102_determine_quirks(serial);
2146 break;
2147 case CP210X_PARTNUM_CP2105:
2148 case CP210X_PARTNUM_CP2108:
2149 cp210x_get_fw_version(serial, CP210X_GET_FW_VER);
2150 break;

--- 55 unchanged lines hidden ---
2145 switch (priv->partnum) {
2146 case CP210X_PARTNUM_CP2102:
2147 cp2102_determine_quirks(serial);
2148 break;
2149 case CP210X_PARTNUM_CP2105:
2150 case CP210X_PARTNUM_CP2108:
2151 cp210x_get_fw_version(serial, CP210X_GET_FW_VER);
2152 break;

--- 55 unchanged lines hidden ---