OSDN Git Service

s390/cio: introduce driver_override on the css bus
authorCornelia Huck <cohuck@redhat.com>
Thu, 13 Jun 2019 11:08:15 +0000 (13:08 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 2 Jul 2019 14:00:26 +0000 (16:00 +0200)
commitebc3d179150347f3b6d97d8f249378bb2218f95e
treefd608926e7c655a331816d91722b45ef4cec11e5
parentdbd66558dd28e69471cac7c1431bb0d8df221498
s390/cio: introduce driver_override on the css bus

Sometimes, we want to control which of the matching drivers
binds to a subchannel device (e.g. for subchannels we want to
handle via vfio-ccw).

For pci devices, a mechanism to do so has been introduced in
782a985d7af2 ("PCI: Introduce new device binding path using
pci_dev.driver_override"). It makes sense to introduce the
driver_override attribute for subchannel devices as well, so
that we can easily extend the 'driverctl' tool (which makes
use of the driver_override attribute for pci).

Note that unlike pci we still require a driver override to
match the subchannel type; matching more than one subchannel
type is probably not useful anyway.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Documentation/ABI/testing/sysfs-bus-css
drivers/s390/cio/cio.h
drivers/s390/cio/css.c