From nobody Wed Oct 5 14:46:21 2022 X-Original-To: hardware@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MjHSw5yFqz4TyD1; Wed, 5 Oct 2022 14:46:24 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjHSw22Ssz3bmX; Wed, 5 Oct 2022 14:46:24 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0EE982605B1; Wed, 5 Oct 2022 16:46:22 +0200 (CEST) Content-Type: multipart/mixed; boundary="------------f033SwVB7obDFfWe0FB4PvxW" Message-ID: Date: Wed, 5 Oct 2022 16:46:21 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Accessing I2C-Bus via ELV USB-I2C Content-Language: en-US To: Axel Rau Cc: hardware@freebsd.org, freebsd-hackers@freebsd.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> <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> From: Hans Petter Selasky In-Reply-To: <752FCC61-496D-40C5-8A99-143F15B1EE84@Chaos1.DE> X-Rspamd-Queue-Id: 4MjHSw22Ssz3bmX X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.20 / 15.00]; MIME_BASE64_TEXT_BOGUS(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MIME_BASE64_TEXT(0.10)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,hardware@freebsd.org]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_ATTACHMENT(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[selasky.org]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------f033SwVB7obDFfWe0FB4PvxW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------f033SwVB7obDFfWe0FB4PvxW Content-Type: text/x-patch; charset=UTF-8; name="0001-uslcom-4-Clear-stall-at-every-open.patch" Content-Disposition: attachment; filename="0001-uslcom-4-Clear-stall-at-every-open.patch" Content-Transfer-Encoding: base64 RnJvbSBjNTllY2M2YzM2MWY0OGYwOGI3MGQ0ZmVkOTA1NjY3YjYyZTIxZWQ2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBIYW5zIFBldHRlciBTZWxhc2t5IDxoc2VsYXNreUBG cmVlQlNELm9yZz4KRGF0ZTogV2VkLCA1IE9jdCAyMDIyIDE2OjQ1OjIxICswMjAwClN1Ympl Y3Q6IFtQQVRDSF0gdXNsY29tKDQpOiBDbGVhciBzdGFsbCBhdCBldmVyeSBvcGVuLgoKVG8g YXZvaWQgZGF0YSBsb3NzLCBtYWtlIHN1cmUgYm90aCB0aGUgcmVjZWl2ZSBhbmQgdHJhbnNt aXQgZGF0YSB0b2dnbGVzCmdldCByZXNldCwgYmVmb3JlIHRyeWluZyB0byByZWFkIG9yIHdy aXRlIGFueSBkYXRhLgoKTUZDIGFmdGVyOgkxIHdlZWsKU3BvbnNvcmVkIGJ5OglOVklESUEg TmV0d29ya2luZwotLS0KIHN5cy9kZXYvdXNiL3NlcmlhbC91c2xjb20uYyB8IDEwICsrKyst LS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyksIDYgZGVsZXRpb25zKC0p CgpkaWZmIC0tZ2l0IGEvc3lzL2Rldi91c2Ivc2VyaWFsL3VzbGNvbS5jIGIvc3lzL2Rldi91 c2Ivc2VyaW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