Skip to content

Commit 0caa17f

Browse files
committed
Merge branch 'pci/misc'
- Convert PCIe capability PCIBIOS errors to errno (Bolarinwa Olayemi Saheed) - Align PCIe capability and PCI accessor return values (Bolarinwa Olayemi Saheed) - Replace http:// links with https:// (Alexander A. Klimov) - Replace lkml.org, spinics, gmane with lore.kernel.org (Bjorn Helgaas) - Update panic message to mention kzalloc(), not kmalloc() (Liao Pingfang) - Move PCI_VENDOR_ID_REDHAT definition to pci_ids.h (Huacai Chen) - Remove unused pci_lost_interrupt() (Heiner Kallweit) * pci/misc: PCI: Remove unused pci_lost_interrupt() PCI: Move PCI_VENDOR_ID_REDHAT definition to pci_ids.h PCI: Fix error in panic message PCI: Replace lkml.org, spinics, gmane with lore.kernel.org PCI: Replace http:// links with https:// PCI: Align PCIe capability and PCI accessor return values PCI: Convert PCIe capability PCIBIOS errors to errno
2 parents e8c4a76 + 2167c40 commit 0caa17f

File tree

28 files changed

+61
-104
lines changed

28 files changed

+61
-104
lines changed

Documentation/PCI/pci.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PCI device drivers.
1717
A more complete resource is the third edition of "Linux Device Drivers"
1818
by Jonathan Corbet, Alessandro Rubini, and Greg Kroah-Hartman.
1919
LDD3 is available for free (under Creative Commons License) from:
20-
http://lwn.net/Kernel/LDD3/.
20+
https://lwn.net/Kernel/LDD3/.
2121

2222
However, keep in mind that all documents are subject to "bit rot".
2323
Refer to the source code if things are not working as described here.
@@ -214,7 +214,7 @@ the PCI device by calling pci_enable_device(). This will:
214214
problem and unlikely to get fixed soon.
215215

216216
This has been discussed before but not changed as of 2.6.19:
217-
http://lkml.org/lkml/2006/3/2/194
217+
https://lore.kernel.org/r/[email protected]/
218218

219219

220220
pci_set_master() will enable DMA by setting the bus master bit
@@ -514,9 +514,8 @@ your driver if they're helpful, or just use plain hex constants.
514514
The device IDs are arbitrary hex numbers (vendor controlled) and normally used
515515
only in a single location, the pci_device_id table.
516516

517-
Please DO submit new vendor/device IDs to http://pci-ids.ucw.cz/.
518-
There are mirrors of the pci.ids file at http://pciids.sourceforge.net/
519-
and https://github.com/pciutils/pciids.
517+
Please DO submit new vendor/device IDs to https://pci-ids.ucw.cz/.
518+
There's a mirror of the pci.ids file at https://github.com/pciutils/pciids.
520519

521520

522521
Obsolete functions

Documentation/devicetree/bindings/pci/pci.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
PCI bus bridges have standardized Device Tree bindings:
22

33
PCI Bus Binding to: IEEE Std 1275-1994
4-
http://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf
4+
https://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf
55

66
And for the interrupt mapping part:
77

88
Open Firmware Recommended Practice: Interrupt Mapping
9-
http://www.devicetree.org/open-firmware/practice/imap/imap0_9d.pdf
9+
https://www.devicetree.org/open-firmware/practice/imap/imap0_9d.pdf
1010

1111
Additionally to the properties specified in the above standards a host bridge
1212
driver implementation may support the following properties:

arch/x86/pci/fixup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,12 +557,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x27B9, twinhead_reserve_killing_z
557557
* Device [8086:2fc0]
558558
* Erratum HSE43
559559
* CONFIG_TDP_NOMINAL CSR Implemented at Incorrect Offset
560-
* http://www.intel.com/content/www/us/en/processors/xeon/xeon-e5-v3-spec-update.html
560+
* https://www.intel.com/content/www/us/en/processors/xeon/xeon-e5-v3-spec-update.html
561561
*
562562
* Devices [8086:6f60,6fa0,6fc0]
563563
* Erratum BDF2
564564
* PCI BARs in the Home Agent Will Return Non-Zero Values During Enumeration
565-
* http://www.intel.com/content/www/us/en/processors/xeon/xeon-e5-v4-spec-update.html
565+
* https://www.intel.com/content/www/us/en/processors/xeon/xeon-e5-v4-spec-update.html
566566
*/
567567
static void pci_invalid_bar(struct pci_dev *dev)
568568
{

drivers/dma/ioat/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,13 +1195,13 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca)
11951195
/* disable relaxed ordering */
11961196
err = pcie_capability_read_word(pdev, IOAT_DEVCTRL_OFFSET, &val16);
11971197
if (err)
1198-
return err;
1198+
return pcibios_err_to_errno(err);
11991199

