Skip to content

Conversation

@gjbauer
Copy link

@gjbauer gjbauer commented Jan 13, 2026

OpenBSD added these HIDs in a commit to expand support for the Snapdragon 8cx Gen 3 ARM64 SoC. I added them to the source tree and implemented the child node parsing logic in the XHCI code. Check out the full commit here. I am new to FreeBSD contribution. I would like to learn more!!

@gjbauer gjbauer changed the title Add QCOM XHCI HIDS - in OBSD source tree for Snapdragon 8cx Add QCOM XHCI HIDS and child node parsing - in OBSD source tree for Snapdragon 8cx Jan 19, 2026
Comment on lines +116 to +135
/*
* The Qualcomm dual role controller has the interrupt on a
* child node. Find it and parse its resources to find the
* interrupt.
*/
dev_id = acpi_get_pnp_id(dev);
if (dev_id != NULL &&
(strcmp(dev_id, "QCOM068B") == 0 || strcmp(dev_id, "QCOM068C") == 0)) {

h = acpi_get_handle(dev);
if (ACPI_SUCCESS(AcpiGetHandle(h, "USB", &usb_h))) {
/* xhci_acpi_find_irq will fill child_irq */
AcpiWalkResources(usb_h, "_CRS", xhci_acpi_find_irq, &child_irq);

if (child_irq > 0) {
/* Override the resource for this device */
bus_set_resource(dev, SYS_RES_IRQ, 0, child_irq, 1);
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Why is this in generic_xhci.c? It's ACPI specific so should be in generic_xhci_acpi.c

Copy link
Author

Choose a reason for hiding this comment

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

So, I presume I should place this in generic_xhci_acpi_probe instead?

Copy link
Member

Choose a reason for hiding this comment

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

It should be placed in a new acpi attach function. This will then call the current generic attach function.

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