From owner-cvs-all@FreeBSD.ORG Mon Aug 4 20:47:18 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4867C106564A; Mon, 4 Aug 2008 20:47:18 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3444B8FC12; Mon, 4 Aug 2008 20:47:18 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m74KlI1R053925; Mon, 4 Aug 2008 20:47:18 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m74KlIn6053924; Mon, 4 Aug 2008 20:47:18 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200808042047.m74KlIn6053924@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 4 Aug 2008 20:46:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/arm/at91 at91_twi.c src/sys/arm/xscale/ixp425 ixp425_iic.c src/sys/dev/bktr bktr_i2c.c src/sys/dev/iicbus iicbb.c src/sys/dev/pcf envctrl.c pcf.c pcf_ebus.c pcf_isa.c pcfvar.h src/sys/dev/ppbus lpbb.c src/sys/pci viapm.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 20:47:18 -0000 jhb 2008-08-04 20:46:15 UTC FreeBSD src repository Modified files: sys/arm/at91 at91_twi.c sys/arm/xscale/ixp425 ixp425_iic.c sys/dev/bktr bktr_i2c.c sys/dev/iicbus iicbb.c sys/dev/pcf envctrl.c pcf.c pcf_ebus.c pcf_isa.c pcfvar.h sys/dev/ppbus lpbb.c sys/pci viapm.c Log: SVN rev 181303 on 2008-08-04 20:46:15Z by jhb Add locking to the various iicbus(4) bridge drivers: - Just grab Giant in the ixp425_iic(4) driver since this driver uses a shared address/data register window pair to access the actual I2C registers. None of the other ixp425 drivers lock access to these shared address/data registers yet and that would need to be done before this could use any meaningful locking. - Add locking to the interrupt handler and 'iicbus_reset' methods of the at91_twi(4) driver. - Add locking to the pcf(4) driver. Other pcf(4) fixes include: - Don't needlessly zero the softc. - Use bus_foo rather than bus_space_foo and remove bus space tag and handle from softc. - The lpbb(4) driver just grabs Giant for now. This will be refined later when ppbus(4) is locked. - As was done with smbus earlier, move the DRIVER_MODULE() lines to match the bus driver (either iicbus or iicbb) to the bridge driver into the bridge drivers. Tested by: sam (arm/ixp425) Revision Changes Path 1.12 +7 -0 src/sys/arm/at91/at91_twi.c 1.3 +9 -0 src/sys/arm/xscale/ixp425/ixp425_iic.c 1.31 +1 -0 src/sys/dev/bktr/bktr_i2c.c 1.20 +1 -10 src/sys/dev/iicbus/iicbb.c 1.9 +8 -5 src/sys/dev/pcf/envctrl.c 1.26 +48 -15 src/sys/dev/pcf/pcf.c 1.8 +6 -4 src/sys/dev/pcf/pcf_ebus.c 1.10 +6 -4 src/sys/dev/pcf/pcf_isa.c 1.4 +14 -6 src/sys/dev/pcf/pcfvar.h 1.20 +41 -13 src/sys/dev/ppbus/lpbb.c 1.21 +1 -0 src/sys/pci/viapm.c