From: Irvin Cote <irvin.cote@insa-lyon.fr>
To: kbusch@kernel.org
Cc: axboe@fb.com, hch@lst.de, sagi@grimberg.me,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Subject: [PATCH] nvme : host : pci.c : Replace int literal by corresponding macro
Date: Thu, 2 Feb 2023 04:31:31 +0100 (CET) [thread overview]
Message-ID: <640656069.60824897.1675308691167.JavaMail.zimbra@insa-lyon.fr> (raw)
From e88b6a92c2447c2d5a343ca53cd735f4f83848d0 Mon Sep 17 00:00:00 2001
From: Irvin Cote <irvincoteg@gmail.com>
Date: Wed, 1 Feb 2023 23:14:25 -0300
Subject: [PATCH] nvme : host : pci.c : Replace int literal by corresponding macro
When re-setting the dbs field of the nvme_dev struct in the
nvme_pci_enable function, a integer literal is used to represent the offset
instead of the dedicated macro NVME_REG_DBS.
Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
---
drivers/nvme/host/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index c734934c407c..ba65299636e1 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2540,7 +2540,7 @@ static int nvme_pci_enable(struct nvme_dev *dev)
dev->q_depth = min_t(u32, NVME_CAP_MQES(dev->ctrl.cap) + 1,
io_queue_depth);
dev->db_stride = 1 << NVME_CAP_STRIDE(dev->ctrl.cap);
- dev->dbs = dev->bar + 4096;
+ dev->dbs = dev->bar + NVME_REG_DBS;
/*
* Some Apple controllers require a non-standard SQE size.
--
2.37.2
reply other threads:[~2023-02-02 3:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=640656069.60824897.1675308691167.JavaMail.zimbra@insa-lyon.fr \
--to=irvin.cote@insa-lyon.fr \
--cc=axboe@fb.com \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®