From owner-cvs-src@FreeBSD.ORG Mon Jun 21 13:02:45 2004 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 D4F5816A4CE; Mon, 21 Jun 2004 13:02:45 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE5B143D2D; Mon, 21 Jun 2004 13:02:45 +0000 (GMT) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5LD2PbL008483; Mon, 21 Jun 2004 13:02:25 GMT (envelope-from gallatin@repoman.freebsd.org) Received: (from gallatin@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5LD2PTP008479; Mon, 21 Jun 2004 13:02:25 GMT (envelope-from gallatin) Message-Id: <200406211302.i5LD2PTP008479@repoman.freebsd.org> From: Andrew Gallatin Date: Mon, 21 Jun 2004 13:02:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/rp rp.c rp_pci.c rpreg.h 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, 21 Jun 2004 13:02:46 -0000 gallatin 2004-06-21 13:02:25 UTC FreeBSD src repository Modified files: sys/dev/rp rp.c rp_pci.c rpreg.h Log: Prevent the rp driver from panic'ing on first access and make at least the pci device unloadable - Use ttymalloc() rather than a plain malloc to allocate the rp->rp_tty ttys. This is now required due to the recent locking changes to ttys and prevents a panic due to locking an unitialized t_mtx. - Allow the pci driver to be unloaded. This involved moving the call rp_releaseresource() to the end of rp_pcireleaseresource(), since rp_pcireleaseresource() uses ctlp->dev, which is freed by rp_releaseresource(). - Allow the generic part of the driver to be unattached by providing a hook to cancel timeouts. Glanced at by: obrien Revision Changes Path 1.61 +26 -21 src/sys/dev/rp/rp.c 1.9 +6 -7 src/sys/dev/rp/rp_pci.c 1.6 +1 -1 src/sys/dev/rp/rpreg.h