1. 17 3月, 2016 10 次提交
  2. 16 3月, 2016 2 次提交
    • M
      mmc: mmc_spi: Add Card Detect comments and fix CD GPIO case · bcdc9f26
      Magnus Damm 提交于
      This patch fixes the MMC SPI driver from doing polling card detect when a
      CD GPIO that supports interrupts is specified using the gpios DT property.
      
      Without this patch the DT node below results in the following output:
      
       spi_gpio: spi-gpio { /* SD2 @ CN12 */
               compatible = "spi-gpio";
               #address-cells = <1>;
               #size-cells = <0>;
               gpio-sck = <&gpio6 16 GPIO_ACTIVE_HIGH>;
               gpio-mosi = <&gpio6 17 GPIO_ACTIVE_HIGH>;
               gpio-miso = <&gpio6 18 GPIO_ACTIVE_HIGH>;
               num-chipselects = <1>;
               cs-gpios = <&gpio6 21 GPIO_ACTIVE_LOW>;
               status = "okay";
      
               spi@0 {
                       compatible = "mmc-spi-slot";
                       reg = <0>;
                       voltage-ranges = <3200 3400>;
                       spi-max-frequency = <25000000>;
                       gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;   /* CD */
               };
       };
      
       # dmesg | grep mmc
       mmc_spi spi32766.0: SD/MMC host mmc0, no WP, no poweroff, cd polling
       mmc0: host does not support reading read-only switch, assuming write-enable
       mmc0: new SDHC card on SPI
       mmcblk0: mmc0:0000 SU04G 3.69 GiB
       mmcblk0: p1
      
      With this patch applied the "cd polling" portion above disappears.
      Signed-off-by: NMagnus Damm <damm+renesas@opensource.se>
      Cc: stable@vger.kernel.org # v3.18+
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      bcdc9f26
    • J
      mmc: tegra: Disable UHS-I modes for tegra114 · 7bf037d6
      Jon Hunter 提交于
      SD card support for Tegra114 started failing after commit a8e326a9
      ("mmc: tegra: implement module external clock change") was merged. This
      commit was part of a series to enable UHS-I modes for Tegra. To
      workaround this problem for now, disable UHS-I modes for Tegra114 by
      separating the soc data structures for Tegra114 and Tegra124 so that
      UHS-I is still enabled for Tegra124 but not Tegra114.
      
      Fixes: a8e326a9 ("mmc: tegra: implement module external clock change")
      Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
      Reviewed-by: NLucas Stach <dev@lynxeye.de>
      Acked-by: NThierry Reding <treding@nvidia.com>
      Acked-by: NAdrian Hunter <adrian.hunter@intel.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      7bf037d6
  3. 29 2月, 2016 28 次提交