Add PNP IDs to handle the X1E80100 (Snapdragon X Elite) USB controllers.
authorpatrick <patrick@openbsd.org>
Wed, 19 Jun 2024 21:31:10 +0000 (21:31 +0000)
committerpatrick <patrick@openbsd.org>
Wed, 19 Jun 2024 21:31:10 +0000 (21:31 +0000)
ok kettenis@

sys/dev/acpi/xhci_acpi.c

index a1d696e..ad504b4 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: xhci_acpi.c,v 1.11 2022/10/30 15:34:54 patrick Exp $  */
+/*     $OpenBSD: xhci_acpi.c,v 1.12 2024/06/19 21:31:10 patrick Exp $  */
 /*
  * Copyright (c) 2018 Mark Kettenis
  *
@@ -62,6 +62,9 @@ const char *xhci_hids[] = {
        "QCOM0826",             /* SC7180 USB */
        "QCOM24B6",             /* SDM850 URS */
        "QCOM24B7",
+       "QCOM0C8B",             /* X1E80100 URS */
+       "QCOM0C8C",
+       "QCOM0D07",
        NULL
 };
 
@@ -108,7 +111,10 @@ xhci_acpi_attach(struct device *parent, struct device *self, void *aux)
            strcmp(aaa->aaa_dev, "QCOM068B") == 0 ||
            strcmp(aaa->aaa_dev, "QCOM068C") == 0 ||
            strcmp(aaa->aaa_dev, "QCOM24B6") == 0 ||
-           strcmp(aaa->aaa_dev, "QCOM24B7") == 0) {
+           strcmp(aaa->aaa_dev, "QCOM24B7") == 0 ||
+           strcmp(aaa->aaa_dev, "QCOM0C8B") == 0 ||
+           strcmp(aaa->aaa_dev, "QCOM0C8C") == 0 ||
+           strcmp(aaa->aaa_dev, "QCOM0D07") == 0) {
                SIMPLEQ_FOREACH(node, &sc->sc_node->son, sib) {
                        if (strncmp(node->name, "USB", 3) == 0) {
                                aaa->aaa_node = node;