1. 17 1月, 2015 5 次提交
  2. 15 1月, 2015 7 次提交
  3. 03 1月, 2015 10 次提交
  4. 24 12月, 2014 6 次提交
    • G
      greybus: i2c-gb: split out into a stand-alone kernel module. · 900ceba9
      Greg Kroah-Hartman 提交于
      This splits the i2c-gb protocol into a stand-alone kernel module.
      
      It's not going to stay in this fashion for long, this was done to test
      the "can a protcol be loaded later" logic.  Future refactoring is going
      to move the gpbridge protocols to a separate kernel module, where this
      protocol is going to live.
      
      But for now, split it out, it is good to test with, and shows a bug in
      gbsim at the moment.
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
      900ceba9
    • G
      greybus: protocol: split binding of prototcols to connections out of init · fb69cb50
      Greg Kroah-Hartman 提交于
      When adding a new protocol to the system, walk all bundles and try to
      hook up any connections that do not have a protocol already.  This sets
      the stage to allow for protocols to be loaded at any time, not just
      before the device is seen in the system.
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
      fb69cb50
    • G
      greybus: export needed symbols for protocols · df469a94
      Greg Kroah-Hartman 提交于
      Protocol handlers need some greybus symbols, so export them so that they
      can be built outside of the greybus core.
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
      df469a94
    • G
      greybus: protocol: switch gb_protocol_register() to return an int · 7c7d5b9a
      Greg Kroah-Hartman 提交于
      We will want to return this value as a return value for module_init()
      and bool does not play well with module_init().  So make it a "real"
      error value and return int and fix up all callers of the function.
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
      7c7d5b9a
    • G
      greybus: interface: remove global manifest_descs list · 86cad666
      Greg Kroah-Hartman 提交于
      The list was global and had no locking.  It's not like we were ever
      parsing more than one manifest at the same time right now, but we might
      in the future.  And we really want this to be local to the interface
      itself, for future work redoing how to bind protocols to bundles, so
      move the list to the interface structure.
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
      86cad666
    • G
      greybus: add module support · df671553
      Greg Kroah-Hartman 提交于
      Modules in the greybus system sit above the interface, so insert them
      early in the sysfs tree.  We dynamically create them when we have an
      interface that references a module, as we don't get a "module create"
      message directly.  They also dynamically go away when the last interface
      associated with a module is removed.
      
      Naming scheme for modules/interfaces/bundles/connections is bumped up by
      one ':', and now looks like the following:
      
      /sys/bus/greybus $ tree
      .
      ├── devices
      │   ├── 7 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1/7
      │   ├── 7:7 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1/7/7:7
      │   ├── 7:7:0 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1/7/7:7/7:7:0
      │   └── 7:7:0:1 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-1/7/7:7/7:7:0/7:7:0:1
      ├── drivers
      ├── drivers_autoprobe
      ├── drivers_probe
      └── uevent
      
      6 directories, 3 files
      /sys/bus/greybus $ grep . devices/*/uevent
      devices/7/uevent:DEVTYPE=greybus_module
      devices/7:7/uevent:DEVTYPE=greybus_interface
      devices/7:7:0/uevent:DEVTYPE=greybus_bundle
      devices/7:7:0:1/uevent:DEVTYPE=greybus_connection
      
      We still have some "confusion" about interface ids and module ids, which
      will be cleaned up later when the svc control protocol changes die down,
      right now we just name a module after the interface as we don't have any
      modules that have multiple interfaces in our systems.
      
      This has been tested with gbsim.
      Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
      df671553
  5. 20 12月, 2014 9 次提交
  6. 14 12月, 2014 3 次提交