1. 01 Oct, 2014 4 commits
    • Matt Porter's avatar
      greybus: remove additional unused fields from the cport descriptor · 7a57479b
      Matt Porter authored
      The Greybus spec was updated to remove some unused fields from the
      CPort descriptor definition. Remove them from the structure so
      we don't fail manifest parsing.
      Signed-off-by: default avatarMatt Porter <mporter@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      7a57479b
    • Alex Elder's avatar
      greybus: clarify device vs module · 9c852d2b
      Alex Elder authored
      The Project ARA MDK states that a single module can have more than
      one interface block (up to 2 at the moment).  An interface block
      consists of two bidirectional UniPro lanes (along with power and
      detect lines), and effectively represents a UniPro Device (with
      an id in the range 0-127).
      
      The service messages currently use "module_id" everywhere, even
      though in a lot of cases we really need to be talking about device
      ids.  The easiest case of this to see is the "set route" request
      directed at a switch; a switch has no notion of modules, just
      UniPro devices.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      9c852d2b
    • Greg Kroah-Hartman's avatar
    • Alex Elder's avatar
      greybus: kill struct gmod_cport · 1cfc667d
      Alex Elder authored
      A UniPro (short header) segment has a 5-bit field to represent a
      CPort Id.  In addition, the 7-bit L3 short header holds a UniPro
      device id.  There can be no more than 128 devices in a UniPro
      network, but these two fields can be combined in ways to allow for
      over 2000 CPorts within a single device.  As a result, a device id
      is represented with one byte, and a CPort Id within a device is
      always representable with a two byte value.
      
      This patch changes integral values that reresent CPort Ids so they
      use type u16 consistently.
      
      Separately, the contents of the gmod_cport structure were mostly
      fabricated, with the cport_id field being the only one that's
      meaningful.  This patch gets rid of that structure, putting a
      simple u16 to represent the CPort Id everywhere it had been used
      before.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      1cfc667d
  2. 30 Sep, 2014 14 commits
  3. 24 Sep, 2014 4 commits
  4. 23 Sep, 2014 2 commits
    • Alex Elder's avatar
      greybus: rename struct greybus_device · 778c69c9
      Alex Elder authored
      The greybus_device structure represents an Ara phone module.
      It does *not* (necessarily) represent a UniPro device, nor any
      device (like an i2c adapter) that might reside on an Ara module.
      
      As such, rename struct greybus_device to be struct greybus_module.
      Rename all symbols having that type to be "gmod" rather than "gdev".
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      778c69c9
    • Alex Elder's avatar
      greybus: simple fixes · 69f93abf
      Alex Elder authored
      A few silly little fixes.
          - Clear out some unnecessary #includes in "debugfs.c"
          - Drop some unneeded parentheses in hd_to_es1()
          - Use &hd->hd_priv in hd_to_es1() to emphasize we are working
            with an embedded array, not a pointer
          - Fix a comment in the header for ap_probe()
          - Drop a duplicate #include in "gpio-gb.c"
          - Fix a use-before-set problem in set_serial_info()
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      69f93abf
  5. 22 Sep, 2014 9 commits
  6. 20 Sep, 2014 2 commits
  7. 19 Sep, 2014 3 commits
  8. 14 Sep, 2014 2 commits