Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2021 11:57:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 258994] iic(4): Panics on Nanopi Neo when using 16-bit device addressing width: panic: Assertion strlen(description) < MAX_W_NAME failed at ... sys/kern/subr_witness.c:1914
Message-ID:  <bug-258994-227-APejOQHAAf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258994-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258994-227@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #4 from alydiomc@yahoo.com ---
Comment on attachment 228624
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228624
twsi.c driver

Seems the driver does not handle 16bit wide addressing properly.

I made some modification. Looks to be working.

root@nanopi-neo:~/prog/I2C # ./i2c -s -f /dev/iic0
Scanning I2C devices on /dev/iic0: 57 68

root@nanopi-neo:~/prog/I2C # ./i2c -a 0x57 -f /dev/iic0 -d r -o 0 -w 16 -c =
16
-m tr
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f

root@nanopi-neo:~/prog/I2C # echo -n "test" | ./i2c -a 0x57 -f /dev/iic0 -d=
 w
-o 0x6 -w 16 -c 4 -m tr
root@nanopi-neo:~/prog/I2C # ./i2c -a 0x57 -f /dev/iic0 -d r -o 0 -w 16 -c =
16
-m tr
00 01 02 03 04 05 74 65 73 74 0a 0b 0c 0d 0e 0f

root@nanopi-neo:~/prog/I2C # date;./ds1307 -s;./ds1307 -r
Tue Oct 12 19:45:35 PST 2021
19:45:35 12/10/2021

root@nanopi-neo:~/prog/I2C # ./i2c -a 0x68 -f /dev/iic0 -d r -o 0 -w 8 -c 1=
 -m
tr
15
root@nanopi-neo:~/prog/I2C # ./i2c -a 0x68 -f /dev/iic0 -d r -o 0 -w 8 -c 1=
 -m
tr
16

--=20
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-258994-227-APejOQHAAf>