* Patch "crypto: ccp - Disable interrupts early on unload" has been added to the 4.10-stable tree
@ 2017-05-16 10:52 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-05-16 10:52 UTC (permalink / raw)
To: ghook, gregkh, herbert; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
crypto: ccp - Disable interrupts early on unload
to the 4.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
crypto-ccp-disable-interrupts-early-on-unload.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 116591fe3eef11c6f06b662c9176385f13891183 Mon Sep 17 00:00:00 2001
From: Gary R Hook <ghook@amd.com>
Date: Thu, 20 Apr 2017 15:24:22 -0500
Subject: crypto: ccp - Disable interrupts early on unload
From: Gary R Hook <ghook@amd.com>
commit 116591fe3eef11c6f06b662c9176385f13891183 upstream.
Ensure that we disable interrupts first when shutting down
the driver.
Signed-off-by: Gary R Hook <ghook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/crypto/ccp/ccp-dev-v5.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/crypto/ccp/ccp-dev-v5.c
+++ b/drivers/crypto/ccp/ccp-dev-v5.c
@@ -888,10 +888,10 @@ static void ccp5_destroy(struct ccp_devi
iowrite32(cmd_q->qcontrol & ~CMD5_Q_RUN, cmd_q->reg_control);
/* Disable the interrupts */
- iowrite32(SUPPORTED_INTERRUPTS, cmd_q->reg_interrupt_status);
+ iowrite32(0x00, cmd_q->reg_int_enable);
/* Clear the interrupt status */
- iowrite32(0x00, cmd_q->reg_int_enable);
+ iowrite32(SUPPORTED_INTERRUPTS, cmd_q->reg_interrupt_status);
ioread32(cmd_q->reg_int_status);
ioread32(cmd_q->reg_status);
}
Patches currently in stable-queue which might be from ghook@amd.com are
queue-4.10/crypto-ccp-disable-interrupts-early-on-unload.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-16 10:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-16 10:52 Patch "crypto: ccp - Disable interrupts early on unload" has been added to the 4.10-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).