From: Alexander Aring Date: Wed, 24 Jun 2015 09:36:36 +0000 (+0200) Subject: mac802154: cfg: add suspend and resume callbacks X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~258^2~33 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cf24cf8c3c06f9a6cacc8fc2cad94661b6096b6;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed