[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 06/42] nvme: add identify cns values in header
From: |
Klaus Birkelund Jensen |
Subject: |
Re: [PATCH v6 06/42] nvme: add identify cns values in header |
Date: |
Tue, 31 Mar 2020 07:39:01 +0200 |
On Mar 25 12:37, Maxim Levitsky wrote:
> On Mon, 2020-03-16 at 07:28 -0700, Klaus Jensen wrote:
> > From: Klaus Jensen <address@hidden>
> >
> > Signed-off-by: Klaus Jensen <address@hidden>
> > ---
> > hw/block/nvme.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/hw/block/nvme.c b/hw/block/nvme.c
> > index f716f690a594..b38d7e548a60 100644
> > --- a/hw/block/nvme.c
> > +++ b/hw/block/nvme.c
> > @@ -709,11 +709,11 @@ static uint16_t nvme_identify(NvmeCtrl *n, NvmeCmd
> > *cmd)
> > NvmeIdentify *c = (NvmeIdentify *)cmd;
> >
> > switch (le32_to_cpu(c->cns)) {
> > - case 0x00:
> > + case NVME_ID_CNS_NS:
> > return nvme_identify_ns(n, c);
> > - case 0x01:
> > + case NVME_ID_CNS_CTRL:
> > return nvme_identify_ctrl(n, c);
> > - case 0x02:
> > + case NVME_ID_CNS_NS_ACTIVE_LIST:
> > return nvme_identify_nslist(n, c);
> > default:
> > trace_nvme_dev_err_invalid_identify_cns(le32_to_cpu(c->cns));
>
> This is a very good candidate to be squished with the patch 5 IMHO,
> but you can leave this as is as well. I don't mind.
>
Squashed!
> Reviewed-by: Maxim Levitsky <address@hidden>
>
> Best regards,
> Maxim Levitsky
>
>
>
>
>
>
[PATCH v6 08/42] nvme: add support for the abort command, Klaus Jensen, 2020/03/16
[PATCH v6 10/42] nvme: refactor device realization, Klaus Jensen, 2020/03/16