Thread (15 messages) 15 messages, 3 authors, 2021-03-09

Re: [PATCH V2 2/8] nvme-core: split init identify into helper

From: Christoph Hellwig <hch@lst.de>
Date: 2021-03-09 10:09:38

I've applied this as-is for now, but here is something that I think we
should fix up:
 	if (ctrl->apst_enabled && !prev_apst_enabled)
 		dev_pm_qos_expose_latency_tolerance(ctrl->device);
 	else if (!ctrl->apst_enabled && prev_apst_enabled)
 		dev_pm_qos_hide_latency_tolerance(ctrl->device);
I don't think this belongs into init_identify, as it has nothing to do
with the identify data.
+	ret = nvme_init_identify(ctrl);
+	if (ret)
+		return ret;
+
 	ret = nvme_configure_apst(ctrl);
 	if (ret < 0)
 		return ret;
OTOH it would make a whole lot sense in nvme_configure_apst.

_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help