From owner-cvs-src@FreeBSD.ORG Mon Aug 18 14:59:25 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5D7037B401; Mon, 18 Aug 2003 14:59:25 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D60B43F3F; Mon, 18 Aug 2003 14:59:25 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7ILxP0U032602; Mon, 18 Aug 2003 14:59:25 -0700 (PDT) (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7ILxPqo032601; Mon, 18 Aug 2003 14:59:25 -0700 (PDT) Message-Id: <200308182159.h7ILxPqo032601@repoman.freebsd.org> From: Warner Losh Date: Mon, 18 Aug 2003 14:59:24 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/pccbb pccbb.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 21:59:26 -0000 imp 2003/08/18 14:59:24 PDT FreeBSD src repository Modified files: sys/dev/pccbb pccbb.c Log: The CD bits in the CBB_SOCKET_STATE register are 0 when the card is present, and non-zero when it is (or may be) absent. The test cbb_child_present was backwards. However, typical usage in the tree would cause it to do the right thing because the card really wasn't there the OK flag would be turned on. Also, assume that if any of these bits are turned on we don't have a card, rather than requiring both of them in the suspend/resume routines. Noticed by: cognet Revision Changes Path 1.90 +3 -4 src/sys/dev/pccbb/pccbb.c