• Cornelia Huck's avatar
    [S390] cio: Fixup interface for setting options on ccw devices. · 4dd3cc5c
    Cornelia Huck authored
    The current ccw_device_set_options() sets a specified mask of options
    and clears those not specified, but there is no way to find out which
    options have already been set.
    
    In order to fix this up, introduce the following interface changes:
    
    ccw_device_set_options() now only sets the specified bits, but does
    not clear those that are not specified.
    
    ccw_device_clear_options() clears the specified bits.
    
    ccw_device_set_options_mask() provides the old semantics (setting only
    the specified bits and clearing the others).
    
    Device drivers now work as expected. qdio has been adapted.
    Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    4dd3cc5c
qdio.c 99.7 KB