dm: scsi: Scan the actual number of ports
authorPark, Aiden <aiden.park@intel.com>
Tue, 20 Aug 2019 16:47:42 +0000 (16:47 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2019 15:46:20 +0000 (11:46 -0400)
commitbd98e6ae7160d5a4fc013266183506068227dd79
tree0774d44b3c315d603830189d60c2c86e86c929f0
parent5adbc0e5caa3b0f3ca1211c952e0822fde8e8e5b
dm: scsi: Scan the actual number of ports

The scsi_scan_dev() is looping over the number of uc_plat->max_id.
The number of actual ports a AHCI controller has can be greater than
max_id. Update uc_plat->max_id to make SCSI scan all detected ports.

Signed-off-by: Aiden Park <aiden.park@intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/ata/ahci.c