Port-zaurus archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD/zaurus 8.1 problems and possible fixes



> > - zaudio(4) is not proped properly on all C700, C1000, and C3x00,
 :
> Filed as PR kern/54658:
>  https://gnats.netbsd.org/54658

The following minimum change (visible behaivor change from 8.x)
also makes zaudio(4) attached and functional again:

---
Index: dev/i2c/i2c.c
===================================================================
RCS file: /cvsroot/src/sys/dev/i2c/i2c.c,v
retrieving revision 1.69
diff -u -p -d -r1.69 i2c.c
--- dev/i2c/i2c.c	26 Mar 2019 09:20:38 -0000	1.69
+++ dev/i2c/i2c.c	2 Nov 2019 04:29:54 -0000
@@ -259,8 +259,13 @@ iic_search(device_t parent, cfdata_t cf,
 	if (iic_indirect_driver_is_whitelisted(sc, cf) == false)
 		return (0);
 
+#if 0
 	/* default to "quick write". */
 	probe_func = iic_probe_smbus_quick_write;
+#else
+	/* default to conservative method. */
+	probe_func = iic_probe_none;
+#endif
 
 	pstr = prop_dictionary_get(device_properties(sc->sc_dev),
 				   I2C_PROP_INDIRECT_PROBE_STRATEGY);


---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index