]> git.baikalelectronics.ru Git - kernel.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)
commitbe8c9f7b092bbb15c02deae3affbea4e90a3fab2
treece89fe15078e2d53e65db8654bd21f58fd78b97b
parent1c30bd654569a4c809be09cbf012468d6b8a853e
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