30 Dec, 2014

2 commits

  • After the commit ef691ff48bc8 (OMAPDSS: DT: Get source endpoint by
    matching reg-id) we look for the SDI output using the port number.
    However, the SDI driver doesn't set the port number, which causes the
    SDI display to not initialize.

    Fix this by setting the SDI port number to 1. We use a hardcoded value,
    as SDI was used only on OMAP3 and it's always port number 1 there.

    Reported-by: Aaro Koskinen
    Reported-by: Pavel Machek
    Signed-off-by: Tomi Valkeinen

    Tomi Valkeinen
     
  • fb_deferred_io_fsync() returns the value of schedule_delayed_work() as
    an error code, but schedule_delayed_work() does not return an error. It
    returns true/false depending on whether the work was already queued.

    Fix this by ignoring the return value of schedule_delayed_work().

    Signed-off-by: Tomi Valkeinen
    Cc: stable@vger.kernel.org

    Tomi Valkeinen
     

29 Dec, 2014

3 commits

  • If the probe of an fb driver has been deferred due to missing
    dependencies, and the probe is later ran when a module is loaded, the
    fbdev framework will try to find a logo to use.

    However, the logos are __initdata, and have already been freed. This
    causes sometimes page faults, if the logo memory is not mapped,
    sometimes other random crashes as the logo data is invalid, and
    sometimes nothing, if the fbdev decides to reject the logo (e.g. the
    random value depicting the logo's height is too big).

    This patch adds a late_initcall function to mark the logos as freed. In
    reality the logos are freed later, and fbdev probe may be ran between
    this late_initcall and the freeing of the logos. In that case we will
    miss drawing the logo, even if it would be possible.

    Signed-off-by: Tomi Valkeinen
    Cc: stable@vger.kernel.org

    Tomi Valkeinen
     
  • The regulator_disable() doesn't accept NULL pointers.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Tomi Valkeinen

    Dan Carpenter
     
  • HDMI hardware parameters structs for OMAP4 and OMAP5 contained two
    initializers for 'clkdco_max'. The first one was a remnant with wrong
    value.

    Remove the extra initializer entries.

    Signed-off-by: Tomi Valkeinen

    Tomi Valkeinen
     

19 Dec, 2014

1 commit

  • Pull more ACPI and power management updates from Rafael Wysocki:
    "These are regression fixes (leds-gpio, ACPI backlight driver,
    operating performance points library, ACPI device enumeration
    messages, cpupower tool), other bug fixes (ACPI EC driver, ACPI device
    PM), some cleanups in the operating performance points (OPP)
    framework, continuation of CONFIG_PM_RUNTIME elimination, a couple of
    minor intel_pstate driver changes, a new MAINTAINERS entry for it and
    an ACPI fan driver change needed for better support of thermal
    management in user space.

    Specifics:

    - Fix a regression in leds-gpio introduced by a recent commit that
    inadvertently changed the name of one of the properties used by the
    driver (Fabio Estevam).

    - Fix a regression in the ACPI backlight driver introduced by a
    recent fix that missed one special case that had to be taken into
    account (Aaron Lu).

    - Drop the level of some new kernel messages from the ACPI core
    introduced by a recent commit to KERN_DEBUG which they should have
    used from the start and drop some other unuseful KERN_ERR messages
    printed by ACPI (Rafael J Wysocki).

    - Revert an incorrect commit modifying the cpupower tool (Prarit
    Bhargava).

    - Fix two regressions introduced by recent commits in the OPP library
    and clean up some existing minor issues in that code (Viresh
    Kumar).

    - Continue to replace CONFIG_PM_RUNTIME with CONFIG_PM throughout the
    tree (or drop it where that can be done) in order to make it
    possible to eliminate CONFIG_PM_RUNTIME (Rafael J Wysocki, Ulf
    Hansson, Ludovic Desroches).

    There will be one more "CONFIG_PM_RUNTIME removal" batch after this
    one, because some new uses of it have been introduced during the
    current merge window, but that should be sufficient to finally get
    rid of it.

    - Make the ACPI EC driver more robust against race conditions related
    to GPE handler installation failures (Lv Zheng).

    - Prevent the ACPI device PM core code from attempting to disable
    GPEs that it has not enabled which confuses ACPICA and makes it
    report errors unnecessarily (Rafael J Wysocki).

    - Add a "force" command line switch to the intel_pstate driver to
    make it possible to override the blacklisting of some systems in
    that driver if needed (Ethan Zhao).

    - Improve intel_pstate code documentation and add a MAINTAINERS entry
    for it (Kristen Carlson Accardi).

    - Make the ACPI fan driver create cooling device interfaces witn
    names that reflect the IDs of the ACPI device objects they are
    associated with, except for "generic" ACPI fans (PNP ID "PNP0C0B").

    That's necessary for user space thermal management tools to be able
    to connect the fans with the parts of the system they are supposed
    to be cooling properly. From Srinivas Pandruvada"

    * tag 'pm+acpi-3.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (32 commits)
    MAINTAINERS: add entry for intel_pstate
    ACPI / video: update the skip case for acpi_video_device_in_dod()
    power / PM: Eliminate CONFIG_PM_RUNTIME
    NFC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    ACPI / EC: Fix unexpected ec_remove_handlers() invocations
    Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()"
    tracing / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    x86 / PM: Replace CONFIG_PM_RUNTIME in io_apic.c
    PM: Remove the SET_PM_RUNTIME_PM_OPS() macro
    mmc: atmel-mci: use SET_RUNTIME_PM_OPS() macro
    PM / Kconfig: Replace PM_RUNTIME with PM in dependencies
    ARM / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    phy / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    video / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    ACPI / PM: Do not disable wakeup GPEs that have not been enabled
    ACPI / utils: Drop error messages from acpi_evaluate_reference()
    ...

    Linus Torvalds
     

