07 Jul, 2016

1 commit

  • We have the following file --> Kconfig mapping:

    sunxi/clk-factors.c obj-y
    sunxi/clk-sun6i-apb0-gates.c CONFIG_MFD_SUN6I_PRCM (bool)
    sunxi/clk-sun6i-apb0.c CONFIG_MFD_SUN6I_PRCM
    sunxi/clk-sun6i-ar100.c CONFIG_MFD_SUN6I_PRCM
    sunxi/clk-sun8i-apb0.c CONFIG_MFD_SUN6I_PRCM
    sunxi/clk-sun9i-mmc.c obj-y

    Hence none of these are being built as a module by anyone.

    Lets remove the modular code that is essentially orphaned, so that
    when reading the drivers there is no doubt they are builtin-only. All
    drivers get mostly the same changes, so they are handled in batch.

    Changes are (1) convert to builtin_platform_register, (2) use the
    init.h header, (3) delete the MODULE_LICENCE/MODULE_AUTHOR and
    associated tags, and (4) delete any ".remove" functions.

    There was a stray module.h in a file not using any init.h or
    module.h stuff, so we simply removed that one.

    In two cases, we explicitly disallow a driver unbind, since that
    doesn't have a sensible use case anyway, and it allows us to drop
    the ".remove" code for non-modular drivers.

    Since module_platform_driver() uses the same init level priority as
    builtin_platform_driver() the init ordering remains unchanged with
    this commit.

    We delete the MODULE_LICENSE etc. tags since all that information
    is already contained at the top of each file in the comments.

    Acked-by: Boris Brezillon
    Cc: Chen-Yu Tsai
    Cc: "Emilio López"
    Cc: Stephen Boyd
    Acked-by: Maxime Ripard
    Cc: linux-clk@vger.kernel.org
    Signed-off-by: Paul Gortmaker
    Signed-off-by: Michael Turquette
    Link: lkml.kernel.org/r/20160704211220.5685-9-paul.gortmaker@windriver.com

    Paul Gortmaker
     

12 Feb, 2016

1 commit


17 Sep, 2015

1 commit


26 Sep, 2014

1 commit

  • There is no need to init .owner field.

    Based on the patch from Peter Griffin
    "mmc: remove .owner field for drivers using module_platform_driver"

    This patch removes the superflous .owner field for drivers which
    use the module_platform_driver API, as this is overriden in
    platform_driver_register anyway."

    Signed-off-by: Kiran Padwal
    Signed-off-by: Mike Turquette

    Kiran Padwal
     

29 Jul, 2014

1 commit


26 Jul, 2014

1 commit


15 Jul, 2014

2 commits


07 Jul, 2014

1 commit

  • sun6i-a31-apb0-gates supports using clock-indices for holes between
    individual gates. However, the driver passes the number of gates
    registered in clk_data->clk_num, which of_clk_src_onecell_get uses
    to recognize the range of valid indices a consumer can use.

    This patch makes the driver pass the maximum gate index + 1, so
    of_clk_src_onecell_get does not complain about indices greater
    than gates registered.

    This was tested on the A23 SoC, which has a similar APB0 clock,
    but has holes for gates to removed IP blocks.

    Signed-off-by: Chen-Yu Tsai
    Acked-by: Maxime Ripard
    Signed-off-by: Maxime Ripard

    Chen-Yu Tsai
     

02 Jul, 2014

1 commit

  • devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure.

    A simplified version of the semantic match that finds this problem is as
    follows:

    //
    @@
    expression e,e1;
    statement S;
    @@

    *e = devm_ioremap_resource(...);
    if (!e1) S

    //

    Signed-off-by: Himangi Saraogi
    Acked-by: Julia Lawall
    Acked-by Boris BREZILLON
    Signed-off-by: Mike Turquette

    Himangi Saraogi
     

11 Jun, 2014

1 commit

  • The PRCM (Power/Reset/Clock Management) unit provides several clock
    devices:
    - AR100 clk: used to clock the Power Management co-processor
    - AHB0 clk: used to clock the AHB0 bus
    - APB0 clk and gates: used to clk peripherals connected to the APB0 bus

    Add support for these clks in a separate driver so that they can be probed
    as platform devices instead of registered during early init.
    This is needed to be able to probe PRCM MFD subdevices.

    Signed-off-by: Boris BREZILLON
    Acked-by: Maxime Ripard
    Signed-off-by: Emilio López

    Boris BREZILLON