Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp188954rdb; Mon, 22 Jan 2024 00:26:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxmV4IU/oOJfHKIhRlpFVxwMwwAT8PofKHYFjg1Xa2SIn5vfE7xl5hOOrl2nhDTDqBIllW X-Received: by 2002:a17:907:c911:b0:a2e:ce58:1971 with SMTP id ui17-20020a170907c91100b00a2ece581971mr1001494ejc.217.1705912006145; Mon, 22 Jan 2024 00:26:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705912006; cv=pass; d=google.com; s=arc-20160816; b=W1jdObcQLulmSofOaFvDYcM0cnk1qBaUDanH2bMkbnGvfzk8YsvZ6kZFSBoC5E8OXd ERWsU+8wv8d9KpH1MOiM8PJbatFC7ekwDYqYqic2pKwAEdoqEMWxBWNbVPrHXMnW2nHP xfY/Z3MFSPyHGTMnJjd/vwqdmfPyXEFSg274KBOzEHdjCoL+Onlp+kRZD40DqwLJ00sB yAvdRsByMaoNk3tosJVYAoYhXVlrNSdZXdBjCU00bvDfphF9Q0a3V56ut4cf+MMgYCn/ LnUWuBke+rLbzSVNs8vxYNNuefPsCOpBltNf3OM4JiYoluYu/DKQEpXRqq0+9f0VZAbV ZQIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=isDe77D2iQvn55U1/z57KKJud4YSPJiujYGyL9CMF28=; fh=QHbvairn3JAhxNCiLXS3TOus3WydnqwlWGyYZqon2uo=; b=zBhmz/fZLKbA0zKoGkgTEBncwD9bOfOLcsaNFGhUUIukk6ZonOhQxHMZKlYkZWiXpQ 6UNRLaCoVNQlO3Ip7k250ypVkf035lCY91q4zzPsQdiuLE0lIZr8Z7qEfcjrQxoyK33W TH8c5reQnxt9OM4a8CG5jkUUtEa2eLr0+Kp5bOZ4NwVXpnLFMlkdsq/nmGE9og/H5OMR ahFaixXLJf+XwN8E73V0eYcUPBjpF4ogGThkOGdPwNjGWWFDiPoiaMsucqBxnjoq9E1f fZbP8qulUvfUGDkyBYFRZTyKYz0AcCGeLkQYMwlwpPNP6Wkpm9SI5X0M/TsUDUGeP1Ch OSgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yNg12Jq0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-32507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r17-20020a170906c29100b00a2fd76ee2aasi2174324ejz.178.2024.01.22.00.26.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 00:26:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yNg12Jq0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-32507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9A59E1F275B2 for ; Mon, 22 Jan 2024 08:20:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3DB9210E2; Mon, 22 Jan 2024 08:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yNg12Jq0" Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCDF220DF1 for ; Mon, 22 Jan 2024 08:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705911609; cv=none; b=t9ZRKuhoUT2/HwZQo1B5i0QkcCzZfcxLEwixQZAsrmRYIBrHlgeZXvpGwSU5ybp9MbsGz+873PeAvNWOMAMhajMCGnRJPdQZyF+WG116njtEN9SBhosAEd2idy0L3btZ3erjoo9emHLZ/w9h72PwawMS4EnAXP8F1xv0KnMQdAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705911609; c=relaxed/simple; bh=isDe77D2iQvn55U1/z57KKJud4YSPJiujYGyL9CMF28=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=F/2AP3cuvvl79ve+9w+WwTDXEzmLCQ2wqnLYLs/mKv5PtqS3LHDMoTV22NV2UHOuXifWUGGZ5uo/Tz/MZOxjxOaqSKh56JFuzd0Phxpgb/BFhFT+kQQJZBK2219PIXjdIrQ3/4j7j+edaHeKng2lx3IpzU/JTzDb2W4k3p5wVIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yNg12Jq0; arc=none smtp.client-ip=209.85.128.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-5ffe7e7b7b3so5785367b3.3 for ; Mon, 22 Jan 2024 00:20:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705911607; x=1706516407; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=isDe77D2iQvn55U1/z57KKJud4YSPJiujYGyL9CMF28=; b=yNg12Jq0OjH/xqi3+tUJ9zj2qTgX8hBhK2jYjb2mScduou4IX0K3l7pEMG4g7/letz u9QfFxEmhFWwcP3h82bO8F1BbhS+/LVPSAFI6ueGEJOSjlPWndsD1UgvkBC7GvO/QnKr QUTekXeHUFsMl3f2Wi/nT5UVxpW5/BfWypW68hQPEUOWLFvcqNPlclTac+LncILNJd9d Kxcws3Ze/yaze6bacIWkLw+08EGLaCiSv+8WCu+z+JQGJpZMdKRkjsL3HAVFZJRBXcjv q4HTwJXPnRO1wsi6MZsvcvLIFej7Tzewi7eQncYa3RR4GRK4iCr4BpGZbiRHQ54Q6C14 atGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705911607; x=1706516407; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=isDe77D2iQvn55U1/z57KKJud4YSPJiujYGyL9CMF28=; b=n2SxEVvJulH+qn4ngB42r7tXAbFzz6ApZNqzGNi8cLCoBaGKJeMh+3DP49/5E7OBG4 EK29nmIhHljG7XUNH508kUBfNV8iGHOgs/AO5SyOezdAtIcagRdCdIpBizTlONGzt658 TJEsnjAcLLKVOaNVHoey40gBeU2TdFAz6lh0bYC+xqSF6GQE8jJUw2AEE0eyRpSBbN+r jgzenTP2gtfqQQXp41uHuGUNG6bYGKyH7WtQK/+u+XOrZ/LEmvFtpso/87zJqFwqVToK R7oSzv/3HUQUS95a+5V0AD92U/uHH3BdLohh55rQh8y4NuvfiujkadROtNLM4vW8cz4c SaHQ== X-Gm-Message-State: AOJu0Yz3J1DHuQwsPNxe+Qb5a4IZ/Kgmrc1RSjwD8wLukkGSffYfuRCz Oe5TsuvP5O1ZL2AwswY3wD66x4lkhkg+qxqq2SJ+3oF63qa6vYZHfUGvTuzboInsIp4zgR4CWdk PVcycWSBOT/d4pqVfEfLaXSRC3vR70QqkT6NNbg== X-Received: by 2002:a81:9185:0:b0:5ff:53de:dbef with SMTP id i127-20020a819185000000b005ff53dedbefmr2552068ywg.11.1705911606868; Mon, 22 Jan 2024 00:20:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240121053232.276968-1-dmitry.torokhov@gmail.com> In-Reply-To: <20240121053232.276968-1-dmitry.torokhov@gmail.com> From: Bartosz Golaszewski Date: Mon, 22 Jan 2024 09:19:56 +0100 Message-ID: Subject: Re: [PATCH 1/3] Input: matrix_keypad - avoid repeatedly converting GPIO to IRQ To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, Dan Carpenter , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Sun, 21 Jan 2024 at 06:32, Dmitry Torokhov wrote: > > gpio_to_irq() is getting more expensive and may require sleeping. This is no longer true, the relevant commit was reverted and I have now a working series where I'm using SRCU for lockless list traversal so if anything it will actually become cheaper. > Convert row GPIOs to interrupt numbers once in probe() and use > this information when the driver needs to enable or disable given > interrupt line. That being said, I'm not against this change, though this may not be very useful after all. Bartosz [snip!]