]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: dont unregister subchannel from child-drivers
authorVineeth Vijayan <vneethv@linux.ibm.com>
Sun, 25 Apr 2021 08:41:59 +0000 (10:41 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 31 Aug 2021 12:54:14 +0000 (14:54 +0200)
commitabc0177146aca1056c669c3e933d3e571cb816aa
tree5a34756d41558f71c65d483b65a6f2a9e8df5de7
parent9d435e6a7b953bd6a77e05931fc2ea77988f54b4
s390/cio: dont unregister subchannel from child-drivers

The devices owned by the parent-driver (css) was getting unregistered
from the io-subchannel driver is clearly a layering violation.
Remove the subchannel unregistration from the child-drivers.

This also means, if the device connected to the subchannel is not
operational, or not accessible, the subchannel will not be unregistered.
Instead the CIO layer will allow valid subchannels without any operational
devices in sysfs. And the userspace tooling might need to be modified to
optimally handle this new situation.

Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/blacklist.c
drivers/s390/cio/device.c