27 Sep, 2015

1 commit


30 Jul, 2015

14 commits


06 Jun, 2015

2 commits

  • The platform_device_id is not modified by the driver and core
    uses it as const.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Kukjin Kim

    Krzysztof Kozlowski
     
  • Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare
    calls as required by common clock framework. Removes this warning on probe:

    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:889 __clk_enable+0x28/0x9c()
    Modules linked in:
    CPU: 0 PID: 1 Comm: swapper Not tainted 3.19.0+ #46
    [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
    [] (show_stack) from [] (warn_slowpath_common+0x7c/0xa4)
    [] (warn_slowpath_common) from [] (warn_slowpath_null+0x18/0x20)
    [] (warn_slowpath_null) from [] (__clk_enable+0x28/0x9c)
    [] (__clk_enable) from [] (clk_enable+0x18/0x2c)
    [] (clk_enable) from [] (s3c_adc_probe+0x11c/0x18c)
    [] (s3c_adc_probe) from [] (platform_drv_probe+0x30/0x78)
    [] (platform_drv_probe) from [] (driver_probe_device+0xb0/0x1fc)
    [] (driver_probe_device) from [] (__driver_attach+0x68/0x88)
    [] (__driver_attach) from [] (bus_for_each_dev+0x70/0x94)
    [] (bus_for_each_dev) from [] (bus_add_driver+0xdc/0x1c4)
    [] (bus_add_driver) from [] (driver_register+0x9c/0xe0)
    [] (driver_register) from [] (adc_init+0x10/0x34)
    [] (adc_init) from [] (do_one_initcall+0x110/0x1cc)
    [] (do_one_initcall) from [] (kernel_init_freeable+0xf4/0x1ac)
    [] (kernel_init_freeable) from [] (kernel_init+0x8/0xe0)
    [] (kernel_init) from [] (ret_from_fork+0x14/0x3c)
    ---[ end trace f4a1ea39a114fecf ]---

    Signed-off-by: Sergiy Kibrik
    Reviewed-by: Krzysztof Kozlowski
    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Kukjin Kim

    Sergiy Kibrik
     

27 Feb, 2015

3 commits

  • The pm-core.h file does not include all the necessary headers,
    and has a static declaration for a function that is not
    defined in the same file, causing SAMSUNG_PM_DEBUG to
    break on s3c24xx:

    arch/arm/mach-s3c24xx/include/mach/pm-core.h:50:91: warning: 's3c_pm_show_resume_irqs' used but never defined
    arch/arm/mach-s3c24xx/include/mach/pm-core.h: In function 's3c_pm_debug_init_uart':
    arch/arm/mach-s3c24xx/include/mach/pm-core.h:16:34: error: 'S3C2410_CLKCON' undeclared (first use in this function)
    unsigned long tmp = __raw_readl(S3C2410_CLKCON);
    ^

    This moves the code around slightly to avoid the errors.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Kukjin Kim

    Arnd Bergmann
     
  • We get lots of link errors based on the assumption that
    any s3c24xx kernel would enable CONFIG_PM_SLEEP if it
    enables CONFIG_PM. This tries to clean that up.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Kukjin Kim

    Arnd Bergmann
     
  • arch/arm/mach-s3c64xx/built-in.o: In function `s3c_pm_restore_core':
    :(.text+0x5d0): undefined reference to `s3c_pm_do_restore_core'
    :(.text+0x5d4): undefined reference to `s3c_pm_do_restore'
    arch/arm/mach-s3c64xx/built-in.o: In function `s3c_pm_save_core':
    :(.text+0x60c): undefined reference to `s3c_pm_do_save'
    arch/arm/mach-s3c64xx/built-in.o: In function `s3c64xx_irq_pm_resume':
    :(.text+0x670): undefined reference to `s3c_pm_do_restore'
    arch/arm/mach-s3c64xx/built-in.o: In function `s3c64xx_irq_pm_suspend':
    :(.text+0x6d8): undefined reference to `s3c_pm_do_save'
    arch/arm/mach-s3c64xx/built-in.o: In function `s3c_cpu_resume':
    :(.text+0x71c): undefined reference to `cpu_resume'

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Kukjin Kim

    Arnd Bergmann
     

18 Feb, 2015

1 commit

  • Pull ARM SoC platform changes from Olof Johansson:
    "New and updated SoC support. Also included are some cleanups where
    the platform maintainers hadn't separated cleanups from new developent
    in separate branches.

    Some of the larger things worth pointing out:

    - A large set of changes from Alexandre Belloni and Nicolas Ferre
    preparing at91 platforms for multiplatform and cleaning up quite a
    bit in the process.

    - Removal of CSR's "Marco" SoC platform that never made it out to the
    market. We love seeing these since it means the vendor published
    support before product was out, which is exactly what we want!

    New platforms this release are:

    - Conexant Digicolor (CX92755 SoC)
    - Hisilicon HiP01 SoC
    - CSR/sirf Atlas7 SoC
    - ST STiH418 SoC
    - Common code changes for Nvidia Tegra132 (64-bit SoC)

    We're seeing more and more platforms having a harder time labelling
    changes as cleanups vs new development -- which is a good sign that
    we've come quite far on the cleanup effort. So over time we might
    start combining the cleanup and new-development branches more"

    * tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (124 commits)
    ARM: at91/trivial: unify functions and machine names
    ARM: at91: remove at91_dt_initialize and machine init_early()
    ARM: at91: change board files into SoC files
    ARM: at91: remove at91_boot_soc
    ARM: at91: move alternative initial mapping to board-dt-sama5.c
    ARM: at91: merge all SOC_AT91SAM9xxx
    ARM: at91: at91rm9200: set idle and restart from rm9200_dt_device_init()
    ARM: digicolor: select syscon and timer
    ARM: zynq: Simplify SLCR initialization
    ARM: zynq: PM: Fixed simple typo.
    ARM: zynq: Setup default gpio number for Xilinx Zynq
    ARM: digicolor: add low level debug support
    ARM: initial support for Conexant Digicolor CX92755 SoC
    ARM: OMAP2+: Add dm816x hwmod support
    ARM: OMAP2+: Add clock domain support for dm816x
    ARM: OMAP2+: Add board-generic.c entry for ti81xx
    ARM: at91: pm: remove warning to remove SOC_AT91SAM9263 usage
    ARM: at91: remove unused mach/system_rev.h
    ARM: at91: stop using HAVE_AT91_DBGUx
    ARM: at91: fix ordering of SRAM and PM initialization
    ...

    Linus Torvalds
     

24 Jan, 2015

1 commit

  • Everything uses dmaengine now, so there is no reason to
    keep this around any longer. Thanks to everyone who was involved
    in moving the users over to use the dmaengine APIs.

    Signed-off-by: Arnd Bergmann
    Reviewed-by: Heiko Stuebner
    Acked-by: Vinod Koul
    Signed-off-by: Kukjin Kim

    Arnd Bergmann
     

22 Dec, 2014

1 commit

  • It's useful to get the CPU ID/rev printed during boot sometimes, so
    add a line with that information. Given that the fields have moved
    within the register over time, don't try to be clever and parse it --
    just print the raw values for now.

    Signed-off-by: Olof Johansson
    Signed-off-by: Kukjin Kim

    Olof Johansson
     

15 Dec, 2014

1 commit

  • Pull driver core update from Greg KH:
    "Here's the set of driver core patches for 3.19-rc1.

    They are dominated by the removal of the .owner field in platform
    drivers. They touch a lot of files, but they are "simple" changes,
    just removing a line in a structure.

    Other than that, a few minor driver core and debugfs changes. There
    are some ath9k patches coming in through this tree that have been
    acked by the wireless maintainers as they relied on the debugfs
    changes.

    Everything has been in linux-next for a while"

    * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits)
    Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries"
    fs: debugfs: add forward declaration for struct device type
    firmware class: Deletion of an unnecessary check before the function call "vunmap"
    firmware loader: fix hung task warning dump
    devcoredump: provide a one-way disable function
    device: Add dev__once variants
    ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries
    ath: use seq_file api for ath9k debugfs files
    debugfs: add helper function to create device related seq_file
    drivers/base: cacheinfo: remove noisy error boot message
    Revert "core: platform: add warning if driver has no owner"
    drivers: base: support cpu cache information interface to userspace via sysfs
    drivers: base: add cpu_device_create to support per-cpu devices
    topology: replace custom attribute macros with standard DEVICE_ATTR*
    cpumask: factor out show_cpumap into separate helper function
    driver core: Fix unbalanced device reference in drivers_probe
    driver core: fix race with userland in device_add()
    sysfs/kernfs: make read requests on pre-alloc files use the buffer.
    sysfs/kernfs: allow attributes to request write buffer be pre-allocated.
    fs: sysfs: return EGBIG on write if offset is larger than file size
    ...

    Linus Torvalds
     

10 Dec, 2014

1 commit

  • Pull ARM SoC platform changes from Arnd Bergmann:
    "New and updated SoC support, notable changes include:

    - bcm:
    brcmstb SMP support
    initial iproc/cygnus support
    - exynos:
    Exynos4415 SoC support
    PMU and suspend support for Exynos5420
    PMU support for Exynos3250
    pm related maintenance
    - imx:
    new LS1021A SoC support
    vybrid 610 global timer support
    - integrator:
    convert to using multiplatform configuration
    - mediatek:
    earlyprintk support for mt8127/mt8135
    - meson:
    meson8 soc and l2 cache controller support
    - mvebu:
    Armada 38x CPU hotplug support
    drop support for prerelease Armada 375 Z1 stepping
    extended suspend support, now works on Armada 370/XP
    - omap:
    hwmod related maintenance
    prcm cleanup
    - pxa:
    initial pxa27x DT handling
    - rockchip:
    SMP support for rk3288
    add cpu frequency scaling support
    - shmobile:
    r8a7740 power domain support
    various small restart, timer, pci apmu changes
    - sunxi:
    Allwinner A80 (sun9i) earlyprintk support
    - ux500:
    power domain support

    Overall, a significant chunk of changes, coming mostly from the usual
    suspects: omap, shmobile, samsung and mvebu, all of which already
    contain a lot of platform specific code in arch/arm"

    * tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (187 commits)
    ARM: mvebu: use the cpufreq-dt platform_data for independent clocks
    soc: integrator: Add terminating entry for integrator_cm_match
    ARM: mvebu: add SDRAM controller description for Armada XP
    ARM: mvebu: adjust mbus controller description on Armada 370/XP
    ARM: mvebu: add suspend/resume DT information for Armada XP GP
    ARM: mvebu: synchronize secondary CPU clocks on resume
    ARM: mvebu: make sure MMU is disabled in armada_370_xp_cpu_resume
    ARM: mvebu: Armada XP GP specific suspend/resume code
    ARM: mvebu: reserve the first 10 KB of each memory bank for suspend/resume
    ARM: mvebu: implement suspend/resume support for Armada XP
    clk: mvebu: add suspend/resume for gatable clocks
    bus: mvebu-mbus: provide a mechanism to save SDRAM window configuration
    bus: mvebu-mbus: suspend/resume support
    clocksource: time-armada-370-xp: add suspend/resume support
    irqchip: armada-370-xp: Add suspend/resume support
    ARM: add lolevel debug support for asm9260
    ARM: add mach-asm9260
    ARM: EXYNOS: use u8 for val[] in struct exynos_pmu_conf
    power: reset: imx-snvs-poweroff: add power off driver for i.mx6
    ARM: imx: temporarily remove CONFIG_SOC_FSL from LS1021A
    ...

    Linus Torvalds
     

13 Nov, 2014

1 commit

  • This patch removes all unused static iomapping from exynos4/5_iodesc
    table, and at the same time removes related macros from mach/map.h and
    plat/map-s5p.h. All such mappings are present in exynos.c but not
    currently there are no users of these mappings, so it is safe to remove
    these.

    Signed-off-by: Pankaj Dubey
    Signed-off-by: Kukjin Kim

    Pankaj Dubey
     

20 Oct, 2014

2 commits

  • Fix building of exynos_defconfig with CONFIG_PM_SLEEP disabled and
    CONFIG_ARM_EXYNOS_CPUIDLE enabled by:

    * adding EXYNOS_CPU_SUSPEND config option
    * always building sleep.o
    * building pm.o if EXYNOS_CPU_SUSPEND is enabled
    * moving suspend specific code from pm.c to suspend.c
    * enabling pm-common.o build also for EXYNOS_CPU_SUSPEND option

    [ Please note that there are no changes in the code moved from pm.c
    to suspend.c except making few functions non-static and cleaning
    up includes. ]

    Also while at it update Copyright dates.

    The build error messages:
    drivers/built-in.o: In function `exynos_enter_core0_aftr':
    /home/bzolnier/linux/drivers/cpuidle/cpuidle-exynos.c:36: undefined reference to `cpu_suspend'
    arch/arm/mach-exynos/built-in.o:(.data+0x74): undefined reference to `exynos_enter_aftr'
    make: *** [vmlinux] Error 1

    This patch has been tested on Exynos4210 based Origen board.

    Signed-off-by: Bartlomiej Zolnierkiewicz
    Acked-by: Kyungmin Park
    Signed-off-by: Kukjin Kim

    Bartlomiej Zolnierkiewicz
     
  • A platform_driver does not need to set an owner, it will be populated by the
    driver core.

    Signed-off-by: Wolfram Sang

    Wolfram Sang
     

15 Oct, 2014

1 commit

  • …/linux-samsung into fixes

    Merge "Samsung fixes for v3.18" from Kukjin Kim:

    - fix ifdef around cpu_*_do_[suspend, resume] ops to check
    CONFIG_ARM_CPU_SUSPEND and not CONFIG_PM_SLEEP
    - fix exynos_defconfig build with PM_SLEEP=n and ARM_EXYNOS_CPUIDLE=n
    - fix enabling Samsung PM debug functionality due to recently merged
    patches and previous merge conflicts
    - fix pull-up setting in sd4_width8 pin group for exynos4x12

    * tag 'samsung-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    ARM: mm: Fix ifdef around cpu_*_do_[suspend, resume] ops
    ARM: EXYNOS: Fix build with PM_SLEEP=n and ARM_EXYNOS_CPUIDLE=n
    ARM: SAMSUNG: Restore Samsung PM Debug functionality
    ARM: dts: Fix pull setting in sd4_width8 pin group for exynos4x12

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

    Olof Johansson
     

02 Oct, 2014

2 commits

  • Clearing obj-y, obj-m, obj-n, obj- in each Makefile is
    a useless habit.

    They are non-exported variables; therefore they are always empty
    whenever descending into each subdirectory.
    (Moreorver, obj-y and obj-m are also set to empty at the beginning
    of scripts/Makefile.build)

    Signed-off-by: Masahiro Yamada
    Acked-by: Nicolas Ferre
    Acked-by: Peter Foley
    Acked-by: Linus Walleij
    Signed-off-by: Michal Marek

    Masahiro Yamada
     
  • In these Makefiles, at least one of "obj-y" and "obj-" is non-empty,
    hence built-in.o is always created without such a trick.

    Signed-off-by: Masahiro Yamada
    Acked-by: Peter Foley
    Acked-by: Mike Turquette
    Acked-by: Simon Horman [shmobile]
    Acked-by: David S. Miller [networking]
    Signed-off-by: Michal Marek

    Masahiro Yamada
     

24 Sep, 2014

1 commit

  • Due to recently merged patches and previous merge conflicts, the Samsung
    PM Debug functionality no longer can be enabled. This patch fixes
    incorrect dependency of SAMSUNG_PM_DEBUG on an integer symbol and adds
    missing header inclusion.

    Signed-off-by: Tomasz Figa
    Signed-off-by: Kukjin Kim

    Tomasz Figa
     

27 Jul, 2014

1 commit

  • * cleanup/gpio-header-removal:
    ARM: delete old reference to ARM_GPIOLIB_COMPLEX
    ARM: kill CONFIG_NEED_MACH_GPIO_H
    ARM: mach-s5p: get rid of all headers
    ARM: s5p: cut the custom ARCH_NR_GPIOS definition

    This resolves a massive amount of conflicts between the
    mach/gpio.h removal and the s5p platform removal.

    Almost all changes are trivial, as both sides remove
    stuff.

    Conflicts:
    arch/arm/Kconfig
    arch/arm/mach-s5p64x0/common.c
    arch/arm/mach-s5p64x0/dev-audio.c
    arch/arm/mach-s5p64x0/include/mach/gpio-samsung.h
    arch/arm/mach-s5p64x0/mach-smdk6440.c
    arch/arm/mach-s5p64x0/mach-smdk6450.c
    arch/arm/mach-s5p64x0/setup-fb-24bpp.c
    arch/arm/mach-s5p64x0/setup-i2c0.c
    arch/arm/mach-s5p64x0/setup-i2c1.c
    arch/arm/mach-s5p64x0/setup-sdhci-gpio.c
    arch/arm/mach-s5p64x0/setup-spi.c
    arch/arm/mach-s5pc100/dev-audio.c
    arch/arm/mach-s5pc100/include/mach/gpio-samsung.h
    arch/arm/mach-s5pc100/mach-smdkc100.c
    arch/arm/mach-s5pc100/setup-fb-24bpp.c
    arch/arm/mach-s5pc100/setup-i2c0.c
    arch/arm/mach-s5pc100/setup-i2c1.c
    arch/arm/mach-s5pc100/setup-ide.c
    arch/arm/mach-s5pc100/setup-keypad.c
    arch/arm/mach-s5pc100/setup-sdhci-gpio.c
    arch/arm/mach-s5pc100/setup-spi.c
    arch/arm/mach-s5pv210/dev-audio.c
    arch/arm/mach-s5pv210/include/mach/gpio-samsung.h
    arch/arm/mach-s5pv210/mach-aquila.c
    arch/arm/mach-s5pv210/mach-goni.c
    arch/arm/mach-s5pv210/mach-smdkv210.c
    arch/arm/mach-s5pv210/setup-fb-24bpp.c
    arch/arm/mach-s5pv210/setup-fimc.c
    arch/arm/mach-s5pv210/setup-i2c0.c
    arch/arm/mach-s5pv210/setup-i2c1.c
    arch/arm/mach-s5pv210/setup-i2c2.c
    arch/arm/mach-s5pv210/setup-ide.c
    arch/arm/mach-s5pv210/setup-keypad.c
    arch/arm/mach-s5pv210/setup-sdhci-gpio.c
    arch/arm/mach-s5pv210/setup-spi.c
    arch/arm/plat-samsung/Kconfig
    arch/arm/plat-samsung/s5p-irq-eint.c

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

26 Jul, 2014

2 commits

  • …nux-samsung into next/soc

    Merge "Samsung S5PV210 DT support for v3.17" from Kukjin Kim:

    - support common clock framework for s5pv210 clock
    - add generic PHY driver on s5pv210 to support it via DT
    - add dt support for s5pv210-goni, smdkc110, smdkv210 and torbreck boards
    - remove board files from mach-s5pv210 and unused codes
    - enable multiplatform for s5pv210

    * tag 's5pv210-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    clk: samsung: s5pv210: Remove legacy board support
    ARM: SAMSUNG: Remove remaining legacy code
    gpio: samsung: Remove legacy support of S5PV210
    ARM: S5PV210: Enable multi-platform build support
    cpufreq: s5pv210: Make the driver multiplatform aware
    ARM: S5PV210: Register cpufreq platform device
    ARM: S5PV210: move debug-macro.S into the common space
    ARM: S5PV210: Untie PM support from legacy code
    ARM: S5PV210: Remove support for board files
    ARM: dts: Add Device tree for s5pc110/s5pv210 boards
    ARM: dts: Add Device tree for s5pv210 SoC
    ARM: S5PV210: Add board file for boot using Device Tree
    phy: Add support for S5PV210 to the Exynos USB 2.0 PHY driver
    clk: samsung: Add S5PV210 Audio Subsystem clock driver
    ARM: SAMSUNG: Remove legacy clock code
    serial: samsung: Remove support for legacy clock code
    cpufreq: s3c24xx: Remove some dead code
    ARM: S5PV210: Migrate clock handling to Common Clock Framework
    clk: samsung: Add clock driver for S5PV210 and compatible SoCs

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

    Arnd Bergmann
     
  • …linux-samsung into next/soc

    Merge "Samsung power management related updates for v3.17" from Kukjin Kim

    - support cluster power off on exynos5420 and exynos5800
    to save power.
    - use PMU address via DT to remove PMU static mapping
    - remove exynos_cpuidle_init() and exynos_cpufreq_init()

    * Note that this is including tags/samsung-cleanup and
    tags/exynos-cpuidle are already merged into arm-soc.

    * tag 'power-exynos' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    ARM: EXYNOS: Move cpufreq and cpuidle device registration to init_machine
    ARM: EXYNOS: Refactored code for using PMU address via DT
    ARM: EXYNOS: Support cluster power off on exynos5420/5800

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

    Arnd Bergmann
     

23 Jul, 2014

1 commit

  • Under "arm/mach-exynos" many files are using PMU register offsets.
    Since we have added support for accessing PMU base address via DT,
    now we can remove PMU mapping from exynosX_iodesc. Let's convert
    all these access using iomapped address.
    This will help us in removing static mapping of PMU base address
    as well as help in reducing dependency over machine header files.
    Thus helping for migration of PMU implementation from machine to
    driver folder which can be reused for ARM64 based SoC.

    Also as we have removed static mappings from "regs-pmu.h" it does
    not need map.h anymore. But "platsmp.c" needed this and till now it
    got included indirectly. So lets move header inclusion of
    "mach/map.h" from "regs-pmu.h" to "platsmp.c".

    Signed-off-by: Pankaj Dubey
    Reviewed-by: Tomasz Figa
    Signed-off-by: Kukjin Kim

    Pankaj Dubey
     

19 Jul, 2014

4 commits