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)
commitfa441b71aa27d06fa79d5e7f7c329981dccd94d1
tree3ca9e9a28eae6944ce9fc21977e115aff98d669e
parentcf39a6bc342b980f10f344d88035829638a89a48
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: c0561f82 ("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