Date: Thu, 15 Jan 2009 23:14:59 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/iicbus iic.c Message-ID: <200901152315.n0FNF6XF024765@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
nwhitehorn 2009-01-15 23:14:59 UTC FreeBSD src repository Modified files: sys/dev/iicbus iic.c Log: SVN rev 187321 on 2009-01-15 23:14:59Z by nwhitehorn Revert revision 186833 and try a different strategy to allow this device to work when the bus attaches its own children. Instead of hardcoding a unit number and returning BUS_PROBE_NOWILDCARD, which will break multiple iicbus systems, check in the probe routine whether the device address is 0. Real I2C devices will never have this address, but devices added with BUS_ADD_CHILD() will. Requested by: jhb Reviewed by: jhb Revision Changes Path 1.42 +6 -2 src/sys/dev/iicbus/iic.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901152315.n0FNF6XF024765>