Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2007044pxk; Mon, 14 Sep 2020 02:08:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8D7RCn6G5Rfs1JEQZhtsQGF2eQwtr79R8460iVeBlg5eENG5QJ7SIrbnMEyildVBi4H8a X-Received: by 2002:a17:906:3c01:: with SMTP id h1mr14105247ejg.111.1600074526297; Mon, 14 Sep 2020 02:08:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600074526; cv=pass; d=google.com; s=arc-20160816; b=tmSGU9uuU5L+X49J+mZk5+9r0Fq2AwytcWZhgrY1v5cXqPn4Xgsn3Pt4pHgy1CLJRo SVKnnaKWMaqzJRRGrG0jvmVWAQT3ei8bzJE2uMpPDLiYfjBX9pWKX0ANx9gVIzQukAaO brw+1cu/Sn/9e5CA/Sc6m9qoxhQaqQY9ne4L13veWkCDR6nPqZgNAVcsdVtN/eo58G3G oc+ZKgvC1nFqiuhuWxlOh/q1lJwn/4pxz2llo9soAh6JVaQrwjpQvCGnkHPhXYnDhXOp gaUuE6HIlY4gCr0IJxMMfVhlTXWF18f0RkNXcNtvXgYpHDvUQjXhPRlkmRjuYZkoEZFf jYkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=OHIlsQZJ/lbsypyE/2m0tKIro9ZIX1IVoMFm/LHuL+s=; b=PISs1QZ6Sooqj2aU4pwNVva+cO1lysv8+kPFDNDe6NH+w9xjWzrBYQrYVV2gxF02tj 1t2lcmXCCEHg/MfLMnMdXI5hvIPRr5GR1CrnsLLil3VnO4HSIFZyxEItmEbOUYIkigaT F22H7U/A2ZEU9yRz3WwkjxSuPfbft53IkxHhCyrMo+NkBboJfU5lmcF+b2cxzbuek9yX Ydnr+Oes413Gg1hdyTbzSp9yPVvqipxu/VpFSkhkFtIjvmXrxVm5GR2IeibOTKsPxnng cmBEvvvBlri2uTfx9XmKDIlBbVcj/bTj+J8fq5llpK8jmOoBfm7AOpXdBV+IitXowngL FPKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infinera.com header.s=selector2 header.b=X0TnHGZc; arc=pass (i=1 spf=pass spfdomain=infinera.com dkim=pass dkdomain=infinera.com dmarc=pass fromdomain=infinera.com); 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=infinera.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt8si2686075ejb.503.2020.09.14.02.08.23; Mon, 14 Sep 2020 02:08:46 -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=@infinera.com header.s=selector2 header.b=X0TnHGZc; arc=pass (i=1 spf=pass spfdomain=infinera.com dkim=pass dkdomain=infinera.com dmarc=pass fromdomain=infinera.com); 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=infinera.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726237AbgINJGo (ORCPT + 99 others); Mon, 14 Sep 2020 05:06:44 -0400 Received: from mail-eopbgr700064.outbound.protection.outlook.com ([40.107.70.64]:23008 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726110AbgINJGk (ORCPT ); Mon, 14 Sep 2020 05:06:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fu5Kluvur/1cQHqUVWNe1m8OhHw4l54CfA3LOm89LO8v3bUiY7lpD+ujC3Ium88L1igPS2IgNbggJ+8coQUGFfz1XIoeBScbUZMsmmdQUNE2QlOUFR3GeJUNIj8VqNG7apIrBBSALEH/vPIHUhCf150/lUmm11PG4lKZ8nzLNrdVgxcQ/lKE7oR6+cspSq0FQK2pcGeyLOt/no1HwGsVJ2KxE2Ew/C/fgqLk3aXqIpkwwdB1V9LtENkEcRnt0ml3gtwiWfF0jWwJiBNqLGu//XPd6jULReCh78XZ5iz5SVvZePu9RjAshpQ0R7+PQq8HveBUzD6J6wsne/pw5de9Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OHIlsQZJ/lbsypyE/2m0tKIro9ZIX1IVoMFm/LHuL+s=; b=kNU8CCri7Co0Tl36ES4x7OUkEo2DKpfrCo1CBXTlk5lKxmx3oAGt7FDXEaZ+SSRPsmOzor8/b1KVzTggFHNELPYujtNizek5XtG7scj8nrjXoqGRpm5rpolX1wE4H6gG+IN8WjJNRTo3Eiv+fs1cmKbZ+6PGjYanNDd6hcPraXldvDX51nQBGFpRfCNOP7dEvTZdSxuXAY/olh5E5MtRuSgup7igXFmCdUASYYwbZpeIpCKM7WI/kQjXW84Ra0z78o5q8Yuhdi06TYuheDhfnlMYdJaJxmNOem9cakKdpBv0bSY3AZV3ABZaaM9YUKUkDl/8zxCDcedGGWkoHBsEsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=infinera.com; dmarc=pass action=none header.from=infinera.com; dkim=pass header.d=infinera.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infinera.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OHIlsQZJ/lbsypyE/2m0tKIro9ZIX1IVoMFm/LHuL+s=; b=X0TnHGZcSrrfDGu4wtZpHGhwP/rtR7Xh0ko+8KE84Uu/WSjb7tGZ+gEFDwb/uj20hKIJ7lpAiXRsssTOqJKiyIMN2OzHn1t1tFjm54vZQvcTvs8uFQYVKt9nwjgdLH0/a4X4YyRwFz+ACcqmTIVdmlSjoJYJizuym5zo8Tx0GIY= Received: from CY4PR1001MB2389.namprd10.prod.outlook.com (2603:10b6:910:45::21) by CY4PR10MB1943.namprd10.prod.outlook.com (2603:10b6:903:11a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Mon, 14 Sep 2020 09:06:36 +0000 Received: from CY4PR1001MB2389.namprd10.prod.outlook.com ([fe80::7c3b:e8e3:3d1b:284d]) by CY4PR1001MB2389.namprd10.prod.outlook.com ([fe80::7c3b:e8e3:3d1b:284d%7]) with mapi id 15.20.3370.019; Mon, 14 Sep 2020 09:06:36 +0000 From: Joakim Tjernlund To: "broonie@kernel.org" , "npiggin@gmail.com" CC: "linuxppc-dev@lists.ozlabs.org" , "linux-spi@vger.kernel.org" , "stable@vger.kernel.org" , "linux-kernel@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: AQHWglNX/MkS6yQMU06L+lI5I1P9i6lnLtiAgABJ/gCAAG8xgA== Date: Mon, 14 Sep 2020 09:06:36 +0000 Message-ID: <7ae62a6e39195af79eb8415f98d64ba5a1789d8d.camel@infinera.com> References: <20200904002812.7300-1-chris.packham@alliedtelesis.co.nz> <1600050281.5iiy8pkb7z.astroid@bobo.none> In-Reply-To: <1600050281.5iiy8pkb7z.astroid@bobo.none> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.37.92 authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=infinera.com; x-originating-ip: [88.131.87.201] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0b6f2e28-46ef-4b8a-7c2d-08d8588d7bd7 x-ms-traffictypediagnostic: CY4PR10MB1943: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0TIZOBoZN+FpKtWDngocoG870EHHdq/iRUE18KGrb+gQWvs46s7M0k7WKddRnXWZUC0byjcyTEXWCtzuOjxG/QW7mTqddNahpLMIY9BD7sTXSH/vs0ej1ty2E5xRec4HfZUQx4YPTZ5AYZ0iOINcVbTFIQgeFa7/D1mLGXVxo0/Ii8+7hG4hu0isicKfbPkdrUMP1rtqx3WyfYo+EUbn2sayBKWCTe5/+ltNqXycz3FH935DUFp53yw+Us4hKKPckoTEyuZ6KSbV7pdEmQIsLx7t4S8Ez8f2+pmYBisBFdWG0ViogSvCJtgwkVuJjPaUoxrcA+9Kf5fQWL3UE0xPpw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR1001MB2389.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(376002)(366004)(136003)(39860400002)(396003)(54906003)(5660300002)(110136005)(6512007)(6486002)(316002)(71200400001)(2616005)(66556008)(66476007)(478600001)(8936002)(2906002)(53546011)(64756008)(66446008)(36756003)(6506007)(26005)(8676002)(66946007)(83380400001)(76116006)(91956017)(86362001)(186003)(4326008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: P1Ga8YsOs0KbKjCySpOli/t5xrDt4G29K2chYij0oKFYUNheZEHGQhM3MNPqzmb6nZr6pYUD74RqIYqTYqRtBUaGyzRGb4+cUXG7X3k7p5vk7Lg+8wqIINj4qg50Byp7SeKvPfRzJukZUgJZbWs5nxfvz+2CFzYJdsK0Ywanoqg0TqZD0E3mLDaKf28ezX0tOY51O9f64yn3xMTwyrzffVNERXMz+oG8pocwAtrDwLjqsXzLJxEy8lQhXWT/1xUFuWsMkUuuQPs/hDWpKtpO8tn5KttJM82bkrH+4szzxi8mTpPib/ghu1yNL/qaIXHMYXePKwggDTGg+9AbZauDfUN0zj/e5Tcj+FP3mfY+e2YzHlNJ+cLXDl3gnU5rQffsyT1ApQZSxNrirKCXyQ0NQ6cJy+NlTrGwDpcVB+T0YXzwsQpFCS75k905Hd7mePKKhF2ZC9voa8tagMGsiPoM7j0030d/DJy7CR2s4qtI0pNjzTUpQ5zaH8qaXFrrTJ6a+4QRLRZramkBKEDW8oV1yJVOcTnGQ/mPdEWVvYUPvggmESrL0agNAW1YTwD3e3xhXwZoF8a7meBU/4u9eGSgZxgEnw0xuU4mW+fkeE6DrVbh+/3dbMyJ64VcgUvWKE5o90vEULMR7KlVFxja60v+qw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: infinera.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR1001MB2389.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b6f2e28-46ef-4b8a-7c2d-08d8588d7bd7 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Sep 2020 09:06:36.2928 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 285643de-5f5b-4b03-a153-0ae2dc8aaf77 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: U2VNkKMxraK7S4mfZycH25Jb2q0k+Cg65An/Jfx1Xa3rxPFjqmtIi5NitG9daCzKtIKYGQJYaKcUoyhi61YeKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR10MB1943 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-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