1. 15 Feb, 2016 26 commits
  2. 13 Feb, 2016 2 commits
  3. 12 Feb, 2016 7 commits
  4. 10 Feb, 2016 1 commit
  5. 09 Feb, 2016 1 commit
  6. 06 Feb, 2016 3 commits
    • Rui Miguel Silva's avatar
      greybus: spi: add device_type field to device config · 0273038d
      Rui Miguel Silva authored
      Add device_type field in device config operation to get the type of
      device and try to expose less the kernel internal over greybus.
      This include the spidev, spi-nor will fetch the correct nor id over
      jede and a modalias that will have the previous behavior (name will set
      the driver to be loaded).
      
      As at it, fix a trivial error path and return immediately.
      
      Tested: using gbsim and confirming that a spidev and mtd device were
      created.
      Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      0273038d
    • Rui Miguel Silva's avatar
      greybus: uart: fix double free of tty port · 9d4bb6c9
      Rui Miguel Silva authored
      When inserting and removing a module with a UART protocol defined a
      double free of the tty_port would happen and that would generate a lot
      of kernel oops in different places related to memory corruption.
      Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      9d4bb6c9
    • Rui Miguel Silva's avatar
      greybus: power_supply: rework get descriptors · 9d15134d
      Rui Miguel Silva authored
      Rework the get property descriptors function to fix a memory handling
      error for the response structure. This could corrupt the stack and
      throw nonalignment PC or SP error:
      
      Internal error: SP or PC abort: 8a000000 1 PREEMPT SMP
      Modules linked in: gb_power_supply(O) gb_arche(O) gb_camera(O) gb_es2(O) gb_vibrator(O) gb_raw(O) g]
      CPU: 3 PID: 51 Comm: kworker/u16:2 Tainted: G W O 3.10.73-g8a6af60-00118-g599a5c1 #1
      Workqueue: greybus1:svc gb_svc_connection_destroy [greybus]
      task: ffffffc0ba249580 ti: ffffffc0ba294000 task.ti: ffffffc0ba294000
      PC is at gb_power_supply_connection_init+0x81/0x1dc [gb_power_supply]
      LR is at gb_power_supply_connection_init+0x81/0x1dc [gb_power_supply]
      pc : [<ffffffbffc03b901>] lr : [<ffffffbffc03b901>] pstate: 80000145
      sp : ffffffc0ba297a00
      x29: 32002e002a001100 x28: ffffffc042cb2c80
      
      To fix this, allocate firstly the operation and handle request and
      response using operation payload.
      Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      9d15134d