ata: ahci: Disable SXS for Hisilicon Kunpeng920
authorXingui Yang <yangxingui@huawei.com>
Fri, 12 Mar 2021 10:24:36 +0000 (18:24 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 31 Mar 2021 14:25:15 +0000 (08:25 -0600)
commit234e6d2c18f5b080cde874483c4c361f3ae7cffe
tree766fda2214c171419eefbac79030cdd3ba3c402d
parentb30d0040f06159de97ad9c0b1536f47250719d7d
ata: ahci: Disable SXS for Hisilicon Kunpeng920

On Hisilicon Kunpeng920, ESP is set to 1 by default for all ports of
SATA controller. In some scenarios, some ports are not external SATA ports,
and it cause disks connected to these ports to be identified as removable
disks. So disable the SXS capability on the software side to prevent users
from mistakenly considering non-removable disks as removable disks and
performing related operations.

Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1615544676-61926-1-git-send-email-luojiaxing@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/ahci.c
drivers/ata/ahci.h
drivers/ata/libahci.c