Skip to content
Snippets Groups Projects
  1. Sep 09, 2019
  2. Aug 06, 2019
  3. Aug 05, 2019
  4. Mar 15, 2017
  5. Mar 11, 2017
  6. Mar 08, 2017
  7. Mar 07, 2017
  8. Mar 05, 2017
  9. Dec 26, 2016
  10. Dec 22, 2016
    • Alexandre Bailon's avatar
      svc: implements new svc operations · 4e65aa83
      Alexandre Bailon authored
      
      gbridge has been written to work with the latest version
      of greybus available at the beginning of the project.
      But greybus has been updated and merge to kernel.
      Update gbridge to work with the latest version of greybus.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      4e65aa83
    • Alexandre Bailon's avatar
      greybus: add a new macro operation_handler macro · 4eccc823
      Alexandre Bailon authored
      
      Add the macro REQUEST_NO_HANDLER() to define an operation handler
      without a callback. This will let us add new SVC operations without
      to have to implement them.
      Operation registered with REQUEST_NO_HANDLER() are not supposed
      to be used by the kernel in the current state, but if the kernel
      does, then gbridge will print an error.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      4eccc823
    • Alexandre Bailon's avatar
      svc: Make development and debugging of SVC protocol easier · cde86e24
      Alexandre Bailon authored
      
      SVC operation are dispatched in SVC driver by switch case block.
      It works fine but it is hard to figure out which operation handler
      is complete, which one is just a stub method or which one is missing.
      In addition, it's not really scalable. By example, to print then of
      operation that failed, we will have to add and maintain another switch
      case block that print operation name (instead of operation type).
      Use new struct to register a callback and some other information about
      operation.
      Register all operation in an array and get the operation handler from it.
      In the case of failure, the operation dispatcher will be able get some
      additional information from the operation handler and give some details
      about the error.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      cde86e24
    • Alexandre Bailon's avatar
      debug: Add color to logs · 6b0d7a9d
      Alexandre Bailon authored
      
      Update log helpers to print errors in red and warnings in yellow.
      It should make more easier to see errors and warnings when they printed
      between greybus operation dump.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      6b0d7a9d
  11. Dec 12, 2016
  12. Sep 28, 2016
Loading