06 Apr, 2014

2 commits

  • …ierry.reding/linux-pwm

    Pull pwm changes from Thierry Reding:
    "The legacy HAVE_PWM Kconfig symbol is finally being retired. Thanks a
    lot to Sascha Hauer for doing that.

    Three new drivers are added: Freescale FTM, Cirrus Logic CLPS711X and
    Intel Low Power Subsystem.

    An assortment of fixes and cleanups rounds things off for this release
    cycle"

    * tag 'pwm/for-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
    pwm: pxa: Constify OF match table
    pwm: pxa: Fix typo "pwm" -> "PWM"
    Revert "pwm: pxa: Use of_match_ptr()"
    pwm: add support for Intel Low Power Subsystem PWM
    pwm: Add CLPS711X PWM support
    pwm: atmel: correct CDTY calculation
    pwm: atmel: Fix polarity handling
    Documentation: Add device tree bindings for Freescale FTM PWM.
    pwm: Add Freescale FTM PWM driver support
    pwm: pxa: Use of_match_ptr()
    pwm: samsung: Use SIMPLE_DEV_PM_OPS macro
    pwm: renesas-tpu: Add dependency on HAS_IOMEM
    pwm: Remove obsolete HAVE_PWM Kconfig symbol

    Linus Torvalds
     
  • Pull ARM SoC cleanups from Arnd Bergmann:
    "These cleanup patches are mainly move stuff around and should all be
    harmless. They are mainly split out so that other branches can be
    based on top to avoid conflicts.

    Notable changes are:

    - We finally remove all mach/timex.h, after CLOCK_TICK_RATE is no
    longer used (Uwe Kleine-König)
    - The Qualcomm MSM platform is split out into legacy mach-msm and
    new-style mach-qcom, to allow easier maintainance of the new
    hardware support without regressions (Kumar Gala)
    - A rework of some of the Kconfig logic to simplify multiplatform
    support (Rob Herring)
    - Samsung Exynos gets closer to supporting multiplatform (Sachin
    Kamat and others)
    - mach-bcm3528 gets merged into mach-bcm (Stephen Warren)
    - at91 gains some common clock framework support (Alexandre Belloni,
    Jean-Jacques Hiblot and other French people)"

    * tag 'cleanup-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (89 commits)
    ARM: hisi: select HAVE_ARM_SCU only for SMP
    ARM: efm32: allow uncompress debug output
    ARM: prima2: build reset code standalone
    ARM: at91: add PWM clock
    ARM: at91: move sam9261 SoC to common clk
    ARM: at91: prepare common clk transition for sam9261 SoC
    ARM: at91: updated the at91_dt_defconfig with support for the ADS7846
    ARM: at91: dt: sam9261: Device Tree support for the at91sam9261ek
    ARM: at91: dt: defconfig: Added the sam9261 to the list of DT-enabled SOCs
    ARM: at91: dt: Add at91sam9261 dt SoC support
    ARM: at91: switch sam9rl to common clock framework
    ARM: at91/dt: define main clk frequency of at91sam9rlek
    ARM: at91/dt: define at91sam9rl clocks
    ARM: at91: prepare common clk transition for sam9rl SoCs
    ARM: at91: prepare sam9 dt boards transition to common clk
    ARM: at91: dt: sam9rl: Device Tree for the at91sam9rlek
    ARM: at91/defconfig: Add the sam9rl to the list of DT-enabled SOCs
    ARM: at91: Add at91sam9rl DT SoC support
    ARM: at91: prepare at91sam9rl DT transition
    ARM: at91/defconfig: refresh at91sam9260_9g20_defconfig
    ...

    Linus Torvalds
     

04 Apr, 2014

