]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b38b86c66f78be4efc9ac9816d26649896a46f8
treefd608926e7c655a331816d91722b45ef4cec11e5
parent55214d932699d5a741d1a94b3a77020be38193ce
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
dbb735495ebe ("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