ACK/CMNT: [PATCH][SRU][E][F] PCI/DPC: Add "pcie_ports=dpc-native" to allow DPC without AER control
Sultan Alsawaf
sultan.alsawaf at canonical.com
Fri Mar 27 21:55:05 UTC 2020
> static int __init pcie_port_setup(char *str)
> {
> if (!strncmp(str, "compat", 6))
> pcie_ports_disabled = true;
> else if (!strncmp(str, "native", 6))
> pcie_ports_native = true;
> + else if (!strncmp(str, "dpc-native", 10))
> + pcie_ports_dpc_native = true;
>
> return 1;
> }
I always have a good laugh when someone uses a strncmp like this that only
checks if a string is prefixed by something rather than equal to it.
But that's not really relevant to this as a cherry pick.
Acked-by: Sultan Alsawaf <sultan.alsawaf at canonical.com>
More information about the kernel-team
mailing list