3 commits

  • Pull input updates from Dmitry Torokhov:
    "The first round of updates for the input subsystem.

    Just new drivers and existing driver fixes, no core changes except for
    the new uinput IOCTL to allow userspace to fetch sysfs name of the
    input device that was created"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (43 commits)
    Input: edt-ft5x06 - add a missing condition
    Input: appletouch - fix jumps when additional fingers are detected
    Input: appletouch - implement sensor data smoothing
    Input: add driver for SOC button array
    Input: pm8xxx-vibrator - add DT match table
    Input: pmic8xxx-pwrkey - migrate to DT
    Input: pmic8xxx-keypad - migrate to DT
    Input: pmic8xxx-keypad - migrate to regmap APIs
    Input: pmic8xxx-keypad - migrate to devm_* APIs
    Input: pmic8xxx-keypad - fix build by removing gpio configuration
    Input: add new driver for ARM CLPS711X keypad
    Input: edt-ft5x06 - add support for M09 firmware version
    Input: edt-ft5x06 - ignore touchdown events
    Input: edt-ft5x06 - adjust delays to conform datasheet
    Input: edt-ft5x06 - add DT support
    Input: edt-ft5x06 - several cleanups; no functional change
    Input: appletouch - dial back fuzz setting
    Input: remove obsolete tnetv107x drivers
    Input: sirfsoc-onkey - set the capability of reporting KEY_POWER
    Input: da9052_onkey - use correct register bit for key status
    ...

    Linus Torvalds
     
  • First round of input updates for 3.15.

    Dmitry Torokhov
     
  • The if condition was accidentally deleted here so we return every time
    instead of returning on error.

    Fixes: fd335ab04b3f ('Input: edt-ft5x06 - add support for M09 firmware version')
    Signed-off-by: Dan Carpenter
    Reviewed-by: Jingoo Han
    Acked-By: Lothar Waßmann
    Signed-off-by: Dmitry Torokhov

    Dan Carpenter
     

03 Apr, 2014

1 commit

  • Pull trivial tree updates from Jiri Kosina:
    "Usual rocket science -- mostly documentation and comment updates"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
    sparse: fix comment
    doc: fix double words
    isdn: capi: fix "CAPI_VERSION" comment
    doc: DocBook: Fix typos in xml and template file
    Bluetooth: add module name for btwilink
    driver core: unexport static function create_syslog_header
    mmc: core: typo fix in printk specifier
    ARM: spear: clean up editing mistake
    net-sysfs: fix comment typo 'CONFIG_SYFS'
    doc: Insert MODULE_ in module-signing macros
    Documentation: update URL to hfsplus Technote 1150
    gpio: update path to documentation
    ixgbe: Fix format string in ixgbe_fcoe.
    Kconfig: Remove useless "default N" lines
    user_namespace.c: Remove duplicated word in comment
    CREDITS: fix formatting
    treewide: Fix typo in Documentation/DocBook
    mm: Fix warning on make htmldocs caused by slab.c
    ata: ata-samsung_cf: cleanup in header file
    idr: remove unused prototype of idr_free()

    Linus Torvalds
     

02 Apr, 2014

