[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFonzvtfeERzxMm0WLWOwR492GCkNvB24bxoOQEfgZXsZw@mail.gmail.com>
Date: Fri, 15 May 2020 09:09:14 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: "linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mmc: uniphier-sd: call devm_request_irq() after tmio_mmc_host_probe()
On Mon, 11 May 2020 at 08:22, Masahiro Yamada
<yamada.masahiro@...ionext.com> wrote:
>
> Currently, tmio_mmc_irq() handler is registered before the host is
> fully initialized by tmio_mmc_host_probe(). I did not previously notice
> this problem.
>
> The boot ROM of a new Socionext SoC unmasks interrupts (CTL_IRQ_MASK)
> somehow. The handler is invoked before tmio_mmc_host_probe(), then
> emits noisy call trace.
>
> Move devm_request_irq() below tmio_mmc_host_probe().
>
> Fixes: 3fd784f745dd ("mmc: uniphier-sd: add UniPhier SD/eMMC controller driver")
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
Applied for next, and by adding a stable tag, thanks!
Kind regards
Uffe
> ---
>
> drivers/mmc/host/uniphier-sd.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/mmc/host/uniphier-sd.c b/drivers/mmc/host/uniphier-sd.c
> index a1683c49cb90..f82baf99fd69 100644
> --- a/drivers/mmc/host/uniphier-sd.c
> +++ b/drivers/mmc/host/uniphier-sd.c
> @@ -610,11 +610,6 @@ static int uniphier_sd_probe(struct platform_device *pdev)
> }
> }
>
> - ret = devm_request_irq(dev, irq, tmio_mmc_irq, IRQF_SHARED,
> - dev_name(dev), host);
> - if (ret)
> - goto free_host;
> -
> if (priv->caps & UNIPHIER_SD_CAP_EXTENDED_IP)
> host->dma_ops = &uniphier_sd_internal_dma_ops;
> else
> @@ -642,8 +637,15 @@ static int uniphier_sd_probe(struct platform_device *pdev)
> if (ret)
> goto free_host;
>
> + ret = devm_request_irq(dev, irq, tmio_mmc_irq, IRQF_SHARED,
> + dev_name(dev), host);
> + if (ret)
> + goto remove_host;
> +
> return 0;
>
> +remove_host:
> + tmio_mmc_host_remove(host);
> free_host:
> tmio_mmc_host_free(host);
>
> --
> 2.25.1
>
Powered by blists - more mailing lists