Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941260AbcJXUiN (ORCPT ); Mon, 24 Oct 2016 16:38:13 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:63014 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938760AbcJXUiL (ORCPT ); Mon, 24 Oct 2016 16:38:11 -0400 From: Arnd Bergmann To: Mark Brown Cc: Heiner Kallweit , Linus Torvalds , linux-kernel@vger.kernel.org, Heiner Kallweit , Nobuteru Hayashi , linux-spi@vger.kernel.org Subject: Re: [PATCH 17/28] spi: fsl-espi: avoid processing uninitalized data on error Date: Mon, 24 Oct 2016 22:37:53 +0200 Message-ID: <3945489.MQiL9ES5FK@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20161024184543.GR17252@sirena.org.uk> References: <20161017220342.1627073-1-arnd@arndb.de> <20161024184543.GR17252@sirena.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:gyBWebxgg+JMhhF2rm0bHSYntx7FujqyQDNH4tbAOu+SUwt/zK6 0IZsiyaNZJyV1pa5L2wIk2oGVBnQb1BEICvcIhs4dCTYmAIdmftjF6nTV9L3bSg+ZQRxlo7 XD9dLwn8Pp7P43v3DGWHbNBDF2gH2X3LenciLxNVHzJcigBZdq4F0gwLl12B7HVvnckkMIo 23pWtlhKSdjOorjx87IRg== X-UI-Out-Filterresults: notjunk:1;V01:K0:SOZ/CVd/i3I=:+BOhrP6n198SRwjuiZEt75 EmjR3ytgkZiqZ1fMSv006rl9YTLk1Mcy678J2NS0mVcso3SnSKd9EFNLX9el4V3DtHrnFfxt+ K1vXyzjpXurOylvkguUgL2+NNdFu+r0wTtJ4NGAHvpK79nj0GXsRmyKSiAc6TO2wtuGA2BG1p sRzyQm4niiWWB7Y4/zQK84Biq1GDATWeHuuF4PoJpv7hMKDq3r7JKBPHX47X6M5Z/JkZ0d+gv UK+hCc+/6AqfdqHGfns8E0VO4/JHdkjJZuKj4sIWqCrwtNOWUlampFl1Zd3p5f2k6F8iMzcjl V8UjDQjSrDED/uJmgSWK4pChm/nO9eLXzclS+Q2Wjgy5H8PnoalnSePy9YDITegW57d2phldY vn98qepPtW/yk5EU7x39ibTPLynSCzu6JZ1zJkyOvdszlXPHdVo4FqNkZGSEsaoILweT93F4p DGplU/15KAdGPBODFsJ36pDaHCTzPfO9m4GljzhavNgxVu8ZNsXz8NVyArrETrD59LkQbV2lr 8wemPdcyW/8i4MC30a39nMI1uCpc6ZCpNaWcacZ1yHypS0NBGbXuAYKVaF4gbYcZ9MnT15wP2 PeVSl/d8k9MIS2v59JBSfHIfYRZxVSlkvEkk8i1x6KyeZHWIewKZ/Q2FY5o67CRdNOinR8hM3 gxcx2KoquFmjWKZXXZzjHZaSuiS2Hqr4eQixw9FQGzKHTCle1GHmWNMPsYsNlHzhBWdRY+aJA SWmhS45ZQh0ly7Gu Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1330 Lines: 30 On Monday, October 24, 2016 7:45:43 PM CEST Mark Brown wrote: > On Mon, Oct 24, 2016 at 08:36:37PM +0200, Heiner Kallweit wrote: > > Am 24.10.2016 um 19:27 schrieb Mark Brown: > > > > This doesn't apply against current code, please check and resend. > > > The not yet reviewed part of my patch series from Oct 2nd, > > namely "[PATCH 07/11] spi: fsl-espi: fix and improve reading > > from RX FIFO" replaces the code in question. > > There's more to fix like removing polling from the ISR. > > If you prefer to apply Arnd's fix first I'd rebase the open part > > of the patch series and resend it. > > If there are dependencies you should mention them when you resend (in > general you should always mention any unapplied or cross tree > dependencies when sending things). I think my patch (the version I sent) should ideally make it into v4.9 as a bugfix. This was the powerpc warning I saw from Olof's autobuilder with the -Wmaybe-uninitialized warning added back, and it's one of the actual bugs I found (though rather unlikely to hit in practice). Merging with Heiner's patches should be trivial, and I'm pretty sure we want the patch either way. Not sure if we need a backport, it was introduced earlier this year in commit 6319a68011b8 ("spi/fsl-espi: avoid infinite loops on fsl_espi_cpu_irq()") as I now found. Arnd