freebsd-skq/sys
trasz 1c791e0200 Make sdhci(4) work after suspend/resume for chipsets that require
the frequency quirk. This makes it work on eg ThinkPad T420.

Without it, after resume one can see this:

mmc0: ACMD42 failed, RESULT: 4
mmcsd0: Error indicated: 1 Timeout
mmcsd0: Error indicated: 2 Bad CRC
mmcsd0: Error indicated: 2 Bad CRC
mmcsd0: Error indicated: 2 Bad CRC
mmcsd0: Error indicated: 2 Bad CRC
sdhci_pci0-slot0: Got data interrupt 0x00200000, but there is no active command.
sdhci_pci0-slot0: ============== REGISTER DUMP ==============
sdhci_pci0-slot0: Sys addr: 0x06317200 | Version: 0x00000502
sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000010
sdhci_pci0-slot0: Argument: 0x00000200 | Trn mode: 0x00000037
sdhci_pci0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000007
sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000
sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007
sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000
sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb
sdhci_pci0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000
sdhci_pci0-slot0: Caps: 0x21e8c8b2 | Max curr: 0x00000040
sdhci_pci0-slot0: ===========================================
sdhci_pci0-slot0: Got data interrupt 0x00200000, but there is no active command.
sdhci_pci0-slot0: ============== REGISTER DUMP ==============
sdhci_pci0-slot0: Sys addr: 0x06317200 | Version: 0x00000502
sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000001
sdhci_pci0-slot0: Argument: 0x00000040 | Trn mode: 0x00000013
sdhci_pci0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000007
sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000
sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007
sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000
autofs_flush: /net flushed
sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb
autofs_flush: /media flushed
sdhci_pci0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000
sdhci_pci0-slot0: Caps: 0x21e8c8b2 | Max curr: 0x00000040
sdhci_pci0-slot0: ===========================================

Afterwards all operations on /dev/mmcsd0 fail with EIO.

Reviewed by:	jhb@
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D6265
2016-05-11 07:50:35 +00:00
..
amd64 Add locking annotations to amd64 struct md_page members. 2016-05-10 09:58:51 +00:00
arm Pass device tree node as a part of gpio_pin_get_by_ofw_XXX API 2016-05-10 20:02:03 +00:00
arm64 Push the logic to talk with the MSI/MSI-X interrupt controller to the FDT 2016-05-10 15:45:59 +00:00
boot efipart: Support an arbitrary number of partitions 2016-05-05 00:07:08 +00:00
bsm
cam Allow sleepable allocations in enclosure daemon threads. 2016-05-10 16:20:36 +00:00
cddl Implement FBT provider (MD part) for DTrace on MIPS. 2016-05-05 13:54:50 +00:00
compat Implement ioremap_wt() and use that in the MEMREMAP_WT case for i386 2016-05-10 17:51:17 +00:00
conf Rename siba -> siba_s5, to specifically reference that it's for the 2016-05-10 22:38:39 +00:00
contrib Revert AccessWidth/BitOffset support for AcpiHwWrite() and AcpiHwRead() for 2016-04-30 06:48:48 +00:00
crypto aesni(4): Initialize error before use 2016-04-20 03:05:32 +00:00
ddb Revert r298938: Change x/a to work similar to gdb. 2016-05-06 20:28:28 +00:00
dev Make sdhci(4) work after suspend/resume for chipsets that require 2016-05-11 07:50:35 +00:00
fs Use vfs_hash_ref(9) to eliminate LK_EXCLOTHER kludge. As a 2016-05-11 06:35:46 +00:00
gdb
geom Add missing include "opt_geom.h" to make GEOM_UZIP_DEBUG option working, 2016-05-06 20:32:39 +00:00
gnu Change OpenWRT imported dtsi files 2016-04-20 14:29:03 +00:00
i386 Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00
isa sys/isa: minor spelling fixes. 2016-05-03 21:51:52 +00:00
kern Add vfs_hash_ref(9) function, which finds a vnode by the hash value 2016-05-11 06:32:22 +00:00
kgssapi kgssapi: insignificant spelling fix. 2016-05-03 22:05:03 +00:00
libkern sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
mips Rename siba -> siba_s5, to specifically reference that it's for the 2016-05-10 22:38:39 +00:00
modules sfxge(4): make efx_sram_test Siena-only 2016-05-11 06:21:07 +00:00
net Improve performance and functionality of the bitstring(3) api 2016-05-04 22:34:11 +00:00
net80211 net80211: restore 'iflladdr_event' event handler. 2016-05-06 11:41:49 +00:00
netgraph sys/netgraph: spelling fixes in comments. 2016-04-29 21:25:05 +00:00
netinet tcp/syncache: Add comment for syncache_respond 2016-05-10 04:59:04 +00:00
netinet6 Remove obsolescent comments from nd6_purge(). 2016-05-09 23:43:12 +00:00
netipsec netipsec: Fix minor style nit 2016-05-10 20:14:11 +00:00
netnatm kernel: use our nitems() macro when it is available through param.h. 2016-04-19 23:48:27 +00:00
netpfil Change the type of objhash_cb_t callback function to be able return an 2016-05-06 03:18:51 +00:00
netsmb sys/net*: minor spelling fixes. 2016-05-03 18:05:43 +00:00
nfs NFS: spelling fixes on comments. 2016-04-29 16:07:25 +00:00
nfsclient
nfsserver
nlm Remove slightly used const values that can be replaced with nitems(). 2016-04-21 15:38:28 +00:00
ofed sys/ofed: minor spelling fix. 2016-05-06 15:37:06 +00:00
opencrypto sys/opencrypto: minor spelling fixes. 2016-05-06 23:37:19 +00:00
pc98 Move 'device pci' for the PCI bus driver to the MI NOTES file. 2016-04-29 23:53:55 +00:00
powerpc Native PCI-express HotPlug support. 2016-05-05 22:26:23 +00:00
riscv Rework the list of all pmaps: embed the list link into pmap. 2016-04-26 14:38:18 +00:00
rpc sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
security sys/security: minor spelling fixes. 2016-05-06 16:59:04 +00:00
sparc64 sys/sparc64: minor spelling fixes. 2016-05-04 15:52:40 +00:00
sys Add vfs_hash_ref(9) function, which finds a vnode by the hash value 2016-05-11 06:32:22 +00:00
teken
tests
tools
ufs UFS: spelling fixes on comments. 2016-04-29 20:43:51 +00:00
vm Move vm_domain_rr_selectdomain() under #ifdef VM_NUMA_ALLOC. 2016-05-10 22:25:55 +00:00
x86 Allow orm(4) to be disabled from probing/attaching by a hints entry: 2016-05-10 22:28:06 +00:00
xdr RPC: for pointers replace 0 with NULL. 2016-04-14 17:06:37 +00:00
xen
Makefile