Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp34482lqp; Sun, 9 Jun 2024 15:13:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVO5y6udqMBCW4lh4PelhqP9NC7UCpq+YHJHyu9Fph5FSQmbqdiWrS11k6ji0c4i6hfTDdQHbsxsAgK2lfmtdb3MalpNxS+MEFIi8gAw== X-Google-Smtp-Source: AGHT+IFWG36JYyzp/IhK+5P9n/6iicYmChwcTiOFYwsiZPDopqyHXWrVJh8YuoteZqf9nF+rwUKB X-Received: by 2002:a05:6a20:7346:b0:1b2:ab78:5ba with SMTP id adf61e73a8af0-1b2f9bc0e77mr7810955637.36.1717971228361; Sun, 09 Jun 2024 15:13:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717971228; cv=pass; d=google.com; s=arc-20160816; b=Mz/bcJEI4/dJk3qJH5osmY6kbnSsZChPCLdooxtLPoyMV59FlXqHzXyu9WA5FP4QE2 Hym7wnusWd5tIFIUsMxvFXDiVao+FiuuR6Jv3YNGmNYvqwEmSkM6uBXzWBAgOcd16zoc IrhfnYHGJxyDR9Kjq0HRtxbjpaCgiPahZFIviIuYBwN4HIxcJjK0+ZTjJRRNZe9RAItz sXFhjBILEZxCwUePwtCPwGpVLFz/BX/e6Y+aU9AqKaxXyTmsFOL54jJmyFSK9C3KtkS/ 5tyLUNqJSkrm9BoYOx3uOolQwGad0JnzklaBxJ2ordl86673ONUshtE6kjsN/fJgFd/N X7wg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=hbL/pdZIv5Dp0rCVGhg8oan6rPug4SJHwJnZVrisT2g=; fh=D8YTMeMddt4SVbfvFjnPQdP5M2pqutALyvKKcTOhYWs=; b=FZhuJxo6ruaORLZEg585rMlgRolxwrOEPhR+9UaR3YJg4J2SgJjSGqBCKSGb5HVX/W +9eyzDoMU9QiBab23SwcPGmmruieSZ7moYTNG3Z9HfasGB1ixNUsRg6n8X1UrU4fvBt6 OiFzaNqcF5b4oa8h9zJcXmlH4b+Iz6+i5cdiHPbpIEiNGqa1Ly3AYDu1J2aatkq5G8sM Hc6Xl3z8WBHHhcmxE+RuYCjDzWbWavrEjPdenry7uHhygY9r379Sj9SpJNtizsT2ejbl eexK6t4l7TdkGDrDnjG6vQb9ujDI8SctCdn+yOCHLNvje6r/ji9VIfoC+rBEiEbd6bsC cbfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=uAP0Kik5; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-207525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c28067abe8si8537829a91.84.2024.06.09.15.13.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 15:13:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=uAP0Kik5; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-207525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CDDEC281348 for ; Sun, 9 Jun 2024 22:13:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9A8655884; Sun, 9 Jun 2024 22:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="uAP0Kik5" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (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 2BFA74C627 for ; Sun, 9 Jun 2024 22:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717971220; cv=none; b=u4P3TXLK0Z6wBwlhrn/3vxARYNV8HMx0JQS5V9teqdbr/1q+4WhLrkxszun8ZrvHQn72mCbG1uQ0rkjtXumUv4diy1/9zCrWIXI5TPaPd3cDJhv14KIgMLZtBOBnFfLwjar0pv3zS+HL1VscRT6I/safD+1bN1qHspignpcLsmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717971220; c=relaxed/simple; bh=hbL/pdZIv5Dp0rCVGhg8oan6rPug4SJHwJnZVrisT2g=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=UeVD1TNTAf/ErADD1IrMHZTsRFRAgV9S3Da2wsjRFP65uJ1H8nbxoj+6dXm701lp1rUa1c0C6eT0+1e54OmXLbc0dgNS1iGM49QKrvP0MZF/tKxaAbNlyR3z4GO1u6+A3yKjzjiXYfYLPiisMXt48YmfpsS3eDQffAVCaPENyS8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=uAP0Kik5; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id AD0422C08BD; Mon, 10 Jun 2024 10:13:28 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1717971208; bh=hbL/pdZIv5Dp0rCVGhg8oan6rPug4SJHwJnZVrisT2g=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=uAP0Kik559ZH9Wc3yJGsVD/3ed0OsFSq5pnQH87QjSBZfULdH0TxLPSw9Iz/aJlqC OzSqe7R/r6B6CRWzUQQwhbVDNwSf1LrTYyiRkl/CjUaMGIclWgAZunjktTeoO5b6CZ fqhxlGIuVO2TqGanvS9HU8sUAFqgdNh7aEdV3wawUAZGePlj+jVlRcdiRVe+P9hJUg E9OTkd8tCJZXD5ND/IfsQXUVBKKUx6mF2DzvAPt7UzERN+XgdeoDzn/mZKgyLrdYVT /E3jo90Qck8DfITddmyLQYTZ3Fprfo1kkZYD/ZzqHwrFCUSYEUNmDxfwn7kNY77FTX +sNqWOR/tFlNA== Received: from svr-chch-ex2.atlnz.lc (Not Verified[2001:df5:b000:bc8::76]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Mon, 10 Jun 2024 10:13:28 +1200 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) by svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8:f753:6de:11c0:a008) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1544.11; Mon, 10 Jun 2024 10:13:28 +1200 Received: from svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 10 Jun 2024 10:13:28 +1200 Received: from svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567]) by svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567%15]) with mapi id 15.02.1544.011; Mon, 10 Jun 2024 10:13:28 +1200 From: Mark Tomlinson To: "andy.shevchenko@gmail.com" CC: "linux-gpio@vger.kernel.org" , "brgl@bgdev.pl" , "linux-kernel@vger.kernel.org" , "linus.walleij@linaro.org" Subject: Re: [PATCH] gpio: pca953x: Improve interrupt support Thread-Topic: [PATCH] gpio: pca953x: Improve interrupt support Thread-Index: AQHat8IKrnq78xh9RkCOMGJXNt7JBLG82EyAgAJjhoA= Date: Sun, 9 Jun 2024 22:13:27 +0000 Message-ID: References: <20240606033102.2271916-1-mark.tomlinson@alliedtelesis.co.nz> In-Reply-To: Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.4 cv=F9L0dbhN c=1 sm=1 tr=0 ts=66662908 a=Xf/6aR1Nyvzi7BryhOrcLQ==:117 a=xqWC_Br6kY4A:10 a=KE40CbAq34oA:10 a=IkcTkHD0fZMA:10 a=T1WGqf2p2xoA:10 a=UDBL-DoJI6aJ5C6zNTwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-SEG-SpamProfiler-Score: 0 T24gU2F0LCAyMDI0LTA2LTA4IGF0IDEyOjQ0ICswMzAwLCBBbmR5IFNoZXZjaGVua28gd3JvdGU6 DQo+IFRodSwgSnVuIDA2LCAyMDI0IGF0IDAzOjMxOjAyUE0gKzEyMDAsIE1hcmsgVG9tbGluc29u IGtpcmpvaXR0aToNCj4gPiBUaGUgR1BJTyBkcml2ZXJzIHdpdGggbGF0Y2ggaW50ZXJydXB0IHN1 cHBvcnQgKHR5cGljYWxseSB0eXBlcyBzdGFydGluZw0KPiA+IHdpdGggUENBTCkgaGF2ZSBpbnRl cnJ1cHQgc3RhdHVzIHJlZ2lzdGVycyB0byBkZXRlcm1pbmUgd2hpY2gNCj4gPiBwYXJ0aWN1bGFy DQo+ID4gaW5wdXRzIGhhdmUgY2F1c2VkIGFuIGludGVycnVwdC4gVW5mb3J0dW5hdGVseSB0aGVy ZSBpcyBubyBhdG9taWMNCj4gPiBvcGVyYXRpb24gdG8gcmVhZCB0aGVzZSByZWdpc3RlcnMgYW5k IGNsZWFyIHRoZSBpbnRlcnJ1cHQuIENsZWFyaW5nIHRoZQ0KPiA+IGludGVycnVwdCBpcyBkb25l IGJ5IHJlYWRpbmcgdGhlIGlucHV0IHJl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ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwNCiAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICstLS0tLS0tLS0tLS0tLS0tLS0t DQogICAgICAgIC0tLS0tLS0tKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAr LS0tLS0tLQ0KSVJRICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgfA0KICAgICAgICAgICAgICAgICstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tKw0KDQpJbnRlcnJ1cHQgc3RhdHVzICAgICAgICAgICAgICAqDQpSZWdpc3RlciBSZWFk DQoNCklucHV0IFJlZ2lzdGVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICoNClJlYWQNCg0KTm90ZSB0aGF0IHRoZSBpbnRlcnJ1cHQgc3RhdHVzIHJlYWQgb25seSBzZWVz IG9uZSBldmVudCwgYnV0IGJvdGggYXJlDQpjbGVhcmVkIGxhdGVyLiBBcyB0aGVzZSB0d28gcmVh ZHMgYXJlIEkyQyBidXMgdHJhbnNmZXJzLCB0aGV5IGFyZSBtb3JlIHRoYW4NCjEwMMK1cyBhcGFy dCwgc28gdGhpcyBldmVudCBvY2N1cnMgcXVpdGUgZnJlcXVlbnRseSBpbiBvdXIgc3lzdGVtLg0K DQoNClRoYW5rcyBmb3IgcmV2aWV3aW5nIHRoaXMuDQpCZXN0IFJlZ2FyZHMsDQoNCg==