[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMZO5B43Cm+xtAMc5tLHAMzoVO0JJR+T+G0MPtC9oGAmjrP2w@mail.gmail.com>
Date: Mon, 27 Aug 2018 11:13:49 -0300
From: Fabio Estevam <festevam@...il.com>
To: Geert Uytterhoeven <geert+renesas@...der.be>
Cc: Mark Brown <broonie@...nel.org>,
Kirill Kapranov <kirill.kapranov@...pulab.co.il>,
linux-spi@...r.kernel.org,
Linux-Renesas <linux-renesas-soc@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
stable <stable@...r.kernel.org>
Subject: Re: [PATCH -next] spi: Fix double IDR allocation with DT aliases
Hi Geert,
On Tue, Aug 21, 2018 at 6:53 AM, Geert Uytterhoeven
<geert+renesas@...der.be> 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 <geert+renesas@...der.be>
This fixes SPI on imx51-babbage, thanks.
Tested-by: Fabio Estevam <fabio.estevam@....com>
Powered by blists - more mailing lists