31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    the code contained herein is licensed under the gnu general public
    license you may obtain a copy of the gnu general public license
    version 2 or later at the following locations http www opensource
    org licenses gpl license html http www gnu org copyleft gpl html

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

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

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

    Thomas Gleixner
     

21 May, 2019

1 commit


02 Nov, 2017

1 commit


03 Mar, 2016

1 commit


30 Jan, 2016

1 commit


02 Oct, 2015

1 commit

  • On drivers/clk/mxs/clk-frac.c, the function clk_frac_round_rate returned a bad
    result. The division before multiplication computes a wrong value ; the
    calculation is inverted to fix the problem. The second issue is that the exact
    rate have decimals and they are truncate. The consequence is that the function
    clk_frac_set_rate (which use the result of clk_frac_round_rate) computes a
    wrong value for the register (the rate generated can be closer to the desired
    rate). The correction is : if there is decimal to the result, it is rounded to
    the next larger integer.
    On drivers/clk/mxs/clk-frac.c, the function clk_frac_recalc_rate returned
    a bad result. The multiplication is made before the division to compute a
    correct value.

    Signed-off-by: Victorien Vedrine
    Acked-by: Shawn Guo
    Signed-off-by: Stephen Boyd

    Victorien Vedrine
     

21 Jul, 2015

1 commit

  • Clock provider drivers generally shouldn't include clk.h because
    it's the consumer API. The clk.h include is being included in all
    mxs files because it's part of mxs/clk.h even though nothing
    actually requires it in that file. Move the clk.h include to the
    C files that are actually using it and remove the clk.h include
    from the header file. The clkdev.h include isn't used either, so
    drop it too.

    Acked-by: Shawn Guo
    Signed-off-by: Stephen Boyd

    Stephen Boyd
     

05 Jun, 2015

