[S390] cio: Fixup interface for setting options on ccw devices.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 12 Feb 2007 14:47:18 +0000 (15:47 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 12 Feb 2007 14:47:18 +0000 (15:47 +0100)
commit4dd3cc5caf41d55cd5e55f32902c8a2ad3296e19
tree458be42776f00233f99fa270b8f249f6a1c95c5c
parent0ec67667ab414b18a0518d5b11c842fd342e9cb1
[S390] cio: Fixup interface for setting options on ccw devices.

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: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device_ops.c
drivers/s390/cio/qdio.c
include/asm-s390/ccwdev.h