All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: Register for ANA AEN
@ 2018-07-26 10:55 Hannes Reinecke
  2018-07-26 10:58 ` Hannes Reinecke
  0 siblings, 1 reply; 8+ messages in thread
From: Hannes Reinecke @ 2018-07-26 10:55 UTC (permalink / raw)


We need to register for ANA AENs as we rely on them for our ANA implementation.
Patch is relative to hch nvme-ana tree.

Signed-off-by: Hannes Reinecke <hare at suse.com>
---
 drivers/nvme/host/core.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 3b96ace1f86d..99910497acdc 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -1042,6 +1042,10 @@ static void nvme_enable_aen(struct nvme_ctrl *ctrl)
 	u32 supported = ctrl->oaes & NVME_AEN_SUPPORTED, result;
 	int status;
 
+#ifdef CONFIG_NVME_MULTIPATH
+	if (ctrl->subsys->cmic & (1 << 3))
+		supported |= NVME_AEN_CFG_ANA_CHANGE;
+#endif
 	status = nvme_set_features(ctrl, NVME_FEAT_ASYNC_EVENT, supported, NULL,
 			0, &result);
 	if (status)
-- 
2.12.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-07-26 15:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-26 10:55 [PATCH] nvme: Register for ANA AEN Hannes Reinecke
2018-07-26 10:58 ` Hannes Reinecke
2018-07-26 11:59   ` Christoph Hellwig
2018-07-26 12:01     ` Christoph Hellwig
2018-07-26 12:02       ` Hannes Reinecke
2018-07-26 12:07         ` Christoph Hellwig
2018-07-26 13:37           ` Hannes Reinecke
2018-07-26 15:12             ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.