FYI, it looks like a slightly different patch has been accepted into the mainline 4.13 kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/pci/fixup.c?h=v4.13-rc1&id=13cfc732160f7bc7e596128ce34cda361c556966
FYI, it looks like a slightly different patch has been accepted into the mainline 4.13 kernel:
https:/ /git.kernel. org/pub/ scm/linux/ kernel/ git/torvalds/ linux.git/ commit/ arch/x86/ pci/fixup. c?h=v4. 13-rc1& id=13cfc732160f 7bc7e596128ce34 cda361c556966