OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:29:56 +0000 (16:29 -0500)
commitf98c063f1c0e5ece216715f3ff3d84e8b8cfc80c
treebcbd9f8514030360f19ff04253d3028b59f6f7f2
parentaa2862a427df19ada9b182cc86bedd74cdd83815
crypto: picoxcell - adjust the position of tasklet_init and fix missed tasklet_kill

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>
drivers/crypto/picoxcell_crypto.c