Date: Sat, 18 Oct 2014 18:27:25 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273263 - head/sys/arm/ti Message-ID: <201410181827.s9IIRPMW085849@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: loos Date: Sat Oct 18 18:27:24 2014 New Revision: 273263 URL: https://svnweb.freebsd.org/changeset/base/273263 Log: Fix the chan address for mtx_sleep() on bus wait. Without this fix the threads waiting for the bus would never wake. X-MFC-With: r270230 Modified: head/sys/arm/ti/ti_i2c.c Modified: head/sys/arm/ti/ti_i2c.c ============================================================================== --- head/sys/arm/ti/ti_i2c.c Sat Oct 18 17:51:34 2014 (r273262) +++ head/sys/arm/ti/ti_i2c.c Sat Oct 18 18:27:24 2014 (r273263) @@ -380,7 +380,7 @@ ti_i2c_transfer(device_t dev, struct iic /* If the controller is busy wait until it is available. */ while (sc->sc_bus_inuse == 1) - mtx_sleep(dev, &sc->sc_mtx, 0, "i2cbuswait", 0); + mtx_sleep(sc, &sc->sc_mtx, 0, "i2cbuswait", 0); /* Now we have control over the I2C controller. */ sc->sc_bus_inuse = 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410181827.s9IIRPMW085849>