Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Jul 2018 14:12:08 -0700
From:      Ravi Pokala <rpokala@freebsd.org>
To:        Justin Hibbits <jhibbits@FreeBSD.org>, <src-committers@freebsd.org>, <svn-src-all@freebsd.org>, <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r336144 - head/sys/powerpc/powernv
Message-ID:  <40FE6456-9543-461F-AD9A-1F974D13F190@panasas.com>
In-Reply-To: <201807092033.w69KXnqw045501@repo.freebsd.org>
References:  <201807092033.w69KXnqw045501@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----Original Message-----
From: <owner-src-committers@freebsd.org> on behalf of Justin Hibbits <jhibbits@FreeBSD.org>
Date: 2018-07-09, Monday at 13:33
To: <src-committers@freebsd.org>, <svn-src-all@freebsd.org>, <svn-src-head@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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40FE6456-9543-461F-AD9A-1F974D13F190>