summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorRyan Desfosses <ryan@desfo.org>2014-04-18 20:13:50 -0400
committerBjorn Helgaas <bhelgaas@google.com>2014-06-10 22:20:42 -0400
commit227f06470502c4fea3d93df1f12a77e3e37f6263 (patch)
tree817a80fa89d17305a47a3e4e4012d36ae6cac36c /drivers/pci/pci.c
parent3c78bc61f5ef3bc87e7f94f67ec737d2273f120b (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/pci.c')
-rw-r--r--drivers/pci/pci.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 952b4b489d0f..0a271a100986 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -555,8 +555,8 @@ static int pci_raw_set_power_state(struct pci_dev *dev, pci_power_t state)
555 */ 555 */
556 if (state != PCI_D0 && dev->current_state <= PCI_D3cold 556 if (state != PCI_D0 && dev->current_state <= PCI_D3cold
557 && dev->current_state > state) { 557 && dev->current_state > state) {
558 dev_err(&dev->dev, "invalid power transition " 558 dev_err(&dev->dev, "invalid power transition (from state %d to %d)\n",
559 "(from state %d to %d)\n", dev->current_state, state); 559 dev->current_state, state);
560 return -EINVAL; 560 return -EINVAL;
561 } 561 }
562 562
@@ -603,8 +603,8 @@ static int pci_raw_set_power_state(struct pci_dev *dev, pci_power_t state)
603 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr); 603 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr);
604 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); 604 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK);
605 if (dev->current_state != state && printk_ratelimit()) 605 if (dev->current_state != state && printk_ratelimit())
606 dev_info(&dev->dev, "Refused to change power state, " 606 dev_info(&dev->dev, "Refused to change power state, currently in D%d\n",
607 "currently in D%d\n", dev->current_state); 607 dev->current_state);
608 608
609 /* 609 /*
610 * According to section 5.4.1 of the "PCI BUS POWER MANAGEMENT 610 * According to section 5.4.1 of the "PCI BUS POWER MANAGEMENT
@@ -1029,8 +1029,8 @@ static void pci_restore_config_dword(struct pci_dev *pdev, int offset,
1029 return; 1029 return;
1030 1030
1031 for (;;) { 1031 for (;;) {
1032 dev_dbg(&pdev->dev, "restoring config space at offset " 1032 dev_dbg(&pdev->dev, "restoring config space at offset %#x (was %#x, writing %#x)\n",
1033 "%#x (was %#x, writing %#x)\n", offset, val, saved_val); 1033 offset, val, saved_val);
1034 pci_write_config_dword(pdev, offset, saved_val); 1034 pci_write_config_dword(pdev, offset, saved_val);
1035 if (retry-- <= 0) 1035 if (retry-- <= 0)
1036 return; 1036 return;
@@ -2815,8 +2815,8 @@ int pci_set_cacheline_size(struct pci_dev *dev)
2815 if (cacheline_size == pci_cache_line_size) 2815 if (cacheline_size == pci_cache_line_size)
2816 return 0; 2816 return 0;
2817 2817
2818 dev_printk(KERN_DEBUG, &dev->dev, "cache line size of %d is not " 2818 dev_printk(KERN_DEBUG, &dev->dev, "cache line size of %d is not supported\n",
2819 "supported\n", pci_cache_line_size << 2); 2819 pci_cache_line_size << 2);
2820 2820
2821 return -EINVAL; 2821 return -EINVAL;
2822} 2822}
@@ -2952,8 +2952,8 @@ bool pci_intx_mask_supported(struct pci_dev *dev)
2952 * go ahead and check it. 2952 * go ahead and check it.
2953 */ 2953 */
2954 if ((new ^ orig) & ~PCI_COMMAND_INTX_DISABLE) { 2954 if ((new ^ orig) & ~PCI_COMMAND_INTX_DISABLE) {
2955 dev_err(&dev->dev, "Command register changed from " 2955 dev_err(&dev->dev, "Command register changed from 0x%x to 0x%x: driver or hardware bug?\n",
2956 "0x%x to 0x%x: driver or hardware bug?\n", orig, new); 2956 orig, new);
2957 } else if ((new ^ orig) & PCI_COMMAND_INTX_DISABLE) { 2957 } else if ((new ^ orig) & PCI_COMMAND_INTX_DISABLE) {
2958 mask_supported = true; 2958 mask_supported = true;
2959 pci_write_config_word(dev, PCI_COMMAND, orig); 2959 pci_write_config_word(dev, PCI_COMMAND, orig);
@@ -3138,8 +3138,7 @@ static int pci_af_flr(struct pci_dev *dev, int probe)
3138 if (pci_wait_for_pending(dev, PCI_AF_STATUS, PCI_AF_STATUS_TP)) 3138 if (pci_wait_for_pending(dev, PCI_AF_STATUS, PCI_AF_STATUS_TP))
3139 goto clear; 3139 goto clear;
3140 3140
3141 dev_err(&dev->dev, "transaction is not cleared; " 3141 dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
3142 "proceeding with reset anyway\n");
3143 3142
3144clear: 3143clear:
3145 pci_write_config_byte(dev, pos + PCI_AF_CTRL, PCI_AF_CTRL_FLR); 3144 pci_write_config_byte(dev, pos + PCI_AF_CTRL, PCI_AF_CTRL_FLR);