OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbd5a16
)
pcmcia: soc_common: fix SS_STSCHG polarity
author
Russell King
<rmk+kernel@armlinux.org.uk>
Wed, 31 Aug 2016 07:49:43 +0000
(08:49 +0100)
committer
Russell King
<rmk+kernel@armlinux.org.uk>
Mon, 12 Sep 2016 09:57:01 +0000
(10:57 +0100)
SS_STSCHG should be set for an IO card when the BVD1 signal is asserted
low, not high.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/pcmcia/soc_common.c
patch
|
blob
|
history
diff --git
a/drivers/pcmcia/soc_common.c
b/drivers/pcmcia/soc_common.c
index
eed5e9c
..
d5ca760
100644
(file)
--- a/
drivers/pcmcia/soc_common.c
+++ b/
drivers/pcmcia/soc_common.c
@@
-235,7
+235,7
@@
static unsigned int soc_common_pcmcia_skt_state(struct soc_pcmcia_socket *skt)
stat |= skt->cs_state.Vcc ? SS_POWERON : 0;
if (skt->cs_state.flags & SS_IOCARD)
- stat |= state.bvd1 ?
SS_STSCHG : 0
;
+ stat |= state.bvd1 ?
0 : SS_STSCHG
;
else {
if (state.bvd1 == 0)
stat |= SS_BATDEAD;