https://github.com/torvalds/linux
Revision e2ebfb2142acefecc2496e71360f50d25726040b authored by Adrian Hunter on 20 March 2017, 17:50:29 UTC, committed by Ulf Hansson on 23 March 2017, 08:24:04 UTC
Disabling interrupts for even a millisecond can cause problems for some devices. That can happen when sdhci changes clock frequency because it waits for the clock to become stable under a spin lock. The spin lock is not necessary here. Anything that is racing with changes to the I/O state is already broken. The mmc core already provides synchronization via "claiming" the host. Although the spin lock probably should be removed from the code paths that lead to this point, such a patch would touch too much code to be suitable for stable trees. Consequently, for this patch, just drop the spin lock while waiting. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
1 parent 181302d
Tip revision: e2ebfb2142acefecc2496e71360f50d25726040b authored by Adrian Hunter on 20 March 2017, 17:50:29 UTC
mmc: sdhci: Do not disable interrupts while waiting for clock
mmc: sdhci: Do not disable interrupts while waiting for clock
Tip revision: e2ebfb2
File | Mode | Size |
---|---|---|
6lowpan | ||
802 | ||
8021q | ||
9p | ||
appletalk | ||
atm | ||
ax25 | ||
batman-adv | ||
bluetooth | ||
bridge | ||
caif | ||
can | ||
ceph | ||
core | ||
dcb | ||
dccp | ||
decnet | ||
dns_resolver | ||
dsa | ||
ethernet | ||
hsr | ||
ieee802154 | ||
ife | ||
ipv4 | ||
ipv6 | ||
ipx | ||
irda | ||
iucv | ||
kcm | ||
key | ||
l2tp | ||
l3mdev | ||
lapb | ||
llc | ||
mac80211 | ||
mac802154 | ||
mpls | ||
ncsi | ||
netfilter | ||
netlabel | ||
netlink | ||
netrom | ||
nfc | ||
openvswitch | ||
packet | ||
phonet | ||
psample | ||
qrtr | ||
rds | ||
rfkill | ||
rose | ||
rxrpc | ||
sched | ||
sctp | ||
smc | ||
strparser | ||
sunrpc | ||
switchdev | ||
tipc | ||
unix | ||
vmw_vsock | ||
wimax | ||
wireless | ||
x25 | ||
xfrm | ||
Kconfig | -rw-r--r-- | 13.6 KB |
Makefile | -rw-r--r-- | 2.4 KB |
compat.c | -rw-r--r-- | 24.4 KB |
socket.c | -rw-r--r-- | 80.9 KB |
sysctl_net.c | -rw-r--r-- | 3.0 KB |
Computing file changes ...