Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'pci-v4.12-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci

Pull PCI fixes from Bjorn Helgaas:

- fix another PCI_ENDPOINT build error (merged for v4.12)

- fix error codes added to config accessors for v4.12

* tag 'pci-v4.12-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
PCI: endpoint: Select CRC32 to fix test build error
PCI: Make error code types consistent in pci_{read,write}_config_*

+7 -6
+6 -6
drivers/pci/access.c
··· 896 896 { 897 897 if (pci_dev_is_disconnected(dev)) { 898 898 *val = ~0; 899 - return -ENODEV; 899 + return PCIBIOS_DEVICE_NOT_FOUND; 900 900 } 901 901 return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val); 902 902 } ··· 906 906 { 907 907 if (pci_dev_is_disconnected(dev)) { 908 908 *val = ~0; 909 - return -ENODEV; 909 + return PCIBIOS_DEVICE_NOT_FOUND; 910 910 } 911 911 return pci_bus_read_config_word(dev->bus, dev->devfn, where, val); 912 912 } ··· 917 917 { 918 918 if (pci_dev_is_disconnected(dev)) { 919 919 *val = ~0; 920 - return -ENODEV; 920 + return PCIBIOS_DEVICE_NOT_FOUND; 921 921 } 922 922 return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); 923 923 } ··· 926 926 int pci_write_config_byte(const struct pci_dev *dev, int where, u8 val) 927 927 { 928 928 if (pci_dev_is_disconnected(dev)) 929 - return -ENODEV; 929 + return PCIBIOS_DEVICE_NOT_FOUND; 930 930 return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val); 931 931 } 932 932 EXPORT_SYMBOL(pci_write_config_byte); ··· 934 934 int pci_write_config_word(const struct pci_dev *dev, int where, u16 val) 935 935 { 936 936 if (pci_dev_is_disconnected(dev)) 937 - return -ENODEV; 937 + return PCIBIOS_DEVICE_NOT_FOUND; 938 938 return pci_bus_write_config_word(dev->bus, dev->devfn, where, val); 939 939 } 940 940 EXPORT_SYMBOL(pci_write_config_word); ··· 943 943 u32 val) 944 944 { 945 945 if (pci_dev_is_disconnected(dev)) 946 - return -ENODEV; 946 + return PCIBIOS_DEVICE_NOT_FOUND; 947 947 return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); 948 948 } 949 949 EXPORT_SYMBOL(pci_write_config_dword);
+1
drivers/pci/endpoint/functions/Kconfig
··· 5 5 config PCI_EPF_TEST 6 6 tristate "PCI Endpoint Test driver" 7 7 depends on PCI_ENDPOINT 8 + select CRC32 8 9 help 9 10 Enable this configuration option to enable the test driver 10 11 for PCI Endpoint.