]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ap: extend AP change bindings-complete uevent with counter
authorHarald Freudenberger <freude@linux.ibm.com>
Tue, 11 May 2021 13:01:18 +0000 (15:01 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:07:00 +0000 (17:07 +0200)
commit276a0fef3075221c4ef31a47351a5d78c8f09286
tree8a8eed9413fd756475e30e5f431e8b4ea57d5e0b
parent606e98af3a50ad5aaffdd503b0192da9cd7c7d16
s390/ap: extend AP change bindings-complete uevent with counter

Userspace udev rules need an indication about the very first AP change
BINDINGS=complete uevent.

So now this uevent is extend with an additional key-value entry
COMPLETECOUNT=<counter>. The very first uevent will show counter=1 and
the following BINDINGS=complete uevents increase this counter by 1.

Here is an example how the very first BINDINGS=complete uevent
looks like:

  KERNEL[106.079510] change   /devices/ap (ap)
  ACTION=change
  DEVPATH=/devices/ap
  SUBSYSTEM=ap
  BINDINGS=complete
  COMPLETECOUNT=1
  SEQNUM=10686

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/ap_bus.c