1. 29 6月, 2016 2 次提交
  2. 26 4月, 2016 1 次提交
    • A
      toshiba_acpi: Fix regression caused by hotkey enabling value · a30b8f81
      Azael Avalos 提交于
      Commit 52cbae01 ("toshiba_acpi: Change default Hotkey enabling value")
      changed the hotkeys enabling value, as it was the same value Windows uses,
      however, it turns out that the value tells the EC that the driver will now
      take care of the hardware events like the physical RFKill switch or the
      pointing device toggle button.
      
      This patch reverts such commit by changing the default hotkey enabling
      value to 0x09, which enables hotkey events only, making the hardware
      buttons working again.
      
      Fixes bugs 113331 and 114941.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      a30b8f81
  3. 24 3月, 2016 3 次提交
  4. 20 1月, 2016 1 次提交
    • A
      toshiba_acpi: Fix keyboard backlight sysfs entries not being updated · 65e3cf9c
      Azael Avalos 提交于
      Certain Toshiba models with the second generation keyboard backlight
      (type 2) do not generate the keyboard backlight changed event (0x92),
      and thus, the sysfs entries are never being updated.
      
      This patch adds a workquee and a global boolean variable to address
      the issue.
      
      For those models that do generate the event, the sysfs entries are
      being updated via the *notify function and the boolean is set to
      true to avoid a second call to update the entries.
      
      For those models that do not generate the event, the workquee is
      used to update the sysfs entries and also to emulate the event via
      netlink, to make userspace aware of such change.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      65e3cf9c
  5. 24 11月, 2015 2 次提交
  6. 21 11月, 2015 2 次提交
  7. 06 11月, 2015 1 次提交
  8. 03 10月, 2015 4 次提交
  9. 11 9月, 2015 2 次提交
    • A
      toshiba_acpi: Fix hotkeys registration on some toshiba models · 53147b6c
      Azael Avalos 提交于
      Commit a2b3471b ("toshiba_acpi: Use the Hotkey Event Type function
      for keymap choosing") changed the *setup_keyboard function to query for
      the Hotkey Event Type to help choose the correct keymap, but turns out
      that here are certain Toshiba models out there not implementing this
      feature, and thus, failing to continue the input device registration and
      leaving such laptops without hotkey support.
      
      This patch changes such check, and instead of returning an error if
      the Hotkey Event Type is not present, we simply inform userspace about it,
      changing the message printed from err to notice, making the function
      responsible for registering the input device to continue.
      
      This issue was found on a Toshiba Portege Z30-B, but there might be
      some other models out there affected by this regression as well.
      
      Cc: <stable@vger.kernel.org> # 4.1+
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      53147b6c
    • A
      toshiba_acpi: Fix USB Sleep and Music always disabled · cf680eae
      Azael Avalos 提交于
      Commit e1a949c1 ("toshiba_acpi: Refactor *{get, set} functions return
      value") made changes on the return type of the HCI/SCI functions, but a
      typo on the USB Sleep and Music code is always reporting non existent
      support for such feature.
      
      This patch corrects the typo, changing an assignment to a comparison,
      making the laptops with actual support for such feature to work again.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      cf680eae
  10. 05 8月, 2015 5 次提交
    • A
      toshiba_acpi: Bump driver version to 0.23 · 495078f8
      Azael Avalos 提交于
      Given that some features were added (/dev/toshiba_acpi device), some
      clean-ups and minor (cosmetic) changes all over the driver code, bump
      the driver version to 0.23 to reflect these overall changes.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      495078f8
    • A
      toshiba_acpi: Remove unnecessary checks and returns in HCI/SCI functions · a6b5354f
      Azael Avalos 提交于
      A previous patch added explicit feature checks for support, *SUCCESS*
      and *FAILURE to the HCI/SCI *{get, set} functions.
      
      This patch removes some unnedded checks to the driver HCI/SCI
      functions given that the default error return value is now set to
      -EIO, there is no need to check for other error values other than
      the ones currently checking for.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      a6b5354f
    • A
      toshiba_acpi: Refactor *{get, set} functions return value · e1a949c1
      Azael Avalos 提交于
      This patch refactors the return value of the driver *{get, set}
      functions, since the driver default error value is -EIO.
      
      All the functions now check for TOS_FAILURE, TOS_NOT_SUPPORTED and
      TOS_SUCCESS.
      
      On TOS_FAILURE a pr_err message is printed informing the user of the
      error (no change was made to this, except the check was added to the
      functions not checking for this).
      
      On TOS_NOT_SUPPORTED we now return -ENODEV immediately (some
      functions were returning -EIO and some other were not checking)
      
      On TOS_SUCCESS* we now return 0 (as a side effect, a new success value
      was added, since some functions return one instead of zero to
      indicate success).
      
      As a special case, the LED functions now check for *FAILURE on
      *set, and check for TOS_FAILURE and TOS_SUCCESS on *get with their
      "default" return value set to LED_OFF.
      
      Also the {lcd, video}_proc* functions were adapted to reflect these
      changes to their parent HCI functions.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      e1a949c1
    • A
      toshiba_acpi: Remove "*not supported" feature prints · 0409cbce
      Azael Avalos 提交于
      Currently the driver prints "*not supported" if any of the features
      queried are in fact not supported, let us print the available
      features instead.
      
      This patch removes all instances pr_info printing "*not supported",
      and add a new function called "print_supported_features", which will
      print the available laptop features.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      0409cbce
    • A
      toshiba_acpi: Change *available functions return type · ea215a3f
      Azael Avalos 提交于
      This patch changes the *available functions return type from int to
      void.
      
      The checks for support of their respective features are done inside
      such functions and there was no need to return anything as we can
      flag the queried feature as supported inside these functions.
      
      The code was adapted accordingly to these changes and two new
      variables were created and another was changed from uint to bool.
      
      Also, the function toshiba_acceleremoter_supported was renamed to
      toshiba_accelerometer_available to maintain the naming consistency on
      the driver.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      ea215a3f
  11. 29 7月, 2015 1 次提交
    • A
      toshiba_acpi: Add set_fan_status function · 3e07e5ba
      Azael Avalos 提交于
      This patch adds a new function named "set_fan_status" to complement
      its get* counterpart, as well as to avoid code duplication between
      "fan_proc_write" and "fan_store".
      
      Also, both functions (get*, set*) are now checking for TOS_FAILURE,
      TOS_NOT_SUPPORTED and TOS_SUCCESS (to be on par with the rest of the
      HCI/SCI functions), printing an error message, returning -ENODEV and
      zero respectively.
      
      The proc and sysfs functions were updated to reflect these changes as
      well, returning -EIO for proc, and propagating the error value on the
      sysfs functions.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      3e07e5ba
  12. 25 7月, 2015 7 次提交
  13. 19 6月, 2015 1 次提交
  14. 12 5月, 2015 5 次提交
  15. 07 5月, 2015 1 次提交
  16. 25 4月, 2015 1 次提交
  17. 08 4月, 2015 1 次提交