Skip to content

Commit b3bd307

Browse files
kkaneshigejbarnes993
authored andcommitted
shpchp: add message about shpchp_slot_with_bus option
Some (broken?) platform assign the same slot name to multiple hotplug slots. On such system, slot initialization would fail because of name collision. The shpchp driver already have a "slot_with_bus" module option which adds the bus number into the slot name. This patch adds the message about this module option that will be displayed when slot name collision is detected. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent ddc9753 commit b3bd307

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/pci/hotplug/shpchp_core.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ static int init_slots(struct controller *ctrl)
162162
retval = pci_hp_register(slot->hotplug_slot);
163163
if (retval) {
164164
err("pci_hp_register failed with error %d\n", retval);
165+
if (retval == -EEXIST)
166+
err("Failed to register slot because of name "
167+
"collision. Try \'shpchp_slot_with_bus\' "
168+
"module option.\n");
165169
goto error_info;
166170
}
167171

0 commit comments

Comments
 (0)