15 Dec, 2014

1 commit

  • Pull driver core update from Greg KH:
    "Here's the set of driver core patches for 3.19-rc1.

    They are dominated by the removal of the .owner field in platform
    drivers. They touch a lot of files, but they are "simple" changes,
    just removing a line in a structure.

    Other than that, a few minor driver core and debugfs changes. There
    are some ath9k patches coming in through this tree that have been
    acked by the wireless maintainers as they relied on the debugfs
    changes.

    Everything has been in linux-next for a while"

    * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits)
    Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries"
    fs: debugfs: add forward declaration for struct device type
    firmware class: Deletion of an unnecessary check before the function call "vunmap"
    firmware loader: fix hung task warning dump
    devcoredump: provide a one-way disable function
    device: Add dev__once variants
    ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries
    ath: use seq_file api for ath9k debugfs files
    debugfs: add helper function to create device related seq_file
    drivers/base: cacheinfo: remove noisy error boot message
    Revert "core: platform: add warning if driver has no owner"
    drivers: base: support cpu cache information interface to userspace via sysfs
    drivers: base: add cpu_device_create to support per-cpu devices
    topology: replace custom attribute macros with standard DEVICE_ATTR*
    cpumask: factor out show_cpumap into separate helper function
    driver core: Fix unbalanced device reference in drivers_probe
    driver core: fix race with userland in device_add()
    sysfs/kernfs: make read requests on pre-alloc files use the buffer.
    sysfs/kernfs: allow attributes to request write buffer be pre-allocated.
    fs: sysfs: return EGBIG on write if offset is larger than file size
    ...

    Linus Torvalds
     

13 Dec, 2014

