mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-19 04:44:03 +00:00
powerpc/4xx: Move PCIE printk to proper function
Move the "Checking link..." printk to the function that actually checks the linke. Reported-by: Ayman El-Khashab <ayman@elkhashab.com> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
This commit is contained in:
parent
9661534d6a
commit
a8e616b9a4
1 changed files with 2 additions and 3 deletions
|
@ -679,9 +679,6 @@ static int __init ppc4xx_pciex_wait_on_sdr(struct ppc4xx_pciex_port *port,
|
||||||
|
|
||||||
static int __init ppc4xx_pciex_port_reset_sdr(struct ppc4xx_pciex_port *port)
|
static int __init ppc4xx_pciex_port_reset_sdr(struct ppc4xx_pciex_port *port)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "PCIE%d: Checking link...\n",
|
|
||||||
port->index);
|
|
||||||
|
|
||||||
/* Wait for reset to complete */
|
/* Wait for reset to complete */
|
||||||
if (ppc4xx_pciex_wait_on_sdr(port, PESDRn_RCSSTS, 1 << 20, 0, 10)) {
|
if (ppc4xx_pciex_wait_on_sdr(port, PESDRn_RCSSTS, 1 << 20, 0, 10)) {
|
||||||
printk(KERN_WARNING "PCIE%d: PGRST failed\n",
|
printk(KERN_WARNING "PCIE%d: PGRST failed\n",
|
||||||
|
@ -693,6 +690,8 @@ static int __init ppc4xx_pciex_port_reset_sdr(struct ppc4xx_pciex_port *port)
|
||||||
|
|
||||||
static void __init ppc4xx_pciex_check_link_sdr(struct ppc4xx_pciex_port *port)
|
static void __init ppc4xx_pciex_check_link_sdr(struct ppc4xx_pciex_port *port)
|
||||||
{
|
{
|
||||||
|
printk(KERN_INFO "PCIE%d: Checking link...\n", port->index);
|
||||||
|
|
||||||
/* Check for card presence detect if supported, if not, just wait for
|
/* Check for card presence detect if supported, if not, just wait for
|
||||||
* link unconditionally.
|
* link unconditionally.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue