From: Michal Simek Date: Mon, 8 Jun 2020 15:16:16 +0200 Subject: [PATCH 1/7] Revert "mmc: zynq: parse dt when probing" In-Reply-To: <553e8d7f-d8af-44c8-39e7-42d5f207fde4@samsung.com> References: <84f084eee198fb340631c739df6c05550a1a995a.1590144247.git.michal.simek@xilinx.com> <553e8d7f-d8af-44c8-39e7-42d5f207fde4@samsung.com> Message-ID: <5f015749-9b2e-a916-e0fe-29e52333114d@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27. 05. 20 8:44, Jaehoon Chung wrote: > Hi > > On 5/22/20 7:44 PM, Michal Simek wrote: >> From: Ashok Reddy Soma >> >> This reverts commit 942b5fc03218d1c94468fc658e7dec65dabcc830. >> >> This is partial revert of the above commit. >> >> mmc_of_parse() is reading no-1-8-v from device tree and if set, >> it is clearing the UHS speed capabilities of cfg->host_caps. >> cfg->host_caps &= ~(UHS_CAPS | MMC_MODE_HS200 | >> MMC_MODE_HS400 | MMC_MODE_HS400_ES); >> >> This is still missing to clear UHS speeds like SDHCI_SUPPORT_SDR104, >> SDHCI_SUPPORT_SDR50 and SDHCI_SUPPORT_DDR50. >> >> Even if we clear the flags SDHCI_SUPPORT_XXX in mmc_of_parse(), >> these speed flags are getting set again in cfg->host_caps in >> sdhci_setup_cfg(). >> >> The reason for this is, SDHCI_SUPPORT_XXX flags are cleared >> only if controller is not capable of supporting MMC_VDD_165_195 volts. >> >> if (caps & SDHCI_CAN_VDD_180) >> cfg->voltages |= MMC_VDD_165_195; >> >> if (!(cfg->voltages & MMC_VDD_165_195)) >> caps_1 &= ~(SDHCI_SUPPORT_SDR104 | SDHCI_SUPPORT_SDR50 | >> SDHCI_SUPPORT_DDR50); > > I don't have a target to test with zynq_sdhci. > If there is no effect no-1-8-v property, i think that it needs to fix main problem. > I will check about this. Have you had any time to take a look at it? Thanks, Michal