Commit 8048822
sdhci: tegra: Add missing TMCLK for data timeout
commit b5a84ec ("mmc: tegra: Add Tegra210 support")
Tegra210 and later has a separate sdmmc_legacy_tm (TMCLK) used by Tegra
SDMMC hawdware for data timeout to achive better timeout than using
SDCLK and using TMCLK is recommended.
USE_TMCLK_FOR_DATA_TIMEOUT bit in Tegra SDMMC register
SDHCI_TEGRA_VENDOR_SYS_SW_CTRL can be used to choose either TMCLK or
SDCLK for data timeout.
Default USE_TMCLK_FOR_DATA_TIMEOUT bit is set to 1 and TMCLK is used
for data timeout by Tegra SDMMC hardware and having TMCLK not enabled
is not recommended.
So, this patch adds quirk NVQUIRK_HAS_TMCLK for SoC having separate
timeout clock and keeps TMCLK enabled all the time.
Fixes: b5a84ec ("mmc: tegra: Add Tegra210 support")
Cc: stable <stable@vger.kernel.org> # 5.4
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Link: https://lore.kernel.org/r/1598548861-32373-8-git-send-email-skomatineni@nvidia.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>1 parent c956c0c commit 8048822
1 file changed
Lines changed: 51 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| |||
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| |||
1433 | 1440 | | |
1434 | 1441 | | |
1435 | 1442 | | |
1436 | | - | |
| 1443 | + | |
| 1444 | + | |
1437 | 1445 | | |
1438 | 1446 | | |
1439 | 1447 | | |
| |||
1471 | 1479 | | |
1472 | 1480 | | |
1473 | 1481 | | |
| 1482 | + | |
1474 | 1483 | | |
1475 | 1484 | | |
1476 | 1485 | | |
| |||
1483 | 1492 | | |
1484 | 1493 | | |
1485 | 1494 | | |
1486 | | - | |
| 1495 | + | |
| 1496 | + | |
1487 | 1497 | | |
1488 | 1498 | | |
1489 | 1499 | | |
| |||
1611 | 1621 | | |
1612 | 1622 | | |
1613 | 1623 | | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
1614 | 1661 | | |
1615 | 1662 | | |
1616 | 1663 | | |
| |||
1654 | 1701 | | |
1655 | 1702 | | |
1656 | 1703 | | |
| 1704 | + | |
1657 | 1705 | | |
1658 | 1706 | | |
1659 | 1707 | | |
| |||
1671 | 1719 | | |
1672 | 1720 | | |
1673 | 1721 | | |
| 1722 | + | |
1674 | 1723 | | |
1675 | 1724 | | |
1676 | 1725 | | |
| |||
0 commit comments