]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: return errors for hwmon init
authorKeith Busch <kbusch@kernel.org>
Thu, 17 Sep 2020 15:50:25 +0000 (08:50 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 22 Sep 2020 15:49:55 +0000 (17:49 +0200)
commit3e260b2e55215c4d87ba06751e13f7ced4497b05
tree8d74c55da3ef67f291fe2f9959d8cdbc77aa5215
parent391be4bc9917fdeed9f53da4997024dfb76fb8ae
nvme: return errors for hwmon init

Initializing the nvme hwmon retrieves a log from the controller. If the
controller is broken, we need to return the appropriate error so that
subsequent initialization doesn't attempt to continue.

Reported-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/hwmon.c
drivers/nvme/host/nvme.h