1. 17 Apr, 2013 3 commits
    • Alessandro Rubini's avatar
      fmc-core: bug fix requiring incompatible changes in registration · b4ae7fe6
      Alessandro Rubini authored
      My previous code for device management was wrong, because I didn't
      understand the allocation. This fixes the thing, by properly using the
      release function.
      
      This change however requires that all fmc devices are allocated
      separately (not as an array) and are not freed by the registering
      entity.  So this introduces an incompatible change in the prototype
      for register_n and unregister_n -- which is noted at build time, but
      also an incompatible change in how a device must be allocated/freed
      by the carrier that registers a single device. This change is
      not introducing a build error, but I hope the only external users by now
      are the SPEC and the SVEC.
      
      fmc-fakedev is fixed by this same commit.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      b4ae7fe6
    • Alessandro Rubini's avatar
      fmc-core: remove extra device (/sys/devices/fmc/) · f685f5b1
      Alessandro Rubini authored
      The fmc devices are now children of their own device.
      
      This is what we had with fmc-fakedev and 1 mezzanine using a custom eeprom:
      tha lead to custom names):
      
      spusa.root# ls -l /sys/bus/fmc/devices/
       FmcDelay1ns4cha-f001 -> ../../../devices/fmc/FmcDelay1ns4cha-f001/
      
      And this is what we have now:
      
      spusa.root# ls -l /sys/bus/fmc/devices/
       FmcDelay1ns4cha-f001 -> ../../../devices/fake-fmc-carrier/FmcDelay1ns4cha-f001/
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f685f5b1
    • Alessandro Rubini's avatar
  2. 09 Apr, 2013 5 commits
  3. 23 Mar, 2013 1 commit
  4. 20 Mar, 2013 1 commit
  5. 21 Feb, 2013 6 commits
  6. 07 Feb, 2013 3 commits
  7. 24 Jan, 2013 10 commits
  8. 15 Jan, 2013 1 commit
  9. 14 Jan, 2013 10 commits