]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: cfg: add suspend and resume callbacks
authorAlexander Aring <alex.aring@gmail.com>
Wed, 24 Jun 2015 09:36:36 +0000 (11:36 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 23 Jul 2015 15:10:49 +0000 (17:10 +0200)
commit6682e7ad8600653563c5a7e410603985c91f5d61
treeb1192515ba1dcac09a108816386df1145a003a7c
parentb1999e157528eb394a8ce1ffd08490510c4d255d
mac802154: cfg: add suspend and resume callbacks

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: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/cfg.c
net/mac802154/ieee802154_i.h
net/mac802154/rx.c