nvme: Add a quirk mechanism that uses identify_ctrl
authorAndy Lutomirski <luto@kernel.org>
Wed, 22 Feb 2017 20:32:36 +0000 (13:32 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
commitbd4da3abaabffdd2472fb7085fcadd5d1d8c2153
treeccae778d88397594827cf6f146dfb8ca7ace189b
parente5a39dd8238e5d42c830bbd8d31211adf6fea6ca
nvme: Add a quirk mechanism that uses identify_ctrl

Currently, all NVMe quirks are based on PCI IDs.  Add a mechanism to
define quirks based on identify_ctrl's vendor id, model number,
and/or firmware revision.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h