• Felix Beck's avatar
    [S390] zcrypt: Do not add/remove devices in s/r callbacks · 5314af69
    Felix Beck authored
    Devices are no longer removed or added in the suspend and resume
    callbacks. Instead they are marked unregistered in suspend. In the
    resume callback the ap_scan_bus method is scheduled. The bus scan
    function will remove the old device and add new ones. This way all
    the device handling will be done in only one function. Additionaly
    the case where the domain might change during suspend/resume is
    caught. In that case the devices qid needs to re-calculated in
    order of having it found by the scan method.
    Signed-off-by: default avatarFelix Beck <felix.beck@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    5314af69
ap_bus.c 45.1 KB