Commit a466ebd2 authored by Russell King's avatar Russell King

pcmcia: soc_common: fix SS_STSCHG polarity

SS_STSCHG should be set for an IO card when the BVD1 signal is asserted
low, not high.
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent cbd5a168
...@@ -235,7 +235,7 @@ static unsigned int soc_common_pcmcia_skt_state(struct soc_pcmcia_socket *skt) ...@@ -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; stat |= skt->cs_state.Vcc ? SS_POWERON : 0;
if (skt->cs_state.flags & SS_IOCARD) if (skt->cs_state.flags & SS_IOCARD)
stat |= state.bvd1 ? SS_STSCHG : 0; stat |= state.bvd1 ? 0 : SS_STSCHG;
else { else {
if (state.bvd1 == 0) if (state.bvd1 == 0)
stat |= SS_BATDEAD; stat |= SS_BATDEAD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment