aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/interface.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-07-20 16:40:21 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-20 10:16:54 -0700
commit27b9e257dd57fba0d63d996bf050fcbd94d998d7 (patch)
tree16c564521263aa4f9a1c29fa60e181a0dc5e70bf /drivers/staging/greybus/interface.h
parentgreybus: interface: use an enum for interface type (diff)
downloadlinux-dev-27b9e257dd57fba0d63d996bf050fcbd94d998d7.tar.xz
linux-dev-27b9e257dd57fba0d63d996bf050fcbd94d998d7.zip
greybus: interface: do not read DME during reactivation
It will soon be possible to reactivate an interface that has been powered down after already having been activated. In that case there's no need to re-read the DME attributes as part of activation as the values are already cached. Reviewed-by: Sandeep Patil <sspatil@google.com> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Patrick Titiano <ptitiano@baylibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r--drivers/staging/greybus/interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h
index bba1881aee56..f52dfd09bb16 100644
--- a/drivers/staging/greybus/interface.h
+++ b/drivers/staging/greybus/interface.h
@@ -56,6 +56,7 @@ struct gb_interface {
bool active;
bool enabled;
bool mode_switch;
+ bool dme_read;
struct work_struct mode_switch_work;
struct completion mode_switch_completion;