1 commit

  • Since commit 2893c379461a ("clk: make strings in parent name arrays
    const") the name of parent clocks can be const. So add more const in
    several clock drivers.

    Signed-off-by: Uwe Kleine-König
    Acked-by: Heiko Stuebner
    Acked-by: Sylwester Nawrocki
    Signed-off-by: Stephen Boyd

    Uwe Kleine-König
     

13 Apr, 2015

1 commit

  • The statement

    static const char *name[];

    defines a modifiable array of pointers to constant chars. That is

    *name[0] = 'f';

    is forbidden, but

    name[0] = "f";

    is not. So marking an array that is defined as above with __initconst is
    wrong. Either an additional const must be added such that the whole
    definition reads:

    static const char *const name[] __initconst;

    or where this is not possible __initdata must be used.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Michael Turquette

    Uwe Kleine-König
     

30 Sep, 2013

1 commit

  • This patch converts clk-imx2[38] clocksource_of_init compatible init
    associated with fsl,imx2[38]-clkctrl. With arch/arm calling
    of_clk_init(NULL) from time_init(), we can now also remove custom
    .init_time hooks.

    Signed-off-by: Sebastian Hesselbarth
    Acked-by: Mike Turquette
    Acked-by: Shawn Guo

    Sebastian Hesselbarth
     

20 Aug, 2013

1 commit

  • Add a CLK_SET_RATE_NO_REPARENT clock flag, which will prevent muxes
    being reparented during clk_set_rate.

    To avoid breaking existing platforms, all callers of clk_register_mux()
    are adjusted to pass the new flag. Platform maintainers are encouraged
    to remove the flag if they wish to allow mux reparenting on set_rate.

    Signed-off-by: James Hogan
    Reviewed-by: Stephen Boyd
    Cc: Mike Turquette
    Cc: Russell King
    Cc: Sascha Hauer
    Cc: Stephen Warren
    Cc: Viresh Kumar
    Cc: Kukjin Kim
    Cc: Haojian Zhuang
    Cc: Chao Xie
    Cc: Arnd Bergmann
    Cc: "Emilio López"
    Cc: Gregory CLEMENT
    Cc: Maxime Ripard
    Cc: Prashant Gaikwad
    Cc: Thierry Reding
    Cc: Peter De Schrijver
    Cc: Pawel Moll
    Cc: Catalin Marinas
    Cc: Andrew Chew
    Cc: Doug Anderson
    Cc: Heiko Stuebner
    Cc: Paul Walmsley
    Cc: Sylwester Nawrocki
    Cc: Thomas Abraham
    Cc: Tomasz Figa
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-samsung-soc@vger.kernel.org
    Cc: spear-devel@list.st.com
    Cc: linux-tegra@vger.kernel.org
    Tested-by: Haojian Zhuang
    Acked-by: Stephen Warren [tegra]
    Acked-by: Maxime Ripard [sunxi]
    Acked-by: Sören Brinkmann [Zynq]
    Signed-off-by: Mike Turquette

    James Hogan
     

09 Aug, 2013

1 commit


31 May, 2013

1 commit

  • Fix the following sparse warnings:

    drivers/clk/mxs/clk-imx28.c:72:5: warning: symbol 'mxs_saif_clkmux_select' was not declared. Should it be static?
    drivers/clk/mxs/clk-imx28.c:156:12: warning: symbol 'mx28_clocks_init' was not declared. Should it be static?

    Signed-off-by: Fabio Estevam
    Acked-by: Shawn Guo
    Signed-off-by: Mike Turquette
    [mturquette@linaro.org: fixed $SUBJECT line]

    Fabio Estevam
     

11 Apr, 2013

1 commit

  • Bringin in clk subsystem dependencies needed by sunxi.

    * depends/clk-for-3.10: (26 commits)
    clk: sunxi: drop an unnecesary kmalloc
    clk: sunxi: drop CLK_IGNORE_UNUSED
    clk: sunxi: Add support for AXI, AHB, APB0 and APB1 gates
    clk: divider: Introduce CLK_DIVIDER_ALLOW_ZERO flag
    clk: mvebu: Use common of_clk_init() function
    clk: fix clk_mux::flags kerneldoc
    clk: allow reentrant calls into the clk framework
    clk: abstract locking out into helper functions
    clk: zynq: Add missing zynq clk header
    clk: sunxi: rename compatible strings
    arm: sunxi: Add useful information about sunxi clocks
    clk: arm: sunxi: Add a new clock driver for sunxi SOCs
    clk: ux500: Fix prcmu clocks registration
    ARM: imx: adapt clk_busy_mux to new clk_mux struct
    clk: Add composite clock type
    clk: add table lookup to mux
    clk: Fix incorrect return type in clk.c
    clk: prima2: fix return value check in sirfsoc_of_clk_init()
    clk:SPEAr1340: Correct parent clock configuration
    documentation: clk: fix couple of misspelling
    ...

    Olof Johansson
     

01 Apr, 2013

4 commits


20 Mar, 2013

1 commit

  • Fix the following sparse warnings:

    drivers/clk/mxs/clk.c:17:1: warning: symbol 'mxs_lock' was not declared. Should it be static?
    drivers/clk/mxs/clk.c:19:5: warning: symbol 'mxs_clk_wait' was not declared. Should it be static?

    Signed-off-by: Fabio Estevam
    Acked-by: Shawn Guo
    Signed-off-by: Mike Turquette

    Fabio Estevam
     

22 Feb, 2013

1 commit

  • Pull ARM SoC-specific updates from Arnd Bergmann:
    "This is a larger set of new functionality for the existing SoC
    families, including:

    - vt8500 gains support for new CPU cores, notably the Cortex-A9 based
    wm8850

    - prima2 gains support for the "marco" SoC family, its SMP based
    cousin

    - tegra gains support for the new Tegra4 (Tegra114) family

    - socfpga now supports a newer version of the hardware including SMP

    - i.mx31 and bcm2835 are now using DT probing for their clocks

    - lots of updates for sh-mobile

    - OMAP updates for clocks, power management and USB

    - i.mx6q and tegra now support cpuidle

    - kirkwood now supports PCIe hot plugging

    - tegra clock support is updated

    - tegra USB PHY probing gets implemented diffently"

    * tag 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (148 commits)
    ARM: prima2: remove duplicate v7_invalidate_l1
    ARM: shmobile: r8a7779: Correct TMU clock support again
    ARM: prima2: fix __init section for cpu hotplug
    ARM: OMAP: Consolidate OMAP USB-HS platform data (part 3/3)
    ARM: OMAP: Consolidate OMAP USB-HS platform data (part 1/3)
    arm: socfpga: Add SMP support for actual socfpga harware
    arm: Add v7_invalidate_l1 to cache-v7.S
    arm: socfpga: Add entries to enable make dtbs socfpga
    arm: socfpga: Add new device tree source for actual socfpga HW
    ARM: tegra: sort Kconfig selects for Tegra114
    ARM: tegra: enable ARCH_REQUIRE_GPIOLIB for Tegra114
    ARM: tegra: Fix build error w/ ARCH_TEGRA_114_SOC w/o ARCH_TEGRA_3x_SOC
    ARM: tegra: Fix build error for gic update
    ARM: tegra: remove empty tegra_smp_init_cpus()
    ARM: shmobile: Register ARM architected timer
    ARM: MARCO: fix the build issue due to gic-vic-to-irqchip move
    ARM: shmobile: r8a7779: Correct TMU clock support
    ARM: mxs_defconfig: Select CONFIG_DEVTMPFS_MOUNT
    ARM: mxs: decrease mxs_clockevent_device.min_delta_ns to 2 clock cycles
    ARM: mxs: use apbx bus clock to drive the timers on timrotv2
    ...

    Linus Torvalds
     

05 Feb, 2013

1 commit

  • timer resolution of ~32us is pretty low.
    v2 has 32bits resolution, so we have quite some headroom, and
    can use the 24MHz clock.
    v1 has only 16bits, so we only increase v2.

    So we just exchange the timrot clock in imx28.
    On imx23 we have timrotv1 and everything stays the same.

    Signed-off-by: Torben Hohn
    Signed-off-by: Shawn Guo

    Torben Hohn
     

16 Jan, 2013

1 commit

  • Fix the following warnings when building with W=1 option:

    drivers/clk/mxs/clk-imx23.c: In function 'mx23_clocks_init':
    drivers/clk/mxs/clk-imx23.c:149:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    drivers/clk/mxs/clk-imx23.c:165:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    ...

    drivers/clk/mxs/clk-imx28.c: In function 'mx28_clocks_init':
    drivers/clk/mxs/clk-imx28.c:227:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    drivers/clk/mxs/clk-imx28.c:244:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    Signed-off-by: Fabio Estevam
    Acked-by: Shawn Guo
    Signed-off-by: Mike Turquette

    Fabio Estevam
     

17 Nov, 2012

1 commit


03 Oct, 2012

1 commit

  • Pull spi updates from Mark Brown:
    "No framework work here, only a bunch of driver updates of varying
    sizes:

    - Factoring out of the core hardware support from the MXS MMC driver
    by Marek Vasut to allow the hardware to also be used for SPI.
    - Lots of error handling cleanups from Guenter Roeck
    - Removal of the existing Tegra driver which is quite comprehensively
    broken as detailed in the changelog for the removal.
    - DT suppport for the PL022 and GPIO drivers.
    - pinctrl support for OMAP and PL022."

    Pulling from Mark Brown as Grant Likely is still busy moving.

    * tag 'spi-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc: (53 commits)
    spi: remove completely broken Tegra driver
    spi/imx: set the inactive state of the clock according to the clock polarity
    spi/pl022: get/put resources on suspend/resume
    spi/pl022: use more managed resources
    spi/pl022: Devicetree support w/o platform data
    spi/s3c64xx: Don't free controller_data on non-dt platforms
    spi: omap2-mcspi: add pinctrl support
    spi/pl022: adopt pinctrl support
    spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function
    spi/gpio: Fix stub for spi_gpio_probe_dt()
    spi/mxs: Make the SPI block clock speed configurable via DT
    spi: spi-sh-hspi: drop frees of devm_ alloc'd data
    spi/pl022: Fix chipselects pointer computation
    spi: spi-tle62x0: Use module_spi_driver macro
    mxs/spi: Rework the mxs_ssp_timeout to be more readable
    mxs/spi: Decrement the DMA/PIO border
    mxs/spi: Increment the transfer length only if transfer succeeded
    mxs/spi: Fix issues when doing long continuous transfer
    spi: spi-gpio: Add DT bindings
    spi: spi-gpio: store chipselect information in private structure
    ...

    Linus Torvalds
     

02 Oct, 2012

1 commit

  • Pull ARM soc-specific updates, take 2 from Olof Johansson:
    "This branch converts the MXS Freescale platform to use irqdomains and
    sparse IRQ, in preparation for DT probing and multiplatform kernels."

    * tag 'soc2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    ARM: mxs: remove mach/irqs.h
    ARM: mxs: select SPARSE_IRQ
    ARM: mxs: adopt irq_domain support for icoll driver
    ARM: mxs: select MULTI_IRQ_HANDLER
    ARM: mxs: retrieve timer irq from device tree
    gpio/mxs: adopt irq_domain support for mxs gpio driver

    Linus Torvalds
     

11 Sep, 2012

2 commits

  • It really becomes a maintenance issue that every time a device needs
    to look up (clk_get) a clock we have to patch kernel clock file to call
    clk_register_clkdev for that clock.

    Since clock DT support which is meant to resolve clock lookup in device
    tree is in place, the patch moves imx23 client devices' clock lookup
    over to device tree, so that any new lookup to be added at later time
    can just get done in DT instead of kernel.

    Signed-off-by: Shawn Guo

    Shawn Guo
     
  • It really becomes a maintenance issue that every time a device needs
    to look up (clk_get) a clock we have to patch kernel clock file to call
    clk_register_clkdev for that clock.

    Since clock DT support which is meant to resolve clock lookup in device
    tree is in place, the patch moves imx28 client devices' clock lookup
    over to device tree, so that any new lookup to be added at later time
    can just get done in DT instead of kernel.

    Signed-off-by: Shawn Guo

    Shawn Guo
     

03 Sep, 2012

1 commit


18 Aug, 2012

1 commit


13 Jul, 2012

1 commit


12 Jul, 2012

2 commits


05 Jul, 2012

1 commit


27 Jun, 2012

3 commits


26 Jun, 2012

2 commits

  • The struct clk_lookup are marked as __initdata, resulting in being
    removed from memory after the kernel finished booting. However this
    leads to a NULL pointer de-ref if loading a module which uses clk_get.

    This patch removes the __initdata from the struct clk_lookup.

    Signed-off-by: Marc Kleine-Budde
    Signed-off-by: Shawn Guo
    Signed-off-by: Mike Turquette

    Marc Kleine-Budde
     
  • The definition of clocks ref_io0 and ref_io1 were inverted. It causes
    a mmc regression on some boards right away. Fix the regression by
    correcting the ref_io clock definition.

    Reported-by: Maxime Ripard
    Signed-off-by: Shawn Guo
    Signed-off-by: Mike Turquette

    Shawn Guo
     

13 May, 2012

1 commit

  • The register HW_SSP_VERSION is broken for ssp version detection,
    as the address of the register is different between imx23 and imx28.
    Let's use platform_device_id to detect the device, so that the use
    of cpu_is_xxx can be removed.

    Signed-off-by: Shawn Guo
    Acked-by: Chris Ball

    Shawn Guo
     

12 May, 2012

1 commit

  • Rewrite mxs_dma_is_apbh and mxs_dma_is_apbx in order to support
    other SoCs like imx6q and reform the platform_device_id for the
    better further dt support.

    Cc: Dan Williams
    Cc: Sascha Hauer
    Cc: Huang Shijie
    Signed-off-by: Dong Aisheng
    Signed-off-by: Shawn Guo
    Acked-by: Marek Vasut
    Acked-by: Vinod Koul

    Shawn Guo