usbx icon indicating copy to clipboard operation
usbx copied to clipboard

Terminate the hid interrupt out endpoint on deactivate

Open Nictrla opened this issue 1 year ago • 3 comments

The endpoint is not properly closed and reopened, when unplugging / re-plugging the USB connector (on a device with a second power source and no VBUS detection). This causes issues receiving data on the HID out endpoint by Interrupt transfer.

Nictrla avatar Nov 28 '24 15:11 Nictrla

@eclipse-threadx/iot-threadx-committers, I need a volunteer with porting expertise to review this contribution.

fdesbiens avatar Dec 06 '24 10:12 fdesbiens

This looks like up your alley, @rahmanih. Do you think you could review this contribution?

fdesbiens avatar Dec 12 '24 15:12 fdesbiens

Do you think you will be able to look at this, @rahmanih?

fdesbiens avatar Jan 15 '25 21:01 fdesbiens

@fdesbiens the point is valid and can be merged

ABOUSTM avatar Jun 04 '25 12:06 ABOUSTM

This is a bug we also encountered. The solution is fine, but I would add an additional safeguard with an if statement, because even with the preprocessor flag enabled, there might be an instance without out_ep, since it's optional

pjgorgon avatar Sep 18 '25 17:09 pjgorgon

@Pjgorgon you are right it optional endpoint, @fdesbiens can you merge this PR since it was approved by commuter I will make another PR

ayedm1 avatar Sep 21 '25 21:09 ayedm1