Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Oct 2022 13:56:06 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Axel Rau <Axel.Rau@Chaos1.DE>
Cc:        hardware@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: Accessing I2C-Bus via ELV USB-I2C
Message-ID:  <16b3de9c-7ee5-4c8e-e010-8fc5d9cfc3c4@selasky.org>
In-Reply-To: <23E6D546-DAEF-468D-AE40-752EEB279C8A@Chaos1.DE>
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> <23E6D546-DAEF-468D-AE40-752EEB279C8A@Chaos1.DE>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/5/22 18:31, Axel Rau wrote:
> 
> 
>> Am 05.10.2022 um 16:46 schrieb Hans Petter Selasky <hps@selasky.org>:
>>
>> 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?
>>
>> The uslcom driver only does this right after attach, in 13-stable and 14-main.
>>
>> Does the attached patch make any difference for you?
>>
>> --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
> ---
> PGP-Key: CDE74120  ☀  computing @ chaos claudius
> 
> 

Hi,

You just need to rebuild the uslcom.ko and kldunload it.

make -C /usr/src/sys/modules/usb/uslcom all install KMODDIR=/boot/kernel

Anyway, here you go:

https://cgit.freebsd.org/src/commit/?id=9e0edafe92ad9fc6745ee4c4c58e45a49b9e7ed1

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16b3de9c-7ee5-4c8e-e010-8fc5d9cfc3c4>