Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    91943ff7
    bootstd: Allow scanning a single bootdev label · 91943ff7
    Simon Glass authored and Tom Rini's avatar Tom Rini committed
    
    We want to support scanning a single label, like 'mmc' or 'usb0'. Add
    this feature by plumbing the label through to the iterator, setting a
    flag to indicate that only siblings of the initial device should be used.
    
    This means that scanning a bootdev by its name is not supported anymore.
    That feature doesn't seem very useful in practice, so it is no great loss.
    
    Add a test for bootdev_find_by_any() while we are here.
    
    Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
    91943ff7
    History
    bootstd: Allow scanning a single bootdev label
    Simon Glass authored and Tom Rini's avatar Tom Rini committed
    
    We want to support scanning a single label, like 'mmc' or 'usb0'. Add
    this feature by plumbing the label through to the iterator, setting a
    flag to indicate that only siblings of the initial device should be used.
    
    This means that scanning a bootdev by its name is not supported anymore.
    That feature doesn't seem very useful in practice, so it is no great loss.
    
    Add a test for bootdev_find_by_any() while we are here.
    
    Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>