17 Aug, 2020

4 commits

  • cpu_do_idle() is already the default action for arm_pm_idle, there is no
    need to open code it.

    Signed-off-by: Alexandre Belloni
    Reviewed-by: Claudiu Beznea
    Link: https://lore.kernel.org/r/20200804115622.63232-1-alexandre.belloni@bootlin.com

    Alexandre Belloni
     
  • Put node after it has been used.

    Fixes: 13f16017d3e3f ("ARM: at91: pm: Tie the USB clock mask to the pmc")
    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1596616610-15460-4-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • Not all SoCs supports all the PM mode. User may end up settings,
    e.g. backup mode, on a non SAMA5D2 device, but the mode to not be valid.
    If backup mode is used on a devices not supporting it there will be no
    way of resuming other than rebooting.

    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1596616610-15460-3-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • ULP0 fast improves suspend/resume time with few milliseconds the drawback
    being the power consumption. The mean values measured for suspend/resume
    time are as follows (measured on SAMA5D2 Xplained board), ULP0 compared
    with fast ULP0:
    - ulp0 fast: suspend time: 169 ms, resume time: 216 ms
    - ulp0 : suspend time: 197 ms, resume time: 258 ms

    Current consumption while suspended (measured on SAMA5D2 Xplained board):
    - ulp0 fast: 730uA
    - ulp0 : 270uA

    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1596616610-15460-2-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     

18 Jul, 2020

2 commits

  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    If not .svg:
    For each line:
    If doesn't contain `\bxmlns\b`:
    For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
    If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/20200713065859.31770-1-grandmaster@al2klimov.de

    Alexander A. Klimov
     
  • if of_find_device_by_node() succeed, at91_pm_sram_init() doesn't have
    a corresponding put_device(). Thus add a jump target to fix the exception
    handling for this function implementation.

    Fixes: d2e467905596 ("ARM: at91: pm: use the mmio-sram pool to access SRAM")
    Signed-off-by: yu kuai
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/20200604123301.3905837-1-yukuai3@huawei.com

    yu kuai
     

04 Apr, 2020

1 commit

  • Pull ARM SoC updates from Arnd Bergmann:
    "The code changes are mostly for 32-bit platforms and include:

    - Lots of updates for the Nvidia Tegra platform, including cpuidle,
    pmc, and dt-binding changes

    - Microchip at91 power management updates for the recently added
    sam9x60 SoC

    - Treewide setup_irq deprecation by afzal mohammed

    - STMicroelectronics stm32 gains earlycon support

    - Renesas platforms with Cortex-A9 can now use the global timer

    - Some TI OMAP2+ platforms gain cpuidle support

    - Various cleanups for the i.MX6 and Orion platforms, as well as
    Kconfig files across all platforms"

    * tag 'arm-soc-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (75 commits)
    ARM: qcom: Add support for IPQ40xx
    ARM: mmp: replace setup_irq() by request_irq()
    ARM: cns3xxx: replace setup_irq() by request_irq()
    ARM: spear: replace setup_irq() by request_irq()
    ARM: ep93xx: Replace setup_irq() by request_irq()
    ARM: iop32x: replace setup_irq() by request_irq()
    arm: mach-dove: Mark dove_io_desc as __maybe_unused
    ARM: orion: replace setup_irq() by request_irq()
    ARM: debug: stm32: add UART early console support for STM32MP1
    ARM: debug: stm32: add UART early console support for STM32H7
    ARM: debug: stm32: add UART early console configuration for STM32F7
    ARM: debug: stm32: add UART early console configuration for STM32F4
    cpuidle: tegra: Disable CC6 state if LP2 unavailable
    cpuidle: tegra: Squash Tegra114 driver into the common driver
    cpuidle: tegra: Squash Tegra30 driver into the common driver
    cpuidle: Refactor and move out NVIDIA Tegra20 driver into drivers/cpuidle
    ARM: tegra: cpuidle: Remove unnecessary memory barrier
    ARM: tegra: cpuidle: Make abort_flag atomic
    ARM: tegra: cpuidle: Handle case where secondary CPU hangs on entering LP2
    ARM: tegra: Make outer_disable() open-coded
    ...

    Linus Torvalds
     

25 Mar, 2020

1 commit


19 Feb, 2020

