1. 18 9月, 2015 1 次提交
    • K
      hp-wmi: limit hotkey enable · 8a1513b4
      Kyle Evans 提交于
      Do not write initialize magic on systems that do not have
      feature query 0xb. Fixes Bug #82451.
      
      Redefine FEATURE_QUERY to align with 0xb and FEATURE2 with 0xd
      for code clearity.
      
      Add a new test function, hp_wmi_bios_2008_later() & simplify
      hp_wmi_bios_2009_later(), which fixes a bug in cases where
      an improper value is returned. Probably also fixes Bug #69131.
      
      Add missing __init tag.
      Signed-off-by: NKyle Evans <kvans32@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      8a1513b4
  2. 11 9月, 2015 3 次提交
    • 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
    • R
      wmi: Remove private %pUL implementation · 85b4e4eb
      Rasmus Villemoes 提交于
      The work performed by wmi_gtoa is equivalent to simply sprintf(out,
      "%pUL", in), so one could replace its body by this. However, most
      users feed the result directly as a %s argument to some other function
      which also understands the %p extensions (they all ultimately use
      vsnprintf), so we can eliminate some stack buffers and quite a bit of
      code by just using %pUL directly.
      
      In wmi_dev_uevent I'm not sure whether there's room for a
      nul-terminator in env->buf, so I've just replaced wmi_gtoa with the
      equivalent sprintf call.
      Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      85b4e4eb
  3. 07 9月, 2015 1 次提交
  4. 29 8月, 2015 2 次提交
  5. 26 8月, 2015 2 次提交
  6. 11 8月, 2015 4 次提交
  7. 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
  8. 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
  9. 25 7月, 2015 7 次提交
  10. 20 7月, 2015 5 次提交
    • L
      Linux 4.2-rc3 · 52721d9d
      Linus Torvalds 提交于
      52721d9d
    • L
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · fdbd55fd
      Linus Torvalds 提交于
      Pull SCSI fixes from James Bottomley:
       "Two fairly simple fixes: one is a change that causes us to have a very
        low queue depth leading to performance issues and the other is a null
        deref occasionally in tapes thanks to use after put"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: fix host max depth checking for the 'queue_depth' sysfs interface
        st: null pointer dereference panic caused by use after kref_put by st_open
      fdbd55fd
    • L
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 8bff8399
      Linus Torvalds 提交于
      Pull MIPS fixes from Ralf Baechle:
       "Another round of MIPS fixes for 4.2.
      
        Things are looking quite decent at this stage but the recent work on
        the FPU support took its toll:
      
         - fix an incorrect overly restrictive ifdef
      
         - select O32 64-bit FP support for O32 binary compatibility
      
         - remove workarounds for Sibyte SB1250 Pass1 parts.  There are rare
           fixing the workarounds is not worth the effort.
      
         - patch up an outdated and now incorrect comment"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: fpu.h: Allow 64-bit FPU on a 64-bit MIPS R6 CPU
        MIPS: SB1: Remove support for Pass 1 parts.
        MIPS: Require O32 FP64 support for MIPS64 with O32 compat
        MIPS: asm-offset.c: Patch up various comments refering to the old filename.
      8bff8399
    • L
      Merge branch 'parisc-4.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · ff72bf7a
      Linus Torvalds 提交于
      Pull parisc fix from Helge Deller:
       "A memory leak fix from Christophe Jaillet which was introduced with
        kernel 4.0 and which leads to kernel crashes on parisc after 1-3 days"
      
      * 'parisc-4.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: mm: Fix a memory leak related to pmd not attached to the pgd
      ff72bf7a
    • L
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 10b97f38
      Linus Torvalds 提交于
      Pull ARM SoC fixes from Olof Johansson:
       "By far most of the fixes here are updates to DTS files to deal with
        some mostly minor bugs.
      
        There's also a fix to deal with non-PM kernel configs on i.MX, a
        regression fix for ethernet on PXA platforms and a dependency fix for
        OMAP"
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        ARM: keystone: dts: rename pcie nodes to help override status
        ARM: keystone: dts: fix dt bindings for PCIe
        ARM: pxa: fix dm9000 platform data regression
        ARM: dts: Correct audio input route & set mic bias for am335x-pepper
        ARM: OMAP2+: Add HAVE_ARM_SCU for AM43XX
        MAINTAINERS: digicolor: add dts files
        ARM: ux500: fix MMC/SD card regression
        ARM: ux500: define serial port aliases
        ARM: dts: OMAP5: Add #iommu-cells property to IOMMUs
        ARM: dts: OMAP4: Add #iommu-cells property to IOMMUs
        ARM: dts: Fix frequency scaling on Gumstix Pepper
        ARM: dts: configure regulators for Gumstix Pepper
        ARM: dts: omap3: overo: Update LCD panel names
        ARM: dts: cros-ec-keyboard: Add support for some Japanese keys
        ARM: imx6: gpc: always enable PU domain if CONFIG_PM is not set
        ARM: dts: imx53-qsb: fix TVE entry
        ARM: dts: mx23: fix iio-hwmon support
        ARM: dts: imx27: Adjust the GPT compatible string
        ARM: socfpga: dts: Fix entries order
        ARM: socfpga: dts: Fix adxl34x formating and compatible string
      10b97f38
  11. 19 7月, 2015 9 次提交