summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2014-06-03PCI: tegra: Add debugfs supportThierry Reding1-0/+118
Provide a debugfs file that shows the current link status for each root port. Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-06-03PCI: tegra: Fix license stringThierry Reding1-1/+1
The proper MODULE_LICENSE() string for the GPL v2 is "GPL v2", not "GPLv2". Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-06-03PCI: mvebu: Fix license stringThierry Reding1-1/+1
The proper MODULE_LICENSE() string for the GPL v2 is "GPL v2", not "GPLv2". Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-06-03pinctrl: Add NVIDIA Tegra XUSB pad controller supportThierry Reding3-0/+920
The XUSB pad controller found on NVIDIA Tegra SoCs provides several pads that lanes can be assigned to in order to support a variety of interface options: USB 2.0, USB 3.0, PCIe and SATA. In addition to the pin controller used to assign lanes to pads two PHYs are exposed to allow the bricks for PCIe and SATA to be powered up and down by PCIe and SATA drivers. Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-06-03WIP: pwm-backlight: Fail if pwms property does not existThierry Reding1-0/+1
Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-06-03pwm-backlight: Allow backlight to remain disabled on bootThierry Reding1-0/+8
The default for backlight devices is to be enabled immediately when registering with the backlight core. This can be useful for setups that use a simple framebuffer device and where the backlight cannot otherwise be hooked up to the panel. However, when dealing with more complex setups, such as those of recent ARM SoCs, this can be problematic. Since the backlight is usually setup separately from the display controller, the probe order is not usually deterministic. That can lead to situations where the backlight will be powered up and the panel will show an uninitialized framebuffer. Furthermore, subsystems such as DRM have advanced functionality to set the power mode of a panel. In order to allow such setups to power up the panel at exactly the right moment, a way is needed to prevent the backlight core from powering the backlight up automatically when it is registered. This commit introduces a new boot_off field in the platform data (and also implements getting the same information from device tree). When set the initial backlight power mode will be set to "off". Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-06-03drivers/w1/w1_int.c: call put_device if device_register failsLevente Kurusa1-3/+2
Currently, memsetting and kfreeing the device is bad behaviour. The device will have a reference count of 1 and hence can cause trouble because it has kfree'd. Proper way to handle a failed device_register is to call put_device right after it fails. Signed-off-by: Levente Kurusa <levex@linux.com> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03sysrq,rcu: suppress RCU stall warnings while sysrq runsRik van Riel1-0/+3
Some sysrq handlers can run for a long time, because they dump a lot of data onto a serial console. Having RCU stall warnings pop up in the middle of them only makes the problem worse. This patch temporarily disables RCU stall warnings while a sysrq request is handled. Signed-off-by: Rik van Riel <riel@redhat.com> Suggested-by: Paul McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Madper Xie <cxie@redhat.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Richard Weinberger <richard@nod.at> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03sysrq: rcu-ify __handle_sysrqRik van Riel1-6/+12
Echoing values into /proc/sysrq-trigger seems to be a popular way to get information out of the kernel. However, dumping information about thousands of processes, or hundreds of CPUs to serial console can result in IRQs being blocked for minutes, resulting in various kinds of cascade failures. The most common failure is due to interrupts being blocked for a very long time. This can lead to things like failed IO requests, and other things the system cannot easily recover from. This problem is easily fixable by making __handle_sysrq use RCU instead of spin_lock_irqsave. This leaves the warning that RCU grace periods have not elapsed for a long time, but the system will come back from that automatically. It also leaves sysrq-from-irq-context when the sysrq keys are pressed, but that is probably desired since people want that to work in situations where the system is already hosed. The callers of register_sysrq_key and unregister_sysrq_key appear to be capable of sleeping. Signed-off-by: Rik van Riel <riel@redhat.com> Reported-by: Madper Xie <cxie@redhat.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Richard Weinberger <richard@nod.at> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03rtc: s5m: consolidate two device type switch statementsKrzysztof Kozlowski1-19/+8
In probe the configuration of driver for different chipsets was done in two switch (pdata->device_type) statements. Consolidate them into one switch statement to increase code readability. Additionally check the return value of regmap_irq_get_virq and exit probe on error. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Lee Jones <lee.jones@linaro.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Sangbeom Kim <sbkim73@samsung.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03rtc: s5m: add support for S2MPS14 RTCKrzysztof Kozlowski2-19/+86
Add support for S2MPS14 to the rtc-s5m driver. Differences in S2MPS14 (in comparison to S5M8767): - Layout of registers; - Lack of century support for time and alarms (7 registers used for storing time/alarm); - Two buffer control registers: WUDR and RUDR; - No register for enabling writing time; - RTC interrupts are reported in main PMIC I2C device; Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Lee Jones <lee.jones@linaro.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Sangbeom Kim <sbkim73@samsung.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03rtc: s5m: support different register layoutKrzysztof Kozlowski1-48/+109
Prepare for adding support for S2MPS14 RTC device to the rtc-s5m driver: 1. Add a map of registers used by the driver which differ between the chipsets (S5M876X and S2MPS14). 2. Move code of checking for alarm pending to separate function. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Lee Jones <lee.jones@linaro.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Sangbeom Kim <sbkim73@samsung.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03rtc: s5m: use shorter time of register updateKrzysztof Kozlowski1-0/+7
Set the time needed for updating alarm and time registers to 0.45 ms. The default is 7.32 ms which is too long and leads to warnings when setting alarm or time: s5m-rtc: waiting for UDR update, reached max number of retries Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Lee Jones <lee.jones@linaro.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Sangbeom Kim <sbkim73@samsung.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03rtc: s5m: remove undocumented time init on first bootKrzysztof Kozlowski1-30/+0
Remove the code for initializing time if this is first boot. The code for detecting first boot uses undocumented field RTC_TCON in RTC_UDR_CON register. According to S5M8767's datasheet this field is reserved. On S2MPS14 it is not documented at all. On device first boot the registers will be initialized with reset value (2000-01-01 00:00:00). The code might work on S5M8763 but still this does not look like a task for RTC driver. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Lee Jones <lee.jones@linaro.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Sangbeom Kim <sbkim73@samsung.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03mfd/rtc: sec/s5m: rename SEC* symbols to S5MKrzysztof Kozlowski1-33/+33
Prepare for adding support for S2MPS14 RTC device to the rtc-s5m driver: 1. Rename SEC* symbols to S5M. 2. Add S5M prefix to some of defines which are different between S5M876X and S2MPS14. This is only a rename-like patch, new code is not added. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: Lee Jones <lee.jones@linaro.org> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Sangbeom Kim <sbkim73@samsung.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03scsi: convert use of typedef ctl_table to struct ctl_tableJoe Perches1-3/+3
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03parport: convert use of typedef ctl_table to struct ctl_tableJoe Perches1-29/+29
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03random: convert use of typedef ctl_table to struct ctl_tableJoe Perches1-2/+2
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03cdrom: convert use of typedef ctl_table to struct ctl_tableJoe Perches1-5/+5
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03drivers/gpio/gpio-zevio.c: fix buildAndrew Morton1-0/+4
Unbreak i386 allmodconfig. This is a hack - please fix properly ;) Cc: Fabian Vogt <fabian@ritter-vogt.de> Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2014-06-03Merge branch 'akpm-current/current'Stephen Rothwell40-291/+2253
Conflicts: arch/arm/include/asm/Kbuild arch/powerpc/include/asm/topology.h fs/ext4/page-io.c kernel/kexec.c mm/memcontrol.c
2014-06-03Revert "cpuidle: kvm cpuidle"Stephen Rothwell3-138/+0
This reverts commit 89bfc4cdb4387587a92a77448c39c1f7a784fcb1.
2014-06-03Merge remote-tracking branch 'clk/clk-next'Stephen Rothwell61-756/+5252
Conflicts: Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
2014-06-03Merge remote-tracking branch 'dma-buf/for-next'Stephen Rothwell26-661/+1728
Conflicts: drivers/gpu/drm/i915/i915_gem_dmabuf.c drivers/staging/android/sync.c
2014-06-03Merge remote-tracking branch 'pwm/for-next'Stephen Rothwell22-143/+534
Conflicts: drivers/leds/leds-pwm.c
2014-06-03Merge remote-tracking branch 'dma-mapping/dma-mapping-next'Stephen Rothwell1-8/+26
2014-06-03Merge remote-tracking branch 'vhost/linux-next'Stephen Rothwell4-1/+147
2014-06-03Merge remote-tracking branch 'pinctrl/for-next'Stephen Rothwell57-6179/+10511
2014-06-03Merge remote-tracking branch 'target-updates/for-next'Stephen Rothwell14-264/+544
Conflicts: drivers/scsi/qla2xxx/qla_target.c drivers/scsi/virtio_scsi.c
2014-06-03Merge remote-tracking branch 'scsi-drivers/drivers-for-3.16'Stephen Rothwell2-11/+9
2014-06-03Merge remote-tracking branch 'scsi/for-next'Stephen Rothwell111-2692/+4586
2014-06-03Merge remote-tracking branch 'char-misc/char-misc-next'Stephen Rothwell49-585/+2003
2014-06-03Merge remote-tracking branch 'staging/staging-next'Stephen Rothwell959-77246/+85974
Conflicts: drivers/staging/rtl8821ae/core.c
2014-06-03Merge remote-tracking branch 'usb/usb-next'Stephen Rothwell160-6596/+11844
2014-06-03Merge remote-tracking branch 'tty/tty-next'Stephen Rothwell30-292/+768
2014-06-03Merge remote-tracking branch 'driver-core/driver-core-next'Stephen Rothwell5-48/+13
Conflicts: drivers/iommu/exynos-iommu.c
2014-06-03Merge remote-tracking branch 'leds/for-next'Stephen Rothwell14-328/+245
2014-06-03Merge remote-tracking branch 'regmap/for-next'Stephen Rothwell5-18/+221
2014-06-03Merge remote-tracking branch 'kvm/linux-next'Stephen Rothwell1-2/+32
2014-06-03Merge remote-tracking branch 'irqchip/irqchip/for-next'Stephen Rothwell4-1/+210
2014-06-03Merge remote-tracking branch 'clockevents/clockevents/next'Stephen Rothwell13-21/+407
Conflicts: arch/arm/boot/dts/vf610.dtsi
2014-06-03Merge remote-tracking branch 'tip/auto-latest'Stephen Rothwell75-313/+1141
Conflicts: arch/arm64/include/asm/thread_info.h arch/arm64/mm/mmu.c drivers/block/mtip32xx/mtip32xx.c
2014-06-03Merge remote-tracking branch 'spi/for-next'Stephen Rothwell38-1027/+1493
2014-06-03Merge remote-tracking branch 'dt-rh/for-next'Stephen Rothwell32-845/+3461
Conflicts: Documentation/kernel-parameters.txt
2014-06-03Merge remote-tracking branch 'devicetree/devicetree/next'Stephen Rothwell14-383/+398
Conflicts: arch/arm/mach-vexpress/platsmp.c
2014-06-03Merge remote-tracking branch 'trivial/for-next'Stephen Rothwell9-22/+11
Conflicts: Documentation/devicetree/bindings/arm/omap/omap.txt
2014-06-03Merge remote-tracking branch 'vfio/next'Stephen Rothwell3-34/+24
2014-06-03Merge remote-tracking branch 'iommu/next'Stephen Rothwell10-596/+1981
Conflicts: drivers/iommu/exynos-iommu.c
2014-06-03Merge remote-tracking branch 'watchdog/master'Stephen Rothwell16-1134/+608
2014-06-03Merge remote-tracking branch 'regulator/for-next'Stephen Rothwell26-328/+1381