1. 09 Jun, 2015 1 commit
    • Viresh Kumar's avatar
      greybus: Tear down devices in the reverse order · 928f2abd
      Viresh Kumar authored
      Normally, its a good practice to free resources in the reverse order in
      which they are allocated, so that all the dependencies can be sorted out
      properly.
      
      This is true while creating/destroying devices as well. For example
      consider this scenario (I faced a crash with control protocol due to
      this). For a new module, we will first create a bundle+connection for
      the control cport and then create other bundles/connections after
      parsing manifest.
      
      And while destroying interface on module hot unplug, we are removing the
      devices in the order they are added. And so the bundle/connection for
      the control cport are destroyed first. But, control cport was still
      required while destroying other bundles/connections.
      
      To solve this problem, lets destroy the resources in the reverse order
      in which they are added.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      928f2abd
  2. 08 Jun, 2015 7 commits
  3. 04 Jun, 2015 12 commits
  4. 28 May, 2015 13 commits
  5. 26 May, 2015 7 commits