1. 10 10月, 2014 4 次提交
  2. 09 10月, 2014 1 次提交
  3. 08 10月, 2014 3 次提交
  4. 25 9月, 2014 1 次提交
  5. 16 9月, 2014 3 次提交
  6. 13 9月, 2014 1 次提交
  7. 12 9月, 2014 3 次提交
    • T
      Input: joystick - use ktime for measuring timing · 76460a7b
      Takashi Iwai 提交于
      The current codes in gameport and analog joystick drivers for the time
      accounting have a long-standing problem when the system is running
      with CPU freq; since the timing is measured via TSC or sample counter,
      the calculation isn't reliable.
      
      In this patch, as a simple fix, use the standard ktime to measure the
      timing.  In case where no high resolution timer is available,
      use_ktime bool option is provided to both modules.  Setting
      use_ktime=false switches to the old methods.
      Tested-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      76460a7b
    • J
      Input: add haptic driver on max77693 · a3b3ca75
      Jaewon Kim 提交于
      This driver to supports the haptic controller on MAX77693 Multifunction
      device with PMIC, CHARGER, LED, MUIC, HAPTIC.
      
      This driver supports external pwm and LRA (Linear Resonant Actuator) motor.
      User can control the haptic device via force feedback framework.
      Signed-off-by: NJaewon Kim <jaewon02.kim@samsung.com>
      Acked-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      a3b3ca75
    • N
      Input: introduce palmas-pwrbutton · adff5962
      Nishanth Menon 提交于
      Many palmas family of PMICs have support for interrupt based power button.
      This allows the device to notify the processor of external push button
      events over the shared palmas interrupt. However, this event is generated
      only during a "press" operation. Software is supposed to poll(sigh!) for
      detecting a release event.
      
      The PMIC also supports ability to power off independent of the software
      decisions when the button is pressed for a long duration if the PMIC is
      appropriately configured on the platform.
      
      Even though the function is similar to twl4030_pwrbutton, it is
      substantially different in operation to belong to a new driver of it's own.
      
      Based on original work done by Girish S Ghongdemath <girishsg@ti.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      adff5962
  8. 09 9月, 2014 3 次提交
  9. 04 9月, 2014 1 次提交
  10. 31 8月, 2014 1 次提交
  11. 30 8月, 2014 2 次提交
  12. 29 8月, 2014 3 次提交
    • J
      x86, irq, PCI: Keep IRQ assignment for runtime power management · 9eabc99a
      Jiang Liu 提交于
      Now IOAPIC driver dynamically allocates IRQ numbers for IOAPIC pins.
      We need to keep IRQ assignment for PCI devices during runtime power
      management, otherwise it may cause failure of device wakeups.
      
      Commit 3eec5952 "x86, irq, PCI: Keep IRQ assignment for PCI
      devices during suspend/hibernation" has fixed the issue for suspend/
      hibernation, we also need the same fix for runtime device sleep too.
      
      Fix: https://bugzilla.kernel.org/show_bug.cgi?id=83271Reported-and-Tested-by: NEmanueL Czirai <amanual@openmailbox.org>
      Signed-off-by: NJiang Liu <jiang.liu@linux.intel.com>
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: EmanueL Czirai <amanual@openmailbox.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Grant Likely <grant.likely@linaro.org>
      Link: http://lkml.kernel.org/r/1409304383-18806-1-git-send-email-jiang.liu@linux.intel.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
      9eabc99a
    • D
      spi/rockchip: Avoid accidentally turning off the clock · 5d1d150d
      Doug Anderson 提交于
      If our client is requesting a clock that is above the maximum clock
      then the following division will result in 0:
        rs->max_freq / rs->speed
      
      We'll then program 0 into the SPI_BAUDR register.  The Rockchip TRM
      says: "If the value is 0, the serial output clock (sclk_out) is
      disabled."
      
      It's much better to end up with the fastest possible clock rather than
      a clock that is off, so enforce a minimum value.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      5d1d150d
    • M
      dm crypt: fix access beyond the end of allocated space · d49ec52f
      Mikulas Patocka 提交于
      The DM crypt target accesses memory beyond allocated space resulting in
      a crash on 32 bit x86 systems.
      
      This bug is very old (it dates back to 2.6.25 commit 3a7f6c99 "dm
      crypt: use async crypto").  However, this bug was masked by the fact
      that kmalloc rounds the size up to the next power of two.  This bug
      wasn't exposed until 3.17-rc1 commit 298a9fa0 ("dm crypt: use per-bio
      data").  By switching to using per-bio data there was no longer any
      padding beyond the end of a dm-crypt allocated memory block.
      
      To minimize allocation overhead dm-crypt puts several structures into one
      block allocated with kmalloc.  The block holds struct ablkcipher_request,
      cipher-specific scratch pad (crypto_ablkcipher_reqsize(any_tfm(cc))),
      struct dm_crypt_request and an initialization vector.
      
      The variable dmreq_start is set to offset of struct dm_crypt_request
      within this memory block.  dm-crypt allocates the block with this size:
      cc->dmreq_start + sizeof(struct dm_crypt_request) + cc->iv_size.
      
      When accessing the initialization vector, dm-crypt uses the function
      iv_of_dmreq, which performs this calculation: ALIGN((unsigned long)(dmreq
      + 1), crypto_ablkcipher_alignmask(any_tfm(cc)) + 1).
      
      dm-crypt allocated "cc->iv_size" bytes beyond the end of dm_crypt_request
      structure.  However, when dm-crypt accesses the initialization vector, it
      takes a pointer to the end of dm_crypt_request, aligns it, and then uses
      it as the initialization vector.  If the end of dm_crypt_request is not
      aligned on a crypto_ablkcipher_alignmask(any_tfm(cc)) boundary the
      alignment causes the initialization vector to point beyond the allocated
      space.
      
      Fix this bug by calculating the variable iv_size_padding and adding it
      to the allocated size.
      
      Also correct the alignment of dm_crypt_request.  struct dm_crypt_request
      is specific to dm-crypt (it isn't used by the crypto subsystem at all),
      so it is aligned on __alignof__(struct dm_crypt_request).
      
      Also align per_bio_data_size on ARCH_KMALLOC_MINALIGN, so that it is
      aligned as if the block was allocated with kmalloc.
      Reported-by: NKrzysztof Kolasa <kkolasa@winsoft.pl>
      Tested-by: NMilan Broz <gmazyland@gmail.com>
      Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: NMike Snitzer <snitzer@redhat.com>
      d49ec52f
  13. 28 8月, 2014 14 次提交