Message ID | 20241031063004.69956-3-markus.burri@mt.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012053.outbound.protection.outlook.com [52.101.66.53]) (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 8BB7B13D899; Thu, 31 Oct 2024 06:30:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730356246; cv=fail; b=ZKsMHJFwGsjBv216DMnMaFlwOB+Gp22q4WL7RcG759+efcKytupkscDnOhtJyr4IYdUVFJSF2a7THGcgJUh0oVG9CKIxcXf9qVd4Fz+/VANmBm1g2f4/yMlZHIw/HFXQhDrfPAgW+gVlr2F/Qr3XPXBqRBWpTRv2PxQmy/HJK1M= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730356246; c=relaxed/simple; bh=y1MYnZ8vRwLXpf1FgeyiXnH/v+nZAQNao5ioxg1AoLc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=fLq3zM//4YHIF4llXLhodi9cc5sO2Eqizk5iWfmgn051iiqqPl5oXIceSWqGZV79ut5+hgyoYBNNU4Mgg2re3v5KuUIAcxgL9B7Z8VdD6xEGARZm1BiAenr8dTXi+g7zh0D5Wh1JkoKtWj6cz9GJTBpvLemoQqfmxkv+/CeF35U= 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=kG27Ymze; arc=fail smtp.client-ip=52.101.66.53 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="kG27Ymze" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=twQF5qjnymRbdtCXnjswM+AU3AL0DwBbWnlc9vk3mJfpP/06HDy41urjdTKljJl4hhEHNGTqTyeWY0OOQCjAsBTDBWHhPnwhK5ANBuHCBJz6/ZayTXcWGe7lz5jxeif5z+VOMbRBOCRTuTy6BCJC5+dCmiF+aVc55ktLvEVlgC8kg/szG2E3bUJvnBWltplBN5IxlbC7EVMxeaHUS61nXjBmC9NVXhwg9bphiMe1yDnGvNCv2bcF3KCmXO42qxGFh1jtHuuW3oV71XfH0TL6aiUL5GFytY+Swn8HwCG42iPbU+sPx3/VLazHQhD8lKAKSBvRLZPs3JOkSRnRNp3SdQ== 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=eYVicDZ7a8ijNc4JdHRVIRf7abz+NCb0Ez3C/vfMo3s=; b=XgZRBlXV2sdCohErl9p9BG0ze5ngfNy+XMbrF078a6LZvA6OZfWgP7ygG5EP/KxLqnSSjTbNPtkRkHuS3AJnq0AZA3mdwIRGOiUjMhY8ZBy9GziMQ/uk2njuIkrODqwASd5IBLX4FH4ZzWfuLvUrK36hEJ5i7iEMbqjs4LCge1pR+Y/5iuGT5kSWWyUvJoLspLTwxuAj9gUE5JJV0u78JSjFw3hOnkXa8XtssC3KmYT3Fug0RFo7RXlr+CHMr6NdVGxM1hOxsgDAIrSyv7QALIrpDiMA6JIWBQbft3qchUU84ETbbuBggpizFqtjOmif+eDDfVqquH+pcwytkf9sjg== 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=eYVicDZ7a8ijNc4JdHRVIRf7abz+NCb0Ez3C/vfMo3s=; b=kG27YmzeFX+uT3hMg2aQJRZu0sVwMcx3jzaXCOrZP1msqF4qc3H6B2SlmzUfr67Dbh8JcRehQbZ2WXnZuKFM3S+DzbNKoC7zJyLDxZkMedMY/0qF9rri/03OBXKqN1YqqRSf00jdd2299l8oA7sbyADzXWoAlW0B5XHaE+KajXu61WuL6Fqn+Ht5Xf+2NjGu+pXdSz3wFsiY+KhQ2CV2zw7jPp12GsSX2m4LWjOvrm2DxPPMdnNp4apLzsHV3vQ6spzrNfHulBNbFmqM2RED9u1mKjuUuwJVhu289v6avHfzJRaAKZvuv3op2e3pLxEbgrRFR+jlvlP3nsLW1H43hg== 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 PAVPR03MB9797.eurprd03.prod.outlook.com (2603:10a6:102:311::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.18; Thu, 31 Oct 2024 06:30:41 +0000 Received: from DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a]) by DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a%4]) with mapi id 15.20.8093.014; Thu, 31 Oct 2024 06:30:41 +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>, linux-input@vger.kernel.org, devicetree@vger.kernel.org, Manuel Traut <manuel.traut@mt.com>, HeDong Zhao <hedong.zhao@mt.com> Subject: [PATCH 2/6] Input: matrix_keypad - use fsleep for variable delay duration Date: Thu, 31 Oct 2024 07:30:00 +0100 Message-Id: <20241031063004.69956-3-markus.burri@mt.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241031063004.69956-1-markus.burri@mt.com> References: <20241031063004.69956-1-markus.burri@mt.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0125.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:20::22) 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_|PAVPR03MB9797:EE_ X-MS-Office365-Filtering-Correlation-Id: 84be9a38-8be3-4aa4-a6ee-08dcf9758ac0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: bvyDUSqm7vc+u5wu59wdjoUoO3NG2jIifDuxuWBpNwBbCQlB8cJXgwdj7bvgFfiPKv1jGqBlszs8HZ5CaDEOm7lkNk0NNKCs9usHzmCFa8xvHFSEfRBmMpAbe+Z38jgwvXOVva2FHlBFGSVpuNZpLitI3a8lB0lSi1G9WfAFbjwo2vZNdsBi2KhVjnT80754kv4mlrtQk48H+pNqfqC5loFmn089Mxt/KXzjT8bLVsGxIcxquUQVdmqNzCXa+WHeUTk+zE/fNv0p0+xDz9H9d+WWV6GF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yuh2VVqvHOm8zWAtfSMdrTbl8yNBLU1Olpz/ 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)(1800799024)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FwpJiapOXDMStrk8CLnPIInossNHJraRixCQGQ3M+fMoOxib2jIFb/IoS0T11CRExr1yVpOEoDX52lzr/whuYltrxM0Wbk7j/iM+Xb0nyMRW0lm5k4cSFQfqmTe3BZplAWnAA6cGjFM+Kp9RQZarCfdsD+Blvl3ZjU8+H3NaXusv2v/i+axcm7vBTOiX9wRCamGvp5Z+H6eK7eJX4mVZhFtX998YsH6DYmwSNEZwozjLX+fH7a2xDIFRV/k+Ykh0ThgvdGMG42h5LTXh2+O9ByURtIP+nqaEfLMPc29Y/DiDMWlzwySK8Kzdn9aI6Z70W+nn558ITUW3Ka4MqCfFH/CvTv4LP+d0ng6ZVtkTHueRkux5F5k1Z+RrxpTKwExkjK/KcAGyZmGDy3jnInbxetqheeOrm2OIN+/ql923Bq0WTR4Q6q+8WY8nH3Ng5Luft4FV1vHsINtQz/OwEVOw5vh3cx4jOYFyRMnNSFPiENrZ50rV49f0GOpjkH4p7VE0KgApvK5Nw32QaO2mN8xqSKMFY9esVpHhY308+2DuesIhZ0sXdWp2pxFktxPogQFuUp66xKidFX4wJJl4oflcbFOdKr6lJ52FC2mkpB02KDT6B4LbBkcv3ST6JaNumkQlLRFp1t1DXQmD/gXMlIwG9ZEJak+iWBZJNCXqrtU2FldmO3HlQhr6fBBnf45Mb9dR41cW4A6WRrVQBuc7absXgKtDEJZVjeq7orV7z2QWJlkHt5BRPnEa8PZq3p2W1Jy6b4/TMDCY0s03HOy4xQw8B5+UYb2ayylpDYlZg+kkY3kGEAmqJIxtKVWGFeoLNzkNVB4T3kFAFpcs1i/JCx3Tmts27YPURUOXQtb35zu8F5NRXisT1Inxs+cGhJ8a9uChWXDcodJvGC+lyzkOx10OQALasEUjCscA/PrrjmNDXo3a0wZcG3WSOFnf5zdcdcwBppXj1mkF9tbHOz36Dwdw0aXpwTD4ZSpFafP5f2OFaEr/z6/DnnDthAtekgt7cYKyGsbTjoum2YuH5WK8zuoyezR13g8kCmWuorH1vLKzB02dHigwOFVuDobDDBHQPJLkcBLI+EOrkRBsGOc0askLM96+U1iGC9g9NVqMA6q/xc8u5QWP1NS6ukAoWuDmBioErwyicndWM0G5NFG2EUudPHZx2+HwMi9WICR7l7+fwVQN5LPGVAC4KDm8/Bpn/fDiMme0FMBWW86ExOgUTYwDZ99iHBw/WOrraTdSq6vHq+NqnU1FN+omfx9iY6voNkxaLOizHItAXzZFujcUSiNeY+FxczpB1hN97awbSlJ7YZAFdqGpR3rsrlNYKy5PuRT6eAPg7vHrjCrGZ9jxk7KHo/lvRVk+Omc6iBN5I0DbrvABl2eq8BtNzohevUAd0JD9i+WJaCCYJmxPc5H1Xmcz8geu0lQ9XKP5MLLyO8qgmwLafzsAYzFXx+wabiXLORClf0yGrp/mGvg18Miex/y5dOpXzaXH1ccoGAqcDiom7VIxGr40Wgb5cvTj0B3tfoCl86erEDybOzaqorYq+5bvhen6623BlW0z0QqgmjlJ4vZXqURtqkSjsU9JFZo2uOyC X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84be9a38-8be3-4aa4-a6ee-08dcf9758ac0 X-MS-Exchange-CrossTenant-AuthSource: DBBPR03MB5399.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2024 06:30:41.4986 (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: Mo+8n2WPMdwimPh0ivFywD9Loqi59D5RKqCec3J9GQNBJGkl+QEgE0CxkUeMHZy6pAp/SYT1cJwGASH+3ThR2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR03MB9797 |
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 a2ec9f6..e08d7d5 100644 --- a/drivers/input/keyboard/matrix_keypad.c +++ b/drivers/input/keyboard/matrix_keypad.c @@ -69,7 +69,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)