aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lin <[email protected]>2016-07-07 22:07:00 -0500
committerAlex Elder <[email protected]>2016-07-08 14:56:28 -0500
commitcc28c2c2283d5e1b8d2fc0a1cf2bc45783fc7f71 (patch)
tree7346b6815426ae4dbbd048782f9d2bf1894b6a26
parentc7dc28ff2b47d6dc4efd420b6f1325554b6f8287 (diff)
greybus: interface: implement unipro link hibernate call
Adds AP implementation of unipro link hibernation set power mode call needed for proper cport closure and interface suspend and power off transition. Signed-off-by: David Lin <[email protected]> Reviewed-by: Johan Hovold <[email protected]> Signed-off-by: Alex Elder <[email protected]>
-rw-r--r--drivers/staging/greybus/interface.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c
index 05d0020d3a8d..2290a9c3ff9a 100644
--- a/drivers/staging/greybus/interface.c
+++ b/drivers/staging/greybus/interface.c
@@ -641,11 +641,9 @@ static int gb_interface_activate_operation(struct gb_interface *intf)
static int gb_interface_hibernate_link(struct gb_interface *intf)
{
- dev_dbg(&intf->dev, "%s\n", __func__);
-
- /* FIXME: implement */
+ struct gb_svc *svc = intf->hd->svc;
- return 0;
+ return gb_svc_intf_set_power_mode_hibernate(svc, intf->interface_id);
}
/*