7 commits

  • On SAM9X60 2 nop operations has to be introduced after setting
    WAITMODE bit in CKGR_MOR.

    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1579522208-19523-9-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • Add PLLA enable/disable support for SAM9X60.

    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1579522208-19523-8-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • s/sfr/sfrbu in pm_suspend.S.

    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1579522208-19523-6-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • This will be used to differentiate b/w different PLLs settings to be
    applied in the final/first steps of the suspend/resume process by doing
    PLL specific configurations.

    Signed-off-by: Claudiu Beznea
    Acked-by: Stephen Boyd
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1579522208-19523-5-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • Add macros for PLLA disable and enable (in disable macro the PLLA
    state will also be saved). This prepares the field for PLLA disable/enable
    for suspend/resume on SAM9X60.

    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1579522208-19523-4-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • This reverts commit 2725d70aa5138284ba2cebf0ef51dd23e0c9ea21
    ("ARM: at91: pm: do not disable/enable PLLA for ULP modes").
    This is because PLLA is the clock source for CPU, PLLA should
    be disabled/enabled in the final/first phase of suspend/resume
    so that the power consumption in suspend/resume to be minimal
    and suspend/resume time to be minimized.

    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1579522208-19523-3-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     
  • SAM9X60's PMC has different master clock register offset than the other
    SoCs' PMC. Due to this, specify master clock register offset based
    on PMC compatible and pass it to pm_suspend.S since it is also needed
    in there. When PM part for SAM9X60 was published the SAM9X60's PMC
    (commit f6deae46039c ("clk: at91: add sam9x60 pmc driver")) wasn't
    integrated.

    Fixes: 01c7031cfa73 ("ARM: at91: pm: initial PM support for SAM9X60")
    Signed-off-by: Claudiu Beznea
    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/1579522208-19523-2-git-send-email-claudiu.beznea@microchip.com

    Claudiu Beznea
     

11 Feb, 2020

1 commit

  • Support for AT91/Microchip SoCs depends on ARCH_MULTIPLATFORM or
    ARM_SINGLE_ARMV7M, which both select COMMON_CLK.
    Hence there is no need for COMMON_CLK_AT91 to select COMMON_CLK.

    Signed-off-by: Geert Uytterhoeven
    Cc: Nicolas Ferre
    Cc: Alexandre Belloni
    Cc: Ludovic Desroches
    Link: https://lore.kernel.org/r/20200121103722.1781-5-geert+renesas@glider.be
    Signed-off-by: Alexandre Belloni

    Geert Uytterhoeven
     

11 Jan, 2020

2 commits

  • Use of_device_id array to find the proper shdwc compatibile node.
    SAM9X60's shdwc changes were not integrated when
    commit eaedc0d379da ("ARM: at91: pm: add ULP1 support for SAM9X60")
    was integrated.

    Fixes: eaedc0d379da ("ARM: at91: pm: add ULP1 support for SAM9X60")
    Signed-off-by: Claudiu Beznea
    Link: https://lore.kernel.org/r/1576062248-18514-3-git-send-email-claudiu.beznea@microchip.com
    Signed-off-by: Alexandre Belloni

    Claudiu Beznea
     
  • SAM9X60 PMC's has a different PMC. It was not integrated at the moment
    commit 01c7031cfa73 ("ARM: at91: pm: initial PM support for SAM9X60")
    was published.

    Fixes: 01c7031cfa73 ("ARM: at91: pm: initial PM support for SAM9X60")
    Signed-off-by: Claudiu Beznea
    Link: https://lore.kernel.org/r/1576062248-18514-2-git-send-email-claudiu.beznea@microchip.com
    Signed-off-by: Alexandre Belloni

    Claudiu Beznea
     

10 Dec, 2019

3 commits


24 Aug, 2019

1 commit

  • is only generated and included by
    arch/arm/mach-at91/, so it does not need to reside in the globally
    visible include/generated/.

    I renamed it to arch/arm/mach-at91/pm_data-offsets.h since the prefix
    'at91_' is just redundant in mach-at91/.

    My main motivation of this change is to avoid the race condition for
    the parallel build (-j) when CONFIG_IKHEADERS is enabled.

    When it is enabled, all the headers under include/ are archived into
    kernel/kheaders_data.tar.xz and exposed in the sysfs.

    In the parallel build, we have no idea in which order files are built.

    - If at91_pm_data-offsets.h is built before kheaders_data.tar.xz,
    the header will be included in the archive. Probably nobody will
    use it, but it is harmless except that it will increase the archive
    size needlessly.

    - If kheaders_data.tar.xz is built before at91_pm_data-offsets.h,
    the header will not be included in the archive. However, in the next
    build, the archive will be re-generated to include the newly-found
    at91_pm_data-offsets.h. This is not nice from the build system point
    of view.

    - If at91_pm_data-offsets.h and kheaders_data.tar.xz are built at the
    same time, the corrupted header might be included in the archive,
    which does not look nice either.

    This commit fixes the race.

    Signed-off-by: Masahiro Yamada
    Link: https://lore.kernel.org/r/20190823024346.591-1-yamada.masahiro@socionext.com
    Signed-off-by: Alexandre Belloni

    Masahiro Yamada
     

20 Jul, 2019

