Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4406969rwb; Sun, 13 Nov 2022 05:36:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tbqhFJrD5X2oh4W0M9enjIDQziQcpdNuoGTA1Qxpj2yK61vlMGFX0oiC/H02J3jhNrQ5y X-Received: by 2002:a63:e617:0:b0:46f:f4e3:c4b1 with SMTP id g23-20020a63e617000000b0046ff4e3c4b1mr8201543pgh.588.1668346612679; Sun, 13 Nov 2022 05:36:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668346612; cv=none; d=google.com; s=arc-20160816; b=xYmGJgpbTztKWCbH416jg+fdUu1lQg0Q/FnTTJKh4NUJIAlRplTF3sUdnwngvjy1p/ kFmX9aI7EN1bQBBTkP1JzBF0ua83RFSfhzUDZy0vW9AHYU0U4yfpUH74Bh+fqnaEOkq/ WHEivXcMll/ax20C48PlGdiInIu2fyU3vaLkJhV2JSK6UeKhU/ijEDUpZrZOVmG+sVaY ZZoJfSWEbFjPq2ROYoLppzhFq3EVNYyAexiYTQShmt785gZLb6x+mX3z8wZxiKaR+0hd rDiNRtoNUp4/zNJnh7SQvp2dT29GZI1mDR+Y+2OXO0/mwIUWjMD9Vfi1Unq86H2ZZA0w 3SRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=61wQItb6/yW2Vbm/Un52h+LeOdc0ZK3ndq3NBcOkcjM=; b=WSruys36XH5xuJbMKJH8f+v7XUInvzxUDJiv6GcuT2dyNANncdmO4wd16Rf/GoPm4c jg7mAuPdwlc+e7zv8kgoLQIrPKfV2EgHXdf2Ni3YM8YxZ1ZA5YM9+KNoi63cG+8tUEDd dopTsgTMXCaSxtsn/FSY+9v6apTaNQvL2Zw70V4K45J82r0xcryog3D6/eaOj8+agqlL pIZZXAnHSyXJSCXKcwXFfjL2egN7NbwqsUZgicnCGhno1Y0DQNChVHiM3hs0fOWP3pwK n/eIsdUIZPcbUGsnGYxgZuaF2sr+YMVDxJwMa6XVMaa2PEx1xNbM2ivdLgiAMh0Uow+D VHaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="B/0ed++l"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a63c00b000000b0046f4a36ae51si7261659pgg.710.2022.11.13.05.36.40; Sun, 13 Nov 2022 05:36:52 -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=@intel.com header.s=Intel header.b="B/0ed++l"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233930AbiKMMm4 (ORCPT + 89 others); Sun, 13 Nov 2022 07:42:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232799AbiKMMmy (ORCPT ); Sun, 13 Nov 2022 07:42:54 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 128ED12A85; Sun, 13 Nov 2022 04:42:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668343374; x=1699879374; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+j0oNtGEaWU57mtrA0OycgFLPKMPBzs0k05+bUidqxE=; b=B/0ed++lmjFb4E2/ZbGLpCqPjne3Gtkl+rE1i8sBgdvVCPkCTClmKeAk I9N7tU2wF5aJVHnNLHWV+TyG3/bJW2uNUdldT66u9qFSRRvAgAXeANaDT 4agblnQ2lXteH9GY/bvfLJwe1Y91cKrKt2Im8nsJRPnJvfMq+yog6oJz4 jye3AFGYZ2SnAf/F3gvcEEVO0XuGLGFsSTvKBjjum0o678k1/csUFy9xQ UWKu8NcqsGvpyQdFbcgTJ61T12QbWnAYwCTaBOHcSoPyTc3jeWAIizyeI Ca/XbsEBIfE5bWiipzZc929wP7AwV6QoUNQsXOpIHk6S/wJsvVU7tpgEM A==; X-IronPort-AV: E=McAfee;i="6500,9779,10529"; a="292206469" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="292206469" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2022 04:42:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10529"; a="967264507" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="967264507" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 13 Nov 2022 04:42:51 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1ouCK2-00Bg6k-0i; Sun, 13 Nov 2022 14:42:50 +0200 Date: Sun, 13 Nov 2022 14:42:49 +0200 From: Andy Shevchenko To: William Breathitt Gray Cc: linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, michael@walle.cc, broonie@kernel.org 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53e9e89cc9d7e9c20cbdfc13b360dcb43d07f832.1668129763.git.william.gray@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 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. ... > + * @handle_mask_sync: Callback used to handle IRQ mask syncs. The index will be > + * in the range [0, num_regs[ Not sure if it's a typo ([ vs. ]), but if you want to say "not including the last", use mathematical notation, i.e. "[0, num_regs)". -- With Best Regards, Andy Shevchenko