Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4404934rwb; Sun, 13 Nov 2022 05:34:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6phLd2nEnoVwREtV2IHdxOYBS6zY4WtUZoIVEdsiuf8727+DSd98BKQcCvdz0+KyYcanO7 X-Received: by 2002:a63:1a19:0:b0:46f:f4c1:7d34 with SMTP id a25-20020a631a19000000b0046ff4c17d34mr8566375pga.75.1668346473282; Sun, 13 Nov 2022 05:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668346473; cv=none; d=google.com; s=arc-20160816; b=a5UeJcCjrGYGrd60KddZcthwc9WVdyWKfE+VlV7fH+jQQE0eBV13K4l8irNA2MwS7+ aZBiCw/JAQiFo71/e3xIBWwTD4/Zbw/3PPkaCItJLDAv0WkGwxuHARchtIqES2oO/PZz w1ozhqtjCGwHdEXPU3Jzbmh1+r+9Itc0JeJa90PEU1yzIEzXf/lQzkhJZFCXReFMvJpU xhC/TrMMBOF4nqkVPd5KfKT4URRj1Ml6HXkM01iVEtrnTiSJ01Feq9NheX1+opaJ7HnE 5EOJVO+uJ/G/vuBRMAFsdF9CmA5cRp+DGIkwVAtNNCnhoB971Pl4Vum+pyKBarZW5wKa emPg== 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=Yv3rmZu0ZqZdBOKzs35lLUM5CgajIW7Gfj1+UGtWYlA=; b=JFamMVv8luyqd+RKyOzIkrs7FGVHdYZtJXQRbbLBrDjLXRyB9FHkSRd4aa7MKCkGn5 Ob/dAzErth9gGeAoMlqWsoXhD3x+Sf3VCX2WRCBjUMzF0D0y9faYFTAEn9VUz2YKRVAo Qd0IjKuICZZMsa62ifUpua8K6yhjFbbi4uZFwBa36x8gLNxbA5DZGrjpGmlmoVQ18jS7 x2rqb5poTg53+5c/beHRJub7hRZlH5zG+HStDz+J/6smsakv5Ej0/rTsmorBdQy+CBep wN651QVc/SS8pl3WsdJFN6jRTl2H9TnP4troGEcOK3TKQiDxrOrmVdQHse6XtvCb5mir cVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WmXtkrGa; 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 mq10-20020a17090b380a00b00200b5c30f73si8875892pjb.106.2022.11.13.05.34.04; Sun, 13 Nov 2022 05:34:33 -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=WmXtkrGa; 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 S233794AbiKMNLK (ORCPT + 90 others); Sun, 13 Nov 2022 08:11:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234213AbiKMNLH (ORCPT ); Sun, 13 Nov 2022 08:11:07 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D89BE26; Sun, 13 Nov 2022 05:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668345067; x=1699881067; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CcCCmPTjaNaAfq31TEG9o/ZixEAsxHy4/I5W8DpGz4g=; b=WmXtkrGaySgSQeWnDRHsvRl0UHsy++BmLZCZh9DirtfIC6txT6pu0PrL vnlD1OVg3Yv3JAw64ewLIGU7kGQdywEjGftPzX86U9KMeKWMG4rgGrn1a zVPONtv5StHgVdLwFaMzZMdm56hQJoFS1dxRMsGdWgkLDJKJoDJawOv7E A42Z5TPiA0wgGIGqk/zERAC6ZLnv+mgpmS3HiDwl5hAmxFYycFArMMccy DAJ9LqyojAD1nsdKSXj1P6PymGIXAsBB4zKZddersLQO0d2EaZ8zuPvtE 8gJbMwlx01nxMpLZTQgvCD6YCoJ+UZVbW6x3fFNJJwjske3dXDqd0faAl g==; X-IronPort-AV: E=McAfee;i="6500,9779,10529"; a="292208672" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="292208672" 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 05:11:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10529"; a="967268678" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="967268678" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 13 Nov 2022 05:11:05 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1ouClL-00BgbJ-2N; Sun, 13 Nov 2022 15:11:03 +0200 Date: Sun, 13 Nov 2022 15:11:03 +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: 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 Sun, Nov 13, 2022 at 08:08:40AM -0500, William Breathitt Gray wrote: > On Sun, Nov 13, 2022 at 02:42:49PM +0200, Andy Shevchenko wrote: > > 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)". > > I was following the convention used in the @get_irq_reg description, but > I agree that mathematical notation would be much clearer. Ah, maybe cleaning up the rest then? -- With Best Regards, Andy Shevchenko