Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5407940imm; Tue, 21 Aug 2018 11:10:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPztFO2pf5gLqlx30dxHQFs+qClxy3T8xwWjdKAW7D6BhMRV5bWIbunlVdmrSPhzzp1kgYIM X-Received: by 2002:a62:34c4:: with SMTP id b187-v6mr53571372pfa.15.1534875030164; Tue, 21 Aug 2018 11:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534875030; cv=none; d=google.com; s=arc-20160816; b=JAm+dvTgKrLsidLRo/uJ+5jzcCxC7vITNmOQa1mSPPhN1ih2ZHtxM8WGxE/9Qhsu4r BoJXSulyU7h6UPO1qMbTx+/BJJX56pE9iKMIP/LstQOskBBlvfB++aEaqTcMGVl4QMxC hx0Rvf+0EQfkZMev8e0ACiShQ3V/LXAxzvEAdmhkKi6Ti+M7lpUJnMQNSio0MegzYoFZ XOEmE420MyM2ZY8k5TClqUFMvcYoAqKpigP7ZYGxwKc7+L57X9QjhRRDgHgEYJ8eDd97 kz5SHuBlRAIWe+Cu1KMxrPHptZqe9f4kMmZp9PujeCiz3hq5alc2yJwu0oSE335E8r3a jFlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=nOcZ3QdO+X3tB4ERHRS+HDYvmfx3qw/Lj9awlNtuIos=; b=LpjfCVvTr90MxTg0S2zTQ6K4l8YqyM8sX1a7heu7Lz+tkxXfdQfLPNn8siLqd2RApz 7921xyxplvtT1K+ZtjHlYJs90v2XFxCIUjYVrJ1W2UQfpjXI/6XfZM8sH0cZE8TC3off sQFfPy8DMZqKcS0U6rkQL90qQ/ct/DBVvQdCuAvlyBT42JoI90bTAxzQbCMFsyifHNis /y3GiGUuNzWY8CfTfDcgrn6g0XP+9U5rxi2f3J2n3lVdd2NiUy51R3HXvkqs4BLa1Umq hIZayJqyK4poeXw1NSZuz/96lHiVpfP9exuUZkzv+PoSXljlFG5UaE07aRHd2PvDoN1i rqkw== ARC-Authentication-Results: i=1; mx.google.com; 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 u1-v6si13082187pga.71.2018.08.21.11.10.14; Tue, 21 Aug 2018 11:10:30 -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; 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 S1727358AbeHUVDY (ORCPT + 99 others); Tue, 21 Aug 2018 17:03:24 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:40601 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbeHUVDY (ORCPT ); Tue, 21 Aug 2018 17:03:24 -0400 Received: by mail-ua1-f68.google.com with SMTP id m13-v6so12335442uaq.7; Tue, 21 Aug 2018 10:42:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nOcZ3QdO+X3tB4ERHRS+HDYvmfx3qw/Lj9awlNtuIos=; b=g6+VCGkvbxmFmy8msJp9Lgzst4fdJCFhgJsVMxwd0EYf5j5Xgy2wt+db0/lpLPFWIr ajxRkqY5MnF0x0ga/rYzN2crF2fkNv7wwuvvm+JUxLtyIEoERBUy/CUKj0/k/Y9vx6xQ y3nEQi50sk8WKP23ZynCSEdDpPXzl75t4NmKejWcVW4IDDj00goDwdMX0vFo1jW1Sn85 xht7rj0aXLWnHm7LT0DBg+jAtQEdrJvI1iVIGUoAiMt4eycoU31sQ2i148u3UbaBBOVK 69B/FR8kHWuELA2xMFsbpM8KNVNW4YqYlV5VorwKsl7gdvTRjcOFPGO6dog4poCq2G37 moyw== X-Gm-Message-State: APzg51CgVL7yY35VDfg1n4ervkWGxcZAnZn5qWTgg7O2JiJ1s3EZ/nzq xGhMvlkgZ8afSOSl1EJSC6wvLSsHQ+qVKiYZmoo= X-Received: by 2002:ab0:51ac:: with SMTP id g41-v6mr2240508uaa.155.1534873336649; Tue, 21 Aug 2018 10:42:16 -0700 (PDT) MIME-Version: 1.0 References: <20180821095303.27664-1-geert+renesas@glider.be> <20180821134044.GA18693@kroah.com> In-Reply-To: <20180821134044.GA18693@kroah.com> From: Geert Uytterhoeven Date: Tue, 21 Aug 2018 19:42:03 +0200 Message-ID: Subject: Re: [PATCH -next] spi: Fix double IDR allocation with DT aliases To: Greg KH Cc: Geert Uytterhoeven , Mark Brown , kirill.kapranov@compulab.co.il, linux-spi , Linux-Renesas , Linux Kernel Mailing List , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Tue, Aug 21, 2018 at 3:40 PM Greg KH wrote: > 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. > > I know. I only CCed stable because the acceptance email for the original patch was CCed to stable, and I wanted to prevent that one from being backported early. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds