Capsule update may miss newly attached SCSI storage when SCSI has
already been scanned earlier in boot.

Use scsi_scan_new() to detect newly added devices while avoiding
rescanning controllers that already have enumerated block devices.

Signed-off-by: Aswin Murugan <[email protected]>
---
 arch/arm/mach-snapdragon/capsule_update.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-snapdragon/capsule_update.c 
b/arch/arm/mach-snapdragon/capsule_update.c
index 586682434b7..353969a3cc0 100644
--- a/arch/arm/mach-snapdragon/capsule_update.c
+++ b/arch/arm/mach-snapdragon/capsule_update.c
@@ -298,7 +298,7 @@ void qcom_configure_capsule_updates(void)
 
        if (IS_ENABLED(CONFIG_SCSI)) {
                /* Scan for SCSI devices */
-               ret = scsi_scan(false);
+               ret = scsi_scan_new(false);
                if (ret) {
                        debug("Failed to scan SCSI devices: %d\n", ret);
                        return;
-- 
2.34.1

Reply via email to