Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Oct 2022 18:31:26 +0200
From:      Axel Rau <Axel.Rau@Chaos1.DE>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        hardware@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: Accessing I2C-Bus via ELV USB-I2C
Message-ID:  <23E6D546-DAEF-468D-AE40-752EEB279C8A@Chaos1.DE>
In-Reply-To: <c033a26c-10e1-29e6-bc87-a81fe32cfb92@selasky.org>
References:  <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE> <35D556D7-56EC-4295-93D6-80A4CFE6DCE9@Chaos1.DE> <37c55124-5cd5-6fd1-ca46-9265ebe47b18@selasky.org> <602324D8-515B-4061-8689-5638E9A82759@Chaos1.DE> <2cb6203f-03da-9a05-24a5-c851f1424503@selasky.org> <F81783C4-F79F-48A1-A5BE-25D997DF29DA@Chaos1.DE> <beafa2e5-17e7-491a-d104-a0ede1b69ce3@selasky.org> <490EBA38-E103-4DC1-8A42-E16A8279980D@Chaos1.DE> <017C6EBE-910E-43E7-AAF7-A3D9ECE85EFF@Chaos1.DE> <84c5bc0b-1c72-d50d-6289-ac91a0878bd1@selasky.org> <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> <c033a26c-10e1-29e6-bc87-a81fe32cfb92@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8



> Am 05.10.2022 um 16:46 schrieb Hans Petter Selasky <hps@selasky.org>:
>=20
> On 10/5/22 13:55, Axel Rau wrote:
>> If I do not want to touch th USB stuff, can I get the same effect by =
close/open of the serial device?
>=20
> The uslcom driver only does this right after attach, in 13-stable and =
14-main.
>=20
> Does the attached patch make any difference for you?
>=20
> --HPS
> <0001-uslcom-4-Clear-stall-at-every-open.patch>
As this is a production server, I try to avoid reboots.

Meanwhile, I have inserted a read loop which eats the fragments
and allows the following status query to get a clean response.
With this patch, recovery seems to work.

Additionally I have eliminated a hub and connected the device directly =
to a port.
Hopefully this will stop the frequent `/dev/cuaU0: Bus connection =
lost`events.

Thanks for your time,
Axel
=2D--
PGP-Key: CDE74120  =E2=98=80  computing @ chaos claudius


--Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbs=
p-mode: space; line-break: after-white-space;" class=3D""><br class=3D"">=
<div><br class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">=
Am 05.10.2022 um 16:46 schrieb Hans Petter Selasky &lt;<a href=3D"mailto:=
hps@selasky.org" class=3D"">hps@selasky.org</a>&gt;:</div><br class=3D"Ap=
ple-interchange-newline"><div class=3D""><div class=3D"">On 10/5/22 =
13:55, Axel Rau wrote:<br class=3D""><blockquote type=3D"cite" class=3D""=
>If I do not want to touch th USB stuff, can I get the same effect by =
close/open of the serial device?<br class=3D""></blockquote><br class=3D"=
">The uslcom driver only does this right after attach, in 13-stable and =
14-main.<br class=3D""><br class=3D"">Does the attached patch make any =
difference for you?<br class=3D""><br class=3D"">--HPS<br class=3D""><spa=
n id=3D"cid:05653FFF-4DA4-424D-8FE0-1CBF8FE0F90C@in.chaos1.de">&lt;0001-u=
slcom-4-Clear-stall-at-every-open.patch&gt;</span></div></div></blockquot=
e></div>As this is a production server, I try to avoid reboots.<div =
class=3D""><br class=3D""></div><div class=3D"">Meanwhile, I have =
inserted a read loop which eats the fragments</div><div class=3D"">and =
allows the following status query to get a clean response.</div><div =
class=3D"">With this patch, recovery seems to work.</div><div class=3D"">=
<br class=3D""></div><div class=3D"">Additionally I have eliminated a =
hub and connected the device directly to a port.</div><div class=3D"">Hop=
efully this will stop the frequent `/dev/cuaU0: Bus connection lost`event=
s.</div><div class=3D""><br class=3D""></div><div class=3D"">Thanks for =
your time,</div><div class=3D"">Axel<br class=3D""><div class=3D"">
<div dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0); letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tex=
t-stroke-width: 0px; text-decoration: none; word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div=
 dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); =
letter-spacing: normal; text-align: start; text-indent: 0px; text-transfo=
rm: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-wid=
th: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode:=
 space; line-break: after-white-space;" class=3D""><div style=3D"color: =
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode:=
 space; line-break: after-white-space;" class=3D""><div style=3D"color: =
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode:=
 space; line-break: after-white-space;" class=3D""><div style=3D"color: =
rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-li=
gatures: normal; font-variant-position: normal; font-variant-caps: =
normal; font-variant-numeric: normal; font-variant-alternates: normal; =
font-variant-east-asian: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; orphans: 2; text-align: -webkit-auto; =
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word;=
 -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><di=
v class=3D"">---<br class=3D"">PGP-Key:&nbsp;CDE74120 &nbsp;=E2=98=80 =
&nbsp;computing @ chaos claudius</div></div></div></div></div></div>
</div>
<br class=3D""></div></body></html>

--Apple-Mail=_31A3D805-29A8-41CD-AB61-E08C5B1687EF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23E6D546-DAEF-468D-AE40-752EEB279C8A>