From owner-svn-src-head@freebsd.org Mon Jul 9 21:12:13 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4501F1030952; Mon, 9 Jul 2018 21:12:13 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EEBE0875CE; Mon, 9 Jul 2018 21:12:12 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from [172.17.133.41] (unknown [12.202.168.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rpokala) by smtp.freebsd.org (Postfix) with ESMTPSA id 4AE34DF86; Mon, 9 Jul 2018 21:12:12 +0000 (UTC) (envelope-from rpokala@freebsd.org) User-Agent: Microsoft-MacOutlook/10.e.1.180613 Date: Mon, 09 Jul 2018 14:12:08 -0700 Subject: Re: svn commit: r336144 - head/sys/powerpc/powernv From: Ravi Pokala To: Justin Hibbits , , , Message-ID: <40FE6456-9543-461F-AD9A-1F974D13F190@panasas.com> Thread-Topic: svn commit: r336144 - head/sys/powerpc/powernv References: <201807092033.w69KXnqw045501@repo.freebsd.org> In-Reply-To: <201807092033.w69KXnqw045501@repo.freebsd.org> Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 21:12:13 -0000 -----Original Message----- From: on behalf of Justin Hibbits Date: 2018-07-09, Monday at 13:33 To: , , 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