1 commit

  • Pull ARM SoC platform updates from Olof Johansson:
    "SoC platform changes. Main theme this merge window:

    - The Netx platform (Netx 100/500) platform is removed by Linus
    Walleij-- the SoC doesn't have active maintainers with hardware,
    and in discussions with the vendor the agreement was that it's OK
    to remove.

    - Russell King has a series of patches that cleans up and refactors
    SA1101 and RiscPC support"

    * tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (47 commits)
    ARM: stm32: use "depends on" instead of "if" after prompt
    ARM: sa1100: convert to common clock framework
    ARM: exynos: Cleanup cppcheck shifting warning
    ARM: pxa/lubbock: remove lubbock_set_misc_wr() from global view
    ARM: exynos: Only build MCPM support if used
    arm: add missing include platform-data/atmel.h
    ARM: davinci: Use GPIO lookup table for DA850 LEDs
    ARM: OMAP2: drop explicit assembler architecture
    ARM: use arch_extension directive instead of arch argument
    ARM: imx: Switch imx7d to imx-cpufreq-dt for speed-grading
    ARM: bcm: Enable PINCTRL for ARCH_BRCMSTB
    ARM: bcm: Enable ARCH_HAS_RESET_CONTROLLER for ARCH_BRCMSTB
    ARM: riscpc: enable chained scatterlist support
    ARM: riscpc: reduce IRQ handling code
    ARM: riscpc: move RiscPC assembly files from arch/arm/lib to mach-rpc
    ARM: riscpc: parse video information from tagged list
    ARM: riscpc: add ecard quirk for Atomwide 3port serial card
    MAINTAINERS: mvebu: Add git entry
    soc: ti: pm33xx: Add a print while entering RTC only mode with DDR in self-refresh
    ARM: OMAP2+: Make some variables static
    ...

    Linus Torvalds
     

25 Jun, 2019

1 commit


20 Jun, 2019

1 commit

  • Include corresponding headerfile for
    function at91_suspend_entering_slow_clock().

    ../arch/arm/mach-at91/pm.c:279:5: warning: no previous prototype for ‘at91_suspend_entering_slow_clock’ [-Wmissing-prototypes]
    int at91_suspend_entering_slow_clock(void)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Signed-off-by: Philippe Mazenauer
    Signed-off-by: Alexandre Belloni

    Philippe Mazenauer
     

19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

21 May, 2019

2 commits

  • Based on 1 normalized pattern(s):

    licensed under gplv2 or later

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 118 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Jilayne Lovejoy
    Reviewed-by: Steve Winslow
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190519154040.961286471@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Add SPDX license identifiers to all Make/Kconfig files which:

    - Have no license information of any form

    These files fall under the project license, GPL v2 only. The resulting SPDX
    license identifier is:

    GPL-2.0-only

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

20 May, 2019

1 commit

  • Pull clocksource updates from Ingo Molnar:
    "Misc clocksource/clockevent driver updates that came in a bit late but
    are ready for v5.2"

    * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    misc: atmel_tclib: Do not probe already used TCBs
    clocksource/drivers/timer-atmel-tcb: Convert tc_clksrc_suspend|resume() to static
    clocksource/drivers/tcb_clksrc: Rename the file for consistency
    clocksource/drivers/timer-atmel-pit: Rework Kconfig option
    clocksource/drivers/tcb_clksrc: Move Kconfig option
    ARM: at91: Implement clocksource selection
    clocksource/drivers/tcb_clksrc: Use tcb as sched_clock
    clocksource/drivers/tcb_clksrc: Stop depending on atmel_tclib
    ARM: at91: move SoC specific definitions to SoC folder
    clocksource/drivers/timer-milbeaut: Cleanup common register accesses
    clocksource/drivers/timer-milbeaut: Add shutdown function
    clocksource/drivers/timer-milbeaut: Fix to enable one-shot timer
    clocksource/drivers/tegra: Rework for compensation of suspend time
    clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804
    clocksource/drivers/sun4i: Add a compatible for suniv
    dt-bindings: timer: Add Allwinner suniv timer

    Linus Torvalds
     

17 May, 2019

2 commits

  • AT91 SoC for 5.2

    - PM changes for SAM9X60

    * tag 'at91-5.2-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux:
    ARM: at91: pm: do not disable/enable PLLA for ULP modes
    ARM: at91: pm: disable RC oscillator in ULP0
    ARM: at91: pm: add ULP1 support for SAM9X60
    ARM: at91: pm: add support for per SoC wakeup source configuration
    ARM: at91: pm: keep at91_pm_backup_init() only for SAMA5D2 SoCs
    ARM: at91: pm: initial PM support for SAM9X60
    dt-bindings: arm: atmel: add binding for SAM9X60 SoC
    ARM: at91: pm: introduce at91_soc_pm structure

    Signed-off-by: Olof Johansson

    Olof Johansson
     
  • …at91/linux into arm/late

    AT91 defconfig for 5.2

    - ov2640 driver as module
    - selecting HAVE_FB_ATMEL for SAMA5 SoCs is useless

    * tag 'at91-5.2-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux:
    ARM: at91: sama5: make ov2640 as a module
    ARM: at91: remove HAVE_FB_ATMEL for sama5 SoC as they use DRM

    Signed-off-by: Olof Johansson <olof@lixom.net>

    Olof Johansson
     

03 May, 2019

1 commit


04 Apr, 2019

2 commits


28 Mar, 2019

5 commits