[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5h1sfoh63u.wl-tiwai@suse.de>
Date: Mon, 09 Apr 2018 15:17:09 +0200
From: Takashi Iwai <tiwai@...e.de>
To: "Jia-Ju Bai" <baijiaju1990@...il.com>
Cc: <T-Bone@...isc-linux.org>, <perex@...ex.cz>,
<alsa-devel@...a-project.org>, <linux-kernel@...r.kernel.org>,
<linux-parisc@...r.kernel.org>
Subject: Re: [PATCH 1/2] sound: ad1889: Replace mdelay with usleep_range in snd_ad1889_init
On Mon, 09 Apr 2018 15:03:20 +0200,
Jia-Ju Bai wrote:
>
> snd_ad1889_init() is never called in atomic context.
>
> The call chain ending up at snd_ad1889_init() is:
> [1] snd_ad1889_init() <- snd_ad1889_create() <- snd_ad1889_probe()
>
> snd_ad1889_probe() is only set as ".probe" in struct pci_driver.
> This function is not called in atomic context.
>
> Despite never getting called from atomic context, snd_ad1889_init()
> calls mdelay for busy wait.
> This is not necessary and can be replaced with usleep_range to
> avoid busy waiting.
>
> This is found by a static analysis tool named DCNS written by myself.
>
> Signed-off-by: Jia-Ju Bai <baijiaju1990@...il.com>
Since it's no urgent fix, I'll postpone to 4.18.
thanks,
Takashi
Powered by blists - more mailing lists