]> git.baikalelectronics.ru Git - kernel.git/commit
s390/chsc: fix SEI usage
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 15 Jan 2013 18:02:01 +0000 (19:02 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 16 Jan 2013 14:57:54 +0000 (15:57 +0100)
commit22bbc935577e9c0175b6550c9fc0d04a9fdc23d5
treed5381a3ba2c206c91dd3ed1ae9447f12af534479
parentad8b0a97851d95e5828c145f84f664f5d2fb7f54
s390/chsc: fix SEI usage

8d48882 "s390/pci: CHSC PCI support for error and availability events"
introduced a new SEI notification type as part of pci support.
The way SEI was called with nt2 and nt0 consecutive broke the nt0
stuff used for channel subsystem notifications.

The reason why this was broken with the mentioned patch is that you
cannot selectively disable type 0 notifications (so even when asked
for type 2 only, type 0 could be presented).

The way to do it is to tell SEI which types of notification you can
process and -this is the important part- look at the SEI result which
notification type you actually received.

Reviewed-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Tested-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/chsc.c