Skip to content

Conversation

engdoreis
Copy link

No description provided.

@@ -98,6 +98,7 @@ config OT_EARLGREY
select OT_SRAM_CTRL
select OT_TIMER
select OT_UART
select OT_USBDEV

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe OT_USB_DEVICE for consistency with OT_SPI_DEVICE (as well in filenames and symbols)?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that almost all are named according to the IP name (e.g. SRAM_CTRL, LC_CTRL, even SPI_DEVICE)? Therefore USBDEV seems to be right choice here?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of them, but not all of them (RV_*, for example).
I'm still looking for the rationale behing some naming (e.g. why [A-Z]+MGR but [A-Z]+_CTRL?) which make some signal naming a bit awkward.

Keep USBDEV for now if you think it is better.

CharBackend chr;
};

static void usbdev_update_irqs(OtUSBDEVState *s)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing ot_ prefix

@pamaury
Copy link

pamaury commented Sep 10, 2025

@engdoreis has asked me to take over the USB block. I have created a new PR #180 since I can't edit this one

@pamaury pamaury closed this Sep 10, 2025
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.

3 participants