3 commits

  • After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
    selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
    depending on CONFIG_PM_RUNTIME may now be changed to depend on
    CONFIG_PM.

    The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may be
    replaced with CONFIG_PM too.

    Make these changes in 2 files under drivers/video/.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Tomi Valkeinen
    Acked-by: Jingoo Han

    Rafael J. Wysocki
     
  • Pull ARM updates from Russell King:
    "The major updates included in this update are:

    - Clang compatible stack pointer accesses by Behan Webster.
    - SA11x0 updates from Dmitry Eremin-Solenikov.
    - kgdb handling of breakpoints with read-only text/modules
    - Support for Privileged-no-execute feature on ARMv7 to prevent
    userspace code execution by the kernel.
    - AMBA primecell bus handling of irq-safe runtime PM
    - Unwinding support for memset/memzero/memmove/memcpy functions
    - VFP fixes for Krait CPUs and improvements in detecting the VFP
    architecture
    - A number of code cleanups (using pr_*, removing or reducing the
    severity of a couple of kernel messages, splitting ftrace asm code
    out to a separate file, etc.)
    - Add machine name to stack dump output"

    * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (62 commits)
    ARM: 8247/2: pcmcia: sa1100: make use of device clock
    ARM: 8246/2: pcmcia: sa1111: provide device clock
    ARM: 8245/1: pcmcia: soc-common: enable/disable socket clocks
    ARM: 8244/1: fbdev: sa1100fb: make use of device clock
    ARM: 8243/1: sa1100: add a clock alias for sa1111 pcmcia device
    ARM: 8242/1: sa1100: add cpu clock
    ARM: 8221/1: PJ4: allow building in Thumb-2 mode
    ARM: 8234/1: sa1100: reorder IRQ handling code
    ARM: 8233/1: sa1100: switch to hwirq usage
    ARM: 8232/1: sa1100: merge GPIO multiplexer IRQ to "normal" irq domain
    ARM: 8231/1: sa1100: introduce irqdomains support
    ARM: 8230/1: sa1100: shift IRQs by one
    ARM: 8229/1: sa1100: replace irq numbers with names in irq driver
    ARM: 8228/1: sa1100: drop entry-macro.S
    ARM: 8227/1: sa1100: switch to MULTI_IRQ_HANDLER
    ARM: 8241/1: Update processor_modes for hyp and monitor mode
    ARM: 8240/1: MCPM: document mcpm_sync_init()
    ARM: 8239/1: Introduce {set,clear}_pte_bit
    ARM: 8238/1: mm: Refine set_memory_* functions
    ARM: 8237/1: fix flush_pfn_alias
    ...

    Linus Torvalds
     
  • Pull trivial tree update from Jiri Kosina:
    "Usual stuff: documentation updates, printk() fixes, etc"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (24 commits)
    intel_ips: fix a type in error message
    cpufreq: cpufreq-dt: Move newline to end of error message
    ps3rom: fix error return code
    treewide: fix typo in printk and Kconfig
    ARM: dts: bcm63138: change "interupts" to "interrupts"
    Replace mentions of "list_struct" to "list_head"
    kernel: trace: fix printk message
    scsi: mpt2sas: fix ioctl in comment
    zbud, zswap: change module author email
    clocksource: Fix 'clcoksource' typo in comment
    arm: fix wording of "Crotex" in CONFIG_ARCH_EXYNOS3 help
    gpio: msm-v1: make boolean argument more obvious
    usb: Fix typo in usb-serial-simple.c
    PCI: Fix comment typo 'COMFIG_PM_OPS'
    powerpc: Fix comment typo 'CONIFG_8xx'
    powerpc: Fix comment typos 'CONFiG_ALTIVEC'
    clk: st: Spelling s/stucture/structure/
    isci: Spelling s/stucture/structure/
    usb: gadget: zero: Spelling s/infrastucture/infrastructure/
    treewide: Fix company name in module descriptions
    ...

    Linus Torvalds
     

12 Dec, 2014

