1. 13 11月, 2019 1 次提交
  2. 28 9月, 2019 1 次提交
  3. 11 9月, 2019 1 次提交
    • A
      mmc: sdhci-of-aspeed: Add support for the ASPEED SD controller · bb7b8ec6
      Andrew Jeffery 提交于
      Add a minimal driver for ASPEED's SD controller, which exposes two
      SDHCIs.
      
      The ASPEED design implements a common register set for the SDHCIs, and
      moves some of the standard configuration elements out to this common
      area (e.g. 8-bit mode, and card detect configuration which is not
      currently supported).
      
      The SD controller has a dedicated hardware interrupt that is shared
      between the slots. The common register set exposes information on which
      slot triggered the interrupt; early revisions of the patch introduced an
      irqchip for the register, but reality is it doesn't behave as an
      irqchip, and the result fits awkwardly into the irqchip APIs. Instead
      I've taken the simple approach of using the IRQ as a shared IRQ with
      some minor performance impact for the second slot.
      
      Ryan was the original author of the patch - I've taken his work and
      massaged it to drop the irqchip support and rework the devicetree
      integration. The driver has been smoke tested under qemu against a
      minimal SD controller model and lightly tested on an ast2500-evb.
      Signed-off-by: NRyan Chen <ryanchen.aspeed@gmail.com>
      Signed-off-by: NAndrew Jeffery <andrew@aj.id.au>
      Acked-by: NAdrian Hunter <adrian.hunter@intel.com>
      Reviewed-by: NJoel Stanley <joel@jms.id.au>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      bb7b8ec6
  4. 17 12月, 2018 2 次提交
  5. 09 10月, 2018 1 次提交
    • L
      mmc: mmci: add stm32 sdmmc variant · 46b723dd
      Ludovic Barre 提交于
      This patch adds a stm32 sdmmc variant, rev 1.1.
      Introduces a new Manufacturer id "0x53, ascii 'S' to define
      new stm32 sdmmc family with clean range of amba
      revision/configurations bits (corresponding to sdmmc_ver
      register with major/minor fields).
      Add 2 variants properties:
      -dma_lli, to enable link list support.
      -stm32_idmabsize_mask, defines the range of SDMMC_IDMABSIZER register
       which specify the number bytes per buffer.
      
      DT properties for sdmmc:
      -Indicate signal directions (only one property
       for d0dir, d123dir, cmd_dir)
      -Select command and data phase relation.
      -Select "clock in" from an external driver.
      Signed-off-by: NLudovic Barre <ludovic.barre@st.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      46b723dd
  6. 08 10月, 2018 2 次提交
    • C
      mmc: sdhci-sprd: Add Spreadtrum's initial host controller · fb8bd90f
      Chunyan Zhang 提交于
      This patch adds the initial support of Secure Digital Host Controller
      Interface compliant controller found in some latest Spreadtrum chipsets.
      This patch has been tested on the version of SPRD-R11 controller.
      
      R11 is a variant based on SD v4.0 specification.
      
      With this driver, R11 mmc can be initialized, can be mounted, read and
      written.
      Original-by: NBillows Wu <billows.wu@unisoc.com>
      Signed-off-by: NChunyan Zhang <chunyan.zhang@unisoc.com>
      Acked-by: NAdrian Hunter <adrian.hunter@intel.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      fb8bd90f
    • M
      mmc: uniphier-sd: add UniPhier SD/eMMC controller driver · 3fd784f7
      Masahiro Yamada 提交于
      Here is another TMIO MMC variant found in Socionext UniPhier SoCs.
      
      As commit b6147490 ("mmc: tmio: split core functionality, DMA and
      MFD glue") said, these MMC controllers use the IP from Panasonic.
      
      However, the MMC controller in the TMIO (Toshiba Mobile IO) MFD chip
      was the first upstreamed user of this IP.  The common driver code
      for this IP is now called 'tmio-mmc-core' in Linux although it is a
      historical misnomer.
      
      Anyway, this driver select's MMC_TMIO_CORE to borrow the common code
      from tmio-mmc-core.c
      
      Older UniPhier SoCs (LD4, Pro4, sLD8) support the external DMA engine
      like renesas_sdhi_sys_dmac.c.  The difference is UniPhier SoCs use a
      single DMA channel whereas Renesas chips request separate channels for
      RX and TX.
      
      Newer UniPhier SoCs (Pro5 and later) support the internal DMA engine
      like renesas_sdhi_internal_dmac.c  The register map is almost the same,
      so I guess Renesas and Socionext use the same internal DMA hardware.
      The main difference is, the register offsets are doubled for Renesas.
      
                              Renesas      Socionext
                              SDHI         UniPhier
        DM_CM_DTRAN_MODE      0x820        0x410
        DM_CM_DTRAN_CTRL      0x828        0x414
        DM_CM_RST             0x830        0x418
        DM_CM_INFO1           0x840        0x420
        DM_CM_INFO1_MASK      0x848        0x424
        DM_CM_INFO2           0x850        0x428
        DM_CM_INFO2_MASK      0x858        0x42c
        DM_DTRAN_ADDR         0x880        0x440
        DM_DTRAN_ADDREX        ---         0x444
      
      This comes from the difference of host->bus_shift; 2 for Renesas SoCs,
      and 1 for UniPhier SoCs.  Also, the datasheet for UniPhier SoCs defines
      DM_DTRAN_ADDR and DM_DTRAN_ADDREX as two separate registers.
      
      It could be possible to factor out the DMA common code by introducing
      some hooks to cope with platform quirks, but this patch does not touch
      that for now.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      3fd784f7
  7. 16 7月, 2018 2 次提交
  8. 21 5月, 2018 1 次提交
  9. 26 3月, 2018 1 次提交
  10. 15 3月, 2018 1 次提交
  11. 04 1月, 2018 1 次提交
  12. 15 12月, 2017 1 次提交
  13. 11 12月, 2017 1 次提交
  14. 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
  15. 30 10月, 2017 1 次提交
    • C
      mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs · ed80a13b
      Carlo Caione 提交于
      Add a driver for the SDIO/MMC host found on the Amlogic Meson SoCs. This
      is an MMC controller which provides an interface between the application
      processor and various memory cards. It supports the SD specification
      v2.0 and the eMMC specification v4.41.
      
      The controller provides an internal "mux" which allows connecting up to
      three MMC devices to it. Only one device can be used at a time though
      since the registers are shared across all devices. The driver takes care
      of synchronizing access (similar to the dw_mmc driver).
      The maximum supported bus-width is 4-bits.
      
      Amlogic's GPL kernel sources call the corresponding driver "aml_sdio" to
      differentiate it from the other MMC controller in (at least the Meson8
      and Meson8b) the SoCs (they call the other drivers aml_sdhc and
      aml_sdhc_m8, which seem to support a bus-width of up to 8-bits). This
      means that there are three different MMC host controller IP blocks from
      Amlogic (each of them with completely own register layout and features):
      - "SDIO": 1 and 4 bit bus width, support for high-speed modes up to
        UHS-I SDR50, part of Meson6, Meson8 and Meson8b (the driver from this
        patch targets this controller)
      - "SDHC": 1, 4 and 8 bit bus width, compatible with standard iNAND
        interface, support for speeds up to HS200 and MMC spec up to version
        4.5x, part of Meson8 and Meson8b SoCs (there is no mainline driver
        for this controller yet)
      - "SDEMMC": 1, 4 and 8 bit bus width, support for speeds up to HS400
        and MMC spec up to version 5.0, part of the Meson GX (64-bit) SoCs
        (supported by the meson-gx MMC host driver)
      Signed-off-by: NCarlo Caione <carlo@endlessm.com>
      Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      ed80a13b
  16. 22 9月, 2017 1 次提交
  17. 30 8月, 2017 2 次提交
  18. 20 6月, 2017 4 次提交
  19. 25 4月, 2017 5 次提交
  20. 13 2月, 2017 1 次提交
  21. 08 12月, 2016 1 次提交
  22. 29 11月, 2016 1 次提交
  23. 25 7月, 2016 2 次提交
  24. 29 2月, 2016 1 次提交
  25. 26 10月, 2015 1 次提交
  26. 24 8月, 2015 1 次提交
  27. 18 6月, 2015 1 次提交
  28. 28 3月, 2015 1 次提交