coreboot/src
Reka Norman 93928194c4 drivers/wifi/generic: Revert changes to generate missing SSDT for PCIe
wifi

This reverts commit 5e6fd360de.

On nereid, the SSDT entry for the PCIe wifi device is missing, causing
wake-on-WLAN not to work since the _PRW is missing.

It seems like when commit 5e6fd360de changed the SSDT generation logic
for CNVi and PCIe wifi, it broke the PCIe case. `wifi_pcie_ops` are
never assigned to any device, so
`parent && parent->ops == &wifi_pcie_ops` always returns false, and the
`wifi_cnvi_ops` are used even for PCIe devices.

Undo the changes in that CL. This allows both the CNVi and PCIe cases to
work. That CL was meant to fix an issue with the CNVi _PRW containing
garbage, but I can't reproduce this when the change is undone.

It was also meant to fix the following error on CNVi devices, but I
don't see any errors with this change:
[ERROR]  NONE missing set_resources

BUB=b:233325709
TEST=On both nivviks (CNVi) and nereid (PCIe), check that the SSDT
contains the correct wifi device entries (below), including a _PRW
containing the correct GPE, and check that wake-on-WLAN works.

nivviks:
```
    Scope (\_SB.PCI0.CNVW)
    {
        Name (_PRW, Package (0x02)  // _PRW: Power Resources for Wake
        {
            0x6D,
            0x03
        })
        Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
        {
            <snip>
        }
    }
```

nereid:
```
    Device (\_SB.PCI0.RP01.WF00)
    {
        Name (_UID, 0x923ACF1C)  // _UID: Unique ID
        Name (_DDN, "WIFI Device")  // _DDN: DOS Device Name
        Name (_ADR, 0x0000000000000000)  // _ADR: Address
    }

    Scope (\_SB.PCI0.RP01.WF00)
    {
        Name (_PRW, Package (0x02)  // _PRW: Power Resources for Wake
        {
            0x23,
            0x03
        })
        Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
        {
            <snip>
        }
    }
```

Fixes: 5e6fd360de ("drivers/wifi/generic: Fix properties in generic-under-PCI device case")
Change-Id: I100c5ee3842997c50444e5ce68d583834ed3a8ad
Signed-off-by: Reka Norman <rekanorman@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66063
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-07-27 13:39:54 +00:00
..
acpi treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
arch arch/x86/*.ld: Don't use CPP to include linker scripts 2022-07-20 20:29:13 +00:00
commonlib commonlib: compiler.h: Improve wording in comment 2022-07-17 21:39:29 +00:00
console
cpu arch/x86: Fix MAX_CPUS check proper for late X2APIC config 2022-07-25 10:06:18 +00:00
device allocator_v4: Make it explicit that we start with the highest alignment 2022-06-27 14:00:23 +00:00
drivers drivers/wifi/generic: Revert changes to generate missing SSDT for PCIe 2022-07-27 13:39:54 +00:00
ec ec/system76/ec: Provide charging thresholds by default 2022-07-16 22:48:06 +00:00
include arch/x86: Add X2APIC_LATE_WORKAROUND 2022-07-18 15:40:46 +00:00
lib lib/program_loaders.c: Mark run_ramstage with __noreturn 2022-07-14 23:10:17 +00:00
mainboard mb/google/nissa/var/craask: Add DPTF passive and critical policies 2022-07-27 13:39:43 +00:00
northbridge nb/amd: Fix some white spaces issues 2022-07-17 21:57:31 +00:00
security treewide: Remove unused <cpu/x86/msr.h> 2022-07-20 13:16:52 +00:00
soc soc/intel/meteorlake: Use coreboot native event handler for FSP-S 2022-07-27 13:39:25 +00:00
southbridge sb/amd/cimx/sb800: Remove unused and unsafe macro 2022-07-18 11:21:52 +00:00
superio superio/nuvoton/nct6687d: Add ramstage driver and ACPI 2022-07-08 15:40:31 +00:00
vendorcode mb/google: Replace some strings in regulator.c 2022-07-21 10:30:57 +00:00
Kconfig src/Kconfig: src/soc/*/Kconfig files are gone, remove the include 2022-06-24 04:00:15 +00:00