19 Feb, 2014

1 commit


25 Jan, 2014

1 commit

  • None of these files are actually using any __init type directives
    and hence don't need to include . Most are just a
    left over from __devinit and __cpuinit removal, or simply due to
    code getting copied from one driver to the next.

    Signed-off-by: Paul Gortmaker
    Signed-off-by: John Crispin
    Patchwork: http://patchwork.linux-mips.org/patch/6320/

    Paul Gortmaker
     

30 Oct, 2013

1 commit

  • In commit 15ef17f622033455dcf03ae96256e474073a7b11
    (tty: ar933x_uart: use the clk API to get the uart
    clock), the AR933x UART driver for has been converted
    to get the uart clock rate via the clock API and it
    does not use the platform data anymore.

    Remove the ar933x_uart_platform.h header file and get
    rid of the superfluous variable and initialization code
    in platform setup.

    Signed-off-by: Gabor Juhos
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5832/
    Signed-off-by: Ralf Baechle

    Gabor Juhos
     

04 Sep, 2013

6 commits

  • The ath79 code uses static clock devices and
    provides its own clk_{get,put} implementations.

    Change the code to use dynamically allocated
    clock devices and register the clocks within
    the clkdev framework.

    Additionally, remove the local clk_{get,put}
    implementation. The clkdev framework has a
    common implementation of those.

    Also move the call of ath79_clock_init() from
    plat_mem_init() to plat_time_init(). Otherwise
    it would not be possible to use memory allocation
    functions from ath79clock_init() becasuse the
    memory subsystem is not yet initialized when
    plat_mem_init() runs.

    Signed-off-by: Gabor Juhos
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5780/
    Signed-off-by: Ralf Baechle

    Gabor Juhos
     
  • Use local variables for ref, cpu, ddr and ahb
    rates in SoC specific clock init functions.

    The patch has no functional changes, it is
    an interim change in preparation of the next
    patch.

    Signed-off-by: Gabor Juhos
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5781/
    Signed-off-by: Ralf Baechle

    Gabor Juhos
     
  • Instead of accessing the rate field of the static
    clock devices directly, use the recently introduced
    helper function to get the rate of the basic clocks.

    The static ath79_{ahb,cpu,ddr,ref}_clk variables
    will be removed by a subsequent patch. The actual
    change is in preparation of that.

    Also move the clock frequency printing code into
    the plat_time_init function. We are getting the
    cpu clock rate there already so we can save an
    extra call of the helper.

    Signed-off-by: Gabor Juhos
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5782/
    Signed-off-by: Ralf Baechle

    Gabor Juhos
     
  • The ath79 platform uses similar code to get the
    rate of various clocks during init. Separate the
    similar code into a new helper function and use
    that to avoid code duplication.

    Signed-off-by: Gabor Juhos
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5778/
    Signed-off-by: Ralf Baechle

    Gabor Juhos
     
  • The reference clock rate is passed in the first
    argument of the function. Use that instead of the
    rate of the global ath79_ref_clk variable.

    Signed-off-by: Gabor Juhos
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5779/
    Signed-off-by: Ralf Baechle

    Gabor Juhos
     
  • The watchdog device on the AR933x is connected to
    the AHB clock, however the current code uses the
    reference clock. Due to the wrong rate, the watchdog
    driver can't calculate correct register values for
    a given timeout value and the watchdog unexpectedly
    restarts the system.

    The code uses the wrong value since the initial
    commit 04225e1d227c8e68d685936ecf42ac175fec0e54
    (MIPS: ath79: add AR933X specific clock init)

    The patch fixes the code to use the correct clock
    rate to avoid the problem.

    Cc: stable@vger.kernel.org
    Signed-off-by: Felix Fietkau
    Signed-off-by: Gabor Juhos
    Cc: linux-mips@linux-mips.org
    Cc: stable@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/5777/
    Signed-off-by: Ralf Baechle

    Felix Fietkau
     

15 Jul, 2013

