summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2016-11-18Merge tag 'imx-dt-4.10' of ↵Olof Johansson
git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/dt i.MX device tree updates for 4.10: - New boards support: i.MX6SX UDOO Neo, Boundary Devices Nitrogen6_SOM2, Engicam i.CoreM6, Grinn i.MX6UL liteSOM/liteBoard, Toradex Colibri iMX6 module, i.MX6ULL and EVK board. - Remove skeleton.dtsi inclusion from all i.MX SoC dts files, as it's been deprecated, since commit 9c0da3cc61f1233c ("ARM: dts: explicitly mark skeleton.dtsi as deprecated"). - Misc device addition and enabling: OCOTP for Vybrid, MMDC for i.MX6QP, TMU for LS1021A, FEC for imx6qdl-icore, DMA for Vybrid DSPI. - A few cleanups: use hyphens for node names, fix white spaces, move imx-weim parameters into SoC dtsi, replace gpio-key,wakeup with wakeup-source, remove pwm-leds from imx6q-apalis-ixora, remove I2C3 from vf610-zii-dev-rev-b. - Other small random changes: calibrate USB PHY for b650v3 board, update TX D_CAL for USBPHY, use enable-gpios for backlight on imx6qdl-apalis, etc. * tag 'imx-dt-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: (38 commits) ARM: dts: imx6ull: add imx6ull support ARM: dts: imx6q: replace gpio-key,wakeup with wakeup-source for Utilite Pro ARM: dts: vfxxx: Enable DMA for DSPI2 and DSPI3 ARM: dts: imx: Remove skeleton.dtsi ARM: dts: imx6q-utilite-pro: i2c1 is muxed ARM: dts: add new compatible string for i.MX6QP mmdc ARM: dts: imx6sx-udoo: Add board specific compatible strings ARM: dts: mx5: Add new M53EVK manufacturer compat ARM: dts: mxs: Add new M28EVK manufacturer compat ARM: dts: imx6ul-14x14-evk: update TX D_CAL for USBPHY ARM: dts: imx6sx-sdb: update TX D_CAL for USBPHY ARM: dts: imx6: Add imx-weim parameters to dtsi's ARM: dts: imx: Fix "ERROR: code indent should use tabs where possible" ARM: dts: imx6qdl-nitrogen6_max: use hyphens for nodes name ARM: dts: imx6qdl-nit6xlite: use hyphens for nodes name ARM: dts: imx6qdl-nitrogen6x: use hyphens for nodes name ARM: dts: imx6qdl-sabrelite: use hyphens for nodes name ARM: dts: imx: add Boundary Devices Nitrogen6_SOM2 support ARM: dts: imx6qdl-icore: Add FEC support ARM: dts: imx6q: Add Engicam i.CoreM6 DualLite/Solo initial support ... Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18Merge tag 'imx-soc-4.10' of ↵Olof Johansson
git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/soc i.MX SoC changes for 4.10: - Drop PL310_ERRATA_769419 for Vybrid, as it turns out that the SoC integrates revision r3p2 of the L2C-310, which is not affected by errata 769419. - Support perf for i.MX6 Multi-Mode DDR Controller (MMDC), so that we can profile memory access performance. - Support i.MX6ULL SoC using i.MX6UL base, since it's a derivative of i.MX6UL and pin-to-pin compatible with i.MX6UL. * tag 'imx-soc-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: ARM: imx: mach-imx6ul: add imx6ull support ARM: imx: Drop errata 769419 for Vybrid ARM: imx: mmdc perf function support i.MX6QP ARM: imx: Added perf functionality to mmdc driver Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18Merge tag 'imx-fix-nc-4.10' of ↵Olof Johansson
git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/fixes-non-critical i.MX non-critical fixes for 4.10: - A series from Vladimir to fix broken i.MX31 DT clock initialization. As i.MX31 DT support is still not quite complete, the changes are tested on qemu kzm target and mx31lite board with simple written DTS files. - A fix for CompuLab's sbc-fx6 baseboard to remove wrong fec pinctrl setting. - A DTS correction for i.MX6QP to reflect the change that the gate of LDB clock has been moved before the divider. - An imx7d-pinfunc fix for UART pinmux defines * tag 'imx-fix-nc-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: ARM: dts: imx6q-cm-fx6: fix fec pinctrl ARM: dts: imx7d-pinfunc: fix UART pinmux defines ARM: dts: imx6qp: correct LDB clock inputs ARM: clk: imx31: properly init clocks for machines with DT clk: imx31: fix rewritten input argument of mx31_clocks_init() ARM: dts: imx31: move CCM device node to AIPS2 bus devices ARM: dts: imx31: fix clock control module interrupts description Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18Merge tag 'omap-for-v4.10/pinctrl-cells-signed' of ↵Olof Johansson
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/dt Add #pinctrl-cells for pinctrl-single using dts files. This allows us to use generic parser later on. Note that the driver supports handling the legacy binding also with no #pinctrl-cells so these changes can be queued separately from the driver changes. * tag 'omap-for-v4.10/pinctrl-cells-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: dts: Add #pinctrl-cells for pinctrl-single instances Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18Merge tag 'at91-ab-4.10-dt1' of ↵Olof Johansson
git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux into next/dt DT changes for 4.10: - Many additions for sama5d2 - few non urgent fixes for sam9260ek, sama5d4 and sama5d2 * tag 'at91-ab-4.10-dt1' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: ARM: dts: at91: replace gpio-key,wakeup with wakeup-source for sam9260ek ARM: dts: at91: sama5d2: Add securam node ARM: dts: at91: sama5d2: Add secumod node ARM: dts: at91: sama5d2: use correct sckc compatible ARM: dts: at91: sama5d4: use proper sckc compatible ARM: dts: at91: fixes dbgu pinctrl, set pullup on rx, clear pullup on tx dt-bindings: usb: atmel: fix a couple of copy-paste style typos ARM: dts: at91: sama5d2: enable FIFOs for high-speed i2c controllers ARM: dts: at91: sama5d4: Add new MA5D4EVK manufacturer compat Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18ARM: defconfig: turn on the DT cpufreq for IntegratorLinus Walleij
The Integrators are now migrated to handle the CPUfreq scaling using the generic devicetree CPUfreq driver using the common clock framework and have the required device tree modifications, so turn off the old driver and turn on the new generic driver. Cc: Rafael J. Wysocki <rjw@rjwysocki.net> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18ARM: dts: Add Integrator/AP cpus node and operating pointsLinus Walleij
This adds the cpus node to the Integrator/AP device tree so that we have a proper placeholder to put in the DT-defined operating points for the generic DT/OPP cpufreq driver, along with the proper operating points. The old Integrator cpufreq driver would resolve the max frequency to 71MHz, and the min frequency to 12 MHz, but the clock driver can actually handle any frequency inbetween so I picked a few select frequencies as OPPs. The cpufreq framework doesn't seem to deal with sliding frequency scales, only fixed points so 7 OPPs is better than 2 atleast. We define a CPU node since this is required for cpufreq-dt, however we do not define any compatible string for the CPU since this architecture has pluggable CPU modules and we do not know which one will be used. If necessary, the CPU compatible can be filled in by the boot loader, but for just cpufreq-dt it is not required. Cc: Rafael J. Wysocki <rjw@rjwysocki.net> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18ARM: dts: Add Integrator/CP cpus node and operating pointsLinus Walleij
This adds the cpus node to the Integrator/CP device tree so that we have a proper placeholder to put in the DT-defined operating points for the generic DT/OPP cpufreq driver, along with two working operating points. I have only put in 48 and 50 MHz because going to e.g. 36 MHz hangs the system when CLCD graphics are active. Presumably the memory bus gets to slow to feed the display and the systems hangs for this reason. The ideal solution would be for the display controller to put constraints on the memory bus frequency, but that need to be a separate longer-term project. We define a CPU node since this is required for cpufreq-dt, however we do not define any compatible string for the CPU since this architecture has pluggable CPU modules and we do not know which one will be used. If necessary, the CPU compatible can be filled in by the boot loader, but for just cpufreq-dt it is not required. Cc: Rafael J. Wysocki <rjw@rjwysocki.net> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18Merge tag 'qcom-arm64-for-4.10' of ↵Olof Johansson
git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux into next/dt64 Qualcomm ARM64 Updates for v4.10 * Add Hexagon SMD/PIL nodes * Add DB820c PMIC pins * Fixup APQ8016 voltage ranges * Add various MSM8996 nodes to support SMD/SMEM/SMP2P * Add support for Huawei Nexus 6P (Angler) * Add support for LG Nexus 5x (Bullhead) * tag 'qcom-arm64-for-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux: arm64: dts: msm8994 SoC and Huawei Angler (Nexus 6P) support dt-bindings: qcom: Add msm899(2/4) bindings arm64: dts: msm8992 SoC and LG Bullhead (Nexus 5X) support arm64: dts: msm8996: Add SMP2P and APCS nodes arm64: dts: msm8996: Add SMEM DT nodes arm64: dts: msm8996: Add reserve-memory nodes arm64: dts: msm8996: Add SMEM reserve-memory node arm64: dts: apq8016-sbc: add analog audio support with multicodec arm64: dts: qcom: Add missing interrupt entry for pm8994 gpios arm64: dts: apq8016-sbc: Set up LDO2, LDO6 and LDO17 regulator voltage ranges dts: arm64: db820c: add pmic pins specific dts file arm64: dts: qcom: msm8916: Add Hexagon PIL node arm64: dts: qcom: msm8916: Add Hexagon SMD edge Signed-off-by: Olof Johansson <olof@lixom.net>
2016-11-18arm64: Allow hw watchpoint of length 3,5,6 and 7Pratyush Anand
Since, arm64 can support all offset within a double word limit. Therefore, now support other lengths within that range as well. Signed-off-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
2016-11-18arm64: hw_breakpoint: Handle inexact watchpoint addressesPavel Labath
Arm64 hardware does not always report a watchpoint hit address that matches one of the watchpoints set. It can also report an address "near" the watchpoint if a single instruction access both watched and unwatched addresses. There is no straight-forward way, short of disassembling the offending instruction, to map that address back to the watchpoint. Previously, when the hardware reported a watchpoint hit on an address that did not match our watchpoint (this happens in case of instructions which access large chunks of memory such as "stp") the process would enter a loop where we would be continually resuming it (because we did not recognise that watchpoint hit) and it would keep hitting the watchpoint again and again. The tracing process would never get notified of the watchpoint hit. This commit fixes the problem by looking at the watchpoints near the address reported by the hardware. If the address does not exactly match one of the watchpoints we have set, it attributes the hit to the nearest watchpoint we have. This heuristic is a bit dodgy, but I don't think we can do much more, given the hardware limitations. Signed-off-by: Pavel Labath <labath@google.com> [panand: reworked to rebase on his patches] Signed-off-by: Pratyush Anand <panand@redhat.com> [will: use __ffs instead of ffs - 1] Signed-off-by: Will Deacon <will.deacon@arm.com>
2016-11-18arm64: Allow hw watchpoint at varied offset from base addressPratyush Anand
ARM64 hardware supports watchpoint at any double word aligned address. However, it can select any consecutive bytes from offset 0 to 7 from that base address. For example, if base address is programmed as 0x420030 and byte select is 0x1C, then access of 0x420032,0x420033 and 0x420034 will generate a watchpoint exception. Currently, we do not have such modularity. We can only program byte, halfword, word and double word access exception from any base address. This patch adds support to overcome above limitations. Signed-off-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
2016-11-18ARM: dts: pxa: add pxa27x cpu operating pointsRobert Jarzmik
Add the relevant data taken from the PXA27x Electrical, Mechanical, and Thermal Specfication. This will be input data for cpufreq-dt driver. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
2016-11-18ARM: dts: pxa: add pxa25x cpu operating pointsRobert Jarzmik
Add the relevant data taken from the PXA 25x Electrical, Mechanical, and Thermal Specfication. This will be input data for cpufreq-dt driver. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
2016-11-18ARM: dts: pxa: fix gpio0 and gpio1 interruptsRobert Jarzmik
Since gpio-pxa was redesigned to differenciate gpio0, gpio1 and the gpio-mux interrupt as in the hardware IP, the device-tree description should be amended so that interrupts from gpio0 and gpio1 can be mapped to consumers. This is especially true on lubbock and mainstone devices where gpio0 is multiplexed on pxa_cplds for ethernet, sa1111, usb udc, and other devices. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
2016-11-18ARM: dts: pxa: add pxa25x .dtsi fileRobert Jarzmik
This file describes pxa25x SoCs. Not all devices are listed yet, only the subset which was already tested with a lubbock board. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
2016-11-18ARM: dts: am57xx-idk: Add Industrial output supportAndrew F. Davis
The TPIC2810 is available on both the AM571x and the AM572x IDKs and is attached to I2C1. Output is attached to the I/O header and 10 LEDs. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-11-18ARM: dts: am57xx-idk: Add Industrial input supportAndrew F. Davis
The SN65HVS882 is available on both the AM572x and AM571x IDKs and is attached to SPI1. Input is attached to the I/O header. The load trigger is attached to GPIO3_19 on the AM572x IDK. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-11-18ARM: dts: am437x-idk: Add Industrial output supportAndrew F. Davis
The TPIC2810 is available on the AM437x IDK and is attached to I2C1. Output is attached to the I/O header and 10 LEDs. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-11-18ARM: dts: am437x-idk: Add Industrial input supportAndrew F. Davis
The SN65HVS882 is available on the AM437x IDK and is attached to SPI1. Input is attached to the I/O header. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-11-18ARM: dts: am335x-icev2: Add ADC supportAndrew F. Davis
7 of the 8 ADC inputs on the am335x are connected to the Industrial I/O header, add this here. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-11-18ARM: dts: am335x-icev2: Disable Industrial I/O LEDs and fix namingAndrew F. Davis
The LEDs tied to the Industrial I/O output pins are meant for providing status feed-back and are not the primary use for the pins. Disable this use by default. Also unify the LED naming across IDK platforms. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-11-18ARM: dts: am335x-icev2: Add Industrial input supportAndrew F. Davis
The SN65HVS882 is available on the AM335x-ICEv2 and is attached to SPI0. Input is attached to the I/O header. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-11-18Merge tag 'usb-for-v4.10' of ↵Greg Kroah-Hartman
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next Felipe writes: usb: patches for v4.10 merge window One big merge this time with a total of 166 non-merge commits. Most of the work, by far, is on dwc2 this time (68.2%) with dwc3 a far second (22.5%). The remaining 9.3% are scattered on gadget drivers. The most important changes for dwc2 are the peripheral side DMA support implemented by Synopsys folks and support for the new IOT dwc2 compatible core from Synopsys. In dwc3 land we have support for high-bandwidth, high-speed isochronous endpoints and some non-critical fixes for large scatter lists. Apart from these, we have our usual set of cleanups, non-critical fixes, etc.
2016-11-18arm64: dts: exynos: TM2 - add support for MFC video codec deviceMarek Szyprowski
This patch adds device nodes for MFC video codec device to Exynos5433 SoC dtsi and proper initial clock configuration to TM2 dts. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18arm64: dts: exynos: TM2 - add support for JPEG codec deviceMarek Szyprowski
This patch adds device nodes for JPEG codec device to Exynos5433 SoC dtsi and proper initial clock configuration to TM2 dts. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18arm64: dts: exynos: TM2 - add support for GScaler devicesMarek Szyprowski
This patch adds device nodes for GScaler devices to Exynos5433 SoC dtsi and proper initial clock configuration to TM2 dts. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18powerpc/mm: Fix missing update of HID register on secondary CPUsAneesh Kumar K.V
We need to update on secondaries for the selected MMU mode. Fixes: ad410674f560 ("powerpc/mm: Update the HID bit when switching from radix to hash") Reported-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18ARM: dts: exynos: Add ADCs on 4412 and 5422 based odroid boards.Markus Reichl
Odroid-X, -X2, -XU3 and -XU4 have SOC-ADC routed to an external connector. Enable the ADC for use as iio-device. Signed-off-by: Markus Reichl <m.reichl@fivetechno.de> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18powerpc/64: Used named initialisers for ibm_pa_featuresMichael Ellerman
The ibm_pa_features array consists of structures that describe which bit and byte in the ibm,pa-features property toggles one or more flags in either the CPU, MMU, or user visible feature flags. Each one consists of 7 values, which are all unsigned long, int or char, meaning the compiler gives us no warning if we assign the wrong values to the wrong elements. In fact we have had a bug here in the past, where we were setting incorrect bits, see commit 6997e57d693b ("powerpc: scan_features() updates incorrect bits for REAL_LE"). So switch to using named initialisers for the structure elements, to reduce the likelihood of future bugs, and hopefully improve readability also. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Balbir Singh <bsingharora@gmail.com>
2016-11-18powerpc/configs: Turn on PPC crypto implementations in the server defconfigsMichael Ellerman
These are the PPC optimised versions of various crypto algorithms, so we should turn them on by default to get test coverage. Suggested-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc/pseries: Disable IBMEBUS on little endian buildsMichael Ellerman
The IBMEBUS code supports the GX bus found on Power7 and earlier CPUs. On Power8 it has been replaced, and so we have no need for it. We don't actually have a config symbol for Power8 vs Power7 etc., but we only support booting little endian on Power8 or later, so use that as a reasonable approximation. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc/pseries: Move ibmebus.c into platforms pseriesMichael Ellerman
ibmebus.c is pseries only code, so move it in there. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc/pseries: Move vio.c into platforms pseriesMichael Ellerman
vio.c is pseries only code, so move it in there. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18usb: dwc2: Deprecate g-use-dma bindingJohn Youn
This is not needed as the gadget now fully supports DMA and it can autodetect it. This was initially added because gadget DMA mode was only partially implemented so could not be automatically enabled. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-11-18powerpc: Fix second nested oops hangNicholas Piggin
When ending an oops, don't clear die_owner unless the nest count went to zero. This prevents a second nested oops from hanging forever on the die_lock. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc: Fix graceful debugger recoveryNicholas Piggin
When exiting xmon with 'x' (exit and recover), oops_begin bails out immediately, but die then calls __die() and oops_end(), which cause a lot of bad things to happen. If the debugger was attached then went to graceful recovery, exit from die() immediately. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc: Add option to use thin archivesNicholas Piggin
Add an option to use thin archives to build the kernel. Thin archives are explained in commit a5967db9af51 ("kbuild: allow architectures to use thin archives instead of ld -r"). This is a gradual way to introduce the option to testers. Some change to the way we invoke ar is required so it can be used by scripts/link-vmlinux.sh. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Make it an explicit option not dependant on COMPILE_TEST] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc/lib: Fix randconfig build failure in sstep.cMichael Ellerman
Under some configs we need to explicitly include cpu_has_feature.h, otherwise we fail with: arch/powerpc/lib/sstep.c:1992:7: error: implicit declaration of function 'cpu_has_feature' Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc/pseries: Correct possible read beyond dlpar sysfs bufferNathan Fontenot
The pasrsing of data written to the dlpar file in sysfs does not correctly account for the possibility of reading past the end of the buffer. The code assumes that all pieces of the command witten to the sysfs file are present in the form "<resource> <action> <id_type> <id>". Correct this by updating the buffer parsing code to make a local copy and use the strsep() and sysfs_streq() routines to parse the buffer. This patch also separates the parsing code into subroutines for each piece of the command. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc/mce: Remove unused but set variableTobias Klauser
Remove the unused but set variable srr1 in save_mce_event() to fix the following GCC warning when building with 'W=1': arch/powerpc/kernel/mce.c:75:11: warning: variable 'srr1' set but not used It has never been used. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc: Fix old style declaration GCC warningsTobias Klauser
Fix two [-Wold-style-declaration] GCC warnings by moving the inline keyword before the return type. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18powerpc/64: get rid of MIN_HUGEPTE_SHIFTChristophe Leroy
MIN_HUGEPTE_SHIFT hasn't been used since commit d1837cba5d5d5 ("powerpc/mm: Cleanup initialization of hugepages on powerpc") Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-18arm64: dts: exynos: TM2 - remove unused UART3 and set clocks directly on CMUMarek Szyprowski
UART3 device is not really needed for enabling audio block on TM2. Enabling it made it working by enabling some common parent clocks, what is now handled by improved exynos5433 clocks driver. Thus the UART3 device node can be safely disabled. The assigned-clocks entries are however still needed, so move them under the respective CMU node. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18arm64: dts: exynos: Assign parent clock of the clkout clock for TM2 boardSylwester Nawrocki
Without this patch the clkout clock is orphaned and sound doesn't work properly. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18arm64: dts: exynos: Move FSYS CMU configuration from Exynos5433 dtsi to TM2 dtsMarek Szyprowski
Move initial FSYS CMU (related to USB 3.0 devices) clocks configuration from generic exynos5433.dtsi file to exynos5433-tm2.dts, as this is a board specific item. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18arm64: dts: exynos: Add missing parent clocks to audio block in Exynos5433 SoCMarek Szyprowski
Audio PLL and oscillator clocks are proper parent clocks for AUD CMU. They are not visible as such on first glance on Exynos5433 SoC docs, but they are needed for this CMU to operate properly. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18arm64: dts: exynos: Fix FSYS CMU parent clocks in Exynos5433 SoCMarek Szyprowski
This patch corrects FSYS CMU parent clocks specified in clock controller node to let improved Exynos5433 clocks driver to control proper clocks on FSYS<->TOP CMU boundary. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18arm64: dts: exynos: Fix IRQ type flags for Exynos5433 SoCMarek Szyprowski
Interrupt of type IRQ_TYPE_NONE is not allowed for GIC interrupts. The GIC requires shared interrupts to be edge rising or level high. Platform declares support for both. Set all interrupts type to level high, as this works fine - tested on Exynos5433-based TM2 board. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2016-11-18x86/idle: Remove enter_idle(), exit_idle()Len Brown
Upon removal of the is_idle flag, these routines became NOPs. Signed-off-by: Len Brown <len.brown@intel.com> Acked-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: http://lkml.kernel.org/r/822f2c22cc5890f7b8ea0eeec60277eb44505b4e.1479449716.git.len.brown@intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>