svn commit: r336144 - head/sys/powerpc/powernv
Ravi Pokala
rpokala at freebsd.org
Mon Jul 9 21:12:13 UTC 2018
-----Original Message-----
From: <owner-src-committers at freebsd.org> on behalf of Justin Hibbits <jhibbits at FreeBSD.org>
Date: 2018-07-09, Monday at 13:33
To: <src-committers at freebsd.org>, <svn-src-all at freebsd.org>, <svn-src-head at freebsd.org>
Subject: svn commit: r336144 - head/sys/powerpc/powernv
> Author: jhibbits
> Date: Mon Jul 9 20:33:48 2018
> New Revision: 336144
> URL: https://svnweb.freebsd.org/changeset/base/336144
>
> Log:
> powerpc/powernv: Make opal_i2c driver work with attached i2c drivers
>
> * FreeBSD stores addresses in 8 bit format, but the OPAL API requires the 7-bit
> address, and encodes the direction elsewhere. Behave like other i2c drivers,
> and shift accordingly.
You got seven contiguous address bits? LUXURY!
Look for "slave" and "write_op" in sys/dev/imcsmb.c:imcsmb_transfer(); it's "hilarious".
-Ravi
More information about the svn-src-all
mailing list