mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
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: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
cbd5a16820
commit
a466ebd2fc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user