Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7238526rwb; Tue, 15 Nov 2022 09:22:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf565R9M0vpj4fbDdeyFfYv910xGv5bDU57HpwG/K7uYw4MXLdST8C8kRYWASPxgB83TcTVj X-Received: by 2002:a17:902:70c6:b0:186:b889:dd6f with SMTP id l6-20020a17090270c600b00186b889dd6fmr5009965plt.97.1668532926863; Tue, 15 Nov 2022 09:22:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668532926; cv=none; d=google.com; s=arc-20160816; b=UsCfN4d0/Mv48HIoat55MfNuTvEtYu1ykOg4g1KLrQf1yuqMH1aM5zeJdqYXbvqGwy ViNUzInnr6x8lWPVArYuQs184VFF+TkpMFD7u5rM3NJOyj7/6sMJhPgEoJ0sowr3TFtF 2aK+F8/6HD7DdwRmQO6kPmTGVRmX3tT4t8UXNqwGR8veLYE5OOMrOXxDmFdq28d/rLFr WFUvfxlVc7JuLmhhSfrYFmGvxAVel+xd0bmfLn959z81zbVLQg3EFYAbwCbsB4+rfQho FvDjxKvo9JZWJdZRYIn/8GoSKhfrzRddRiLKBWwSF+Dn7cwNYmqANPY6FRuOlEl11UQy RB/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nbSa762BMs/1Lbadls2kNTAMcqI8JvqUfHosa+oj3uk=; b=hAEv91f6Qer8St2SV78iXWGRSOwth9xpZdJMg/tjcnM+Ne9wLz+uKh7D0W4FtQ53aO AnFRvjFPrlpOEgDwHqCo3CQsmL1Id7TIPPBjczg73cGKBmoA9bw2/xSwjSD85KIJEqPT fEh29Dzov3oUE3U4MqmNRThyZVv+M9NgVzvlN00wwgIiAp/OXMR+TFsbe9kwOa7o7K7B eUBOLT0VBt/2Itk0nrQGuDS4sOfpmseb0xL5GXs7w9lnkxsvwQLsehNYDtJMz3uCRRE0 AE1lZi/M+XD7edYtWp/rdtRMX2+B25BnV6dPyS1AsTgjOvxXMlzBBwJQ2qA/ojOW+QF/ h0/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g2wlCdRy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk18-20020a17090b4a1200b00213c2f26cb5si19019399pjb.126.2022.11.15.09.21.54; Tue, 15 Nov 2022 09:22:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g2wlCdRy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbiKOROw (ORCPT + 90 others); Tue, 15 Nov 2022 12:14:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbiKOROs (ORCPT ); Tue, 15 Nov 2022 12:14:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB19220355; Tue, 15 Nov 2022 09:14:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C6A961937; Tue, 15 Nov 2022 17:14:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74244C433D6; Tue, 15 Nov 2022 17:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668532486; bh=k9HdUS7zrOXlFLwjH2b7B5JgNY4XRW93USVSPBniQL8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g2wlCdRyIonCrx94ab53JsUvdKYuct2JFfM3qCI9beEtMpQxlLiPgCEBHq2ieuC2+ L+V/cgQtXo+8iyxseZzxWSyMOacARzHlm/NKZlXgeXE/2tNMho7iHQFVEb5yMBBkfa N7BVzCmDc3+VVOfEa+vMlIOCOI8eRHCAyGHw7tVV6rUJOC5vFOVNtvx3r4XgJS9wlE f59XtLHM7eXG3k2oRLQWbpyhJuBAcAoothg+LS7lWcUXkf1wZ+98o/gGeP9TBDzoVX EqCLu11OrmM4hSJL/NnYlJcJn6dxgi5Q+SCVruXfDVVA1H8XQgTaDXoQTPls/+ZEwc BAYFp1xre729w== Date: Tue, 15 Nov 2022 17:14:14 +0000 From: Mark Brown To: William Breathitt Gray Cc: linus.walleij@linaro.org, brgl@bgdev.pl, andriy.shevchenko@linux.intel.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, michael@walle.cc Subject: Re: [PATCH v2 2/4] regmap-irq: Add handle_mask_sync() callback Message-ID: References: <53e9e89cc9d7e9c20cbdfc13b360dcb43d07f832.1668129763.git.william.gray@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6WJY0q1LVzw+BIMY" Content-Disposition: inline In-Reply-To: <53e9e89cc9d7e9c20cbdfc13b360dcb43d07f832.1668129763.git.william.gray@linaro.org> X-Cookie: Ego sum ens omnipotens. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6WJY0q1LVzw+BIMY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 10, 2022 at 08:55:51PM -0500, William Breathitt Gray wrote: > Provide a public callback handle_mask_sync() that drivers can use when > they have more complex IRQ masking logic. The default implementation is > regmap_irq_handle_mask_sync(), used if the chip doesn't provide its own > callback. Can you provide examples of something that would make sense to open code in a driver rather than factoring out? It looks like this has been added due to one of the devices you're looking at for some reason disabling it's upstream interrupt when all of the downstream interrupts are masked, while weird that doesn't seem especally device specific. --6WJY0q1LVzw+BIMY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmNzyOYACgkQJNaLcl1U h9DI5wf/ReemeRWA1bhQND00SnN8oMnU5R0oinaAM9yFZymGxqvEVbBf8kf5wcCV N8HjYk9DASKbW9kU/n7g3KbTt9f88bXcniJTKdSaDl8IaunGHgc9n/lpZuhkZmhT UaMfu9YmHqc83Qle9cixfbc49kP2j5pfS8gLwkUd6PShZflYfg8P6RxVpb7SoI73 qCPhdx9Q2WvNLW4jmSxyqC/VuYUV7iU8AC2bQ33TpkC46F1NM9+HdSLBoM5pHap4 GEFOxh+/6hmYGZiVK8D2HD6Bbjy9xWGZyhNdZm7kVsifUlnUp0cE+aehsZX0CrBf CCwLm4KtyjwBZjY/m2U1YNl0Sbzezw== =dw0O -----END PGP SIGNATURE----- --6WJY0q1LVzw+BIMY--