nvme/scsi: Remove power management support
authorAndy Lutomirski <luto@kernel.org>
Fri, 16 Sep 2016 18:16:09 +0000 (11:16 -0700)
committerJens Axboe <axboe@fb.com>
Sat, 24 Sep 2016 16:56:25 +0000 (10:56 -0600)
commit26501db8dcbc3c63c0d8fb6c5bb098bc7d35d741
tree3da2b32d0d4c81951078f0528f78c31e8fcf5ee7
parent2e5d0baa04845dc3a3d7dfa33d7663de270bb146
nvme/scsi: Remove power management support

As far as I can tell, there is basically nothing correct about this
code.  It misinterprets npss (off-by-one).  It hardcodes a bunch of
power states, which is nonsense, because they're all just indices
into a table that software needs to parse.  It completely ignores
the distinction between operational and non-operational states.
And, until 4.8, if all of the above magically succeeded, it would
dereference a NULL pointer and OOPS.

Since this code appears to be useless, just delete it.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Tested-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/scsi.c