2 commits

  • Pull fbdev updates from Tomi Valkeinen:
    - support for mx6sl and mx6sx
    - OMAP HDMI audio rewrite to make it finally work
    - OMAP video PLL work to prepare for new DRA7xx SoCs
    - simplefb DT related improvements

    * tag 'fbdev-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (81 commits)
    video: uvesafb: Deletion of an unnecessary check before the function call "platform_device_put"
    video: fbdev-VIA: Deletion of an unnecessary check before the function call "framebuffer_release"
    video: fbdev-MMP: Deletion of an unnecessary check before the function call "mmp_unregister_path"
    video: mx3fb: Deletion of an unnecessary check before the function call "backlight_device_unregister"
    video: fbdev-OMAP2: Deletion of unnecessary checks before the function call "i2c_put_adapter"
    video: fbdev-SIS: Deletion of unnecessary checks before the function call "pci_dev_put"
    video: smscufx: Deletion of unnecessary checks before the function call "vfree"
    video: udlfb: Deletion of unnecessary checks before the function call "vfree"
    video: uvesafb: Deletion of an unnecessary check before the function call "uvesafb_free"
    video: fbdev-LCDC: Deletion of an unnecessary check before the function call "vfree"
    video: fbdev: arkfb: suppress build warning
    video: fbdev: s3fb: suppress build warning
    video: fbdev: vt8623fb: suppress build warning
    OMAPDSS: hdmi5: Fix bit field for IEC958_AES2_CON_SOURCE
    OMAPDSS: hdmi: Remove __exit qualifier from hdmi_uninit_output()
    OMAPDSS: hdmi5: Change hdmi_wp idlemode to to no_idle for audio playback
    OMAPDSS: Remove all references to obsolete HDMI audio callbacks
    ASoC: omap: Remove obsolete HDMI audio code and Kconfig options
    OMAPDSS: hdmi5: Register ASoC platform device for omap hdmi audio
    OMAPDSS: hdmi5: Remove callbacks for the old ASoC DAI driver
    ...

    Linus Torvalds
     
  • Pull backlight updates from Lee Jones:
    - Clean-up leaky resources; pwm_bl
    - Simplify Device Tree initialisation; lp855x_bl
    - Add Regulator support; lp855x
    - Remove Bryan from the Maintainer list -- new baby, no time :)

    * tag 'backlight-for-linus-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
    MAINTAINERS: Remove my name from Backlight subsystem
    backlight: lp855x: Add supply regulator to lp855x
    backlight: lp855x: Refactor DT parsing code
    backlight: pwm: Clean-up pwm requested using legacy API

    Linus Torvalds
     

11 Dec, 2014

1 commit

  • Pull x86 mm tree changes from Ingo Molnar:
    "The biggest change is full PAT support from Jürgen Gross:

    The x86 architecture offers via the PAT (Page Attribute Table) a
    way to specify different caching modes in page table entries. The
    PAT MSR contains 8 entries each specifying one of 6 possible cache
    modes. A pte references one of those entries via 3 bits:
    _PAGE_PAT, _PAGE_PWT and _PAGE_PCD.

    The Linux kernel currently supports only 4 different cache modes.
    The PAT MSR is set up in a way that the setting of _PAGE_PAT in a
    pte doesn't matter: the top 4 entries in the PAT MSR are the same
    as the 4 lower entries.

    This results in the kernel not supporting e.g. write-through mode.
    Especially this cache mode would speed up drivers of video cards
    which now have to use uncached accesses.

    OTOH some old processors (Pentium) don't support PAT correctly and
    the Xen hypervisor has been using a different PAT MSR configuration
    for some time now and can't change that as this setting is part of
    the ABI.

    This patch set abstracts the cache mode from the pte and introduces
    tables to translate between cache mode and pte bits (the default
    cache mode "write back" is hard-wired to PAT entry 0). The tables
    are statically initialized with values being compatible to old
    processors and current usage. As soon as the PAT MSR is changed
    (or - in case of Xen - is read at boot time) the tables are changed
    accordingly. Requests of mappings with special cache modes are
    always possible now, in case they are not supported there will be a
    fallback to a compatible but slower mode.

    Summing it up, this patch set adds the following features:

    - capability to support WT and WP cache modes on processors with
    full PAT support

    - processors with no or uncorrect PAT support are still working as
    today, even if WT or WP cache mode are selected by drivers for
    some pages

    - reduction of Xen special handling regarding cache mode

    Another change is a boot speedup on ridiculously large RAM systems,
    plus other smaller fixes"

    * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (22 commits)
    x86: mm: Move PAT only functions to mm/pat.c
    xen: Support Xen pv-domains using PAT
    x86: Enable PAT to use cache mode translation tables
    x86: Respect PAT bit when copying pte values between large and normal pages
    x86: Support PAT bit in pagetable dump for lower levels
    x86: Clean up pgtable_types.h
    x86: Use new cache mode type in memtype related functions
    x86: Use new cache mode type in mm/ioremap.c
    x86: Use new cache mode type in setting page attributes
    x86: Remove looking for setting of _PAGE_PAT_LARGE in pageattr.c
    x86: Use new cache mode type in track_pfn_remap() and track_pfn_insert()
    x86: Use new cache mode type in mm/iomap_32.c
    x86: Use new cache mode type in asm/pgtable.h
    x86: Use new cache mode type in arch/x86/mm/init_64.c
    x86: Use new cache mode type in arch/x86/pci
    x86: Use new cache mode type in drivers/video/fbdev/vermilion
    x86: Use new cache mode type in drivers/video/fbdev/gbefb.c
    x86: Use new cache mode type in include/asm/fb.h
    x86: Make page cache mode a real type
    x86: mm: Use 2GB memory block size on large-memory x86-64 systems
    ...

    Linus Torvalds
     

