• Alexander Aring's avatar
    mac802154: cfg: add suspend and resume callbacks · 3cf24cf8
    Alexander Aring authored
    This patch introduces suspend and resume callbacks to mac802154. When
    doing suspend we calling the stop driver callback which should stop the
    receiving of frames. A transceiver should go into low-power mode then.
    Calling resume will call the start driver callback, which starts receiving
    again and allow to transmit frames.
    
    This was tested only with the fakelb driver and a qemu vm by doing the
    following commands:
    
    echo "devices" > /sys/power/pm_test
    echo "freeze" > /sys/power/state
    
    while doing some high traffic between two fakelb phys.
    Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    3cf24cf8
cfg.c 6.23 KB