1. 19 Sep, 2014 2 commits
    • Matt Porter's avatar
      greybus: move versioning from svc message header to handshake function · e94e1714
      Matt Porter authored
      The Greybus spec has been updated to improve the efficiency of the
      version major/minor information that had been previously carried in
      every SVC message header. The version major/minor is now provided
      as part of the handshake function.
      
      Update the SVC msg header and handshake function payload definitions
      and move the version major/minor validation into the SVC handshake
      handling routine.
      Signed-off-by: default avatarMatt Porter <mporter@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      e94e1714
    • Matt Porter's avatar
      greybus: update svc_msg_header fields and users to match spec · 710ecb06
      Matt Porter authored
      The Greybus spec has been updated to clarify some of the original
      intent of the SVC message definition. The svc_msg_header was:
      
      struct svc_msg_header {
      	__u8 function;
      	__u8 message_type;
      ...
      }
      
      and is now
      
      struct svc_msg_header {
      	__u8 function_id;
      	__u8 message_type;
      ...
      }
      
      to match the spec. The function_id carries enum svc_function_id values
      and message_type is now clarified to be a session layer level field
      that is simply "data" or "error".
      
      Change all references of function type to function id. For now, don't
      parse the message_type field but add the two allowable svc_msg_type enums.
      Signed-off-by: default avatarMatt Porter <mporter@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      710ecb06
  2. 14 Sep, 2014 8 commits
  3. 13 Sep, 2014 9 commits
  4. 11 Sep, 2014 3 commits
  5. 10 Sep, 2014 1 commit
    • Greg Kroah-Hartman's avatar
      greybus: pass appropriate type to create function · 3d545326
      Greg Kroah-Hartman authored
      Based on a patch from Alex Elder <elder@linaro.org>.
      
      Alex's original description:
      
      Every descriptor in a manifest is interpreted by greybus_new_module().
      We call a function to do initialization based on descriptor's type.
      
      Since we know the type of the descriptor at that point, we can pass
      to the called function the actual sub-type it needs (i.e., the union
      member associated with the type).  This allows those functions to
      be slightly simplified, and more focused.
      
      Also change some size variables to have size_t type, and simplify a
      few spots further by using sizeof(object) in place of sizeof(type).
      3d545326
  6. 09 Sep, 2014 9 commits
  7. 07 Sep, 2014 5 commits
  8. 06 Sep, 2014 3 commits