25 Sep, 2014

1 commit


24 Sep, 2014

1 commit

  • This reverts commit f23cf8bd5c1f ("efi/x86: efistub: Move shared
    dependencies to ") as well as the x86 parts of commit
    f4f75ad5741f ("efi: efistub: Convert into static library").

    The road leading to these two reverts is long and winding.

    The above two commits were merged during the v3.17 merge window and
    turned the common EFI boot stub code into a static library. This
    necessitated making some symbols global in the x86 boot stub which
    introduced new entries into the early boot GOT.

    The problem was that we weren't fixing up the newly created GOT entries
    before invoking the EFI boot stub, which sometimes resulted in hangs or
    resets. This failure was reported by Maarten on his Macbook pro.

    The proposed fix was commit 9cb0e394234d ("x86/efi: Fixup GOT in all
    boot code paths"). However, that caused issues for Linus when booting
    his Sony Vaio Pro 11. It was subsequently reverted in commit
    f3670394c29f.

    So that leaves us back with Maarten's Macbook pro not booting.

    At this stage in the release cycle the least risky option is to revert
    the x86 EFI boot stub to the pre-merge window code structure where we
    explicitly #include efi-stub-helper.c instead of linking with the static
    library. The arm64 code remains unaffected.

    We can take another swing at the x86 parts for v3.18.

    Conflicts:
    arch/x86/include/asm/efi.h

    Tested-by: Josh Boyer
    Tested-by: Maarten Lankhorst
    Tested-by: Leif Lindholm [arm64]
    Tested-by: Linus Torvalds
    Cc: H. Peter Anvin
    Cc: Ard Biesheuvel ,
    Cc: Ingo Molnar
    Signed-off-by: Matt Fleming

    Matt Fleming
     

09 Sep, 2014

2 commits

  • Pull EFI fixes from Matt Fleming:

    * Fix early boot regression affecting x86 EFI boot stub when loading
    initrds above 4GB - Yinghai Lu

    * Relocate GOT entries in the x86 EFI boot stub now that we have
    symbols with global visibility - Matt Fleming

    * fdt memory reservation fix for arm64 - Mark Salter

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • Commit 86c8b27a01cf:
    "arm64: ignore DT memreserve entries when booting in UEFI mode

    prevents early_init_fdt_scan_reserved_mem() from being called for
    arm64 kernels booting via UEFI. This was done because the kernel
    will use the UEFI memory map to determine reserved memory regions.
    That approach has problems in that early_init_fdt_scan_reserved_mem()
    also reserves the FDT itself and any node-specific reserved memory.
    By chance of some kernel configs, the FDT may be overwritten before
    it can be unflattened and the kernel will fail to boot. More subtle
    problems will result if the FDT has node specific reserved memory
    which is not really reserved.

    This patch has the UEFI stub remove the memory reserve map entries
    from the FDT as it does with the memory nodes. This allows
    early_init_fdt_scan_reserved_mem() to be called unconditionally
    so that the other needed reservations are made.

    Signed-off-by: Mark Salter
    Acked-by: Ard Biesheuvel
    Acked-by: Mark Rutland
    Signed-off-by: Matt Fleming

    Mark Salter
     

01 Sep, 2014

3 commits

  • Pull ARM fixes from Russell King:
    "Various assorted fixes:

    - a couple of patches from Mark Rutland to resolve an errata with
    Cortex-A15 CPUs.
    - fix cpuidle for the CPU part ID changes in the last merge window
    - add support for a relocation which ARM binutils is generating in
    some circumstances"

    * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
    ARM: 8130/1: cpuidle/cpuidle-big_little: fix reading cpu id part number
    ARM: 8129/1: errata: work around Cortex-A15 erratum 830321 using dummy strex
    ARM: 8128/1: abort: don't clear the exclusive monitors
    ARM: 8127/1: module: add support for R_ARM_TARGET1 relocations

    Linus Torvalds
     
  • Pull ARM SoC fixes from Olof Johansson:
    "Here's the weekly batch of fixes from arm-soc.

    The delta is a largeish negative delta, due to revert of SMP support
    for Broadcom's STB SoC -- it was accidentally merged before some
    issues had been addressed, so they will make a new attempt for 3.18.
    I didn't see a need for a full revert of the whole platform due to
    this, we're keeping the rest enabled.

    The rest is mostly:

    - a handful of DT fixes for i.MX (Hummingboard/Cubox-i in particular)
    - some MTD/NAND fixes for OMAP
    - minor DT fixes for shmobile
    - warning fix for UP builds on vexpress/spc

    There's also a couple of patches that wires up hwmod on TI's DRA7 SoC
    so it can boot. Drivers and the rest had landed for 3.17, and it's
    small and isolated so it made sense to pick up now even if it's not a
    bugfix"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (23 commits)
    vexpress/spc: fix a build warning on array bounds
    ARM: DRA7: hwmod: Add dra74x and dra72x specific ocp interface lists
    ARM: DRA7: Add support for soc_is_dra74x() and soc_is_dra72x() variants
    MAINTAINERS: catch special Rockchip code locations
    ARM: dts: microsom-ar8035: MDIO pad must be set open drain
    ARM: dts: omap54xx-clocks: Fix the l3 and l4 clock rates
    ARM: brcmstb: revert SMP support
    ARM: OMAP2+: hwmod: Rearm wake-up interrupts for DT when MUSB is idled
    ARM: dts: Enable UART wake-up events for beagleboard
    ARM: dts: Remove twl6030 clk32g "regulator"
    ARM: OMAP2+: omap_device: remove warning that clk alias already exists
    ARM: OMAP: fix %d confusingly prefixed with 0x in format string
    ARM: dts: DRA7: fix interrupt-cells for GPIO
    mtd: nand: omap: Fix 1-bit Hamming code scheme, omap_calculate_ecc()
    ARM: dts: omap3430-sdp: Revert to using software ECC for NAND
    ARM: OMAP2+: GPMC: Support Software ECC scheme via DT
    mtd: nand: omap: Revert to using software ECC by default
    ARM: dts: hummingboard/cubox-i: change SPDIF output to be more descriptive
    ARM: dts: hummingboard/cubox-i: add USB OC pinctrl configuration
    ARM: shmobile: r8a7791: add missing 0x0100 for SDCKCR
    ...

    Linus Torvalds
     
  • Pull spi bugfixes from Mark Brown:
    "A smattering of bug fixes for the SPI subsystem, all in driver code
    which has seen active work recently and none of them with any great
    global impact.

    There's also a new ACPI ID for the pxa2xx driver which required no
    code changes and the addition of kerneldoc for some structure fields
    that were missing it and generating warnings during documentation
    builds as a result"

    * tag 'spi-v3.17-rc3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
    spi: sh-msiof: Fix transmit-only DMA transfers
    spi/rockchip: Avoid accidentally turning off the clock
    spi: dw: fix kernel crash due to NULL pointer dereference
    spi: dw-pci: fix bug when regs left uninitialized
    spi: davinci: fix SPI_NO_CS functionality
    spi/rockchip: fixup incorrect dma direction setting
    spi/pxa2xx: Add ACPI ID for Intel Braswell
    spi: spi-au1550: fix build failure
    spi: rspi: Fix leaking of unused DMA descriptors
    spi: sh-msiof: Fix leaking of unused DMA descriptors
    spi: Add missing kerneldoc bits
    spi/omap-mcspi: Fix the spi task hangs waiting dma_rx

    Linus Torvalds
     

31 Aug, 2014

4 commits


30 Aug, 2014

11 commits

  • Pull x86 fixes from Peter Anvin:
    "One patch to avoid assigning interrupts we don't actually have on
    non-PC platforms, and two patches that addresses bugs in the new
    IOAPIC assignment code"

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86, irq, PCI: Keep IRQ assignment for runtime power management
    x86: irq: Fix bug in setting IOAPIC pin attributes
    x86: Fix non-PC platform kernel crash on boot due to NULL dereference

    Linus Torvalds
     
  • Pull ACPI and power management fixes from Rafael Wysocki:

    - Fix for an ACPI regression related to the handling of fixed events
    that caused netlink routines to be (incorrectly) run in interrupt
    context from Lan Tianyu

    - Fix for an ACPI EC driver regression on Acer Aspire V5-573G that
    caused AC/battery plug/unplug and video brightness change
    notifications to be delayed on that machine from Lv Zheng

    - Fix for an ACPI device enumeration regression that caused ACPI driver
    probe to fail for some devices where it succeeded before (Rafael J
    Wysocki)

    - intel_pstate driver fix to prevent it from printing an information
    message for every CPU in the system on every boot from Andi Kleen

    - s5pv210 cpufreq driver fix to remove an __init annotation from a
    routine that in fact can be called at any time after init too from
    Mark Brown

    - New Intel Braswell device ID for the ACPI LPSS (Low-Power Subsystem)
    driver from Alan Cox

    - New Intel Braswell CPU ID for intel_pstate from Mika Westerberg

    * tag 'pm+acpi-3.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    cpufreq: s5pv210: Remove spurious __init annotation
    cpufreq: intel_pstate: Add CPU ID for Braswell processor
    intel_pstate: Turn per cpu printk into pr_debug
    ACPI / LPSS: Add ACPI IDs for Intel Braswell
    ACPI / EC: Add support to disallow QR_EC to be issued before completing previous QR_EC
    ACPI / EC: Add support to disallow QR_EC to be issued when SCI_EVT isn't set
    ACPI: Run fixed event device notifications in process context
    ACPI / scan: Allow ACPI drivers to bind to PNP device objects

    Linus Torvalds
     
  • Merge patches from Andrew Morton:
    "22 fixes"

    * emailed patches from Andrew Morton : (22 commits)
    kexec: purgatory: add clean-up for purgatory directory
    Documentation/kdump/kdump.txt: add ARM description
    flush_icache_range: export symbol to fix build errors
    tools: selftests: fix build issue with make kselftests target
    ocfs2: quorum: add a log for node not fenced
    ocfs2: o2net: set tcp user timeout to max value
    ocfs2: o2net: don't shutdown connection when idle timeout
    ocfs2: do not write error flag to user structure we cannot copy from/to
    x86/purgatory: use approprate -m64/-32 build flag for arch/x86/purgatory
    drivers/rtc/rtc-s5m.c: re-add support for devices without irq specified
    xattr: fix check for simultaneous glibc header inclusion
    kexec: remove CONFIG_KEXEC dependency on crypto
    kexec: create a new config option CONFIG_KEXEC_FILE for new syscall
    x86,mm: fix pte_special versus pte_numa
    hugetlb_cgroup: use lockdep_assert_held rather than spin_is_locked
    mm/zpool: use prefixed module loading
    zram: fix incorrect stat with failed_reads
    lib: turn CONFIG_STACKTRACE into an actual option.
    mm: actually clear pmd_numa before invalidating
    memblock, memhotplug: fix wrong type in memblock_find_in_range_node().
    ...

    Linus Torvalds
     
  • The rtc-s5m driver used to support devices without irq specified in the
    past. Re-add this support.

    The patch fixes boot for Insignal's Exynos4412 based Origen board.

    Error messages before the patch:

    ...
    Unable to handle kernel NULL pointer dereference at virtual address 00000094
    pgd = c0004000
    [00000094] *pgd=00000000
    Internal error: Oops: 5 [#1] PREEMPT SMP ARM
    Modules linked in:
    CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.16.0-next-20140804-00008-ga59480f-dirty #701
    task: ea80f000 ti: ea882000 task.ti: ea882000
    PC is at regmap_irq_get_virq+0x0/0x28
    LR is at s5m_rtc_probe+0xdc/0x310
    pc : [] lr : [] psr: 80000153
    sp : ea883e48 ip : 00000000 fp : 00000000
    r10: 0000000c r9 : c05de7ac r8 : eaabc600
    r7 : eaa6b4d0 r6 : c0439e8c r5 : eaabc610 r4 : eab30e50
    r3 : 00000000 r2 : 00000000 r1 : 0000000c r0 : 00000000
    Flags: Nzcv IRQs on FIQs off Mode SVC_32 ISA ARM Segment kernel
    Control: 10c5387d Table: 4000404a DAC: 00000015
    Process swapper/0 (pid: 1, stack limit = 0xea882240)
    Backtrace:
    regmap_irq_get_virq
    s5m_rtc_probe
    platform_drv_probe
    driver_probe_device
    __driver_attach
    bus_for_each_dev
    bus_add_driver
    driver_register
    do_one_initcall
    kernel_init_freeable
    kernel_init
    ---[ end trace a954d7f019122700 ]---
    Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
    ...

    Signed-off-by: Bartlomiej Zolnierkiewicz
    Reviewed-by: Krzysztof Kozlowski
    Tested-by: Krzysztof Kozlowski
    Acked-by: Kyungmin Park
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bartlomiej Zolnierkiewicz
     
  • Since we allocate a temporary buffer in zram_bvec_read to handle partial
    page operations in commit 924bd88d703e ("Staging: zram: allow partial
    page operations"), our ->failed_reads value may be incorrect as we do
    not increase its value when failing to allocate the temporary buffer.

    Let's fix this issue and correct the annotation of failed_reads.

    Signed-off-by: Chao Yu
    Acked-by: Minchan Kim
    Cc: Nitin Gupta
    Acked-by: Jerome Marchand
    Acked-by: Sergey Senozhatsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chao Yu
     
  • Pull USB fixes from Greg KH:
    "Here are a bunch of fixes for the USB drivers for 3.17-rc3.

    Also in here is the movement of the usbip driver out of staging, into
    the "real" part of the kernel, it had to wait until after -rc1 to
    handle the merge issues involved between the USB and staging trees.
    The code is identical, just file movements there.

    The USB fixes are all over the place, new device ids, xhci fixes for
    reported issues and the usual gadget driver fixes as well. All have
    been in linux-next for a while now"

    * tag 'usb-3.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (46 commits)
    USB: fix build error with CONFIG_PM_RUNTIME disabled
    Revert "usb: ehci/ohci-exynos: Fix PHY getting sequence"
    xhci: Disable streams on Via XHCI with device-id 0x3432
    USB: serial: fix potential heap buffer overflow
    USB: serial: fix potential stack buffer overflow
    usb: ehci/ohci-exynos: Fix PHY getting sequence
    usb: hub: Prevent hub autosuspend if usbcore.autosuspend is -1
    USB: sisusb: add device id for Magic Control USB video
    usb: dwc2: gadget: Set the default EP max packet value as 8 bytes
    usb: ehci: using wIndex + 1 for hub port
    USB: storage: add quirk for Newer Technology uSCSI SCSI-USB converter
    MAINTAINERS: Add an entry for USB/IP driver
    usbip: remove struct usb_device_id table
    usbip: move usbip kernel code out of staging
    usbip: move usbip userspace code out of staging
    USB: whiteheat: Added bounds checking for bulk command response
    usb: gadget: remove $(PWD) in ccflags-y
    usb: pch_udc: usb gadget device support for Intel Quark X1000
    usb: gadget: uvc: fix possible lockup in uvc gadget
    usb: wusbcore: fix below build warning
    ...

    Linus Torvalds
     
  • Pull staging driver fixes from Greg KH:
    "Here are some staging driver fixes for your tree. Nothing huge, just
    some fixes for issues that have been reported and a few new device ids
    added.

    All have been in linux-next for a while"

    * tag 'staging-3.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    staging: r8188eu: Add new USB ID
    staging/rtl8188eu: add 0df6:0076 Sitecom Europe B.V.
    staging: android: fix a possible memory leak
    staging: lustre: lustre: libcfs: workitem.c: Cleaning up missing null-terminate after strncpy call
    staging: et131x: Fix errors caused by phydev->addr accesses before initialisation
    staging: lustre: Remove circular dependency on header

    Linus Torvalds
     
  • Pull char/misc driver fixes from Greg KH:
    "Here are 3 fixes for the mei and thunderbolt drivers that resolve some
    reported issues.

    All have been in linux-next for a while"

    * tag 'char-misc-3.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    thunderbolt: Clear hops before overwriting
    mei: nfc: fix memory leak in error path
    mei: reset client state on queued connect request

    Linus Torvalds
     
  • Pull fbdev fixes from Tomi Valkeinen:
    "Minor fbdev fixes for da8xx-fb, atmel_lcdfb, arm clcd and chipsfb"

    * tag 'fbdev-fixes-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux:
    video: da8xx-fb: preserve display width when changing HSYNC
    video: of: display_timing: double free on error
    drivers: video: fbdev: atmel_lcdfb.c: fix error return code
    video: ARM CLCD: Fix calculation of bits-per-pixel
    fbdev: Remove __init from chips_hw_init() to fix build failure

    Linus Torvalds
     
  • Pull device mapper fix from Mike Snitzer:
    "Fix a 3.17-rc1 regression introduced by switching the DM crypt target
    to using per-bio data"

    * tag 'dm-3.17-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
    dm crypt: fix access beyond the end of allocated space

    Linus Torvalds
     
  • Pull block layer fixes from Jens Axboe:
    "A smaller collection of fixes that have come up since the initial
    merge window pull request. This contains:

    - error handling cleanup and support for larger than 16 byte cdbs in
    sg_io() from Christoph. The latter just matches what bsg and
    friends support, sg_io() got left out in the merge.

    - an option for brd to expose partitions in /proc/partitions. They
    are hidden by default for compat reasons. From Dmitry Monakhov.

    - a few blk-mq fixes from me - killing a dead/unused flag, fix for
    merging happening even if turned off, and correction of a few
    comments.

    - removal of unnecessary ->owner setting in systemace. From Michal
    Simek.

    - two related fixes for a problem with nesting freezing of queues in
    blk-mq. One from Ming Lei removing an unecessary freeze operation,
    and another from Tejun fixing the nesting regression introduced in
    the merge window.

    - fix for a BUG_ON() at bio_endio time when protection info is
    attached and the IO has an error. From Sagi Grimberg.

    - two scsi_ioctl bug fixes for regressions with scsi-mq from Tony
    Battersby.

    - a cfq weight update fix and subsequent comment update from Toshiaki
    Makita"

    * 'for-linus' of git://git.kernel.dk/linux-block:
    cfq-iosched: Add comments on update timing of weight
    cfq-iosched: Fix wrong children_weight calculation
    block: fix error handling in sg_io
    fix regression in SCSI_IOCTL_SEND_COMMAND
    scsi-mq: fix requests that use a separate CDB buffer
    block: support > 16 byte CDBs for SG_IO
    block: cleanup error handling in sg_io
    brd: add ram disk visibility option
    block: systemace: Remove .owner field for driver
    blk-mq: blk_mq_freeze_queue() should allow nesting
    blk-mq: correct a few wrong/bad comments
    block: Fix BUG_ON when pi errors occur
    blk-mq: don't allow merges if turned off for the queue
    blk-mq: get rid of unused BLK_MQ_F_SHOULD_SORT flag
    blk-mq: fix WARNING "percpu_ref_kill() called more than once!"

    Linus Torvalds
     

29 Aug, 2014

8 commits

  • 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 3eec595235c17a7 "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=83271
    Reported-and-Tested-by: EmanueL Czirai
    Signed-off-by: Jiang Liu
    Cc: Konrad Rzeszutek Wilk
    Cc: Tony Luck
    Cc: Joerg Roedel
    Cc: Greg Kroah-Hartman
    Cc: EmanueL Czirai
    Cc: Benjamin Herrenschmidt
    Cc: Rafael J. Wysocki
    Cc: Bjorn Helgaas
    Cc: Randy Dunlap
    Cc: Yinghai Lu
    Cc: Borislav Petkov
    Cc: Grant Likely
    Link: http://lkml.kernel.org/r/1409304383-18806-1-git-send-email-jiang.liu@linux.intel.com
    Signed-off-by: Thomas Gleixner

    Jiang Liu
     
  • 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: Doug Anderson
    Signed-off-by: Mark Brown

    Doug Anderson
     
  • 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 3a7f6c990ad04 "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 298a9fa08a ("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: Krzysztof Kolasa
    Tested-by: Milan Broz
    Signed-off-by: Mikulas Patocka
    Signed-off-by: Mike Snitzer

    Mikulas Patocka
     
  • Pull backlight fix from Lee Jones:
    "One simple fix to invalidate GPIO non-request"

    * tag 'backlight-fixes-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
    pwm-backlight: Fix bogus request for GPIO#0 when instantiated from DT

    Linus Torvalds
     
  • Pull mfd fixes from Lee Jones:
    "Couple of simple fixes due for the 3.17 rcs

    (and a sneaky document addition that slipped from the previous
    pull-request)"

    * tag 'mfd-fixes-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
    mfd: twl4030-power: Fix PM idle pin configuration to not conflict with regulators
    mfd: tc3589x: Add device tree bindings
    mfd: ab8500-core: Use 'ifdef' for config options
    mfd: htc-i2cpld: Fix %d confusingly prefixed with 0x in format string
    mfd: omap-usb-host: Fix %d confusingly prefixed with 0x in format string

    Linus Torvalds
     
  • Pull pin-control fixes from Linus Walleij:
    "My first (a bit delayed) pack of pin control fixes for the v3.17
    series, only driver fixes:

    - SH-PFC (Renesas) r8a7791 CAN bus pin group problem
    - Rockchip (GPIO0 configuration)
    - Tegra-xusb (interrupt handling)
    - Exynos (GPIO interrupt locking)
    - Qualcomm (fix misleading example interrupts)
    - minor non-critical fixes for abx500 and AT91 also sneaked in,
    because I initially intended this pull for post RC-1, hope it's
    still OK"

    * tag 'pinctrl-v3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
    pinctrl: qcom: apq8064: Correct interrupts in example
    pinctrl: exynos: Lock GPIOs as interrupts when used as EINTs
    pinctrl: pinctrl-at91.c: fix decimal printf format specifiers prefixed with 0x
    pinctrl: abx500: remove useless check
    pinctrl: tegra-xusb: testing wrong variable in probe()
    pinctrl: tegra-xusb: fix an off by one test
    pinctrl: rockchip: fix rk3288 gpio0 configuration
    sh-pfc: r8a7791: fix CAN pin groups

    Linus Torvalds
     
  • Pull dma-buf fixes from Sumit Semwal:
    "The major changes for 3.17 already went via Greg-KH's tree this time
    as well; this is a small pull request for dma-buf - all documentation
    related"

    * tag 'for-3.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/sumits/dma-buf:
    dma-buf/fence: Fix one more kerneldoc warning
    dma-buf/fence: Fix a kerneldoc warning
    Documentation/dma-buf-sharing.txt: update API descriptions

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "Nothing major, one core oops fixes, some radeon oops fixes, some sti
    driver fixups, msm driver fixes and a minor Kconfig update for the ww
    mutex debugging"

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/ast: Add missing entry to dclk_table[]
    drm: fix division-by-zero on dumb_create()
    ww-mutex: clarify help text for DEBUG_WW_MUTEX_SLOWPATH
    radeon: Test for PCI root bus before assuming bus->self
    drm/radeon: handle broken disabled rb mask gracefully (6xx/7xx) (v2)
    drm/radeon: save/restore the PD addr on suspend/resume
    drm/msm: Fix missing unlock on error in msm_fbdev_create()
    drm/msm: fix compile error for non-dt builds
    drm/msm/mdp4: request vblank during modeset
    drm/msm: avoid flood of kernel logs on faults
    drm: sti: Add missing dependency on RESET_CONTROLLER
    drm: sti: Make of_device_id array const
    drm: sti: Fix return value check in sti_drm_platform_probe()
    drm: sti: hda: fix return value check in sti_hda_probe()
    drm: sti: hdmi: fix return value check in sti_hdmi_probe()
    drm: sti: tvout: fix return value check in sti_tvout_probe()

    Linus Torvalds
     

28 Aug, 2014

10 commits

  • Commit 43fef47f94a1 (mfd: twl4030-power: Add a configuration to turn
    off oscillator during off-idle) added support for configuring the PMIC
    to cut off resources during deeper idle states to save power.

    This however caused regression for n900 display power that needed the
    PMIC configuration to be disabled with commit d937678ab625 (ARM: dts:
    Revert enabling of twl configuration for n900).

    Turns out the root cause of the problem is that we must use
    TWL4030_RESCONFIG_UNDEF instead of DEV_GRP_NULL to avoid disabling
    regulators that may have been enabled before the init function
    for twl4030-power.c runs. With TWL4030_RESCONFIG_UNDEF we let the
    regulator framework control the regulators like it should. Here we
    need to only configure the sys_clken and sys_off_mode triggers for
    the regulators that cannot be done by the regulator framework as
    it's not running at that point.

    This allows us to enable the PMIC configuration for n900.

    Fixes: 43fef47f94a1 (mfd: twl4030-power: Add a configuration to turn off oscillator during off-idle)

    Cc: stable@vger.kernel.org # v3.16
    Signed-off-by: Tony Lindgren
    Tested-by: Aaro Koskinen
    Signed-off-by: Lee Jones

    Tony Lindgren
     
  • kerneldoc doesn't know how to parse variables, so don't let it try.

    Signed-off-by: Thierry Reding
    Signed-off-by: Sumit Semwal

    Thierry Reding
     
  • This avoid reading past the end of the list for certain modes

    Signed-off-by: Y.C. Chen
    Reviewed-by: Egbert Eich
    Signed-off-by: Dave Airlie

    Y.C. Chen
     
  • …ignard/kernel into drm-fixes

    I have tested the 6 patches send on mailing list since you merge the sti driver.
    I haven't seen issue with those patches except for the missing
    dependency on Kconfig
    where I have change "depends on" to "select".

    * 'drm-3.17-rc2-sti-fixes' of git://git.linaro.org/people/benjamin.gaignard/kernel:
    drm: sti: Add missing dependency on RESET_CONTROLLER
    drm: sti: Make of_device_id array const
    drm: sti: Fix return value check in sti_drm_platform_probe()
    drm: sti: hda: fix return value check in sti_hda_probe()
    drm: sti: hdmi: fix return value check in sti_hdmi_probe()
    drm: sti: tvout: fix return value check in sti_tvout_probe()

    Dave Airlie
     
  • misc msm fixes from Rob.

    * 'msm-fixes-3.17' of git://people.freedesktop.org/~robclark/linux:
    drm/msm: Fix missing unlock on error in msm_fbdev_create()
    drm/msm: fix compile error for non-dt builds
    drm/msm/mdp4: request vblank during modeset
    drm/msm: avoid flood of kernel logs on faults

    Dave Airlie
     
  • Kinda unexpected, but DIV_ROUND_UP() can overflow if passed an argument
    bigger than UINT_MAX - DIVISOR. Fix this by testing for "!cpp" before
    using it in the following division.

    Note that DIV_ROUND_UP() is defined as:
    #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))

    ..this will obviously overflow if (n + d - 1) is bigger than UINT_MAX.

    Reported-by: Tommi Rantala
    Signed-off-by: David Herrmann
    Reviewed-by: Rob Clark
    Signed-off-by: Dave Airlie

    David Herrmann
     
  • Just a few more radeon fixes for 3.17.

    * 'drm-fixes-3.17' of git://people.freedesktop.org/~agd5f/linux:
    radeon: Test for PCI root bus before assuming bus->self
    drm/radeon: handle broken disabled rb mask gracefully (6xx/7xx) (v2)
    drm/radeon: save/restore the PD addr on suspend/resume

    Dave Airlie
     
  • commit bdd405d2a528 ("usb: hub: Prevent hub autosuspend if
    usbcore.autosuspend is -1") causes a build error if CONFIG_PM_RUNTIME is
    disabled. Fix that by doing a simple #ifdef guard around it.

    Reported-by: Stephen Rothwell
    Reported-by: kbuild test robot
    Cc: Roger Quadros
    Cc: Michael Welling
    Cc: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • * pm-cpufreq:
    cpufreq: s5pv210: Remove spurious __init annotation
    cpufreq: intel_pstate: Add CPU ID for Braswell processor
    intel_pstate: Turn per cpu printk into pr_debug

    Rafael J. Wysocki
     
  • Since this is a platform driver and can be probed at any time we can't
    annotate funtions in the probe path as __init, the code can't safely be
    discarded at the end of kernel init.

    Signed-off-by: Mark Brown
    Acked-by: Viresh Kumar
    Signed-off-by: Rafael J. Wysocki

    Mark Brown