From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 1/8] Revert "mmc: zynq: parse dt when probing"
Date: Mon, 26 Oct 2020 10:19:32 +0100 [thread overview]
Message-ID: <66f981f9-4e1f-d646-176c-ece82cd5b8f9@xilinx.com> (raw)
In-Reply-To: <3f6b5f7c-dc8d-c34e-baa8-bc6ecf77c9c6@samsung.com>
On 26. 10. 20 8:22, Jaehoon Chung wrote:
> On 10/23/20 8:14 PM, Michal Simek wrote:
>> From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
>>
>> 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);
>>
>> It means "no-1-8-v", which is read from DT is not coming in to effect.
>> So it is better we keep the host quirks(SDHCI_QUIRK_NO_1_8_V) to
>> clear UHS speeds based on no-1-8-v from device tree.
>>
>> Hence revert the functionality related to no-1-8-v only, rest is fine
>> in the patch.
>>
>> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>
> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Any comment for the rest of patches?
Thanks,
Michal
next prev parent reply other threads:[~2020-10-26 9:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-23 11:14 [PATCH v2 0/8] mmc: zynqmp_sdhci: Add support for Tap delay Michal Simek
2020-10-23 11:14 ` [PATCH v2 1/8] Revert "mmc: zynq: parse dt when probing" Michal Simek
2020-10-26 7:22 ` Jaehoon Chung
2020-10-26 9:19 ` Michal Simek [this message]
2020-10-23 11:14 ` [PATCH v2 2/8] mmc: Define timing macro's Michal Simek
2020-10-23 11:14 ` [PATCH v2 3/8] mmc: zynq_sdhci: Move macro to the top Michal Simek
2020-10-23 11:14 ` [PATCH v2 4/8] mmc: zynq_sdhci: Read clock phase delays from dt Michal Simek
2020-10-23 11:14 ` [PATCH v2 5/8] mmc: zynq_sdhci: Set tapdelays based on clk phase delays Michal Simek
2020-10-26 9:48 ` Jaehoon Chung
2020-10-26 11:21 ` Ashok Reddy Soma
2020-10-23 11:14 ` [PATCH v2 6/8] mmc: zynq_sdhci: Add clock phase delays for Versal Michal Simek
2020-10-23 11:14 ` [PATCH v2 7/8] mmc: zynq_sdhci: Extend UHS timings till hs200 Michal Simek
2020-10-23 11:14 ` [PATCH v2 8/8] mmc: zynq_sdhci: Add common function to set input/output tapdelays Michal Simek
2020-10-26 9:25 ` [PATCH v2 0/8] mmc: zynqmp_sdhci: Add support for Tap delay Peng Fan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66f981f9-4e1f-d646-176c-ece82cd5b8f9@xilinx.com \
--to=michal.simek@xilinx.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox