diff options
author | Ryan Desfosses <ryan@desfo.org> | 2014-04-18 20:13:50 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-06-10 22:20:42 -0400 |
commit | 227f06470502c4fea3d93df1f12a77e3e37f6263 (patch) | |
tree | 817a80fa89d17305a47a3e4e4012d36ae6cac36c /drivers/pci/probe.c | |
parent | 3c78bc61f5ef3bc87e7f94f67ec737d2273f120b (diff) |
PCI: Merge multi-line quoted strings
Merge quoted strings that are broken across lines into a single entity.
The compiler merges them anyway, but checkpatch complains about it, and
merging them makes it easier to grep for strings.
No functional change.
[bhelgaas: changelog, do the same for everything under drivers/pci]
Signed-off-by: Ryan Desfosses <ryan@desfo.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 468a6505bef1..e3cf8a2e6292 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -433,8 +433,7 @@ static void pci_read_bridge_mmio_pref(struct pci_bus *child) | |||
433 | limit |= ((unsigned long) mem_limit_hi) << 32; | 433 | limit |= ((unsigned long) mem_limit_hi) << 32; |
434 | #else | 434 | #else |
435 | if (mem_base_hi || mem_limit_hi) { | 435 | if (mem_base_hi || mem_limit_hi) { |
436 | dev_err(&dev->dev, "can't handle 64-bit " | 436 | dev_err(&dev->dev, "can't handle 64-bit address space for bridge\n"); |
437 | "address space for bridge\n"); | ||
438 | return; | 437 | return; |
439 | } | 438 | } |
440 | #endif | 439 | #endif |
@@ -933,8 +932,7 @@ int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) | |||
933 | (child->number > bus->busn_res.end) || | 932 | (child->number > bus->busn_res.end) || |
934 | (child->number < bus->number) || | 933 | (child->number < bus->number) || |
935 | (child->busn_res.end < bus->number)) { | 934 | (child->busn_res.end < bus->number)) { |
936 | dev_info(&child->dev, "%pR %s " | 935 | dev_info(&child->dev, "%pR %s hidden behind%s bridge %s %pR\n", |
937 | "hidden behind%s bridge %s %pR\n", | ||
938 | &child->busn_res, | 936 | &child->busn_res, |
939 | (bus->number > child->busn_res.end && | 937 | (bus->number > child->busn_res.end && |
940 | bus->busn_res.end < child->number) ? | 938 | bus->busn_res.end < child->number) ? |
@@ -1224,13 +1222,13 @@ int pci_setup_device(struct pci_dev *dev) | |||
1224 | break; | 1222 | break; |
1225 | 1223 | ||
1226 | default: /* unknown header */ | 1224 | default: /* unknown header */ |
1227 | dev_err(&dev->dev, "unknown header type %02x, " | 1225 | dev_err(&dev->dev, "unknown header type %02x, ignoring device\n", |
1228 | "ignoring device\n", dev->hdr_type); | 1226 | dev->hdr_type); |
1229 | return -EIO; | 1227 | return -EIO; |
1230 | 1228 | ||
1231 | bad: | 1229 | bad: |
1232 | dev_err(&dev->dev, "ignoring class %#08x (doesn't match header " | 1230 | dev_err(&dev->dev, "ignoring class %#08x (doesn't match header type %02x)\n", |
1233 | "type %02x)\n", dev->class, dev->hdr_type); | 1231 | dev->class, dev->hdr_type); |
1234 | dev->class = PCI_CLASS_NOT_DEFINED; | 1232 | dev->class = PCI_CLASS_NOT_DEFINED; |
1235 | } | 1233 | } |
1236 | 1234 | ||
@@ -1305,10 +1303,9 @@ bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, | |||
1305 | return false; | 1303 | return false; |
1306 | /* Card hasn't responded in 60 seconds? Must be stuck. */ | 1304 | /* Card hasn't responded in 60 seconds? Must be stuck. */ |
1307 | if (delay > crs_timeout) { | 1305 | if (delay > crs_timeout) { |
1308 | printk(KERN_WARNING "pci %04x:%02x:%02x.%d: not " | 1306 | printk(KERN_WARNING "pci %04x:%02x:%02x.%d: not responding\n", |
1309 | "responding\n", pci_domain_nr(bus), | 1307 | pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), |
1310 | bus->number, PCI_SLOT(devfn), | 1308 | PCI_FUNC(devfn)); |
1311 | PCI_FUNC(devfn)); | ||
1312 | return false; | 1309 | return false; |
1313 | } | 1310 | } |
1314 | } | 1311 | } |
@@ -1613,9 +1610,7 @@ static void pcie_write_mrrs(struct pci_dev *dev) | |||
1613 | } | 1610 | } |
1614 | 1611 | ||
1615 | if (mrrs < 128) | 1612 | if (mrrs < 128) |
1616 | dev_err(&dev->dev, "MRRS was unable to be configured with a " | 1613 | dev_err(&dev->dev, "MRRS was unable to be configured with a safe value. If problems are experienced, try running with pci=pcie_bus_safe\n"); |
1617 | "safe value. If problems are experienced, try running " | ||
1618 | "with pci=pcie_bus_safe.\n"); | ||
1619 | } | 1614 | } |
1620 | 1615 | ||
1621 | static void pcie_bus_detect_mps(struct pci_dev *dev) | 1616 | static void pcie_bus_detect_mps(struct pci_dev *dev) |
@@ -1652,8 +1647,8 @@ static int pcie_bus_configure_set(struct pci_dev *dev, void *data) | |||
1652 | pcie_write_mps(dev, mps); | 1647 | pcie_write_mps(dev, mps); |
1653 | pcie_write_mrrs(dev); | 1648 | pcie_write_mrrs(dev); |
1654 | 1649 | ||
1655 | dev_info(&dev->dev, "Max Payload Size set to %4d/%4d (was %4d), " | 1650 | dev_info(&dev->dev, "Max Payload Size set to %4d/%4d (was %4d), Max Read Rq %4d\n", |
1656 | "Max Read Rq %4d\n", pcie_get_mps(dev), 128 << dev->pcie_mpss, | 1651 | pcie_get_mps(dev), 128 << dev->pcie_mpss, |
1657 | orig_mps, pcie_get_readrq(dev)); | 1652 | orig_mps, pcie_get_readrq(dev)); |
1658 | 1653 | ||
1659 | return 0; | 1654 | return 0; |