ata: ahci: Add sysfs attribute to show remapped NVMe device count
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 7 Feb 2020 10:00:16 +0000 (18:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Apr 2020 22:07:38 +0000 (16:07 -0600)
commit894fba7f434a408ec3f4d4164d2b300ee9263d38
tree45b95cac4f3d6edc875ebb49f624d34e2c7eafc1
parent3aadcf83820a8ae675a3ad88a6e889eb9638df7f
ata: ahci: Add sysfs attribute to show remapped NVMe device count

Add a new sysfs attribute to show how many NVMe devices are remapped.

Userspace like distro installer can use this info to ask user to change
the BIOS setting.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/ahci.c
drivers/ata/ahci.h