nvme/pci: Add sleep quirk for Samsung and Toshiba drives
authorShyjumon N <shyjumon.n@intel.com>
Thu, 6 Feb 2020 20:17:25 +0000 (13:17 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 19 Feb 2020 15:29:39 +0000 (00:29 +0900)
commit1fae37accfc5872af3905d4ba71dc6ab15829be7
tree3b07c0c23e6c127ee527f984a3c038bacf2577dc
parentf25372ffc3f6c2684b57fb718219137e6ee2b64c
nvme/pci: Add sleep quirk for Samsung and Toshiba drives

The Samsung SSD SM981/PM981 and Toshiba SSD KBG40ZNT256G on the Lenovo
C640 platform experience runtime resume issues when the SSDs are kept in
sleep/suspend mode for long time.

This patch applies the 'Simple Suspend' quirk to these configurations.
With this patch, the issue had not been observed in a 1+ day test.

Reviewed-by: Jon Derrick <jonathan.derrick@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Shyjumon N <shyjumon.n@intel.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c