summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/interface.h
diff options
context:
space:
mode:
authorJohan Hovold2016-03-30 00:56:03 +0200
committerGreg Kroah-Hartman2016-03-30 23:17:40 +0200
commitec199ccdd2a3c215f5088052377f08a5855f560e (patch)
tree7eea075cd633de030dec63fa46e0a6f144a9c3d9 /drivers/staging/greybus/interface.h
parentgreybus: interface: clean up and rename init-status helper (diff)
downloadkernel-qcow2-linux-ec199ccdd2a3c215f5088052377f08a5855f560e.tar.gz
kernel-qcow2-linux-ec199ccdd2a3c215f5088052377f08a5855f560e.tar.xz
kernel-qcow2-linux-ec199ccdd2a3c215f5088052377f08a5855f560e.zip
greybus: interface: clean up ES3-bootroom-quirk handling
Clean up handling of the ES3-bootrom quirks by adding an interface quirk-flags field that is set appropriately when we detect that the ES3 bootrom is running. Note that we need to reserve the DME_DIS_UNIPRO_BOOT_STARTED and DME_DIS_FALLBACK_UNIPRO_BOOT_STARTED status values for the ES3 bootrom, which does not support any CPort features (unlike later boot stages). Add a BOOTROM infix to the defines to make this more clear. Signed-off-by: Johan Hovold <johan@hovoldconsulting.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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h
index d4c55abae258..96caabc8a73f 100644
--- a/drivers/staging/greybus/interface.h
+++ b/drivers/staging/greybus/interface.h
@@ -10,6 +10,9 @@
#ifndef __INTERFACE_H
#define __INTERFACE_H
+#define GB_INTERFACE_QUIRK_NO_CPORT_FEATURES BIT(0)
+#define GB_INTERFACE_QUIRK_NO_INTERFACE_VERSION BIT(1)
+
struct gb_interface {
struct device dev;
struct gb_control *control;
@@ -36,8 +39,8 @@ struct gb_interface {
struct gb_host_device *hd;
- /* The interface needs to boot over unipro */
- bool boot_over_unipro;
+ unsigned long quirks;
+
bool disconnected;
};
#define to_gb_interface(d) container_of(d, struct gb_interface, dev)