1. 24 Oct, 2014 1 commit
    • Greg Kroah-Hartman's avatar
      greybus: hook up greybus to the driver model · f0f61b90
      Greg Kroah-Hartman authored
      This patch hooks up modules, interfaces, and connections to the driver
      model.  Now we have a correct hierarchy, and drivers can be correctly
      bound to the proper portions in the future.  Devices are correctly
      reference counted and torn down in the proper order on removal of a
      module.
      
      Some basic sysfs attributes have been created for interfaces and
      connections.  Module attributes are not working properly, but that will
      be fixed in future changes.
      
      This has been tested on Alex's machine, with multiple hotplug and unplug
      operations of a module working correctly.
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f0f61b90
  2. 22 Oct, 2014 14 commits
  3. 21 Oct, 2014 8 commits
  4. 20 Oct, 2014 15 commits
  5. 18 Oct, 2014 1 commit
  6. 17 Oct, 2014 1 commit
    • Alex Elder's avatar
      greybus: update gbuf status for completion handlers · bedfdf30
      Alex Elder authored
      Currently, if a USB urb completes with an error, that error status
      is not transferred back to the gbuf that it's associated with.  For
      inbound data there's not a lot we can do about an error, but for
      outbound data, this means there is no notification to the submitter
      that something went wrong.
      
      For outbound data copy the urb status directly back to the gbuf as
      its status.  Follow USB's lead and set the status to -EINPROGRESS
      while a gbuf is "in flight."  Assign a gbuf an initial status value
      of -EBADR to help identify use of never-set status values.
      
      When an inbound urb fails (SVC or CPort), currently the urb is just
      leaked, more or less (i.e., we lose an urb posted to receive
      incoming data).  Change that so such an error is reported, but
      then re-submitted.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      bedfdf30