• Johan Hovold's avatar
    greybus: connection: implement proper connection closure · 3de5acfa
    Johan Hovold authored
    Implement proper connection closure, which includes sending ping
    requests on the connection being tore down while coordinating with the
    remote interface as well as the SVC.
    
    This specifically implements the new ping operation, which in case of
    offloaded connections is handled by the host-device driver in an
    implementation-defined manner through a new callback.
    
    Note that the normal connection tear-down procedure is executed in case
    of failed connection establishment due to failed connected operation.
    Specifically, the disconnecting request is sent also in case the
    connected operation never succeeded. This is needed since the interface
    may have enabled FCT flow upon receiving the connected request.
    Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
    3de5acfa
hd.h 2.67 KB