Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp709027pxk; Wed, 23 Sep 2020 14:03:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy7CJSzCQlp2+L5qxe9zOgIkfzK6a2Y1QbGK32L6wTNd+olSx6Jxmgn0SLHOVEeQQZeBMv X-Received: by 2002:a17:906:9386:: with SMTP id l6mr1474217ejx.302.1600895008006; Wed, 23 Sep 2020 14:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600895007; cv=none; d=google.com; s=arc-20160816; b=pqiM+4zUwev0VQxmN0wsIUkxzZHCDTM/tfZYFabkL2qmpuJjOELFckySP8FFx73z9v ydqnXMLd9/LXmWuhgT+8SbLgcet2Iu05QB78Ha0Kmi9B0qiZXE9Kt0+U0sDNnpVhEsIW evmbTOmpTlD8FBnTJmMBs6UjdbTlqKDr8mVmxgOwRIETTfWq7BP6IqSRaxlt5Relycvh OxHItcR5/MklGYFVe6DfS9tgEaCYf8t7cIiSTCISuC4fVO0kHOCtjV3KYvZ2gJcRcvDW /SjWbnMja2kKjElkHvAFvLmWT2GhzhnGe2DPWE1p3lykzjzya05cNOg8TlMq7NKqoPAX H6hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version: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=c/5Krfr7PvrTEyKZtronFLGYVTunfBjhz+LCV+z+3NQ=; b=WCIYOk9zCUyXYJja5akokctUENheAizQORP0tEfUS5jcYJhgh7OCsa6xOli/2Cv532 k6Dt7B2bS2HMo3xDOxbtmnlCqMeY+p80m/hRnGL8qTb1kO6ok4QjH+Br4P0mHYJ489Iz G0/HFlcBymm2H45P/P6+B+3ifldoyWG+27sQhLOZLdNWGtWT1XazXrKrTsfcCE4U0+HQ PyYezOQT+g+s3+7WqJi/PS/7UDRYcUWIbN8Uyah0l3qeDX+RPi0a9P9JjtK9WSQdwh/b R46fC7VJwEi/3lzJ1VVwE0dpUkNoYIXQMtEUJHqHfUhQ/5lCmB68D6onwCdhUATGi5Kq XBVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="teEEJ/nY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si652827ejd.257.2020.09.23.14.03.03; Wed, 23 Sep 2020 14:03:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="teEEJ/nY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726638AbgIWVBZ (ORCPT + 99 others); Wed, 23 Sep 2020 17:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbgIWVBY (ORCPT ); Wed, 23 Sep 2020 17:01:24 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E7C8C0613CE for ; Wed, 23 Sep 2020 14:01:24 -0700 (PDT) Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 8B28B80719; Thu, 24 Sep 2020 09:01:20 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1600894880; bh=c/5Krfr7PvrTEyKZtronFLGYVTunfBjhz+LCV+z+3NQ=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=teEEJ/nYFbBaMhLEvXeDfDE2xZ8BQ0g8bneGMe11MOFkNrucjKPfeeNK1Jg6flBvk +1dNjs1HCc2mInrPB4X4UHWafCsiDH0pS3puGDYhefX6Y+0eP8+XAoKcD+Y8hbdJz8 lrq3LhF+9/XBfBqE1nBpPETxnrv97mDOXA198IzMsgcsX6P1u+b3HO3AUZEoAuS5uo omyDSOiVHKCblH1qEjwb16kE1SfmEIM47Evsha1Jlkit/hBeSYREC5fsRN1L31J04h c/ZIpWs/4Vpvd+beM2YE7Pmd6RSR+HESdjsAXSuwDwlT9RPSaXhBd3BeAslWA2e4pY z04laGF5STE0w== Received: from svr-chch-ex1.atlnz.lc (Not Verified[10.32.16.77]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Thu, 24 Sep 2020 09:01:19 +1200 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 24 Sep 2020 09:01:19 +1200 Received: from svr-chch-ex1.atlnz.lc ([fe80::409d:36f5:8899:92e8]) by svr-chch-ex1.atlnz.lc ([fe80::409d:36f5:8899:92e8%12]) with mapi id 15.00.1497.006; Thu, 24 Sep 2020 09:01:19 +1200 From: Chris Packham To: Heiner Kallweit , "broonie@kernel.org" , "npiggin@gmail.com" CC: "linux-spi@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH] spi: fsl-espi: Only process interrupts for expected events Thread-Topic: [PATCH] spi: fsl-espi: Only process interrupts for expected events Thread-Index: AQHWglJIf7HpaAEB10myzqnWl8w4gal2AiCAgAAJbgA= Date: Wed, 23 Sep 2020 21:01:18 +0000 Message-ID: References: <20200904002812.7300-1-chris.packham@alliedtelesis.co.nz> In-Reply-To: Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.32.1.11] Content-Type: text/plain; charset="utf-8" Content-ID: <112C70DD5F3F4248843A2C4946A3BA9A@atlnz.lc> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQpPbiAyNC8wOS8yMCA4OjI3IGFtLCBIZWluZXIgS2FsbHdlaXQgd3JvdGU6DQo+IE9uIDA0LjA5 LjIwMjAgMDI6MjgsIENocmlzIFBhY2toYW0gd3JvdGU6DQo+PiBUaGUgU1BJRSByZWdpc3RlciBj b250YWlucyBjb3VudHMgZm9yIHRoZSBUWCBGSUZPIHNvIGFueSB0aW1lIHRoZSBpcnENCj4+IGhh bmRsZXIgd2FzIGludm9rZWQgd2Ugd291bGQgYXR0ZW1wdCB0byBwcm9jZXNzIHRoZSBSWC9UWCBm aWZvcy4gVXNlIHRoZQ0KPj4gU1BJTSB2YWx1ZSB0byBtYXNrIHRoZSBldmVudHMgc28gdGhhdCB3 ZSBvbmx5IHByb2Nlc3MgaW50ZXJydXB0cyB0aGF0DQo+PiB3ZXJlIGV4cGVjdGVkLg0KPj4NCj4+ IFRoaXMgd2FzIGEgbGF0ZW50IGlzc3VlIGV4cG9zZWQgYnkgY29tbWl0IDMyODJhM2RhMjViZCAo InBvd2VycGMvNjQ6DQo+PiBJbXBsZW1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