1. 27 8月, 2019 8 次提交
    • P
      pinctrl: pinctrl_stm32: cosmetic: Reorder include files · 73858264
      Patrice Chotard 提交于
      Reorder include files
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      73858264
    • P
      stm32mp1: cosmetic: remove comment · 4953f6c8
      Patrick Delaunay 提交于
      Remove unnecessary comment.
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      4953f6c8
    • P
      rtc: stm32: manage 2 digit limitation on year · fed51572
      Patrick Delaunay 提交于
      STM32 RTC manages only 2 digits for YEAR
      (Year tens and units in BCD format in RTC_DR register).
      
      With this patch, RTC driver assumes that tm->tm_years is between
      2000 and 2099; tm->tm_year - 2000 have only 2 digit
      (0 > and <= 99).
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      fed51572
    • P
      ARM: dts: stih410-b2260: Sync DT with kernel v5.2 · 0203050e
      Patrice Chotard 提交于
      Synchronize U-boot DT with kernel v5.2 for stih410-b2260.
      Update stih410-b2260-u-boot.dtsi accordingly.
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      0203050e
    • P
      mmc: sti_sdhci: Fix sdhci_setup_cfg() call. · 2e01fcf1
      Patrice Chotard 提交于
      host->mmc, host->mmc->dev and host->mmc->priv must be set
      before calling sdhci_setup_cfg() to avoid hang during mmc
      initialization.
      
      Thanks to commit 3d296365
      ("mmc: sdhci: Add support for sdhci-caps-mask") which put
      this issue into evidence.
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      Reviewed-by: NKever Yang <kever.yang@rock-chips.com>
      2e01fcf1
    • P
      mmc: stm32_sdmmc2: Increase SDMMC_BUSYD0END_TIMEOUT_US · 23441fbf
      Patrice Chotard 提交于
      Increase SDMMC_BUSYD0END_TIMEOUT_US from 1s to 2s to
      avoid timeout error during blocks erase on some sdcard
      
      Issue seen on Kingston 16GB :
        Device: STM32 SDMMC2
        Manufacturer ID: 27
        OEM: 5048
        Name: SD16G
        Bus Speed: 50000000
        Mode: SD High Speed (50MHz)
        card capabilities: widths [4, 1] modes [SD Legacy, SD High Speed (50MHz)]
        host capabilities: widths [4, 1] modes [MMC legacy, SD Legacy, MMC High Speed (26MHz), SD High Speed (50MHz), MMC High Speed (52MHz)]
        Rd Block Len: 512
        SD version 3.0
        High Capacity: Yes
        Capacity: 14.5 GiB
        Bus Width: 4-bit
        Erase Group Size: 512 Bytes
      
      Issue reproduced with following command:
      
      STM32MP> mmc erase 0 100000
      
      MMC erase: dev # 0, block # 0, count 1048576 ... mmc erase failed
      16384 blocks erased: ERROR
      
      By setting SDMMC_BUSYD0END_TIMEOUT_US at 2 seconds and by adding
      time measurement in stm32_sdmmc2_end_cmd() as shown below:
      
      	+start = get_timer(0);
      	/* Polling status register */
      	ret = readl_poll_timeout(priv->base + SDMMC_STA,
      				 status, status & mask,
       				 SDMMC_BUSYD0END_TIMEOUT_US);
      
      	+printf("time = %ld ms\n", get_timer(start));
      
      We get the following trace:
      
      STM32MP> mmc erase 0  100000
      
      MMC erase: dev # 0, block # 0, count 1048576 ...
      time = 17 ms
      time = 1 ms
      time = 1025 ms
      time = 54 ms
      time = 56 ms
      time = 1021 ms
      time = 57 ms
      time = 56 ms
      time = 1020 ms
      time = 53 ms
      time = 57 ms
      time = 1021 ms
      time = 53 ms
      time = 57 ms
      time = 1313 ms
      time = 54 ms
      time = 56 ms
      time = 1026 ms
      time = 54 ms
      time = 56 ms
      time = 1036 ms
      time = 54 ms
      time = 56 ms
      time = 1028 ms
      time = 53 ms
      time = 56 ms
      time = 1027 ms
      time = 54 ms
      time = 56 ms
      time = 1024 ms
      time = 54 ms
      time = 56 ms
      time = 1020 ms
      time = 54 ms
      time = 57 ms
      time = 1023 ms
      time = 54 ms
      time = 56 ms
      time = 1033 ms
      time = 53 ms
      time = 57 ms
      ....
      time = 53 ms
      time = 57 ms
      time = 1021 ms
      time = 56 ms
      time = 56 ms
      time = 1026 ms
      time = 54 ms
      time = 56 ms
      1048576 blocks erased: OK
      
      We see that 1 second timeout is not enough, we also see one measurement
      up to 1313 ms. Set the timeout to 2 second to keep a security margin.
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      23441fbf
    • T
      Prepare v2019.10-rc3 · d39221f3
      Tom Rini 提交于
      Signed-off-by: NTom Rini <trini@konsulko.com>
      d39221f3
    • T
      Merge branch '2019-08-26-master-imports' · 12277acd
      Tom Rini 提交于
      - Assorted minor bugfixes
      12277acd
  2. 26 8月, 2019 32 次提交