Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5123880imm; Tue, 21 Aug 2018 06:42:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwoLwmT/N092TB94yCSSRuqqPgQofDn3jOBc4M3yuP+a0g8XwUFTeN3Pb1n9R70TWC6bqEz X-Received: by 2002:a63:740f:: with SMTP id p15-v6mr16511441pgc.395.1534858963294; Tue, 21 Aug 2018 06:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534858963; cv=none; d=google.com; s=arc-20160816; b=kWG9bNDpb3jBdtkwjGcaIHuEmzuxu3zbKdeotnBtuKytq6U1NfwFwW/4xVg/hvumJI JdDc6O1OLA7MrBp8YFG0WtiZ8EnRmxtvzxwLeVjbmkh9ZyEXnpsisUOkq/Oh3y8OfUWg osUseq6gjtWLsn3KfgevrL3qSGwq5TEXb+zPwZzInOoMh3u1ATyxRDrrfTZdx8Sp3v7A wq1pXadFufWuhn3I9c1ecagApdUv5r3tNb4gLfrBcb24LOn79x4MjXoyfzpjSbRcsacy prE2CDP4jLS6J2y7CUsCngW4gxPd4JpzlV9vIwVGa9IvvSS92UnqhBb6rmjUSaiUerQl UddA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature :arc-authentication-results; bh=2C731JKeMnPKjUjS7F8NA1HnhlXVkQHiMtH2XQiIsec=; b=Snc5HvEg9kysd1IaQtd4YwqVCTXviBsjSteQ107lxltHkiEZerjp4qfnJCv+ydbiQ8 j9Ive4o3KxsUOgjvi3Qmtpv7k6EuGNCNI0C6taMuKPC7RooxnTmz9XKtX5bWuD3bf6v9 PWqQTyF/FqSIHqZpXOK5pxd7PQd3f4PFz3gA/eMXqYk6YmXFBRGxaSgegeeQxPy8gz9C ClBh+bppUxmepGINeEW2CbPUVaA4t0DnZg529ftHvvB9Vv2CJCykfeb2zlRFixYsSnRA uuUSpgef9pL7VJ4zcZdyp3lXPKqXOz3Ds3hwIYR85wz0ZDIJJCJXbtpWN8ly0iGD6Ssx ZksQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=po6S1S3x; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=tFZqbf+p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t30-v6si8821566pgm.66.2018.08.21.06.42.28; Tue, 21 Aug 2018 06:42:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=po6S1S3x; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=tFZqbf+p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbeHURBB (ORCPT + 99 others); Tue, 21 Aug 2018 13:01:01 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39275 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727049AbeHURBB (ORCPT ); Tue, 21 Aug 2018 13:01:01 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CCDF6220B8; Tue, 21 Aug 2018 09:40:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 21 Aug 2018 09:40:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=2C731JKeMnPKjUjS7F8NA1HnhlXVkQHiMtH2XQiIsec=; b=po6S1S3x 61dpYep/Y3Uu40lLAuNRcUYIP30hHIA1iHxu6rozt3m9seAU5LLSRtc5S7+ROn5l N5Kzfl01zc3af2yq6HqMCX14r/wgFl37Bla38W6/xUOCM22RlsVEpKwj0ZfsxPCP Voh0+imW07QHPDAGg4Xvly3NqjmvFn34bL3xrqplyUWztP6RkK50yOBnBvsWOKN+ 1Tms79y2N0OKLLSbh6D+DxVPRUOgf+VM4YMU1HJZR5lE0zS75+OKlLtnQUvmvifK V8RQe9TaPbowcTK0ZcSax2lRymiDfQTycmKybQu3qgpbrZhjX471VLCVcgkEZv5M jwHiCTMFaff+5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=2C731JKeMnPKjUjS7F8NA1HnhlXVk QHiMtH2XQiIsec=; b=tFZqbf+pzuY/aibEMvPJLTgvnudLxTN5P4aWvALthRrFG JHFBU+lrTSMBP0+wtT01Af0/EX5PY4y2qdL0uNekLhq5pJSk+3OmYQgT1ZxGxLQk TvY8pODk1aEzLHBMfSw+IhJ6vQD7/jhRAIItRHKEI4fL05vHNtp0KeQHMGWSlvdH XbtiDsMTBIh20W+g0mzzEC6tNATx2QJgy7qtluqFQpVlS9PuDmhxQEIO/i2uKjKv R0kmkDtpyEcWmMMuvSz49GdPonn2fr2vNMJXDwaz0ONgJvf+MXr9zVJgastVxuzd KSSKYIp3oWUUgyIVksDkCSRJL++8Zx4+woWuTyFLQ== X-ME-Proxy: X-ME-Sender: Received: from localhost (ip-213-127-46-227.ip.prioritytelecom.net [213.127.46.227]) by mail.messagingengine.com (Postfix) with ESMTPA id 831A91028C; Tue, 21 Aug 2018 09:40:47 -0400 (EDT) Date: Tue, 21 Aug 2018 15:40:44 +0200 From: Greg KH To: Geert Uytterhoeven Cc: Mark Brown , Kirill Kapranov , linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH -next] spi: Fix double IDR allocation with DT aliases Message-ID: <20180821134044.GA18693@kroah.com> References: <20180821095303.27664-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180821095303.27664-1-geert+renesas@glider.be> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 21, 2018 at 11:53:03AM +0200, Geert Uytterhoeven wrote: > If the SPI bus number is provided by a DT alias, idr_alloc() is called > twice, leading to: > > WARNING: CPU: 1 PID: 1 at drivers/spi/spi.c:2179 spi_register_controller+0x11c/0x5d8 > couldn't get idr > > Fix this by moving the handling of fixed SPI bus numbers up, before the > DT handling code fills in ctlr->bus_num. > > Fixes: 1a4327fbf4554d5b ("spi: fix IDR collision on systems with both fixed and dynamic SPI bus numbers") > Signed-off-by: Geert Uytterhoeven > --- > Seen on e.g. r8a7791/koelsch, breaking both RSPI and MSIOF. > --- > drivers/spi/spi.c | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.