From patchwork Sun Sep 1 21:11:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13786607 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2041.outbound.protection.outlook.com [40.107.21.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C648520DF4; Sun, 1 Sep 2024 21:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725225097; cv=fail; b=ooz1i7LG/TMebZskKUzWxZ5Fu2Ru3cY1I43xxf4cRnEI+IcU7sUCTws+UEdHmEwBsxzrX97EZ1HV7Wxv3FcTur1cnv3ydIHBCxdowUpkGJrAOGXnvx63h7FUCFHZ3YuxjXcToJP2sXk2y8VVx2pTs1Ah2s2tkPEnWgxnU6TiaZo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725225097; c=relaxed/simple; bh=ybIVUPe4m0TuctROc6eYqHxppmK+zIgTfaa8to/c0DU=; h=Message-ID:Date:From:Subject:To:Content-Type:MIME-Version; b=kn4PXRZQ8pT+0lApM2vDbS7SQdsMJb5gD2QfOB9oKozLpY1O8gqjTB4W0hE+SGehX1RBoUevyXswT60cnjo5FZrDjQPUAo2qJ1TJeinfxCUAxgsl67oPvEihEskR6r0/jXUXAkrTwF9aovPcEg0h0YtGmvxtpPFNl77t5i48TJ4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=siemens.com; dkim=pass (2048-bit key) header.d=siemens.com header.i=@siemens.com header.b=jQ20NElP; arc=fail smtp.client-ip=40.107.21.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siemens.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=siemens.com header.i=@siemens.com header.b="jQ20NElP" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dv338exeoNu1qBFND0ADWiU3CxYm0hxZTKMe69w4bBm8LkHSFbN0MkFZgVIUAJ6oeQUQ0MWyR9Ya5CisKcFj7+YECbfmtrXB6TjFczKyhpsSs7284Pyh80NyVLiJUMHBJC1jzB/8wDR+nEeByKTIn+PaB1hBb2OQheKTj/wrTLSD7kS3w/RxrmduzN2xXtI2oHUpcjVwujEWGkI8wMa5S06QuOpQbfubjUq0FLhFyovR7Dg7vViKCJRoX1nYvRMvGpkBBmsNVXJ8J/c9vtajnETpb02wn9C3J91CJcjUK/2sxNeUVkTyICaNOdFBMJNEhb06k+MCebgHlIfrEHTecA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZD9O8r8QT9doUuxKWhunpIlZLLB/E+hRg9v9jqSk7kM=; b=exRHv32/eXeKg41Bz/wcJWnhg1S3U80J7XQWuaznR7iLHX6t9MbK9JIE94aqbpNtjYJlEPYeDloiDe2qAarc0FAw8sRO9uGifCzRaAU672PxzgpzJzLqEswziMGe1iMfF9N9hopZrp+f6lB1s6lHl6Tdo3fObCnZrJ58AikOZFzLtxwZaMq5ckpB3n129HcYAcsWZfZudS5xRfRIaFgfFnp0appK5yg4Z7RUZrPOK1MHuDzgjV8y2N063Ckj6FjDk1UawlvzkkKGK9ORgiglD6i+w+5J3FInTF/JnguLkJxG/vUceUGMte1S7dVDImbVi6o3W8Hjmnc9XiMtMjC+sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZD9O8r8QT9doUuxKWhunpIlZLLB/E+hRg9v9jqSk7kM=; b=jQ20NElPpJfIS3NAbotSiGACQSh20vbWTih3sFlZPJ3HUABfG3PPLlTqDQwsvd8FihVznJb2ozSIodGqKXJFCFwG8/Z6isztkWyQjbscis6Gq7xl6KHtjmhx99fL6UnjpoIp1uk6G/iaBIbh9w52yFNNFR8b/O+bZaJaZlUvaXpTLmnbB9JWbJ6bJkNTP4wd3Uu0D0CquztIjj/TI5P+48ry1p/kF+/kVN1LW+K5h7yjrTBe+ThhGvpATgiay6vAxlDdsxdd+rmwDf05pHlLKTDWlHGsoQn7/bm1eY99c6TYx+j5FRY9V9Cu3BDDviDFKreUrRVoMskQmqaJziTiow== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by DU0PR10MB7118.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:42d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Sun, 1 Sep 2024 21:11:31 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408%3]) with mapi id 15.20.7918.020; Sun, 1 Sep 2024 21:11:31 +0000 Message-ID: Date: Sun, 1 Sep 2024 23:11:29 +0200 User-Agent: Mozilla Thunderbird From: Jan Kiszka Subject: [PATCH] USB: serial: pl2303: account for deficits of clones Content-Language: en-US To: Johan Hovold , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Autocrypt: addr=jan.kiszka@siemens.com; keydata= xsFNBGZY+hkBEACkdtFD81AUVtTVX+UEiUFs7ZQPQsdFpzVmr6R3D059f+lzr4Mlg6KKAcNZ uNUqthIkgLGWzKugodvkcCK8Wbyw+1vxcl4Lw56WezLsOTfu7oi7Z0vp1XkrLcM0tofTbClW xMA964mgUlBT2m/J/ybZd945D0wU57k/smGzDAxkpJgHBrYE/iJWcu46jkGZaLjK4xcMoBWB I6hW9Njxx3Ek0fpLO3876bszc8KjcHOulKreK+ezyJ01Hvbx85s68XWN6N2ulLGtk7E/sXlb 79hylHy5QuU9mZdsRjjRGJb0H9Buzfuz0XrcwOTMJq7e7fbN0QakjivAXsmXim+s5dlKlZjr L3ILWte4ah7cGgqc06nFb5jOhnGnZwnKJlpuod3pc/BFaFGtVHvyoRgxJ9tmDZnjzMfu8YrA +MVv6muwbHnEAeh/f8e9O+oeouqTBzgcaWTq81IyS56/UD6U5GHet9Pz1MB15nnzVcyZXIoC roIhgCUkcl+5m2Z9G56bkiUcFq0IcACzjcRPWvwA09ZbRHXAK/ao/+vPAIMnU6OTx3ejsbHn oh6VpHD3tucIt+xA4/l3LlkZMt5FZjFdkZUuAVU6kBAwElNBCYcrrLYZBRkSGPGDGYZmXAW/ VkNUVTJkRg6MGIeqZmpeoaV2xaIGHBSTDX8+b0c0hT/Bgzjv8QARAQABzSNKYW4gS2lzemth IDxqYW4ua2lzemthQHNpZW1lbnMuY29tPsLBlAQTAQoAPhYhBABMZH11cs99cr20+2mdhQqf QXvYBQJmWPvXAhsDBQkFo5qABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEGmdhQqfQXvY zPAP/jGiVJ2VgPcRWt2P8FbByfrJJAPCsos+SZpncRi7tl9yTEpS+t57h7myEKPdB3L+kxzg K3dt1UhYp4F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:10a6:d10:1e::7) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|DU0PR10MB7118:EE_ X-MS-Office365-Filtering-Correlation-Id: d1840ae4-1b73-4e41-f7f9-08dccacaa6bf X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?C8Agkldp5gzBQ/J1OXeqNWfc6qKAEe/?= =?utf-8?q?4Fjv9z+uyzOURu4qKR/BE9wuIDMyq81K6zkmM04kOPa9LX3vjZn+fzn+RqvqfoIRh?= =?utf-8?q?T77vFDtnjv4TTVVO+yYQRySCeVoZzLCrN4+SslBvvbEn0Gyje97/J+wLSm2dYm8tD?= =?utf-8?q?Z68aCsIvAuo9XzZu9Zaof32qchC9gH9snv0/XuzJdMx0EDnVh1GZv03HILBdGF1lu?= =?utf-8?q?DT5XEejbQ8vwnoswY2Vg3HQVqu85jk5GkQ0RXlJIKCgAnI1kIt+Ajp0fgnS+P6HRT?= =?utf-8?q?pmwHi9MnUemZH+WjMKBnFPWRk9vxcEgYvlf6QpOLUDeLQAVQNWGmoNlXvxOwQTSVe?= =?utf-8?q?9LwuzzjQRTR0NDJiChb0UYVWWIULUK1Yot3flUXc43mUVWd8jIzlMwWFZM1j41saz?= =?utf-8?q?ckFbF9hF2nXNB1SlNfwx2xFkSWSFhdb7p0rJUOfFQ+ivKVt/T4d8g7VPhgslUMqRp?= =?utf-8?q?Km2uO7GfpVyzrsZ3UTHd6zNONgfO+zcHtnbeSCv7+rhNnJJj1K4hMMSu0JDARBUP8?= =?utf-8?q?7JqSJp4P6fCiuBbu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(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NwOCfkh1OZUtK/WgRXRrwkMXbIhH?= =?utf-8?q?ERqXnG10MnN7TWQMr1ioKYSJXbVClb18ovrLZ599PnMioSaAwjqobXTkvxGU3zyk2?= =?utf-8?q?hTVcZ2+Ng+ZAGcb0QkXZy6R0O0GIgQI18yQY/UlfKBt55zHpWonrQhLX9uVRJRhj8?= =?utf-8?q?RJrcOK+rS5/LKeIB8OBlZUsyI+f/TI370utACM6bxYTpcIuoXOQb7CcqdxYyD0zRF?= =?utf-8?q?tz6Q6KpLO16Zy9GXomBHIpmmZV02VNqAsW0By6wnF+g/5VWq8J3IHTdrphAY3yRGt?= =?utf-8?q?8usy7FG0JSsSKbUE3DRFQ+ojyM8Hp6k4Qlmd7dAwCZf1QF9wkAXE/TmFUHIN5s+c8?= =?utf-8?q?HChtkHYvjWlNe2okzniN3yllKlaI3311ylIt0wFhWcBYzpCxMcqO2Nu6iXpjS7swQ?= =?utf-8?q?gfNYCf2Ki5VzxU5OjPZf06yJ9Ply5tfM9XpbRjYnG61ZPOF+2QxNtZRfwJqVWm7jK?= =?utf-8?q?5KjGu9eR+8Xws+M1/YL6YOZwCaBXgUgzDikZBk/69gfaJ487SBcv6WchHo5SWe2N/?= =?utf-8?q?7FgtsPGqkRNzIimzBDKViDLGhLHY5MfDJLcwJbuhdzId4VwI5d+i4zjPp87hb59vL?= =?utf-8?q?4pz32ylo4xRyckzFwibnTrWAN+x9qGJcTxaWv6UgsV7MHubR8oJLkyN9kyKAfi6vf?= =?utf-8?q?YyeQydwGNgLEczGO9Kgm0Cf5RiEf8yrmQkcVPLORGXBcx3DgQG0TFNLnbnUGizqGk?= =?utf-8?q?ZQ+mHkg2KZYaExtL/5OLqJe8YUM4/eD4xvCaycEgIbIq08EXNLOw9ML/e3ahxLwSI?= =?utf-8?q?LaBfBVvv1FNKrccQ3ShTroAKNkC9400gGHOAKSVsMaenzxz54oPltufzyiGBQ4MRg?= =?utf-8?q?/1bg8D3RdUodC6ZSWWQsBL8PP8+a3Q8Ikmkid5+nwZuSoXm+1i0oA1Kp2q08GbimR?= =?utf-8?q?fZkDxgPaL3W5XhZwswuQsklZUYxt8v2khjB5Z9NRarpxTGSqiEMTqyg81sJznz6bt?= =?utf-8?q?UNpBZ64YsSSkYSGypZGxlamgbto/0p/5A8I3nb/RDA1dDl8FptakfzvHtEIfxM8km?= =?utf-8?q?7S6iYz0KlwjykSzcme0VFgBSeD11skzm6Vz7cVJZXVmYwctARHge35sYFiK4oN5r7?= =?utf-8?q?YXlqPo8thNowDz/RI04K/1KTWuKdQI5kTjIPbQw4c0BFGUNvRDnPIZ+uS409vrYIf?= =?utf-8?q?kiY7DxdTjPu5HY8WiidXgKxM4xd3sOA09y05EGMhzGq9Jc98jsFwNamSnDKE4js3i?= =?utf-8?q?NO0RK1NIkswLzQF1oXayBaFcsOM7NwtCFIpzCrBM6FwDFRrivCXyP8Rs8ErlxoiIA?= =?utf-8?q?W84zmEYf7xM5YmOpekI9na8aK5sxVWUVmhyiVNy4rZ8vOY7bw4nJ1QphuXxAr/e0z?= =?utf-8?q?OSh6QI9xFqX6Ji2zNndlXWRy1tazU9qxwMXK2modL9SfkSRqj82haTsZhr0Pql+9q?= =?utf-8?q?yIKqeP3QPaQ/a8XJtjhmxW43ot1AADS941I2m/SABq3zdc1UGzstDeZuMuYJwb3Bz?= =?utf-8?q?ZdwjjyYCJPmrmvUKGJ90rSm9WIJOFRWj0j2pv7Jc/h2qGzD3ZXmEQMd9Sixp1Ari2?= =?utf-8?q?zXS35mnt+d/H?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1840ae4-1b73-4e41-f7f9-08dccacaa6bf X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 21:11:31.0485 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: k/RhqE2KDGYxN19S+bx0FQd6OjSw/3oxotEVUsnUvsghrKkkFv9av0Te+uesquSOSd3Q4pJ3+JoAAyHfcaCohg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR10MB7118 From: Jan Kiszka There are apparently incomplete clones of the HXD type chip in use. Those return -EPIPE on GET_LINE_REQUEST and BREAK_REQUEST. Avoid flooding the kernel log with those errors. Rather use the line_settings cache for GET_LINE_REQUEST and signal missing support by returning -ENOTTY from pl2303_set_break. Signed-off-by: Jan Kiszka --- drivers/usb/serial/pl2303.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index d93f5d584557..04cafa819390 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c @@ -731,12 +731,13 @@ static int pl2303_get_line_request(struct usb_serial_port *port, GET_LINE_REQUEST, GET_LINE_REQUEST_TYPE, 0, 0, buf, 7, 100); if (ret != 7) { - dev_err(&port->dev, "%s - failed: %d\n", __func__, ret); + struct pl2303_private *priv = usb_get_serial_port_data(port); - if (ret >= 0) - ret = -EIO; + dev_dbg(&port->dev, "%s - failed, falling back on cache: %d\n", + __func__, ret); + memcpy(buf, priv->line_settings, 7); - return ret; + return 0; } dev_dbg(&port->dev, "%s - %7ph\n", __func__, buf); @@ -1078,8 +1079,8 @@ static int pl2303_set_break(struct usb_serial_port *port, bool enable) BREAK_REQUEST, BREAK_REQUEST_TYPE, state, 0, NULL, 0, 100); if (result) { - dev_err(&port->dev, "error sending break = %d\n", result); - return result; + dev_dbg(&port->dev, "error sending break = %d\n", result); + return -ENOTTY; } return 0;