10 Dec, 2014

1 commit

  • Pull ARM SoC cleanup on mach-at91 from Arnd Bergmann:
    "On Atmel AT91, the conversion to device tree is now considered
    complete, and all machines that were not already converted in 3.18 are
    assumed to be unused and dropped by the maintainer.

    All remaining board files that were written in C are dropped, and the
    ancient at91x40 sub-platform (based on an MMU-less ARM7) is removed
    altogether. Cleaning up the last pieces was great fun, so I took the
    time to do some of the coding myself and removed several hundred code
    lines that ended up unused after the board files were done.

    There are still a couple of AT91 specific device drivers that are not
    converted to DT (CF, USB-OTG) and currently not working, and the
    platform itself is not "multiplatform"-enabled, but both issues are
    going to be taken care of in the 3.20 cycle.

    This is split out from the other cleanups purely based on the size of
    the branch"

    * tag 'at91-cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (33 commits)
    ARM: at91: remove unused board.h file
    ARM: at91: remove unneeded header files
    ARM: at91/clocksource: remove !DT PIT initializations
    ARM: at91: at91rm9200 ST initialization is now DT only
    ARM: at91: remove old AT91-specific drivers
    ARM: at91: cleanup initilisation code by removing dead code
    ARM: at91/Kconfig: select board files automatically
    ARM: at91: remove unused IRQ function declarations
    ARM: at91: remove legacy IRQ driver and related code
    ARM: at91: remove old at91-specific clock driver
    ARM: at91: remove clock data in at91sam9n12.c and at91sam9x5.c files
    ARM: at91: remove all !DT related configuration options
    ARM: at91/trivial: update Kconfig comment to mention SAMA5
    ARM: at91: always USE_OF from now on
    ARM: at91/Kconfig: remove ARCH_AT91RM9200 option for drivers
    ARM: at91: switch configuration option to SOC_AT91RM9200
    ARM: at91: remove at91rm9200 legacy board support
    ARM: at91: remove at91rm9200 legacy boards files
    ARM: at91/Kconfig: remove useless fbdev Kconfig options
    ARM: at91: remove at91sam9261/at91sam9g10 legacy board support
    ...

    Linus Torvalds
     

09 Dec, 2014

2 commits

  • This patch adds a supply regulator to the lp855x platform data to facilitate
    powering on/off the 3V rail attached to the controller.

    Cc: Stéphane Marchesin
    Cc: Aaron Durbin
    Signed-off-by: Sean Paul
    Acked-by: Milo Kim
    Acked-by: Bryan Wu
    Acked-by: Jingoo Han
    Signed-off-by: Lee Jones

    Sean Paul
     
  • This patch refactors the dt parsing code to avoid setting platform_data,
    instead just setting lp->pdata directly. This facilitates easier
    probe deferral since the current scheme would require us to clear out
    dev->platform_data before deferring.

    Cc: Stéphane Marchesin
    Signed-off-by: Sean Paul
    Acked-by: Milo Kim
    Acked-by: Bryan Wu
    Signed-off-by: Lee Jones

    Sean Paul
     

08 Dec, 2014

1 commit


06 Dec, 2014

1 commit


04 Dec, 2014

14 commits


02 Dec, 2014

1 commit


01 Dec, 2014

7 commits