aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorAlex Chiang <[email protected]>2008-08-21 21:13:47 +0000
committerJesse Barnes <[email protected]>2008-08-21 22:15:31 +0000
commitd6a9e9b40be7da84f82eb414c2ad98c5bb69986b (patch)
tree28737d4feaa4b16f63b498229ae13653947f7b36 /lib/debugobjects.c
parentPCI: pciehp: Rename duplicate slot name N as N-1, N-2, N-M... (diff)
downloadkernel-d6a9e9b40be7da84f82eb414c2ad98c5bb69986b.tar.gz
kernel-d6a9e9b40be7da84f82eb414c2ad98c5bb69986b.zip
PCI: shpchp: Rename duplicate slot name N as N-1, N-2, N-M...
Commit ef0ff95f136f0f2d035667af5d18b824609de320 (shpchp: fix slot name) introduces the shpchp_slot_with_bus module parameter, which was intended to help work around broken firmware that assigns the same name to multiple slots. Commit b3bd307c628af2f0a581c42d5d7e4bcdbbf64b6a (shpchp: add message about shpchp_slot_with_bus option) tells the user to use the above parameter in the event of a name collision. This approach is sub-optimal because it requires too much work from the user. Instead, let's rename the slot on behalf of the user. If firmware assigns the name N to multiple slots, then: The first registered slot is assigned N The second registered slot is assigned N-1 The third registered slot is assigned N-2 The Mth registered slot becomes N-M In the event we overflow the slot->name parameter, we report an error to the user. This is a temporary fix until the entire PCI core can be reworked such that individual drivers no longer have to manage their own slot names. Tested-by: Kenji Kaneshige <[email protected]> Acked-by: Kenji Kaneshige <[email protected]> Signed-off-by: Alex Chiang <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions