1. 31 Mar, 2015 4 commits
    • Greg Kroah-Hartman's avatar
      greybus: kernel_ver.h: add sysfs_create_groups() and sysfs_remove_groups() · 66c98986
      Greg Kroah-Hartman authored
      These functions showed up in 3.12 or so, and we are stuck on 3.10 for
      various reasons, so provide backports in kernel_ver.h so that we can
      rely on these functions.
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      66c98986
    • Greg Kroah-Hartman's avatar
      greybus: loopback: use the attribute groups, not group · 7a51b936
      Greg Kroah-Hartman authored
      We should use the attribute groups, not group, for the device, so
      add and remove it.  No one should ever be updating a sysfs group for a
      device, as that can be pretty dangerous if you don't duplicate _all_
      existing attribute for that device, and I don't think we were doing that
      here.
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      7a51b936
    • Greg Kroah-Hartman's avatar
      greybus: loopback: fix build breakage about SZ_4K · 5679f783
      Greg Kroah-Hartman authored
      x86 doesn't include SZ_4K somehow so explicitly include <linux/sizes.h>
      to fix the build breakage.
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      5679f783
    • Alexandre Bailon's avatar
      greybus: Add loopback protocol · 355a7058
      Alexandre Bailon authored
      Add a simple Greybus protocol in order to stress USB and Greybus.
      This protocol currently support 2 requests: ping and transfer.
      
      ping request is useful to measure latency.
      Kernel send a ping request and firmware should respond with a ping.
      
      The transfer request request is useful to stress Greybus and USB.
      Kernel can send data from 0 to 4k and the firmware must send back the data to kernel.
      
      This behaviour of gb-loopback module is controlled via sysfs.
      Curently, connection sysfs folder is updated with new entries:
      - type: Type of loopback message to send
        * 0 => Don't send message
        * 1 => Send ping message continuously (message without payload)
        * 2 => Send transer message continuously (message with payload)
      - size: Size of transfer message payload: 0-4096 bytes
      - ms_wait: Time to wait between two messages: 0-1024 ms
      
      Module also export some statistics about connection:
      - latency: Time to send and receive one message
      - frequency: Number of packet sent per second on this cport
      - throughput: Quantity of data sent and received on this cport
      - error
      All this statistics are cleared everytime type, size or ms_wait entries are updated.
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      355a7058
  2. 30 Mar, 2015 26 commits
  3. 27 Mar, 2015 2 commits
  4. 25 Mar, 2015 1 commit
  5. 24 Mar, 2015 7 commits