Commit df62ab5e authored by Bjorn Helgaas's avatar Bjorn Helgaas

PCI: Tidy comments

Remove pointless comments that tell us the file name, remove blank line
comments, follow multi-line comment conventions.  No functional change
intended.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 3133e6dd
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
DEFINE_RAW_SPINLOCK(pci_lock); DEFINE_RAW_SPINLOCK(pci_lock);
/* /*
* Wrappers for all PCI configuration access functions. They just check * Wrappers for all PCI configuration access functions. They just check
* alignment, do locking and call the low-level functions pointed to * alignment, do locking and call the low-level functions pointed to
* by pci_dev->ops. * by pci_dev->ops.
*/ */
#define PCI_byte_BAD 0 #define PCI_byte_BAD 0
...@@ -686,8 +686,10 @@ void pci_cfg_access_unlock(struct pci_dev *dev) ...@@ -686,8 +686,10 @@ void pci_cfg_access_unlock(struct pci_dev *dev)
raw_spin_lock_irqsave(&pci_lock, flags); raw_spin_lock_irqsave(&pci_lock, flags);
/* This indicates a problem in the caller, but we don't need /*
* to kill them, unlike a double-block above. */ * This indicates a problem in the caller, but we don't need
* to kill them, unlike a double-block above.
*/
WARN_ON(!dev->block_cfg_access); WARN_ON(!dev->block_cfg_access);
dev->block_cfg_access = 0; dev->block_cfg_access = 0;
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/ats.c * PCI Express I/O Virtualization (IOV) support
*
* Copyright (C) 2009 Intel Corporation, Yu Zhao <yu.zhao@intel.com>
* Copyright (C) 2011 Advanced Micro Devices,
*
* PCI Express I/O Virtualization (IOV) support.
* Address Translation Service 1.0 * Address Translation Service 1.0
* Page Request Interface added by Joerg Roedel <joerg.roedel@amd.com> * Page Request Interface added by Joerg Roedel <joerg.roedel@amd.com>
* PASID support added by Joerg Roedel <joerg.roedel@amd.com> * PASID support added by Joerg Roedel <joerg.roedel@amd.com>
*
* Copyright (C) 2009 Intel Corporation, Yu Zhao <yu.zhao@intel.com>
* Copyright (C) 2011 Advanced Micro Devices,
*/ */
#include <linux/export.h> #include <linux/export.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/bus.c
*
* From setup-res.c, by: * From setup-res.c, by:
* Dave Rusling (david.rusling@reo.mts.dec.com) * Dave Rusling (david.rusling@reo.mts.dec.com)
* David Mosberger (davidm@cs.arizona.edu) * David Mosberger (davidm@cs.arizona.edu)
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* host bridge related code * Host bridge related code
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/iov.c * PCI Express I/O Virtualization (IOV) support
*
* Copyright (C) 2009 Intel Corporation, Yu Zhao <yu.zhao@intel.com>
*
* PCI Express I/O Virtualization (IOV) support.
* Single Root IOV 1.0 * Single Root IOV 1.0
* Address Translation Service 1.0 * Address Translation Service 1.0
*
* Copyright (C) 2009 Intel Corporation, Yu Zhao <yu.zhao@intel.com>
*/ */
#include <linux/pci.h> #include <linux/pci.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* mmap.c — generic PCI resource mmap helper * Generic PCI resource mmap helper
* *
* Copyright © 2017 Amazon.com, Inc. or its affiliates. * Copyright © 2017 Amazon.com, Inc. or its affiliates.
* *
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* File: msi.c * PCI Message Signaled Interrupt (MSI)
* Purpose: PCI Message Signaled Interrupt (MSI)
* *
* Copyright (C) 2003-2004 Intel * Copyright (C) 2003-2004 Intel
* Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com) * Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com)
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* File: pci-acpi.c * PCI support in ACPI
* Purpose: Provide PCI support in ACPI
* *
* Copyright (C) 2005 David Shaohua Li <shaohua.li@intel.com> * Copyright (C) 2005 David Shaohua Li <shaohua.li@intel.com>
* Copyright (C) 2004 Tom Long Nguyen <tom.l.nguyen@intel.com> * Copyright (C) 2004 Tom Long Nguyen <tom.l.nguyen@intel.com>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/pci-driver.c
*
* (C) Copyright 2002-2004, 2007 Greg Kroah-Hartman <greg@kroah.com> * (C) Copyright 2002-2004, 2007 Greg Kroah-Hartman <greg@kroah.com>
* (C) Copyright 2007 Novell Inc. * (C) Copyright 2007 Novell Inc.
*/ */
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Purpose: Export the firmware instance and label associated with * Export the firmware instance and label associated with a PCI device to
* a pci device to sysfs * sysfs
*
* Copyright (C) 2010 Dell Inc. * Copyright (C) 2010 Dell Inc.
* by Narendra K <Narendra_K@dell.com>, * by Narendra K <Narendra_K@dell.com>,
* Jordan Hargrave <Jordan_Hargrave@dell.com> * Jordan Hargrave <Jordan_Hargrave@dell.com>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* pci-stub - simple stub driver to reserve a pci device /*
* Simple stub driver to reserve a PCI device
* *
* Copyright (C) 2008 Red Hat, Inc. * Copyright (C) 2008 Red Hat, Inc.
* Author: * Author:
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/pci-sysfs.c
*
* (C) Copyright 2002-2004 Greg Kroah-Hartman <greg@kroah.com> * (C) Copyright 2002-2004 Greg Kroah-Hartman <greg@kroah.com>
* (C) Copyright 2002-2004 IBM Corp. * (C) Copyright 2002-2004 IBM Corp.
* (C) Copyright 2003 Matthew Wilcox * (C) Copyright 2003 Matthew Wilcox
...@@ -12,7 +10,6 @@ ...@@ -12,7 +10,6 @@
* File attributes for PCI devices * File attributes for PCI devices
* *
* Modeled after usb's driverfs.c * Modeled after usb's driverfs.c
*
*/ */
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* PCI Bus Services, see include/linux/pci.h for further explanation. * PCI Bus Services, see include/linux/pci.h for further explanation.
* *
* Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter, * Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter,
* David Mosberger-Tang * David Mosberger-Tang
* *
* Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz>
*/ */
#include <linux/acpi.h> #include <linux/acpi.h>
...@@ -4183,6 +4183,7 @@ void pci_reset_secondary_bus(struct pci_dev *dev) ...@@ -4183,6 +4183,7 @@ void pci_reset_secondary_bus(struct pci_dev *dev)
pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &ctrl); pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &ctrl);
ctrl |= PCI_BRIDGE_CTL_BUS_RESET; ctrl |= PCI_BRIDGE_CTL_BUS_RESET;
pci_write_config_word(dev, PCI_BRIDGE_CONTROL, ctrl); pci_write_config_word(dev, PCI_BRIDGE_CONTROL, ctrl);
/* /*
* PCI spec v3.0 7.6.4.2 requires minimum Trst of 1ms. Double * PCI spec v3.0 7.6.4.2 requires minimum Trst of 1ms. Double
* this to 2ms to ensure that we meet the minimum requirement. * this to 2ms to ensure that we meet the minimum requirement.
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/pcie/aer/aerdrv.c * Implement the AER root port service driver. The driver registers an IRQ
* * handler. When a root port triggers an AER interrupt, the IRQ handler
* This file implements the AER root port service driver. The driver will * collects root port status and schedules work.
* register an irq handler. When root port triggers an AER interrupt, the irq
* handler will collect root port status and schedule a work.
* *
* Copyright (C) 2006 Intel Corp. * Copyright (C) 2006 Intel Corp.
* Tom Long Nguyen (tom.l.nguyen@intel.com) * Tom Long Nguyen (tom.l.nguyen@intel.com)
* Zhang Yanmin (yanmin.zhang@intel.com) * Zhang Yanmin (yanmin.zhang@intel.com)
*
*/ */
#include <linux/pci.h> #include <linux/pci.h>
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
* Copyright (C) 2006 Intel Corp. * Copyright (C) 2006 Intel Corp.
* Tom Long Nguyen (tom.l.nguyen@intel.com) * Tom Long Nguyen (tom.l.nguyen@intel.com)
* Zhang Yanmin (yanmin.zhang@intel.com) * Zhang Yanmin (yanmin.zhang@intel.com)
*
*/ */
#ifndef _AERDRV_H_ #ifndef _AERDRV_H_
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
* Copyright (C) 2006 Intel Corp. * Copyright (C) 2006 Intel Corp.
* Tom Long Nguyen (tom.l.nguyen@intel.com) * Tom Long Nguyen (tom.l.nguyen@intel.com)
* Zhang Yanmin (yanmin.zhang@intel.com) * Zhang Yanmin (yanmin.zhang@intel.com)
*
*/ */
#include <linux/module.h> #include <linux/module.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/pcie/aer/aerdrv_core.c * Implement the core part of PCIe AER. When a PCIe error is delivered, an
* * error message will be collected and printed to console, then an error
* This file implements the core part of PCIe AER. When a PCIe * recovery procedure will be executed by following the PCI error recovery
* error is delivered, an error message will be collected and printed to * rules.
* console, then, an error recovery procedure will be executed by following
* the PCI error recovery rules.
* *
* Copyright (C) 2006 Intel Corp. * Copyright (C) 2006 Intel Corp.
* Tom Long Nguyen (tom.l.nguyen@intel.com) * Tom Long Nguyen (tom.l.nguyen@intel.com)
* Zhang Yanmin (yanmin.zhang@intel.com) * Zhang Yanmin (yanmin.zhang@intel.com)
*
*/ */
#include <linux/module.h> #include <linux/module.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/pcie/aer/aerdrv_errprint.c
*
* Format error messages and print them to console. * Format error messages and print them to console.
* *
* Copyright (C) 2006 Intel Corp. * Copyright (C) 2006 Intel Corp.
* Tom Long Nguyen (tom.l.nguyen@intel.com) * Tom Long Nguyen (tom.l.nguyen@intel.com)
* Zhang Yanmin (yanmin.zhang@intel.com) * Zhang Yanmin (yanmin.zhang@intel.com)
*
*/ */
#include <linux/module.h> #include <linux/module.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Enables/disables PCIe ECRC checking. * Enable/disable PCIe ECRC checking
* *
* (C) Copyright 2009 Hewlett-Packard Development Company, L.P. * (C) Copyright 2009 Hewlett-Packard Development Company, L.P.
* Andrew Patterson <andrew.patterson@hp.com> * Andrew Patterson <andrew.patterson@hp.com>
*/ */
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* File: drivers/pci/pcie/aspm.c * Enable PCIe link L0s/L1 state and Clock Power Management
* Enabling PCIe link L0s/L1 state and Clock Power Management
* *
* Copyright (C) 2007 Intel * Copyright (C) 2007 Intel
* Copyright (C) Zhang Yanmin (yanmin.zhang@intel.com) * Copyright (C) Zhang Yanmin (yanmin.zhang@intel.com)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* /*
* File: portdrv.h
* Purpose: PCI Express Port Bus Driver's Internal Data Structures * Purpose: PCI Express Port Bus Driver's Internal Data Structures
* *
* Copyright (C) 2004 Intel * Copyright (C) 2004 Intel
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* File: portdrv_core.c
* Purpose: PCI Express Port Bus Driver's Core Functions * Purpose: PCI Express Port Bus Driver's Core Functions
* *
* Copyright (C) 2004 Intel * Copyright (C) 2004 Intel
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* File: portdrv_pci.c
* Purpose: PCI Express Port Bus Driver * Purpose: PCI Express Port Bus Driver
* Author: Tom Nguyen <tom.l.nguyen@intel.com> * Author: Tom Nguyen <tom.l.nguyen@intel.com>
* Version: v1.0
* *
* Copyright (C) 2004 Intel * Copyright (C) 2004 Intel
* Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com) * Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com)
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* probe.c - PCI detection and setup code * PCI detection and setup code
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Procfs interface for the PCI bus. * Procfs interface for the PCI bus
* *
* Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz> * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
*/ */
#include <linux/init.h> #include <linux/init.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* This file contains work-arounds for many known PCI hardware * This file contains work-arounds for many known PCI hardware bugs.
* bugs. Devices present only on certain architectures (host * Devices present only on certain architectures (host bridges et cetera)
* bridges et cetera) should be handled in arch-specific code. * should be handled in arch-specific code.
* *
* Note: any quirks for hotpluggable devices must _NOT_ be declared __init. * Note: any quirks for hotpluggable devices must _NOT_ be declared __init.
* *
* Copyright (c) 1999 Martin Mares <mj@ucw.cz> * Copyright (c) 1999 Martin Mares <mj@ucw.cz>
* *
* Init/reset quirks for USB host controllers should be in the * Init/reset quirks for USB host controllers should be in the USB quirks
* USB quirks file, where their drivers can access reuse it. * file, where their drivers can use them.
*/ */
#include <linux/types.h> #include <linux/types.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/rom.c * PCI ROM access routines
* *
* (C) Copyright 2004 Jon Smirl <jonsmirl@yahoo.com> * (C) Copyright 2004 Jon Smirl <jonsmirl@yahoo.com>
* (C) Copyright 2004 Silicon Graphics, Inc. Jesse Barnes <jbarnes@sgi.com> * (C) Copyright 2004 Silicon Graphics, Inc. Jesse Barnes <jbarnes@sgi.com>
*
* PCI ROM access routines
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/export.h> #include <linux/export.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* PCI searching functions. * PCI searching functions
* *
* Copyright (C) 1993 -- 1997 Drew Eckhardt, Frederic Potter, * Copyright (C) 1993 -- 1997 Drew Eckhardt, Frederic Potter,
* David Mosberger-Tang * David Mosberger-Tang
* Copyright (C) 1997 -- 2000 Martin Mares <mj@ucw.cz> * Copyright (C) 1997 -- 2000 Martin Mares <mj@ucw.cz>
* Copyright (C) 2003 -- 2004 Greg Kroah-Hartman <greg@kroah.com> * Copyright (C) 2003 -- 2004 Greg Kroah-Hartman <greg@kroah.com>
*/ */
#include <linux/pci.h> #include <linux/pci.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/setup-bus.c * Support routines for initializing a PCI subsystem
* *
* Extruded from code written by * Extruded from code written by
* Dave Rusling (david.rusling@reo.mts.dec.com) * Dave Rusling (david.rusling@reo.mts.dec.com)
* David Mosberger (davidm@cs.arizona.edu) * David Mosberger (davidm@cs.arizona.edu)
* David Miller (davem@redhat.com) * David Miller (davem@redhat.com)
* *
* Support routines for initializing a PCI subsystem.
*/
/*
* Nov 2000, Ivan Kokshaysky <ink@jurassic.park.msu.ru> * Nov 2000, Ivan Kokshaysky <ink@jurassic.park.msu.ru>
* PCI-PCI bridges cleanup, sorted resource allocation. * PCI-PCI bridges cleanup, sorted resource allocation.
* Feb 2002, Ivan Kokshaysky <ink@jurassic.park.msu.ru> * Feb 2002, Ivan Kokshaysky <ink@jurassic.park.msu.ru>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/setup-irq.c * Support routines for initializing a PCI subsystem
* *
* Extruded from code written by * Extruded from code written by
* Dave Rusling (david.rusling@reo.mts.dec.com) * Dave Rusling (david.rusling@reo.mts.dec.com)
* David Mosberger (davidm@cs.arizona.edu) * David Mosberger (davidm@cs.arizona.edu)
* David Miller (davem@redhat.com) * David Miller (davem@redhat.com)
*
* Support routines for initializing a PCI subsystem.
*/ */
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/setup-res.c * Support routines for initializing a PCI subsystem
* *
* Extruded from code written by * Extruded from code written by
* Dave Rusling (david.rusling@reo.mts.dec.com) * Dave Rusling (david.rusling@reo.mts.dec.com)
* David Mosberger (davidm@cs.arizona.edu) * David Mosberger (davidm@cs.arizona.edu)
* David Miller (davem@redhat.com) * David Miller (davem@redhat.com)
* *
* Support routines for initializing a PCI subsystem. * Fixed for multiple PCI buses, 1999 Andrea Arcangeli <andrea@suse.de>
*/ *
/* fixed for multiple pci buses, 1999 Andrea Arcangeli <andrea@suse.de> */
/*
* Nov 2000, Ivan Kokshaysky <ink@jurassic.park.msu.ru> * Nov 2000, Ivan Kokshaysky <ink@jurassic.park.msu.ru>
* Resource sorting * Resource sorting
*/ */
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* drivers/pci/slot.c
* Copyright (C) 2006 Matthew Wilcox <matthew@wil.cx> * Copyright (C) 2006 Matthew Wilcox <matthew@wil.cx>
* Copyright (C) 2006-2009 Hewlett-Packard Development Company, L.P. * Copyright (C) 2006-2009 Hewlett-Packard Development Company, L.P.
* Alex Chiang <achiang@hp.com> * Alex Chiang <achiang@hp.com>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* pci_syscall.c * For architectures where we want to allow direct access to the PCI config
* * stuff - it would probably be preferable on PCs too, but there people
* For architectures where we want to allow direct access * just do it by hand with the magic northbridge registers.
* to the PCI config stuff - it would probably be preferable
* on PCs too, but there people just do it by hand with the
* magic northbridge registers..
*/ */
#include <linux/errno.h> #include <linux/errno.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* File: vpd.c * PCI VPD support
* Purpose: Provide PCI VPD support
* *
* Copyright (C) 2010 Broadcom Corporation. * Copyright (C) 2010 Broadcom Corporation.
*/ */
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Xen PCI Frontend. * Xen PCI Frontend
* *
* Author: Ryan Wilson <hap9@epoch.ncsc.mil> * Author: Ryan Wilson <hap9@epoch.ncsc.mil>
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment