Add missing ~. We want all the INVALID bits to be 0... Let's see if this

helps people with their interrupt storm problem on card eject.
This commit is contained in:
Warner Losh 2006-04-16 23:16:45 +00:00
parent 47e065b48f
commit ebcd52935b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157803

View file

@ -662,7 +662,7 @@ cbb_intr(void *arg)
* we got garbage.
*/
sockevent = cbb_get(sc, CBB_SOCKET_EVENT);
if (sockevent != 0 && (sockevent & CBB_SOCKET_EVENT_VALID_MASK) == 0) {
if (sockevent != 0 && (sockevent & ~CBB_SOCKET_EVENT_VALID_MASK) == 0) {
/* ack the interrupt */
cbb_set(sc, CBB_SOCKET_EVENT, sockevent);