summaryrefslogtreecommitdiffstats
path: root/drivers (follow)
Commit message (Collapse)AuthorAgeFilesLines
* clocksource/drivers/h8300_timer16: Remove pointless headersDaniel Lezcano2015-12-151-10/+0
| | | | | | The headers are not needed, remove them. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Retrieve the clock rate at init timeDaniel Lezcano2015-12-151-12/+14
| | | | | | | | | | The current code retrieves the rate value when the timer is enabled which occurs each time a timer is re-armed. Except if the clock frequency has changed magically I don't see why this should be done each time. Retrieve the clock rate value at init time only. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Remove irq and lock legacy codeDaniel Lezcano2015-12-151-16/+0
| | | | | | | | | The time framawork takes care of disabling the interrupts and takes a lock to prevent races. Remove the legacy code in the driver taking care of the races. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Remove pointless irq re-entrant safe codeDaniel Lezcano2015-12-151-9/+6
| | | | | | | | | | | The current code assumes the interrupt function is re-entrant. That is not correct. An interrupt handler is never invoked concurrently. The interrupt line is masked on all processors. Remove the chewing flags in the code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Fix irq return value checkDaniel Lezcano2015-12-151-1/+1
| | | | | | | The value returned in case of error for the 'irq_of_parse_and_map' function is zero in case of error. Fix the check in the init code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Remove PERIODIC and ONESHOT macroDaniel Lezcano2015-12-151-7/+4
| | | | | | | Specify the delta as parameter for the timer8_clock_event_start function instead of using a macro to tell PERIODIC or ONESHOT. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Remove unused macrosDaniel Lezcano2015-12-151-4/+0
| | | | Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Remove unused headersDaniel Lezcano2015-12-151-5/+0
| | | | Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_tpu: Remove pointless headers for TPUDaniel Lezcano2015-12-151-5/+0
| | | | Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_tpu: Remove unused macrosDaniel Lezcano2015-12-151-10/+3
| | | | | | Some macros are unused, delete them. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300_timer8: Fix compilation error with dev_warnDaniel Lezcano2015-12-151-1/+1
| | | | | | | | | The dev_warn is using the platform driver which was removed in the previous patch. Let's replace dev_warn by pr_warn. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/h8300: Cleanup startup and remove module code.Yoshinori Sato2015-12-153-264/+144
| | | | | | | | | Remove some legacy code and replace it by the clksrc-of code. Do some cleanup and code consolidation. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/dw_apb_timer_of: Implement ARM delay timerJisheng Zhang2015-12-151-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Implement an ARM delay timer to be used for udelay(). This allows us to skip the delay loop calibration at boot on Marvell BG2, BG2Q, BG2CD platforms. And after this patch, udelay() will be unaffected by CPU frequency changes. Note: Although in case there are several possible delay timers, we may not select the "best" delay timer. Take one Marvell Berlin platform for example: we have arch timer and dw-apb timer. The arch timer freq is 25MHZ while the dw-apb timer freq is 100MHZ, current selection would choose the dw-apb timer. But the dw apb timer is on the APB bus while arch timer sits in CPU, the cost of accessing the apb timer is higher than the arch timer. We could introduce "rating" concept to delay timer, but this approach "brings a lot of complexity and workarounds in the code for a small benefit" as pointed out by Daniel. Later, Arnd pointed out "However, we could argue that this actually doesn't matter at all, because the entire point of the ndelay()/ udelay()/mdelay() functions is to waste CPU cycles doing not much at all, so we can just as well waste them reading the timer register than spinning on the CPU reading the arch timer more often.", so we just simply register the dw apb base delay timer. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/Kconfig: Add missing GENERIC_CLOCKEVENTS dependencyDaniel Lezcano2015-12-151-0/+11
| | | | | | | | In order to compile on all arch without error with 'allyesconfig' make sure the platform selected the GENERIC_CLOCKEVENTS. Without this patch the new added drivers will prevent the kernel to compile on PARISC. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/fsl-ftm: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+1
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/samsung-pwm: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+1
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/exynos_mct: Fix Kconfig and add COMPILE_TEST optionDaniel Lezcano2015-12-151-2/+2
| | | | | | | | | | | | | Let the platform's Kconfig to select the clock instead of having a reverse dependency from the driver to the platform options. Add the COMPILE_TEST option for the compilation test coverage. Due to the non portable 'delay' code, this driver is only compilable on ARM. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
* clocksource/drivers/prcmu: Fix Kconfig and add COMPILE_TEST optionDaniel Lezcano2015-12-151-3/+1
| | | | | | | | | | | | | | Let the platform's Kconfig to select the clock instead of having a reverse dependency from the driver to the platform options. Add the COMPILE_TEST option for the compilation test coverage. This change is debatable as the option itself in the Kconfig allows to select the driver for the platform or not. This change will make the prcmu timer always selected. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
* clocksource/drivers/nomadik_mtu: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-2/+2
| | | | | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Due to the non portable code for the delay timer, this option is only available for the ARM architecture. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/lpc32xx: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/asm9260: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/cadence_ttc: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+4
| | | | | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. The driver depends on the common clock framework, thus the dependency added on COMMON_CLK. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/vt8500: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/vt8500: Remove unneeded headerDaniel Lezcano2015-12-151-1/+0
| | | | | | Remove the <asm/time.h> header inclusion which is pointless. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/tegra2: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+4
| | | | | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Due to the non portable code for the delay timer, this option is only available for the ARM architecture. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/sun5i: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+4
| | | | | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. The driver depends on the common clock framework, thus the dependency added on COMMON_CLK. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/sun4i: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/dw_apb: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/digicolor: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/orion: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+4
| | | | | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. The driver is using the atomic_io API which is not portable, so the compilation is restricted to ARM only. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/meson6: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/armada-370-xp: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+4
| | | | | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Due to the non portable 'delay' code, the compilation is restricted to the ARM architecture only. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/rockchip: Add COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+4
| | | | | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Due to the dsb() usage in the driver, this driver is only compilable on ARM and ARM64. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/mediatek: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/pistachio: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/tango: Add COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+4
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/pxa_timer: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+3
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/pxa_timer: Move the Kconfig ruleDaniel Lezcano2015-12-151-2/+1
| | | | | | | | | | Instead of having the clocksource's Kconfig depending on the arch, let the arch to select the timer it needs. The CLKSRC_OF dependency is removed because already selected by the ARCH_PXA, and it is added for SA1100. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/st_lpc: Add the COMPILE_TEST optionDaniel Lezcano2015-12-151-1/+1
| | | | | | Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/st_lpc: Fix Kconfig dependencyDaniel Lezcano2015-12-151-1/+0
| | | | | | | | Change the Kconfig selection rule by letting the STI arch to select the timer. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
* clocksource/drivers/qcom: Make COMPILE_TEST enabled for ARM architectureDaniel Lezcano2015-12-151-1/+6
| | | | | | | | | In order to be consistent with the rest of the drivers compilation, let's introduce the COMPILE_TEST option. Unfortunately, the delay.h code is not portable, so the compilation test coverage will be restricted to the ARM architecture. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/rockchip: Remove dsb() usageCaesar Wang2015-12-151-4/+0
| | | | | | | | | | | The dsb() instruction is pointless in this code. Remove it. That also fixes the ARM64 compilation issue. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Tested-by: Caesar Wang <wxt@rock-chips.com>
* clocksource/drivers/rockchip: Make the driver more readableCaesar Wang2015-12-151-9/+10
| | | | | | | Let's checkstyle to clean up the macros with such trivial details. Signed-off-by: Caesar Wang <wxt@rock-chips.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/tegra: Allow timer irq affinity changeLucas Stach2015-12-151-1/+2
| | | | | | | | | | | Allow the timer core to change the smp affinity of the broadcast timer irq by setting CLOCK_EVT_FEAT_DYNIRQ flag. This reduces interrupt pressure and wakeups on CPU0 as well as vastly reducing the number of timer broadcast IPIs. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/mtk_timer: Fix memleak in mtk_timer_init()Alexey Klimov2015-12-151-1/+3
| | | | | | | | | Add error path to clear evt struct allocated by kzalloc() in the beginning of function mtk_timer_init(). Acked-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/mtk_timer: Fix pr_warn() messages in mtk_timer_initAlexey Klimov2015-12-151-8/+6
| | | | | | | | | | | 1) Change pr_warn()s to pr_err()s. These messages are actually errors and not warnings. 2) Add missing \n. 3) Error message for kzalloc() failure is removed per suggestion by Joe Perches. There is generic stack_dump() for allocation issues. Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* clocksource/drivers/mtk_timer: Add pr_fmt defineAlexey Klimov2015-12-151-0/+2
| | | | | | | | | | It's a bit unclear what subsystem/driver emits some messages to dmesg in the function mtk_init_timer(). Use pr_fmt to auto-prefix the messages appropriately. Acked-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
* Merge tag 'tty-4.4-rc2' of ↵Linus Torvalds2015-11-2310-10/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty Pull tty/serial fixes from Greg KH: "Here are a few small tty/serial driver fixes for 4.4-rc2 that resolve some reported problems. All have been in linux-next, full details are in the shortlog below" * tag 'tty-4.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: serial: export fsl8250_handle_irq serial: 8250_mid: Add missing dependency tty: audit: Fix audit source serial: etraxfs-uart: Fix crash serial: fsl_lpuart: Fix earlycon support bcm63xx_uart: Use the device name when registering an interrupt tty: Fix direct use of tty buffer work tty: Fix tty_send_xchar() lock order inversion
| * serial: export fsl8250_handle_irqArnd Bergmann2015-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsl8250_handle_irq is now used by the of_serial driver, and that fails if it is a loadable module: ERROR: "fsl8250_handle_irq" [drivers/tty/serial/of_serial.ko] undefined! This exports the symbol to avoid randconfig errors. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: d43b54d269d2 ("serial: Enable Freescale 16550 workaround on arm") Cc: Scott Wood <scottwood@freescale.com> Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| * serial: 8250_mid: Add missing dependencyHeikki Krogerus2015-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8250_mid uses rational_best_approximation() function, so the driver needs to select CONFIG_RATIONAL option. This fixes build error when CONFIG_RATIONAL is not enabled: drivers/built-in.o: In function `mid8250_set_termios': 8250_mid.c:(.text+0x10169a): undefined reference to `rational_best_approximation' Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>