svn commit: r273263 - head/sys/arm/ti

Luiz Otavio O Souza loos at FreeBSD.org
Sat Oct 18 18:27:25 UTC 2014


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;


More information about the svn-src-all mailing list