Date: Tue, 30 Apr 2019 02:18:34 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: spigen problem Message-ID: <1991993923.530828.1556558314174.JavaMail.yahoo@jws704008.mail.kks.yahoo.co.jp> References: <1991993923.530828.1556558314174.JavaMail.yahoo.ref@jws704008.mail.kks.yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi I add small spi lcd on RT3050. This lcd controller is=C2=A0S6D0151. S6D0151 transfer is tree byte command then tree byte data. I use spigen mruby rapper. This rapper use=C2=A0SPIGENIOC_TRANSFER. I try to send tree byte command. But spi transfer is six byte. This is reason. sys/dev/spibus/spigen.c =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0error =3D copyin(st->st_command.iov_base, = transfer.tx_cmd, =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 transfer.tx_cmd_sz =3D transfer.rx= _cmd_sz =3D st->st_command.iov_len); =C2=A0 This lcd not work six byte transfer. How do I fix this ? Regards Hiroki Mori
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1991993923.530828.1556558314174.JavaMail.yahoo>