]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc/4xx: Add check_link to struct ppc4xx_pciex_hwops
authorTony Breeds <tony@bakeyournoodle.com>
Thu, 30 Jun 2011 20:44:24 +0000 (20:44 +0000)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Tue, 12 Jul 2011 13:03:23 +0000 (09:03 -0400)
commit112d1fe9f7715db423ffeec5ac1beccff6093dc4
treece89fe15078e2d53e65db8654bd21f58fd78b97b
parentaf9719c3062dfe216a0c3de3fa52be6d22b4456c
powerpc/4xx: Add check_link to struct ppc4xx_pciex_hwops

All current pcie controllers unconditionally use SDR to check the link and
poll for reset.  Refactor the code to include device reset in the
port_init_hw() op and add a new check_link() op.

This will make room fro new controllers that do not use SDR for these
operations.

Tested on 460ex.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
arch/powerpc/sysdev/ppc4xx_pci.c