12001200
/* clear relaxed ordering enable */
12011201
val16 &= ~IOAT_DEVCTRL_ROE;
12021202
err = pcie_capability_write_word(pdev, IOAT_DEVCTRL_OFFSET, val16);
12031203
if (err)
1204-
return err;
1204+
return pcibios_err_to_errno(err);
12051205

12061206
if (ioat_dma->cap & IOAT_CAP_DPS)
12071207
writeb(ioat_pending_level + 1,

drivers/gpu/drm/qxl/qxl_dev.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ enum SpiceCursorType {
131131

132132
#pragma pack(push, 1)
133133

134-
#define REDHAT_PCI_VENDOR_ID 0x1b36
135-
136134
/* 0x100-0x11f reserved for spice, 0x1ff used for unstable work */
137135
#define QXL_DEVICE_ID_STABLE 0x0100
138136

drivers/net/ethernet/rocker/rocker_hw.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ enum {
2525

2626
#define ROCKER_FP_PORTS_MAX 62
2727

28-
#define PCI_VENDOR_ID_REDHAT 0x1b36
2928
#define PCI_DEVICE_ID_REDHAT_ROCKER 0x0006
3029

3130
#define ROCKER_PCI_BAR0_SIZE 0x2000

drivers/pci/access.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ int pcie_capability_read_word(struct pci_dev *dev, int pos, u16 *val)
405405

406406
*val = 0;
407407
if (pos & 1)
408-
return -EINVAL;
408+
return PCIBIOS_BAD_REGISTER_NUMBER;
409409

410410
if (pcie_capability_reg_implemented(dev, pos)) {
411411
ret = pci_read_config_word(dev, pci_pcie_cap(dev) + pos, val);
@@ -440,7 +440,7 @@ int pcie_capability_read_dword(struct pci_dev *dev, int pos, u32 *val)
440440

441441
*val = 0;
442442
if (pos & 3)
443-
return -EINVAL;
443+
return PCIBIOS_BAD_REGISTER_NUMBER;
444444

445445
if (pcie_capability_reg_implemented(dev, pos)) {
446446
ret = pci_read_config_dword(dev, pci_pcie_cap(dev) + pos, val);
@@ -465,7 +465,7 @@ EXPORT_SYMBOL(pcie_capability_read_dword);
465465
int pcie_capability_write_word(struct pci_dev *dev, int pos, u16 val)
466466
{
467467
if (pos & 1)
468-
return -EINVAL;
468+
return PCIBIOS_BAD_REGISTER_NUMBER;
469469

470470
if (!pcie_capability_reg_implemented(dev, pos))
471471
return 0;
@@ -477,7 +477,7 @@ EXPORT_SYMBOL(pcie_capability_write_word);
477477
int pcie_capability_write_dword(struct pci_dev *dev, int pos, u32 val)
478478
{
479479
if (pos & 3)
480-
return -EINVAL;
480+
return PCIBIOS_BAD_REGISTER_NUMBER;
481481

482482
if (!pcie_capability_reg_implemented(dev, pos))
483483
return 0;

drivers/pci/controller/dwc/pci-dra7xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* pcie-dra7xx - PCIe controller driver for TI DRA7xx SoCs
44
*
5-
* Copyright (C) 2013-2014 Texas Instruments Incorporated - http://www.ti.com
5+
* Copyright (C) 2013-2014 Texas Instruments Incorporated - https://www.ti.com
66
*
77
* Authors: Kishon Vijay Abraham I <[email protected]>
88
*/

drivers/pci/controller/dwc/pci-exynos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* PCIe host controller driver for Samsung Exynos SoCs
44
*
55
* Copyright (C) 2013 Samsung Electronics Co., Ltd.
6-
* http://www.samsung.com
6+
* https://www.samsung.com
77
*
88
* Author: Jingoo Han <[email protected]>
99
*/

drivers/pci/controller/dwc/pci-imx6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* PCIe host controller driver for Freescale i.MX6 SoCs
44
*
55
* Copyright (C) 2013 Kosagi
6-
* http://www.kosagi.com
6+
* https://www.kosagi.com
77
*
88
* Author: Sean Cross <[email protected]>
99
*/

0 commit comments

Comments
 (0)