1 commit

  • Pull ACPI and power management updates from Rafael Wysocki:
    "The majority of this material spent some time in linux-next, some of
    it even several weeks. There are a few relatively fresh commits in
    it, but they are mostly fixes and simple cleanups.

    ACPI took the lead this time, both in terms of the number of commits
    and the number of modified lines of code, cpufreq follows and there
    are a few changes in the PM core and in cpuidle too.

    A new feature that already got some LWN.net's attention is the device
    PM QoS extension allowing latency tolerance requirements to be
    propagated from leaf devices to their ancestors with hardware
    interfaces for specifying latency tolerance. That should help systems
    with hardware-driven power management to avoid going too far with it
    in cases when there are latency tolerance constraints.

    There also are some significant changes in the ACPI core related to
    the way in which hotplug notifications are handled. They affect PCI
    hotplug (ACPIPHP) and the ACPI dock station code too. The bottom line
    is that all those notification now go through the root notify handler
    and are propagated to the interested subsystems by means of callbacks
    instead of having to install a notify handler for each device object
    that we can potentially get hotplug notifications for.

    In addition to that ACPICA will now advertise "Windows 2013"
    compatibility for _OSI, because some systems out there don't work
    correctly if that is not done (some of them don't even boot).

    On the system suspend side of things, all of the device suspend and
    resume callbacks, except for ->prepare() and ->complete(), are now
    going to be executed asynchronously as that turns out to speed up
    system suspend and resume on some platforms quite significantly and we
    have a few more optimizations in that area.

    Apart from that, there are some new device IDs and fixes and cleanups
    all over. In particular, the system suspend and resume handling by
    cpufreq should be improved and the cpuidle menu governor should be a
    bit more robust now.

    Specifics:

    - Device PM QoS support for latency tolerance constraints on systems
    with hardware interfaces allowing such constraints to be specified.
    That is necessary to prevent hardware-driven power management from
    becoming overly aggressive on some systems and to prevent power
    management features leading to excessive latencies from being used
    in some cases.

    - Consolidation of the handling of ACPI hotplug notifications for
    device objects. This causes all device hotplug notifications to go
    through the root notify handler (that was executed for all of them
    anyway before) that propagates them to individual subsystems, if
    necessary, by executing callbacks provided by those subsystems
    (those callbacks are associated with struct acpi_device objects
    during device enumeration). As a result, the code in question
    becomes both smaller in size and more straightforward and all of
    those changes should not affect users.

    - ACPICA update, including fixes related to the handling of _PRT in
    cases when it is broken and the addition of "Windows 2013" to the
    list of supported "features" for _OSI (which is necessary to
    support systems that work incorrectly or don't even boot without
    it). Changes from Bob Moore and Lv Zheng.

    - Consolidation of ACPI _OST handling from Jiang Liu.

    - ACPI battery and AC fixes allowing unusual system configurations to
    be handled by that code from Alexander Mezin.

    - New device IDs for the ACPI LPSS driver from Chiau Ee Chew.

    - ACPI fan and thermal optimizations related to system suspend and
    resume from Aaron Lu.

    - Cleanups related to ACPI video from Jean Delvare.

    - Assorted ACPI fixes and cleanups from Al Stone, Hanjun Guo, Lan
    Tianyu, Paul Bolle, Tomasz Nowicki.

    - Intel RAPL (Running Average Power Limits) driver cleanups from
    Jacob Pan.

    - intel_pstate fixes and cleanups from Dirk Brandewie.

    - cpufreq fixes related to system suspend/resume handling from Viresh
    Kumar.

    - cpufreq core fixes and cleanups from Viresh Kumar, Stratos
    Karafotis, Saravana Kannan, Rashika Kheria, Joe Perches.

    - cpufreq drivers updates from Viresh Kumar, Zhuoyu Zhang, Rob
    Herring.

    - cpuidle fixes related to the menu governor from Tuukka Tikkanen.

    - cpuidle fix related to coupled CPUs handling from Paul Burton.

    - Asynchronous execution of all device suspend and resume callbacks,
    except for ->prepare and ->complete, during system suspend and
    resume from Chuansheng Liu.

    - Delayed resuming of runtime-suspended devices during system suspend
    for the PCI bus type and ACPI PM domain.

    - New set of PM helper routines to allow device runtime PM callbacks
    to be used during system suspend and resume more easily from Ulf
    Hansson.

    - Assorted fixes and cleanups in the PM core from Geert Uytterhoeven,
    Prabhakar Lad, Philipp Zabel, Rashika Kheria, Sebastian Capella.

    - devfreq fix from Saravana Kannan"

    * tag 'pm+acpi-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (162 commits)
    PM / devfreq: Rewrite devfreq_update_status() to fix multiple bugs
    PM / sleep: Correct whitespace errors in
    intel_pstate: Set core to min P state during core offline
    cpufreq: Add stop CPU callback to cpufreq_driver interface
    cpufreq: Remove unnecessary braces
    cpufreq: Fix checkpatch errors and warnings
    cpufreq: powerpc: add cpufreq transition latency for FSL e500mc SoCs
    MAINTAINERS: Reorder maintainer addresses for PM and ACPI
    PM / Runtime: Update runtime_idle() documentation for return value meaning
    video / output: Drop display output class support
    fujitsu-laptop: Drop unneeded include
    acer-wmi: Stop selecting VIDEO_OUTPUT_CONTROL
    ACPI / gpu / drm: Stop selecting VIDEO_OUTPUT_CONTROL
    ACPI / video: fix ACPI_VIDEO dependencies
    cpufreq: remove unused notifier: CPUFREQ_{SUSPENDCHANGE|RESUMECHANGE}
    cpufreq: Do not allow ->setpolicy drivers to provide ->target
    cpufreq: arm_big_little: set 'physical_cluster' for each CPU
    cpufreq: arm_big_little: make vexpress driver depend on bL core driver
    ACPI / button: Add ACPI Button event via netlink routine
    ACPI: Remove duplicate definitions of PREFIX
    ...

    Linus Torvalds
     

31 Mar, 2014

11 commits


30 Mar, 2014

2 commits

  • We should not be using static variable mousedev_mix in methods that can be
    called before that singleton gets assigned. While at it let's add open and
    close methods to mousedev structure so that we do not need to test if we
    are dealing with multiplexor or normal device and simply call appropriate
    method directly.

    This fixes: https://bugzilla.kernel.org/show_bug.cgi?id=71551

    Reported-by: GiulioDP
    Tested-by: GiulioDP
    Cc: stable@vger.kernel.org
    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • If a new (id == -1) ff effect was uploaded from userspace,
    ff-core.c::input_ff_upload() will have assigned a positive number to the
    new effect id. Currently, evdev.c::evdev_do_ioctl() will save this new id
    to userspace, regardless of whether the upload succeeded or not.

    On upload failure, this can be confusing because the dev->ff->effects[]
    array will not contain an element at the index of that new effect id.

    This patch fixes this by leaving the id unchanged after upload fails.

    Note: Unfortunately applications should still expect changed effect id for
    quite some time.

    This has been discussed on:
    http://www.mail-archive.com/linux-input@vger.kernel.org/msg08513.html
    ("ff-core effect id handling in case of a failed effect upload")

    Suggested-by: Dmitry Torokhov
    Signed-off-by: Elias Vanderstuyft
    Signed-off-by: Dmitry Torokhov

    Elias Vanderstuyft
     

29 Mar, 2014

8 commits

  • Pull input subsystem fixes from Dmitry Torokhov:
    "Updates to Synaptics touchpad to better cope with devices in Lenovo
    laptops, and a couple more fixes"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: synaptics - add manual min/max quirk for ThinkPad X240
    Input: synaptics - add manual min/max quirk
    Input: cypress_ps2 - don't report as a button pads
    Input: da9052_onkey - use correct register bit for key status
    Input: adp5588-keys - get value from data out when dir is out

    Linus Torvalds
     
  • There is a new firmware version for the EDT-FT5x06 chip.
    Add support for detecting the firmware version and handle the
    differences appropriately.

    Signed-off-by: Lothar Waßmann
    Signed-off-by: Dmitry Torokhov

    Lothar Waßmann
     
  • The chip may report invalid coordinates on touchdown events, so don't
    report the initial touchdown event.

    Signed-off-by: Lothar Waßmann
    Acked-by: Fugang Duan
    Signed-off-by: Dmitry Torokhov

    Lothar Waßmann
     
  • The FT5x06 datasheet specifies a minimum reset width of 5ms and a
    delay between deassertion of reset and start of reporting of 300ms.
    Adjust the delays to conform to the datasheet.

    With the original delays I sometimes experienced communication
    timeouts when initializing the controller.

    Signed-off-by: Lothar Waßmann
    Acked-by: Fugang Duan
    Signed-off-by: Dmitry Torokhov

    Lothar Waßmann
     
  • Signed-off-by: Lothar Waßmann
    Signed-off-by: Dmitry Torokhov

    Lothar Waßmann
     
  • - remove redundant parens
    - remove redundant type casts
    - fix mixed tab/space indentation

    Signed-off-by: Lothar Waßmann
    Acked-by: Fugang Duan
    Signed-off-by: Dmitry Torokhov

    Lothar Waßmann
     
  • This extends Benjamin Tissoires manual min/max quirk table with support for
    the ThinkPad X240.

    Cc: stable@vger.kernel.org
    Signed-off-by: Hans de Goede
    Signed-off-by: Dmitry Torokhov

    Hans de Goede
     
  • The new Lenovo Haswell series (-40's) contains a new Synaptics touchpad.
    However, these new Synaptics devices report bad axis ranges.
    Under Windows, it is not a problem because the Windows driver uses RMI4
    over SMBus to talk to the device. Under Linux, we are using the PS/2
    fallback interface and it occurs the reported ranges are wrong.

    Of course, it would be too easy to have only one range for the whole
    series, each touchpad seems to be calibrated in a different way.

    We can not use SMBus to get the actual range because I suspect the firmware
    will switch into the SMBus mode and stop talking through PS/2 (this is the
    case for hybrid HID over I2C / PS/2 Synaptics touchpads).

    So as a temporary solution (until RMI4 land into upstream), start a new
    list of quirks with the min/max manually set.

    Signed-off-by: Benjamin Tissoires
    CC: stable@vger.kernel.org
    Signed-off-by: Dmitry Torokhov

    Benjamin Tissoires
     

28 Mar, 2014

3 commits

  • Let's dial back the default fuzz setting for most devices using this
    driver, based on values from user feedback from forums and bug reports.

    Signed-off-by: Clinton Sprain
    Reviewed-by: Henrik Rydberg
    Signed-off-by: Dmitry Torokhov

    Clinton Sprain
     
  • The tnetv107x platform is getting removed, so the touchscreen
    and keypad drivers for this platform will no longer be needed
    either.

    Signed-off-by: Arnd Bergmann
    Acked-by: Sekhar Nori
    Acked-by: Kevin Hilman
    Cc: Dmitry Torokhov
    Cc: linux-input@vger.kernel.org
    Signed-off-by: Dmitry Torokhov

    Arnd Bergmann
     
  • commit a1a7521064428fc1cf8 moved to report EV_KEY event(KEY_POWER) instead of
    reporting EV_PWR event(KEY_SUSPEND), but it didn't enable the capability, so
    the KEY_POWER will not be reported to userspace by input core. this patch fixes
    the issue.

    Signed-off-by: Xianglong Du
    Signed-off-by: Barry Song
    Signed-off-by: Dmitry Torokhov

    Xianglong Du
     

27 Mar, 2014

2 commits

  • The cypress PS/2 trackpad models supported by the cypress_ps2 driver
    emulate BTN_RIGHT events in firmware based on the finger position, as part
    of this no motion events are sent when the finger is in the button area.

    The INPUT_PROP_BUTTONPAD property is there to indicate to userspace that
    BTN_RIGHT events should be emulated in userspace, which is not necessary
    in this case.

    When INPUT_PROP_BUTTONPAD is advertised userspace will wait for a motion
    event before propagating the button event higher up the stack, as it needs
    current abs x + y data for its BTN_RIGHT emulation. Since in the
    cypress_ps2 pads don't report motion events in the button area, this means
    that clicks in the button area end up being ignored, so
    INPUT_PROP_BUTTONPAD actually causes problems for these touchpads, and
    removing it fixes:

    https://bugs.freedesktop.org/show_bug.cgi?id=76341

    Reported-by: Adam Williamson
    Tested-by: Adam Williamson
    Reviewed-by: Peter Hutterer
    Signed-off-by: Hans de Goede
    Signed-off-by: Dmitry Torokhov

    Hans de Goede
     
  • The wrong register bit of the DA9052/3 PMIC registers was
    used to determine the status on the ONKEY.

    Also a failure in reading the status register will no longer
    result in the work queue being rescheduled as that would result
    in a (potentially) endless retry.

    Signed-off-by: Anthony Olech
    Acked-by: David Dajun Chen
    Signed-off-by: Dmitry Torokhov

    Anthony Olech
     

24 Mar, 2014

3 commits


20 Mar, 2014

1 commit

  • * pm-qos:
    PM / QoS: Add type to dev_pm_qos_add_ancestor_request() arguments
    ACPI / LPSS: Support for device latency tolerance PM QoS
    ACPI / scan: Add bind/unbind callbacks to struct acpi_scan_handler
    PM / QoS: Introcuce latency tolerance device PM QoS type
    PM / QoS: Add no_constraints_value field to struct pm_qos_constraints
    PM / QoS: Rename device resume latency QoS items

    * pm-domains:
    PM / domains: Turn latency warning into debug message

    * pm-drivers:
    PM: Add pm_runtime_suspend|resume_force functions
    PM / runtime: Fetch runtime PM callbacks using a macro

    Rafael J. Wysocki
     

02 Mar, 2014

1 commit


20 Feb, 2014

2 commits