Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp127804rdb; Mon, 18 Dec 2023 00:58:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbATxQZKFX0xjx6juYkd3II+yUHHdR8/4N0HVRaAOdVmsccoXnVa3McOPUbx6pBMVkfdmV X-Received: by 2002:a05:6a20:54a6:b0:190:44b9:4ee with SMTP id i38-20020a056a2054a600b0019044b904eemr7031253pzk.6.1702889895614; Mon, 18 Dec 2023 00:58:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702889895; cv=none; d=google.com; s=arc-20160816; b=K8Rsq55/TUrZhgQDRXzrzcph8nR8LnLfbUwQqYVV8mdM26GAZN5wPICUWFxMK42dwD DXtwmISc2H3JbRdd+M1cEV4yEXY3Gh3Ob8P5DlHB9+TwHGXw/IFRZJBprZH70rAew3fR Tk5xRA4UrVrX9K/7+PLX3sIxdQnYFI97hmB880jOEIiw5bhWwZXUOQLEp+m8lUV+sWRQ b6jCjTPfbWdEiWqbCAg94RzjXyqg1GyO2u8A3388lcQFTKORy3qMbpZEd+PFBatJe/GK d0oNDMBs5RTmX5TpWFZTy/i5DKU+aRKvJTcxx7gJZLOdTB7T9homclh1sCMVyjNta1sG sMPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=t7y980s7TlqjCCAo0oCLZY8k6BxPJ803Kug7xEFCoGk=; fh=bOQp0xRCp+2XS5mBhl0YtABXsmbG2KSyk2VjBiGrgz4=; b=YlXVOk5Mbjg6GYduTdm5QuNmAodYFcjodyuNpO5y7owQh6q49HUZjo4coCoMc77UT+ F1NfLm3kYgIDejKE74nJh++vbfR/TxSv6jpFvI0aSK8zAtFLabcPW0D2vzddMpNBrn1o oej1r8MlArBf5BeAhbVA64BPvW0OuKb8K5JML8oCc5G+QVutLRidymNpFE4brtIHnviw zv4V8VJznJhY7a4645mu4O7R0TmD1pzSZ0SNRm1GHwP/AXmXGVSI0R4o2alo2QyCQ+C9 taKlWmOCwwjVB5d8ksvyWJlUZhtVT8nbPQkWgw/Lmv+SRAhKiPAY/npxmd3ujO9w9pQc fK2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=rLVZ4rwO; spf=pass (google.com: domain of linux-kernel+bounces-3195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c12-20020a17090a8d0c00b0028b62774a1bsi3032991pjo.125.2023.12.18.00.58.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 00:58:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=rLVZ4rwO; spf=pass (google.com: domain of linux-kernel+bounces-3195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9974DB216ED for ; Mon, 18 Dec 2023 08:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 101D111701; Mon, 18 Dec 2023 08:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=walle.cc header.i=@walle.cc header.b="rLVZ4rwO" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) (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 0461111C92; Mon, 18 Dec 2023 08:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=walle.cc Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 3C6734FB; Mon, 18 Dec 2023 09:50:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1702889422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t7y980s7TlqjCCAo0oCLZY8k6BxPJ803Kug7xEFCoGk=; b=rLVZ4rwOEPGlYUtRcUAdVLk5m7XBx4vX8PZBc+L8VhucInDrJkExOLW9giC4bwcIbREtbU Je3WaYQXn/btQGQQqiPpyyqWcA5DRdeh21JyX5yDS/u1rYCWa45KnBM7IUGDavZRTav2Zl X0MH9Ty/zWgE+4zV9He07kqI56vn0wrFZaDJkyWt5UFfTcMlHLoEo7QJBhNpSIsAekAwQt sWrBUMuBVC+YmODug75aTaImAUbgmuPqVvVJlm347hwJ107AoXamXtaJwJaQkjz6dMnJf5 dF6wdDqyd9iC56O6rdID2Z8HXpk5Zj3Z8CaKqC1zg0wmij/i6sGW3A5vGJgyQQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Mon, 18 Dec 2023 09:50:21 +0100 From: Michael Walle To: =?UTF-8?Q?TY=5FChang=5B=E5=BC=B5=E5=AD=90=E9=80=B8=5D?= Cc: Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] Add GPIO support for Realtek DHC(Digital Home Center) RTD SoCs. In-Reply-To: References: <20231207100723.15015-1-tychang@realtek.com> <20231207100723.15015-3-tychang@realtek.com> <989146448858478b975c66899b8f3fed@realtek.com> <23574204547646779d02f0109c20b3ff@realtek.com> <0f0b3b65a838aea6797ae78c47d6af49@walle.cc> Message-ID: <3dd3a101e61f5a8f8931114ddc80cecf@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Hi, > I have looked into regmap-irq, it appears that using the default irq > thread_fn(regmap_irq_thread) is required. However, due to hardware > limitation, > we need to inspect the IRQ_TYPE to determine whether to manage the irq > within > the irq handler. I think our irq portion does not perfectly fit the > regmap-irq. > Moreover, it seems that the gpio-regmap.c file needs to be modified if > the GPIO driver > requires debounce settings. I think the gpio-regmap may not be > appropriate for our driver. > Do you have any suggestions? Can't say anything regarding the interrupt handling but adding literally one line to gpio-regmap shouldn't be a reason not to use it. -michael