]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: explicitly disable APST on quirked devices
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 26 Jun 2017 20:39:54 +0000 (16:39 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jun 2017 14:14:13 +0000 (08:14 -0600)
commitd5fd521534dee8b635084d56d9bd80e85b13029b
treed7593e41bbe6f81829faf3ac1e35c97b16c8bc20
parent86bd280555427b06b7241e05e7b4ed0f2d2826f9
nvme: explicitly disable APST on quirked devices

A user reports APST is enabled, even when the NVMe is quirked or with
option "default_ps_max_latency_us=0".

The current logic will not set APST if the device is quirked. But the
NVMe in question will enable APST automatically.

Separate the logic "apst is supported" and "to enable apst", so we can
use the latter one to explicitly disable APST at initialiaztion.

BugLink: https://bugs.launchpad.net/bugs/1699004
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h