Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1751350pxk; Sun, 13 Sep 2020 15:05:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVoICaSTHqdpM5gj+Ax228nZGAGrnQoQYb/gOUjtsl+d42R1SU2kDZMAuAZ5S3VzpM5D65 X-Received: by 2002:a17:906:6805:: with SMTP id k5mr11374077ejr.397.1600034724032; Sun, 13 Sep 2020 15:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600034724; cv=none; d=google.com; s=arc-20160816; b=vEYhcsO1QLgsB4MvZkGkdnhUmO13JsosGqOGTqyxsWGYbDvkWNyryow1HZrujUZ+pS 97jlCgll070SHLblMU/PVK15zEJhl32g3gWw/Sn2sK8m1xrc6aftMrCX1JXdVfR7vZoi y7AVtKqVT/lmoIB1o9Ds7guJqj0iUuhYHyU6SThg1Qeu6bzXrhG2jEOP8DR5L6FpaDV3 zYnSsqz/Wbgw37ezc3GylT+Xmh/xi9MJPj+xEeKBE5h0jr21OicofUO6UNLkOqx2P4vv vOlkTlabr2bA8eLY6R6NgCWMw2df1N8jOuA+jnDc6943oFoMbuwwC2n3+cv8TAvuLJ0F z8YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=0vTSBRn5WHx7qRnHEBgCpmmxaWmG9AHFklQJK9CNxGo=; b=tHbiky1+YGV5C9eP2kb+Re8/PBE4jLewOmdoZtlxEGXJKicl4WUYBfpocjPEzpe6Og ljPh1IUZsBPWwkW4bJr9ajFfcXQ+s44f+2w3agv/cdwqxri5k2gCWYLs0j24ClUft7NX zyeENEfCWU3T55opzjlucwi9l1pt+EKK3YkNWzPw9IM7N8dtmKtEDmp+xGOIeKwxbPLq qlvwkJEmuchVpR8VSAapafDL16TX2fZwTSy86UNkY4t3UTLcaCRmOkrYHRAZXOqpfXy1 7jbZXzobtQkQ8L18y9vxxlTog+GrokjIZQchga3s4fYc93LjR/zJU6BiIWPI5Lh8g9Rq kejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=SF8O7cSl; 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 v5si5671151ejg.609.2020.09.13.15.05.00; Sun, 13 Sep 2020 15:05:24 -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=SF8O7cSl; 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 S1725956AbgIMWEA (ORCPT + 99 others); Sun, 13 Sep 2020 18:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgIMWD7 (ORCPT ); Sun, 13 Sep 2020 18:03:59 -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 E9BFAC061787 for ; Sun, 13 Sep 2020 15:03:57 -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 337FE891B2; Mon, 14 Sep 2020 10:03:48 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1600034628; bh=0vTSBRn5WHx7qRnHEBgCpmmxaWmG9AHFklQJK9CNxGo=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=SF8O7cSl1ocr6+OhWS+vS23ABoJSWyVCnQvk6PDIGORpHGtwTyQ78AGg2csUwR+Ao Q0/w30RLmAy914O+vAjvBJOrQMUcCc46uR+5qrOkyfFEMjK2YO5MhyiKmSqlIPqRt0 BENaZRZpV3Tii3o2siH3vo2GuOWWYNKP7+wSLTdMLyg8w0DLmWZEzbhZWLdASRcjZu AUJIY1TmIGy8yvfo1XrCW665mV8mBbzQoUZtIXk2medGOQjl3JLDIPd5rmqLUiU/dA FmjKzUaZtCXpGYsnvtXfHA06LLxV1/j9YbeVaqR6RlvYBpoxYN39JDekTxrvygu1ta dWlw/3MdvKH2Q== 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 ; Mon, 14 Sep 2020 10:03:48 +1200 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 14 Sep 2020 10:03:45 +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; Mon, 14 Sep 2020 10:03:45 +1200 From: Chris Packham To: "broonie@kernel.org" , "npiggin@gmail.com" , "hkallweit1@gmail.com" , "Joakim Tjernlund" 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: AQHWglJIf7HpaAEB10myzqnWl8w4galmZa8A Date: Sun, 13 Sep 2020 22:03:45 +0000 Message-ID: References: <20200904002812.7300-1-chris.packham@alliedtelesis.co.nz> In-Reply-To: <20200904002812.7300-1-chris.packham@alliedtelesis.co.nz> 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: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQWxsLA0KDQpPbiA0LzA5LzIwIDEyOjI4IHBtLCBDaHJpcyBQYWNraGFtIHdyb3RlOg0KPiBU aGUgU1BJRSByZWdpc3RlciBjb250YWlucyBjb3VudHMgZm9yIHRoZSBUWCBGSUZPIHNvIGFueSB0 aW1lIHRoZSBpcnENCj4gaGFuZGxlciB3YXMgaW52b2tlZCB3ZSB3b3VsZCBhdHRlbXB0IHRvIHBy b2Nlc3MgdGhlIFJYL1RYIGZpZm9zLiBVc2UgdGhlDQo+IFNQSU0gdmFsdWUgdG8gbWFzayB0aGUg ZXZlbnRzIHNvIHRoYXQgd2Ugb25seSBwcm9jZXNzIGludGVycnVwdHMgdGhhdA0KPiB3ZXJlIGV4 cGVjdGVkLg0KPg0KPiBUaGlzIHdhcyBhIGxhdGVudCBpc3N1ZSBleHBvc2VkIGJ5IGNvbW1pdCAz MjgyYTNkYTI1YmQgKCJwb3dlcnBjLzY0Og0KPiBJbXBsZW1lbnQgc29mdCBpbnRlcnJ1cHQgcmVw bGF5IGluIEMiKS4NCj4NCj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