Message ID | 20250110054906.354296-2-markus.burri@mt.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2075.outbound.protection.outlook.com [40.107.22.75]) (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 10913746E; Fri, 10 Jan 2025 05:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736488204; cv=fail; b=ew678hvgIv2oH6cb2c/UltN+NRhgv4c/9ichapMNawpmZPxeITjOdHrxBYKC1gY+ROW7nwqr75I4IcQ2pcecR7Jymijn8DaIeMir3WCXGWl02/NCjPpJeyWVSe2cNazNRi8iCzu2oYNyIYauskXFQATl1fzYmcRQSNHeEh8rk6s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736488204; c=relaxed/simple; bh=EvVcj+QkhINjk7MlFePZzdr2iFo1oy3l9BTZXf2UzTY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=a+u1mn1pcV9p0GRx4ostTqCR7IUbiA7/jEJhzN0bP3lC1gZs4B4NDgE/ldy7apTg+6VowQFCONzWTzhPIAA4410Fm0tuXU1hDUwLPZ5rYUHwG0bD3Mi+GcJJCpuAmNOjVDdBSVnyM0S8WrtASnrMoT8Ly6f9AetA5cd9fGNQKZw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com; spf=pass smtp.mailfrom=mt.com; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b=Hks+GVd/; arc=fail smtp.client-ip=40.107.22.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mt.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b="Hks+GVd/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PG9UgcRgiPQrTOtSIzZJ/nLctHVEEzGlB7taLXVXumFiA9AhODFpEuO4EwM5M1G5r2qPU6dmDc2lvEp5T5UxXuFuyO7+UN6H1mD14+O6zYuCfCm9xlxH+6nzk3iFmNsaI33Xv63vXl4i/1epLSnBzq2V+z1T4891EVEd45iSXuSrr5YlPqU0zqehMFucksldU+x/7JsjRGZia9KFrQGKplicEoUt8JmuLVjAawFwzT0bu5xx2yWlQda235KvSiUAYqAye52RSrqaa8i38o5115jbToa8xzbOlbarjwENk6MZWxEDk6ScxF+8w5vWqjNrQzHv1Dj30glE8CFMVyqRWQ== 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=FZ4PuYrsoBHjd5rQT+OWLuFMampVZia+Zk4zk5q1tS4=; b=MaIIkOZFgEJ4rnAsoCZYW6Rz/Agv2ov5T68+I0ajzTW13owgLty+K+/limrJCmqwEdfVUPon/BJNfkApUCV+HP+9CJt1yDTAk+SpRWz0bRz/2kL3OmMB65zfbWdVVqmGZXFbw9zAZ2eRd3TqTepx7rKslqsVwM2/2++opQbxTKq7LkilgYfkJF7HHHEUbsPvZcFVts2ckNeyJmszUWWTvMjaK3OBEwLxJnhNFM9QfV1ZzB4mv+h/V0hYSxs2s80kQhUGFOp+v5Ie3gOpPRuyzmlfNFI+1S6re0M6u0zeuwjyj6RXsR2S3ldBUqxrJdFvMwOa6NuRN+/Qce9Qi+t3Zg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mt.com; dmarc=pass action=none header.from=mt.com; dkim=pass header.d=mt.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mt.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FZ4PuYrsoBHjd5rQT+OWLuFMampVZia+Zk4zk5q1tS4=; b=Hks+GVd/bFB6BPqVIIwVwAMRj7WpGWqbeSQK8AUEYTITzVhVRCfRQcXyIAUeQEI5vn3wjBk+E+dfh6NlFUl6y7FBGuMk8EASXnBuSzpZQzmqr/aH8Kz6wVIcSKQy5V1L1pSjnmZuyiabExRp16/03KchvW5AkFGsd7IwGPk7fDZBniJSFrzmOuaFaUt6MqcYGDfroXvXVu5xAxTL+43Ib/nBHx4s5Hwil7jCUMPqMMwKVAZSMSYOoXQQw5ovIuedEaWSltAtRsGzKbC8ive4IFTs00wZnnOY1AytlLbQttuI2Y7bap9RR0dHnjorhg5TWJGpy7FyXeuKJhwinFBzwQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mt.com; Received: from DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) by AM7PR03MB6435.eurprd03.prod.outlook.com (2603:10a6:20b:1bf::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.13; Fri, 10 Jan 2025 05:50:00 +0000 Received: from DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a]) by DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a%3]) with mapi id 15.20.8335.011; Fri, 10 Jan 2025 05:50:00 +0000 From: Markus Burri <markus.burri@mt.com> To: linux-kernel@vger.kernel.org Cc: Markus Burri <markus.burri@mt.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Marek Vasut <marek.vasut@gmail.com>, linux-input@vger.kernel.org, devicetree@vger.kernel.org, Manuel Traut <manuel.traut@mt.com> Subject: [PATCH v5 1/7] Input: matrix_keypad - use fsleep for variable delay duration Date: Fri, 10 Jan 2025 06:49:00 +0100 Message-Id: <20250110054906.354296-2-markus.burri@mt.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250110054906.354296-1-markus.burri@mt.com> References: <20250110054906.354296-1-markus.burri@mt.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0192.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::16) To DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: <linux-input.vger.kernel.org> List-Subscribe: <mailto:linux-input+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-input+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR03MB5399:EE_|AM7PR03MB6435:EE_ X-MS-Office365-Filtering-Correlation-Id: a5d4a1bb-6920-4005-b0ee-08dd313a9f3d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|1800799024|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: qIMIxrkqgoXUieSncvQ2YMn+2iRTFp8kYD57qf+gBl7A2EVEMKabqg06D53LF3oHbrRd9Ejn2hAGYBoPdC/xgxpYIrvJkilZ2yRHroIAT7XppRYzLEjpR+LNyMi4v3qxS6kfRcKTsKe6bHgQ4H56kXDk2W5JxabHml2FIU+wkP7/QNYSnwzUIZVDnA57GHJTOwvoOFq1EE9hH7DF3DTwOQVboxP27woIsLgv8m63rl9WnVx5PKOycPTiRbyu7CnWJTEGrZjWlx8dL3F2w3rW0gAyKlg/2pTPi20VCGohPW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MA2QJuWmPiesADLoKfdoAUkxbrhvQ6pJ36AsXmnJ3kR88GkHRL90Y0CFc6mNCv648z8req/vJULPZNhSA9vbCLF4k3xbMmqRme X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBBPR03MB5399.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(1800799024)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KJBRyDg1AuXoxnSS7KXwFuFFsGH6oMYJ+nR6tViXmazKQ/gBvPyjZ2ug0ORyVYS0JZwj3ajx+vanLezv0mnAGae4ZLEqph409/NpTUKaRxc5zEZBzdAn0dtrS7XMxjY1wLEM/Tngy/dkuYrxP0/M6yuRKFfKFoqiyVj04s0bO/qDWp1lsm4JpCpR4o5f22/GfQ3e+6UXGVuHq782D/LrcbleGZKm1YVLTSodfPwYj/3aiWpB9hel7MoxLfpnpzZ45vGhuCL8WmuPXCHWoUb+1K+QIpAnb/VPTzT/CnQyfpTHXVlSLC24W+Jnk8HJ6jh35akCNVFuwFT+DTTrH95U16WV3cGVK0tzxVrxp44rG+HT9H+kUN0kiu+2kitjORRQizmt2HLs0RyKeJz0ZMeTGxeASUDRs0TYVUU/IVb6x/sN6bAtGxmw1EXXrak08gyq7bFqFR1XK1ec/4jYEeymQlc164Z1p5+vmzI+Mx6CAn3ckqhEzNdvVyHbmEos0GMj7Ea8Y3d0qRNFPXUNzP7tgEIHBNhdhemG9tnKIlTyW4uKDo/muCmapTcb6nrZ4hsuusWVwE+/iqQlaiZeIzQTPmLyfdMXjoaYu2XochQMbBWBw1qitFOjUkgEd1urDxmILodKOCuD/nhWwqxqm2oQMpeUA97iaWh9F3XC/vJupRBuCGFJnTqMg47N6ATG/phu2ARwIOueoSFHviuduAFM59YPEJUGzkSzn1JCAOAL1wxYxjuXNsOjhn8Wjg/vwV3ZOl6RHECT0tT+OJy+MdfSp6F9FpvpEWhN9W8RTzQmGCxpevHlQomEq4Ts0Ic0X+Gf6ISKRICqmZlO5HOVDwS8/R6cL3FVOIYsv+07TEdW/BOF6OzJjcrk0Vq+50f6ef9nwUtyd27BYfIeXabLkPI3KBKHejMm1DlmkwHcqy9pgJ+FzWLYn1W1/dZ3UomvMumLw0vvH9uVyDw0T++JmcoiNFlt+4y4v/ftun7OXMRe5gvN9TlKR2hXu92o+h4/VXuyQsc0RlsCtLlxX5jvEizvjfiTulKvEm/AhBsM3LzgbIiXf3j5XUNsaaUbzbqsgGsJ87ExS2yGnIf4SbU5ogbofzslGnk4WrI6iJD5hwp/cHguKy7/SUrjDxfFOTUAwtiLC7PhsTL5Iw1GPXfTsxZSHL4/pDYhxLMwBAua0efMe5uuyYYzub0cu2HOsaBztBHI/+ouGBxrIw4oJFLnk2oC0Y/LabmjtW2UKQ2sf+FDvpoN9rhHEYM7NZ7zXwf2WzY5jMKxF606DwMbpBELYCyXCRbxecxkAL8YnEIKLrubiBGaONJnDx9JpS8FCKuS8HTUAeo9yoV2BsKliT7YPF53xv8fb5h3ZtOi6Ucsk0eFM1lvLSb6DN/myIUq+WpL8jIMSh9xgmxzwZGO6m56E0bXD+c1KkMmT4kS5rydOup5S6LLsOfOihN3PEF4wnzg9ND5HBQd9VXx+AMHQYt4b1pitY+gWSY8Saj/hFLSQhhNf1Rq73t4V5YDbuipqD25e7zmLMSRR2pfd5mSDMsW5Uprat7tWhPOBVfbV5GouXk7iCwoh7vhcXkm5rol3QRUsG6u X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5d4a1bb-6920-4005-b0ee-08dd313a9f3d X-MS-Exchange-CrossTenant-AuthSource: DBBPR03MB5399.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 05:50:00.6774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fb4c0aee-6cd2-482f-a1a5-717e7c02496b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: P42a+k2759flheZIng7zjaZVp5lm7BZt0Cx6OnxishRQOPxW6cNIz/s3pih2KzJdCYSowNMkQqhptMkkT2JNIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR03MB6435 |
Series |
Input: matrix-keypad: Various performance improvements
|
expand
|
diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c index 2a3b3bf..5571d2e 100644 --- a/drivers/input/keyboard/matrix_keypad.c +++ b/drivers/input/keyboard/matrix_keypad.c @@ -68,7 +68,7 @@ static void activate_col(struct matrix_keypad *keypad, int col, bool on) __activate_col(keypad, col, on); if (on && keypad->col_scan_delay_us) - udelay(keypad->col_scan_delay_us); + fsleep(keypad->col_scan_delay_us); } static void activate_all_cols(struct matrix_keypad *keypad, bool on)
The delay is retrieved from a device-tree property, so the duration is variable. fsleep guesses the best delay function based on duration. see Documentation/timers/delay_sleep_functions.rst Signed-off-by: Markus Burri <markus.burri@mt.com> --- drivers/input/keyboard/matrix_keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)