diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2016-05-15 19:37:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-15 11:39:57 -0700 |
commit | 8c81d4608dc54225005129e32cf5d2035176df5e (patch) | |
tree | e6301710678babbba659590351d654e9840dfb72 /drivers/staging/greybus/interface.h | |
parent | c8a657ba3f84643d7ef4b13ff6828e141172419a (diff) | |
download | op-kernel-dev-8c81d4608dc54225005129e32cf5d2035176df5e.zip op-kernel-dev-8c81d4608dc54225005129e32cf5d2035176df5e.tar.gz |
greybus: interface: Extract and store Interface feature byte
The Interface description in the Greybus specification contains a
'features' field which is currently not implemented on the AP side. The
Interface features field provides information on optional attributes of an
Interface as a bitmask. Currently only GREYBUS_INTERFACE_FEATURE_TIMESYNC
is implemented in the specification but, the expectation is that other
feature flags will be added over time.
This patch adds support to extract the feature byte communicated in the
features field of the Interface Descriptor header and extends struct
interface to contain a features field through which any user with a pointer
to struct interface may interrogate the features of an Interface.
This is a necessary pre-cursor for TimeSync to ensure only Interfaces which
declare GREYBUS_INTERFACE_FEATURE_TIMESYNC will be included when we go
through the process of FrameTime synchronization.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r-- | drivers/staging/greybus/interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h index 1a25234..51772cc 100644 --- a/drivers/staging/greybus/interface.h +++ b/drivers/staging/greybus/interface.h @@ -23,6 +23,7 @@ struct gb_interface { struct list_head manifest_descs; u8 interface_id; /* Physical location within the Endo */ u8 device_id; + u8 features; /* Feature flags set in the manifest */ u32 ddbl1_manufacturer_id; u32 ddbl1_product_id; |