Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3202465iog; Mon, 20 Jun 2022 13:55:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDP+n2GcrUKtMAf9EeHDT1Sf4wWusHwyzPJhbmUb8zeV5GL1fmJL5n8ceC8Ml6VZ5T5P90 X-Received: by 2002:a62:fb05:0:b0:525:1da0:334a with SMTP id x5-20020a62fb05000000b005251da0334amr9456681pfm.23.1655758517021; Mon, 20 Jun 2022 13:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655758517; cv=none; d=google.com; s=arc-20160816; b=evLZA/wlrkVaB+2atn33BFo2nR3s6rk2YP+2qzJlKq+52O+GT3XNCn3JbqAQ7YQCI2 4jUiqWfLp2Iu5TE2r75cEbHMMf7OWwpacOe/+l23JE/Qb10MJjP+c6KGL/Cq4IganpyQ TblJSo8ZZIiKvWjEELmiZxmChKm1TOO2tAVDbdAK+gnYm0PbfqzMuxgZwxYES1AF+oCS S2zwkyYL9Ca+CQI0YotqbVbjlR+8cR2xOA56mq1YV8S2SCISwZHxOgbvn62f7RRY/zYJ YIK9g3XcN0OloLnWPWHOgS0AN22EPQfJZ+K2ZrCraWSySaAIU973bUTEt2poFgCO7FMq jHkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6euAwHf+u1ItA2eK0so1Yr2FypSsHdAXRoV366E1T7A=; b=vIAa4+AH9jOzBpXYAg3OOa7OjaucnI0hlEGf+oNYweYCYUYWfM3qssrH9rlZ1AI0h4 AZC07N59X+eJvN5RzMZlRW7lbqGmjfyzTLCLPOeFY0lrOAyE7MEIw9JM8OFOZqQcfhc4 1/LUdZoizHir8d9YH69QjlzgwEA0uXq65TaWkYkuK+xZODaqhxRnpV0v6FF2JtJjHdKS 01+wCrtgZdTRJLkOD+vuea+HhA1TYVYJ9hiLqvxpgbyG+5/4rN9piwk5kcaMAbptOsjc qzbtgRDCV7H6jPFjrXNlP1rGdeFHrFEsUCC1W5+sNNTuZjKvO4AqlGUG8+4ra+ArjeaF mBrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ltBWD1dr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ng12-20020a17090b1a8c00b001e001017084si20406575pjb.0.2022.06.20.13.55.04; Mon, 20 Jun 2022 13:55:17 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=ltBWD1dr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344120AbiFTUHh (ORCPT + 99 others); Mon, 20 Jun 2022 16:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244507AbiFTUGw (ORCPT ); Mon, 20 Jun 2022 16:06:52 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFB501DA7A; Mon, 20 Jun 2022 13:06:42 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id m16-20020a7bca50000000b0039c8a224c95so6194766wml.2; Mon, 20 Jun 2022 13:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6euAwHf+u1ItA2eK0so1Yr2FypSsHdAXRoV366E1T7A=; b=ltBWD1dr5RteubU05COvdKRAItNBE3XGRxsyg7vyiQ01v6gFjKkGQCa7AxlmlAlEzY AezfAXia6RuJ38Bg9CC3TjmJVkv+VhSCZoabV6MHfCWW/xklUdcZ/WY/1zIABVKL88nB WIUir0+yDu0HI5+CAA3jsSyTlvoO/BMKRYNcAGaUDoqrRUi7MUBaYNF+YGqEKRDqHCrk 6NWMWphH7cTh+N4d7Wj2CRuYxpEAqY1ZRwT8qgOSayGNQKBdURajaEjI6DjrBNeapqlB yYOfUhgVlTPPPj0QyHa5BKMwDnq4P6Qhr+RaXEI/210OX3LUMTHtrnc7u7e9RyvHCH4H a21g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6euAwHf+u1ItA2eK0so1Yr2FypSsHdAXRoV366E1T7A=; b=6uET5Ro9/8Ww4eN3QpdAKyQ6qK4YPGCtn7JOlzQd+/sil80jkyJrl/NT6mTJdd61id 7PxE4SXjRlqirUbcNFQ6NhC7ewNB38ERr8npVmIWsCe5cIoD8SoSSoVPonENATbJXXJN tcwuNG7r+yJipK6B6yJ3TrHnBAA4k8eFRKDC7RvWu7BOkvJFha72+cxmeY6OFzJ2ESI6 SJPOJmc/r4f//3BPrGYH+PbXVotr03Ess4wdSJmkX0gEq7gJwQdxFoEdbJrV9Cn4qK2o oZ1vwTfyfhHAm8eXTwGWX/xlgXS2fm3mmrURGFtZdLavFw7ccRyaI38MTfQy9pcIQU1t 8DZQ== X-Gm-Message-State: AJIora839Ae2QQaM+faGB893O8x4bqpHO/dLB/ISdJqDU61F2F1S11bT LEw5kgTfXN79fgovLHGCd/k= X-Received: by 2002:a7b:c012:0:b0:39c:529a:7590 with SMTP id c18-20020a7bc012000000b0039c529a7590mr26485917wmb.6.1655755601453; Mon, 20 Jun 2022 13:06:41 -0700 (PDT) Received: from localhost (92.40.169.68.threembb.co.uk. [92.40.169.68]) by smtp.gmail.com with ESMTPSA id v188-20020a1cacc5000000b003973c54bd69sm19423794wme.1.2022.06.20.13.06.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 13:06:41 -0700 (PDT) From: Aidan MacDonald To: broonie@kernel.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, srinivas.kandagatla@linaro.org, bgoswami@codeaurora.org, gregkh@linuxfoundation.org, rafael@kernel.org, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, b.zolnierkie@samsung.com, myungjoo.ham@samsung.com, michael@walle.cc, linus.walleij@linaro.org, brgl@bgdev.pl, tglx@linutronix.de, maz@kernel.org, lee.jones@linaro.org, mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, rjones@gateworks.com, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang7@gmail.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, alsa-devel@alsa-project.org Subject: [PATCH 17/49] regmap-irq: Add broken_mask_unmask flag Date: Mon, 20 Jun 2022 21:06:12 +0100 Message-Id: <20220620200644.1961936-18-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20220620200644.1961936-1-aidanmacdonald.0x0@gmail.com> References: <20220620200644.1961936-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 This flag is necessary to prepare for fixing the behavior of unmask registers. Existing chips that set mask_base and unmask_base must set broken_mask_unmask=1 to declare that they expect the mask bits will be inverted in both registers, contrary to the usual behavior of mask registers. Signed-off-by: Aidan MacDonald --- include/linux/regmap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index ee2567a0465c..21a70fd99493 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -1523,6 +1523,7 @@ struct regmap_irq_chip { bool clear_on_unmask:1; bool not_fixed_stride:1; bool status_invert:1; + bool broken_mask_unmask:1; int num_regs; -- 2.35.1