diff mbox series

hw/nvme: clear aen mask on reset

Message ID 20220512093055.726022-1-its@irrelevant.dk
State New
Headers show
Series hw/nvme: clear aen mask on reset | expand

Commit Message

Klaus Jensen May 12, 2022, 9:30 a.m. UTC
From: Klaus Jensen <k.jensen@samsung.com>

The internally maintained AEN mask is not cleared on reset. Fix this.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
---
 hw/nvme/ctrl.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Klaus Jensen June 3, 2022, 8:33 p.m. UTC | #1
On May 12 11:30, Klaus Jensen wrote:
> From: Klaus Jensen <k.jensen@samsung.com>
> 
> The internally maintained AEN mask is not cleared on reset. Fix this.
> 
> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
> ---
>  hw/nvme/ctrl.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
> index 1e6e0fcad918..4c8200dfb859 100644
> --- a/hw/nvme/ctrl.c
> +++ b/hw/nvme/ctrl.c
> @@ -5889,6 +5889,7 @@ static void nvme_ctrl_reset(NvmeCtrl *n)
>      }
>  
>      n->aer_queued = 0;
> +    n->aer_mask = 0;
>      n->outstanding_aers = 0;
>      n->qs_created = false;
>  }
> -- 
> 2.36.0
> 

Gentle bump.
Keith Busch June 3, 2022, 8:49 p.m. UTC | #2
On Thu, May 12, 2022 at 11:30:55AM +0200, Klaus Jensen wrote:
> From: Klaus Jensen <k.jensen@samsung.com>
> 
> The internally maintained AEN mask is not cleared on reset. Fix this.

Looks good.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Klaus Jensen June 17, 2022, 6:40 a.m. UTC | #3
On May 12 11:30, Klaus Jensen wrote:
> From: Klaus Jensen <k.jensen@samsung.com>
> 
> The internally maintained AEN mask is not cleared on reset. Fix this.
> 
> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
> ---
>  hw/nvme/ctrl.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
> index 1e6e0fcad918..4c8200dfb859 100644
> --- a/hw/nvme/ctrl.c
> +++ b/hw/nvme/ctrl.c
> @@ -5889,6 +5889,7 @@ static void nvme_ctrl_reset(NvmeCtrl *n)
>      }
>  
>      n->aer_queued = 0;
> +    n->aer_mask = 0;
>      n->outstanding_aers = 0;
>      n->qs_created = false;
>  }
> -- 
> 2.36.0
> 

Applied to nvme-next.
diff mbox series

Patch

diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
index 1e6e0fcad918..4c8200dfb859 100644
--- a/hw/nvme/ctrl.c
+++ b/hw/nvme/ctrl.c
@@ -5889,6 +5889,7 @@  static void nvme_ctrl_reset(NvmeCtrl *n)
     }
 
     n->aer_queued = 0;
+    n->aer_mask = 0;
     n->outstanding_aers = 0;
     n->qs_created = false;
 }