.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Low-Level PCI Support for the SH7780 |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2005 - 2010 Paul Mundt |
---|
5 | | - * |
---|
6 | | - * This file is subject to the terms and conditions of the GNU General Public |
---|
7 | | - * License. See the file "COPYING" in the main directory of this archive |
---|
8 | | - * for more details. |
---|
9 | 6 | */ |
---|
10 | 7 | #include <linux/types.h> |
---|
11 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
19 | 16 | #include <linux/log2.h> |
---|
20 | 17 | #include "pci-sh4.h" |
---|
21 | 18 | #include <asm/mmu.h> |
---|
22 | | -#include <asm/sizes.h> |
---|
| 19 | +#include <linux/sizes.h> |
---|
23 | 20 | |
---|
24 | 21 | #if defined(CONFIG_CPU_BIG_ENDIAN) |
---|
25 | 22 | # define PCICR_ENDIANNESS SH4_PCICR_BSWP |
---|
.. | .. |
---|
151 | 148 | |
---|
152 | 149 | printk(KERN_DEBUG "PCI: system error received: "); |
---|
153 | 150 | pcibios_report_status(PCI_STATUS_SIG_SYSTEM_ERROR, 1); |
---|
154 | | - printk("\n"); |
---|
| 151 | + pr_cont("\n"); |
---|
155 | 152 | |
---|
156 | 153 | /* Deassert SERR */ |
---|
157 | 154 | __raw_writel(SH4_PCIINTM_SDIM, hose->reg_base + SH4_PCIINTM); |
---|
.. | .. |
---|
182 | 179 | ret = request_irq(hose->serr_irq, sh7780_pci_serr_irq, 0, |
---|
183 | 180 | "PCI SERR interrupt", hose); |
---|
184 | 181 | if (unlikely(ret)) { |
---|
185 | | - printk(KERN_ERR "PCI: Failed hooking SERR IRQ\n"); |
---|
| 182 | + pr_err("PCI: Failed hooking SERR IRQ\n"); |
---|
186 | 183 | return ret; |
---|
187 | 184 | } |
---|
188 | 185 | |
---|
.. | .. |
---|
253 | 250 | const char *type; |
---|
254 | 251 | int ret, i; |
---|
255 | 252 | |
---|
256 | | - printk(KERN_NOTICE "PCI: Starting initialization.\n"); |
---|
| 253 | + pr_notice("PCI: Starting initialization.\n"); |
---|
257 | 254 | |
---|
258 | 255 | chan->reg_base = 0xfe040000; |
---|
259 | 256 | |
---|
.. | .. |
---|
273 | 270 | |
---|
274 | 271 | id = __raw_readw(chan->reg_base + PCI_VENDOR_ID); |
---|
275 | 272 | if (id != PCI_VENDOR_ID_RENESAS) { |
---|
276 | | - printk(KERN_ERR "PCI: Unknown vendor ID 0x%04x.\n", id); |
---|
| 273 | + pr_err("PCI: Unknown vendor ID 0x%04x.\n", id); |
---|
277 | 274 | return -ENODEV; |
---|
278 | 275 | } |
---|
279 | 276 | |
---|
.. | .. |
---|
284 | 281 | (id == PCI_DEVICE_ID_RENESAS_SH7785) ? "SH7785" : |
---|
285 | 282 | NULL; |
---|
286 | 283 | if (unlikely(!type)) { |
---|
287 | | - printk(KERN_ERR "PCI: Found an unsupported Renesas host " |
---|
288 | | - "controller, device id 0x%04x.\n", id); |
---|
| 284 | + pr_err("PCI: Found an unsupported Renesas host controller, device id 0x%04x.\n", |
---|
| 285 | + id); |
---|
289 | 286 | return -EINVAL; |
---|
290 | 287 | } |
---|
291 | 288 | |
---|
292 | | - printk(KERN_NOTICE "PCI: Found a Renesas %s host " |
---|
293 | | - "controller, revision %d.\n", type, |
---|
294 | | - __raw_readb(chan->reg_base + PCI_REVISION_ID)); |
---|
| 289 | + pr_notice("PCI: Found a Renesas %s host controller, revision %d.\n", |
---|
| 290 | + type, __raw_readb(chan->reg_base + PCI_REVISION_ID)); |
---|
295 | 291 | |
---|
296 | 292 | /* |
---|
297 | 293 | * Now throw it in to register initialization mode and |
---|
.. | .. |
---|
398 | 394 | |
---|
399 | 395 | sh7780_pci66_init(chan); |
---|
400 | 396 | |
---|
401 | | - printk(KERN_NOTICE "PCI: Running at %dMHz.\n", |
---|
402 | | - (__raw_readw(chan->reg_base + PCI_STATUS) & PCI_STATUS_66MHZ) ? |
---|
403 | | - 66 : 33); |
---|
| 397 | + pr_notice("PCI: Running at %dMHz.\n", |
---|
| 398 | + (__raw_readw(chan->reg_base + PCI_STATUS) & PCI_STATUS_66MHZ) |
---|
| 399 | + ? 66 : 33); |
---|
404 | 400 | |
---|
405 | 401 | return 0; |
---|
406 | 402 | |
---|