]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: picoxcell - adjust the position of tasklet_init and fix missed tasklet_kill
authorChuhong Yuan <hslester96@gmail.com>
Mon, 9 Dec 2019 16:21:44 +0000 (00:21 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commit48dededc525745cf7b6c98cbc6aba410ab983989
tree90587504f29a4b848aaf5f24391082368dcde7e2
parentcf16317ecf1589e0e8eda33e3bc62d9aae023a1f
crypto: picoxcell - adjust the position of tasklet_init and fix missed tasklet_kill

BugLink: https://bugs.launchpad.net/bugs/1866678
commit 7f8c36fe9be46862c4f3c5302f769378028a34fa upstream.

Since tasklet is needed to be initialized before registering IRQ
handler, adjust the position of tasklet_init to fix the wrong order.

Besides, to fix the missed tasklet_kill, this patch adds a helper
function and uses devm_add_action to kill the tasklet automatically.

Fixes: ce92136843cb ("crypto: picoxcell - add support for the picoxcell crypto engines")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/crypto/picoxcell_crypto.c