eeh.c (26a74850b35d85a81155aa0e51211fbd6eecad25) eeh.c (c86085580d5f60d2d3cea9c60d50e284558d3de7)
1/*
2 * Copyright IBM Corporation 2001, 2005, 2006
3 * Copyright Dave Engebretsen & Todd Inglett 2001
4 * Copyright Linas Vepstas 2005, 2006
5 * Copyright 2001-2012 IBM Corporation.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 690 unchanged lines hidden (view full) ---

699 } else if ((ret = eeh_ops->init())) {
700 pr_warning("%s: Failed to call platform init function (%d)\n",
701 __func__, ret);
702 return ret;
703 }
704
705 raw_spin_lock_init(&confirm_error_lock);
706
1/*
2 * Copyright IBM Corporation 2001, 2005, 2006
3 * Copyright Dave Engebretsen & Todd Inglett 2001
4 * Copyright Linas Vepstas 2005, 2006
5 * Copyright 2001-2012 IBM Corporation.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 690 unchanged lines hidden (view full) ---

699 } else if ((ret = eeh_ops->init())) {
700 pr_warning("%s: Failed to call platform init function (%d)\n",
701 __func__, ret);
702 return ret;
703 }
704
705 raw_spin_lock_init(&confirm_error_lock);
706
707 /* Initialize EEH event */
708 ret = eeh_event_init();
709 if (ret)
710 return ret;
711
707 /* Enable EEH for all adapters */
708 if (eeh_probe_mode_devtree()) {
709 list_for_each_entry_safe(hose, tmp,
710 &hose_list, list_node) {
711 phb = hose->dn;
712 traverse_pci_devices(phb, eeh_ops->of_probe, NULL);
713 }
714 } else if (eeh_probe_mode_dev()) {

--- 272 unchanged lines hidden ---
712 /* Enable EEH for all adapters */
713 if (eeh_probe_mode_devtree()) {
714 list_for_each_entry_safe(hose, tmp,
715 &hose_list, list_node) {
716 phb = hose->dn;
717 traverse_pci_devices(phb, eeh_ops->of_probe, NULL);
718 }
719 } else if (eeh_probe_mode_dev()) {

--- 272 unchanged lines hidden ---