mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 14:38:58 +00:00
nvme: Update nvme_scan_namespace to keep trying on busy
A busy controller shouldn't be game-over for all controllers,
so keep trying on hitting -EBUSY.
This change brings the actual behavior of the routine in line
with what the descriptions says.
Fixes: 982388eaa9
("nvme: Add NVM Express driver support")
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Moritz Fischer <moritzf@google.com>
This commit is contained in:
parent
5775b0f787
commit
85946d69d6
1 changed files with 3 additions and 1 deletions
|
@ -695,7 +695,9 @@ int nvme_scan_namespace(void)
|
|||
if (ret) {
|
||||
log_err("Failed to probe '%s': err=%dE\n", dev->name,
|
||||
ret);
|
||||
return ret;
|
||||
/* Bail if we ran out of memory, else keep trying */
|
||||
if (ret != -EBUSY)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue