]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- According to section 2.2.5 of the SDHCI specification version 4.20,
authormarius <marius@FreeBSD.org>
Thu, 23 Aug 2018 17:50:41 +0000 (17:50 +0000)
committermarius <marius@FreeBSD.org>
Thu, 23 Aug 2018 17:50:41 +0000 (17:50 +0000)
commit0b4e2ed1d70c2d535d9a4d562fb6188afa6cf65f
tree1fef51658707b18bdbedea291437f61f8e78578e
parentefa4592c55c071e5e8e93722b81fb15bbca68a59
- According to section 2.2.5 of the SDHCI specification version 4.20,
  SDHCI_TRNS_ACMD12 is to be set only for multiple-block read/write
  commands without data length information, so don't unconditionally
  set this bit. The result matches what e. g. Linux does.
- Section 2.2.19 of the SDHCI specification version 4.20 states that
  SDHCI_ACMD12_ERR should be only valid if SDHCI_INT_ACMD12ERR is set
  and hardware may clear SDHCI_ACMD12_ERR when SDHCI_INT_ACMD12ERR is
  cleared (differing silicon behavior is specifically allowed, though).
  Thus, read SDHCI_ACMD12_ERR before clearing SDHCI_INT_ACMD12ERR.
  While at it, use the 16-bit accessor rather than the 32-bit one for
  reading the 16-bit SDHCI_ACMD12_ERR.
- SDHCI_INT_TUNEERR isn't one of the ROC bits in SDHCI_INT_STATUS so
  clear it explicitly.
- Add missing prototypes and sort them.
sys/dev/sdhci/sdhci.c