Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Oct 2022 10:39:35 +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:  <beafa2e5-17e7-491a-d104-a0ede1b69ce3@selasky.org>
In-Reply-To: <F81783C4-F79F-48A1-A5BE-25D997DF29DA@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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/4/22 01:35, Axel Rau wrote:
> 
> 
>> Am 03.10.2022 um 17:57 schrieb Hans Petter Selasky <hps@selasky.org>:
>>
>> Can you show the full sequence from the SUBM-CTRL-EP ?
> - - -
> 15:46:38.538480 usbus1.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
>   frame[0] WRITE 8 bytes
>   0000  41 07 01 01 00 00 00 00  -- -- -- -- -- -- -- --  |A.......        |
>   flags 0 <0>
>   status 0xca1a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> 15:46:38.539679 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
>   frame[0] WRITE 8 bytes
>   flags 0 <0>
>   status 0xca1a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> 15:46:38.539719 usbus1.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
>   frame[0] WRITE 8 bytes
>   0000  41 07 02 02 00 00 00 00  -- -- -- -- -- -- -- --  |A.......        |
>   flags 0 <0>
>   status 0xea1a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> 15:46:38.540291 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
>   frame[0] WRITE 8 bytes
>   flags 0 <0>
>   status 0xea1a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> - - -

That looks normal.

The DONE transaction transferred the SETUP packet, but still lists frame 
[0], but is not dumping the data, because it has already been sent. 
frame [0] is always the SETUP packet for control endpoints.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?beafa2e5-17e7-491a-d104-a0ede1b69ce3>