Skip to content

Fixed a race condition in r_usbh_pipe_xfer_out - #2

Open
vgololobov wants to merge 1 commit into
renesas:renesas_ra_usb_host_enhancementfrom
Embedd-it:renesas_ra_usb_host_enhancement
Open

Fixed a race condition in r_usbh_pipe_xfer_out#2
vgololobov wants to merge 1 commit into
renesas:renesas_ra_usb_host_enhancementfrom
Embedd-it:renesas_ra_usb_host_enhancement

Conversation

@vgololobov

Copy link
Copy Markdown

In the FSP, r_usb_host.c, r_usbh_pipe_xfer_out, the function r_usbh_pipe_wait_for_ready is called before actually writing to the pipe register. If an output interrupt request is queued it hangs. The call to r_usbh_pipe_wait_for_ready had to be moved after the write to D0FIFOSEL in order to fix this condition

Signed-off-by: Valentyn Gololobov <val@embedd.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants