1. 12 3月, 2018 1 次提交
  2. 27 1月, 2018 1 次提交
  3. 22 12月, 2017 2 次提交
  4. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  5. 02 9月, 2017 1 次提交
    • A
      clk: mb86s7x: Drop non-building driver · 8bb48f79
      Andreas Färber 提交于
      It fails to build once we introduce the ARCH_MB86S7X Kconfig symbol:
      
        drivers/clk/clk-mb86s7x.c:27:10: fatal error: soc/mb86s7x/scb_mhu.h: No such file or directory
         #include <soc/mb86s7x/scb_mhu.h>
                  ^~~~~~~~~~~~~~~~~~~~~~~
        compilation terminated.
      
      And when commenting out that line, we get:
      
        drivers/clk/clk-mb86s7x.c: In function 'crg_gate_control':
        drivers/clk/clk-mb86s7x.c:72:8: error: implicit declaration of function 'mb86s7x_send_packet' [-Werror=implicit-function-declaration]
          ret = mb86s7x_send_packet(CMD_PERI_CLOCK_GATE_SET_REQ,
                ^~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:72:28: error: 'CMD_PERI_CLOCK_GATE_SET_REQ' undeclared (first use in this function)
          ret = mb86s7x_send_packet(CMD_PERI_CLOCK_GATE_SET_REQ,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:72:28: note: each undeclared identifier is reported only once for each function it appears in
        drivers/clk/clk-mb86s7x.c: In function 'crg_rate_control':
        drivers/clk/clk-mb86s7x.c:116:10: error: 'CMD_PERI_CLOCK_RATE_SET_REQ' undeclared (first use in this function)
           code = CMD_PERI_CLOCK_RATE_SET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:121:10: error: 'CMD_PERI_CLOCK_RATE_GET_REQ' undeclared (first use in this function); did you mean 'CMD_PERI_CLOCK_RATE_SET_REQ'?
           code = CMD_PERI_CLOCK_RATE_GET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  CMD_PERI_CLOCK_RATE_SET_REQ
        drivers/clk/clk-mb86s7x.c: In function 'mhu_cluster_rate':
        drivers/clk/clk-mb86s7x.c:276:10: error: 'CMD_CPU_CLOCK_RATE_GET_REQ' undeclared (first use in this function)
           code = CMD_CPU_CLOCK_RATE_GET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
        drivers/clk/clk-mb86s7x.c:278:10: error: 'CMD_CPU_CLOCK_RATE_SET_REQ' undeclared (first use in this function); did you mean 'CMD_CPU_CLOCK_RATE_GET_REQ'?
           code = CMD_CPU_CLOCK_RATE_SET_REQ;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
                  CMD_CPU_CLOCK_RATE_GET_REQ
        cc1: some warnings being treated as errors
        scripts/Makefile.build:302: recipe for target
        'drivers/clk/clk-mb86s7x.o' failed
        make[2]: *** [drivers/clk/clk-mb86s7x.o] Error 1
      
      Remove the driver for now.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      8bb48f79
  6. 01 9月, 2017 1 次提交
  7. 31 8月, 2017 1 次提交
    • E
      ARC: clk: introduce HSDK pll driver · daeeb438
      Eugeniy Paltsev 提交于
      HSDK board manages its clocks using various PLLs. These PLL have same
      dividers and corresponding control registers mapped to different addresses.
      So we add one common driver for such PLLs.
      
      Each PLL on HSDK board consists of three dividers: IDIV, FBDIV and
      ODIV. Output clock value is managed using these dividers.
      
      We add pre-defined tables with supported rate values and appropriate
      configurations of IDIV, FBDIV and ODIV for each value.
      
      As of today we add support for PLLs that generate clock for the
      HSDK arc cpus, system, ddr, AXI tunnel and hdmi.
      
      By this patch we add support for several plls (arc cpus pll and others),
      so we had to use two different init types: CLK_OF_DECLARE for arc cpus pll
      and regular probing for others plls.
      Signed-off-by: NEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Reviewed-by: NVineet Gupta <vgupta@synopsys.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      daeeb438
  8. 11 7月, 2017 1 次提交
  9. 22 6月, 2017 1 次提交
  10. 15 6月, 2017 1 次提交
    • T
      clk: keystone: Add sci-clk driver support · b745c079
      Tero Kristo 提交于
      In K2G, the clock handling is done through firmware executing on a
      separate core. Linux kernel needs to communicate to the firmware
      through TI system control interface to access any power management
      related resources, including clocks.
      
      The keystone sci-clk driver does this, by communicating to the
      firmware through the TI SCI driver. The driver adds support for
      registering clocks through DT, and basic required clock operations
      like prepare/get_rate, etc.
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      [sboyd@codeaurora.org: Make ti_sci_init_clocks() static]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      b745c079
  11. 03 6月, 2017 1 次提交
    • D
      clk: add clk_bulk_get accessories · 266e4e9d
      Dong Aisheng 提交于
      These helper function allows drivers to get several clk consumers in
      one operation. If any of the clk cannot be acquired then any clks
      that were got will be put before returning to the caller.
      
      This can relieve the driver owners' life who needs to handle many clocks,
      as well as each clock error reporting.
      
      Cc: Michael Turquette <mturquette@baylibre.com>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      Cc: Sascha Hauer <kernel@pengutronix.de>
      Cc: Anson Huang <anson.huang@nxp.com>
      Cc: Robin Gong <yibin.gong@nxp.com>
      Cc: Bai Ping <ping.bai@nxp.com>
      Cc: Leonard Crestez <leonard.crestez@nxp.com>
      Cc: Octavian Purdila <octavian.purdila@nxp.com>
      Signed-off-by: NDong Aisheng <aisheng.dong@nxp.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      266e4e9d
  12. 24 5月, 2017 1 次提交
    • G
      clk: renesas: Rework Kconfig and Makefile logic · 80978a4b
      Geert Uytterhoeven 提交于
      The goals are to:
        - Allow precise control over and automatic selection of which
          (sub)drivers are used for which SoC (which may change in the
          future),
        - Allow adding support for new SoCs easily,
        - Allow compile-testing of all (sub)drivers,
        - Keep driver selection logic in the subsystem-specific Kconfig,
          independent from the architecture-specific Kconfig (i.e. no "select"
          from arch/arm64/Kconfig.platforms), to avoid dependencies.
      
      This is implemented by:
        - Introducing Kconfig symbols for all drivers and sub-drivers,
        - Introducing the Kconfig symbol CLK_RENESAS, which is enabled
          automatically when building for a Renesas ARM platform, and which
          enables all required drivers without interaction of the user, based
          on SoC-specific ARCH_* symbols,
        - Allowing the user to enable any Kconfig symbol manually if
          COMPILE_TEST is enabled,
        - Using the new Kconfig symbols instead of the ARCH_* symbols to
          control compilation in the Makefile,
        - Always entering drivers/clk/renesas/ during the build.
      
      Note that currently not all (sub)drivers are enabled for
      compile-testing, as they depend on independent fixes in other
      subsystems.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Acked-by: NSimon Horman <horms+renesas@verge.net.au>
      Acked-by: NStephen Boyd <sboyd@codeaurora.org>
      80978a4b
  13. 22 4月, 2017 1 次提交
  14. 27 1月, 2017 1 次提交
  15. 21 1月, 2017 1 次提交
  16. 24 9月, 2016 1 次提交
  17. 17 9月, 2016 1 次提交
  18. 16 8月, 2016 1 次提交
  19. 20 7月, 2016 1 次提交
  20. 09 7月, 2016 1 次提交
  21. 23 6月, 2016 1 次提交
  22. 13 5月, 2016 1 次提交
  23. 07 5月, 2016 1 次提交
  24. 22 4月, 2016 1 次提交
  25. 16 4月, 2016 1 次提交
  26. 02 4月, 2016 1 次提交
  27. 04 3月, 2016 1 次提交
  28. 02 3月, 2016 1 次提交
  29. 26 2月, 2016 1 次提交
  30. 30 1月, 2016 1 次提交
  31. 25 12月, 2015 1 次提交
  32. 08 12月, 2015 1 次提交
  33. 01 12月, 2015 1 次提交
  34. 17 11月, 2015 1 次提交
  35. 22 10月, 2015 2 次提交
  36. 09 10月, 2015 1 次提交
  37. 02 10月, 2015 1 次提交
  38. 28 9月, 2015 1 次提交
    • S
      clk: add support for clocks provided by SCP(System Control Processor) · cd52c2a4
      Sudeep Holla 提交于
      On some ARM based systems, a separate Cortex-M based System Control
      Processor(SCP) provides the overall power, clock, reset and system
      control. System Control and Power Interface(SCPI) Message Protocol
      is defined for the communication between the Application Cores(AP)
      and the SCP.
      
      This patch adds support for the clocks provided by SCP using SCPI
      protocol.
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      Reviewed-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Mike Turquette <mturquette@baylibre.com>
      Cc: Liviu Dudau <Liviu.Dudau@arm.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Jon Medhurst (Tixy) <tixy@linaro.org>
      Cc: linux-clk@vger.kernel.org
      cd52c2a4