Skip to content
Snippets Groups Projects
  1. Dec 10, 2021
  2. Oct 21, 2021
  3. Oct 18, 2021
  4. Oct 17, 2021
  5. Oct 16, 2021
    • Randy Dunlap's avatar
      clocksource/drivers/arc_timer: Eliminate redefined macro error · 58100c34
      Randy Dunlap authored
      
      In drivers/clocksource/, 3 drivers use "TIMER_CTRL_IE" with 3 different
      values.  Two of them (mps2-timer.c and timer-sp804.c/timer-sp.h) are
      localized and left unmodifed.
      
      One of them uses a shared header file (<soc/arc/timers.h>), which is
      what is causing the "redefined" warnings, so change the macro name in
      that driver only. Also change the TIMER_CTRL_NH macro name.
      Both macro names are prefixed with "ARC_" to reduce the likelihood
      of future name collisions.
      
      In file included from ../drivers/clocksource/timer-sp804.c:24:
      ../drivers/clocksource/timer-sp.h:25: error: "TIMER_CTRL_IE" redefined [-Werror]
         25 | #define TIMER_CTRL_IE           (1 << 5)        /*   VR */
      ../include/soc/arc/timers.h:20: note: this is the location of the previous definition
         20 | #define TIMER_CTRL_IE           (1 << 0) /* Interrupt when Count reaches limit */
      
      Fixes: b26c2e38 ("ARC: breakout timer include code into separate header")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Vineet Gupta <vgupta@kernel.org>
      Cc: linux-snps-arc@lists.infradead.org
      Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Shahab Vahedi <Shahab.Vahedi@synopsys.com>
      Acked-by: default avatarVineet Gupta <vgupta@kernel.org>
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Link: https://lore.kernel.org/r/20210924020825.20317-1-rdunlap@infradead.org
      58100c34
  6. Oct 04, 2021
  7. Aug 22, 2021
    • Linus Walleij's avatar
      watchdog: ixp4xx: Rewrite driver to use core · 580b8e28
      Linus Walleij authored
      
      This rewrites the IXP4xx watchdog driver as follows:
      
      - Spawn the watchdog driver as a platform device from the timer
        driver. It's one device in the hardware, and the fact that
        Linux splits the handling into two different devices is
        a Linux pecularity, and thus it becomes a Linux pecularity
        to spawn a separate watchdog driver.
      
      - Spawn the watchdog driver from the timer driver at probe().
        This is well after the timer driver as actually registered and
        started and we know the register base is available.
      
      - Instead of looping back callbacks to the timer drivers for all
        watchdog calls, pass the register base to the watchdog driver
        and manage the registers there. The two drivers aren't even
        interested in the same register so the spinlock is totally
        surplus, delete it.
      
      - Replace pretty much all of the content in the watchdog driver
        with a simple, modern watchdog driver utilizing the watchdog
        core instead of registering its own misc device and ioctl()
        handling.
      
      - Drop module parameters as the same already exist in the
        watchdog core.
      
      What remains is a slim elegant (IMO) watchdog driver using the
      watchdog core, spawning from device tree or boardfile alike.
      
      Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Link: https://lore.kernel.org/r/20210726121214.2572836-1-linus.walleij@linaro.org
      
      
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
      580b8e28
  8. Aug 14, 2021
  9. Aug 13, 2021
  10. Aug 12, 2021
  11. Aug 04, 2021
    • Linus Walleij's avatar
      watchdog: ixp4xx: Rewrite driver to use core · 21a0a29d
      Linus Walleij authored
      
      This rewrites the IXP4xx watchdog driver as follows:
      
      - Spawn the watchdog driver as a platform device from the timer
        driver. It's one device in the hardware, and the fact that
        Linux splits the handling into two different devices is
        a Linux pecularity, and thus it becomes a Linux pecularity
        to spawn a separate watchdog driver.
      
      - Spawn the watchdog driver from the timer driver at probe().
        This is well after the timer driver as actually registered and
        started and we know the register base is available.
      
      - Instead of looping back callbacks to the timer drivers for all
        watchdog calls, pass the register base to the watchdog driver
        and manage the registers there. The two drivers aren't even
        interested in the same register so the spinlock is totally
        surplus, delete it.
      
      - Replace pretty much all of the content in the watchdog driver
        with a simple, modern watchdog driver utilizing the watchdog
        core instead of registering its own misc device and ioctl()
        handling.
      
      - Drop module parameters as the same already exist in the
        watchdog core.
      
      What remains is a slim elegant (IMO) watchdog driver using the
      watchdog core, spawning from device tree or boardfile alike.
      
      Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      21a0a29d
  12. Jul 19, 2021
  13. Jun 16, 2021
  14. Jun 15, 2021
  15. Jun 08, 2021
  16. Jun 04, 2021
Loading