1 commit

  • commit 3747069b25e419f6b51395f48127e9812abc3596 upstream.

    The __cpuinit type of throwaway sections might have made sense
    some time ago when RAM was more constrained, but now the savings
    do not offset the cost and complications. For example, the fix in
    commit 5e427ec2d0 ("x86: Fix bit corruption at CPU resume time")
    is a good example of the nasty type of bugs that can be created
    with improper use of the various __init prefixes.

    After a discussion on LKML[1] it was decided that cpuinit should go
    the way of devinit and be phased out. Once all the users are gone,
    we can then finally remove the macros themselves from linux/init.h.

    Note that some harmless section mismatch warnings may result, since
    notify_cpu_starting() and cpu_up() are arch independent (kernel/cpu.c)
    and are flagged as __cpuinit -- so if we remove the __cpuinit from
    the arch specific callers, we will also get section mismatch warnings.
    As an intermediate step, we intend to turn the linux/init.h cpuinit
    related content into no-ops as early as possible, since that will get
    rid of these warnings. In any case, they are temporary and harmless.

    Here, we remove all the MIPS __cpuinit from C code and __CPUINIT
    from asm files. MIPS is interesting in this respect, because there
    are also uasm users hiding behind their own renamed versions of the
    __cpuinit macros.

    [1] https://lkml.org/lkml/2013/5/20/589

    [ralf@linux-mips.org: Folded in Paul's followup fix.]

    Signed-off-by: Paul Gortmaker
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5494/
    Patchwork: https://patchwork.linux-mips.org/patch/5495/
    Patchwork: https://patchwork.linux-mips.org/patch/5509/
    Signed-off-by: Ralf Baechle

    Paul Gortmaker
     

22 Jun, 2013

1 commit

  • ap136_pci_init expects a u8 pointer as an argument.

    Fixes the following build problem on a randconfig:
    arch/mips/ath79/mach-ap136.c:151:2: error:
    too many arguments to function 'ap136_pci_init'

    Signed-off-by: Markos Chandras
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5476/
    Signed-off-by: Ralf Baechle

    Markos Chandras
     

22 May, 2013

1 commit


08 May, 2013

1 commit


04 Mar, 2013

1 commit

  • Pull watchdog updates from Wim Van Sebroeck:
    "This contains:
    - fixes and improvements
    - devicetree bindings
    - conversion to watchdog generic framework of the following drivers:
    - booke_wdt
    - bcm47xx_wdt.c
    - at91sam9_wdt
    - Removal of old STMP3xxx driver
    - Addition of following new drivers:
    - new driver for STMP3xxx and i.MX23/28
    - Retu watchdog driver"

    * git://www.linux-watchdog.org/linux-watchdog: (30 commits)
    watchdog: sp805_wdt depends on ARM
    watchdog: davinci_wdt: update to devm_* API
    watchdog: davinci_wdt: use devm managed clk get
    watchdog: at91rm9200: add DT support
    watchdog: add timeout-sec property binding
    watchdog: at91sam9_wdt: Convert to use the watchdog framework
    watchdog: omap_wdt: Add option nowayout
    watchdog: core: dt: add support for the timeout-sec dt property
    watchdog: bcm47xx_wdt.c: add hard timer
    watchdog: bcm47xx_wdt.c: rename wdt_time to timeout
    watchdog: bcm47xx_wdt.c: rename ops methods
    watchdog: bcm47xx_wdt.c: use platform device
    watchdog: bcm47xx_wdt.c: convert to watchdog core api
    watchdog: Convert BookE watchdog driver to watchdog infrastructure
    watchdog: s3c2410_wdt: Use devm_* functions
    watchdog: remove old STMP3xxx driver
    watchdog: add new driver for STMP3xxx and i.MX23/28
    rtc: stmp3xxx: add wdt-accessor function
    watchdog: introduce retu_wdt driver
    watchdog: intel_scu_watchdog: fix Kconfig dependency
    ...

    Linus Torvalds
     

01 Mar, 2013

2 commits

  • The ath79_wdt driver uses a fixed memory address
    currently. Although this is working with each
    currently supported SoCs, but this may change
    in the future. Additionally, the driver includes
    platform specific header files in order to be
    able to get the memory base of the watchdog
    device.

    The patch adds a memory resource to the platform
    device, and converts the driver to get the base
    address of the watchdog device from that.

    Signed-off-by: Gabor Juhos
    Signed-off-by: Wim Van Sebroeck

    Gabor Juhos
     
  • Remove the static watchdog device variable and use
    the 'platform_device_register_simple' helper to
    allocate and register the device in one step.

    This allows us to save a few bytes in the kernel image.

    Signed-off-by: Gabor Juhos
    Signed-off-by: Wim Van Sebroeck

    Gabor Juhos
     

21 Feb, 2013

1 commit


19 Feb, 2013

12 commits


17 Feb, 2013

11 commits