1. 14 Nov, 2014 18 commits
  2. 06 Nov, 2014 8 commits
  3. 05 Nov, 2014 11 commits
  4. 30 Oct, 2014 1 commit
  5. 29 Oct, 2014 2 commits
    • Greg Kroah-Hartman's avatar
      greybus: connection: fix up error patch logic in gb_connection_create() · 4b640bb1
      Greg Kroah-Hartman authored
      Once you have called device_initialize() you have to call put_device()
      on the structure to clean it up on an error path, otherwise you will
      leak memory.
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      4b640bb1
    • Alex Elder's avatar
      greybus: introduce protocol abstraction · 4ccb6b7a
      Alex Elder authored
      Define a protocol structure that will allow protocols to be
      registered dynamically.  For now we just introduce a bookkeeping
      data structure.  Upcoming patches will move protocol-related methods
      into the protocol structure, and will start registering protocol
      handlers dynamically.
      
      A list of connections using a given protocol is maintained so we can
      tell when a protocol is no longer in use.  This may not be necessary
      (we could use a kref instead) but it may turn out to be a good way
      to clean things up.
      
      The interface is gb_protocol_get() and gb_protocol_put() for a
      connection, allowing the protocol to be looked up and the connection
      structure to be inserted into its list.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      4ccb6b7a