]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sdhci_fsl_fdt: Add full support for software reset
authorArtur Rojek <ar@semihalf.com>
Fri, 5 Nov 2021 09:16:30 +0000 (10:16 +0100)
committerWojciech Macek <wma@FreeBSD.org>
Fri, 5 Nov 2021 09:18:57 +0000 (10:18 +0100)
commit36b80dba1742acfeecfe8c26516c5cf16fd1346d
tree1f17ed53a20287ab65e29c3600198b6f7e0d23ef
parentb8f94506f2d4b0ae811f27c244896d044d8780bf
sdhci_fsl_fdt: Add full support for software reset

When performing software reset, this controller does not clear all the
required hw registers. In particular, tuning block is left in enabled
state, inhibiting operation of some eMMC cards. The existing solution
was to disable the ability to call SDHCI_RESET_ALL.

As this issue is now better understood, enable the SDHCI_RESET_ALL flag,
provide a custom reset devmethod and clear selected registers by hand.

Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D32705
sys/dev/sdhci/sdhci_fsl_fdt.c