]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: don't enable AEN if not supported
authorWeiping Zhang <zhangweiping@didichuxing.com>
Mon, 2 Jul 2018 16:34:38 +0000 (00:34 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 17 Jul 2018 14:30:27 +0000 (07:30 -0700)
commit900fd1ede8407a75c735a6c389a7bc1f7322a814
tree3ca9e9a28eae6944ce9fc21977e115aff98d669e
parent3a7e658d7f8cc92dc7184f1ba26fb17327213460
nvme: don't enable AEN if not supported

Avoid excuting set_feature command if there is no supported bit in
Optional Asynchronous Events Supported (OAES).

Fixes: 7db22600 ("nvme: submit AEN event configuration on startup")
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Weiping Zhang <zhangweiping@didichuxing.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c