Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2015 02:05:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 198817] [PATCH] Update i2c(8) to use the I2CRDRW ioctl
Message-ID:  <bug-198817-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198817

            Bug ID: 198817
           Summary: [PATCH] Update i2c(8) to use the I2CRDRW ioctl
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: elbarto@bocal.org
          Keywords: patch

Created attachment 154684
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154684&action=edit
patch i2c(8)

This patch updates i2c(8) to use the I2CRDRW ioctl instead of the old start /
stop /read / write method.
i2c_read and i2c_write have been merged to one function.
Scanning works now on beaglebone :
$ i2c -s
Scanning I2C devices on /dev/iic0: 0x24 0x34 0x50 

And dumping the on-board eeprom works too :
$ i2c -a 0x50 -d r -o 0 -w16 -c 16 -b | hexdump -Cv

00000000  aa 55 33 ee 41 33 33 35  42 4e 4c 54 30 30 43 30  |.U3.A335BNLT00C0|
00000010

Cheers,

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198817-8>