rpadlpar breakage - fallout of struct subsystem removal]
PATCH 1/1 rpadlpar breakage - fallout of struct subsystem removal]
[oops - typo in Cc in original posting]
--- drivers/pci/hotplug/rpadlpar_sysfs.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/pci/hotplug/rpadlpar_sysfs.c +3 -2
@@ -129,8 +129,9 @@ struct kobj_type ktype_dlpar_io = { };struct kset dlpar_io_kset = { - .subsys = &pci_hotplug_slots_subsys, - .kobj = {.name =DLPAR_KOBJ_NAME , .ktype=&ktype_dlpar_io,}, + .kobj = {.name =DLPAR_KOBJ_NAME , + .ktype = &ktype_dlpar_io, + .parent = &pci_hotplug_slots_subsys.kobj}, .ktype = &ktype_dlpar_io, };
Signature · 10 lines
1.5.0-rc2.GIT - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ----- End forwarded message -----
Quoted 12 lines · Al Viro
[oops - typo in Cc in original posting]
Signed-off-by Al Viro <[email protected]>--- drivers/pci/hotplug/rpadlpar_sysfs.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)drivers/pci/hotplug/rpadlpar_sysfs.c +0
-0
drivers/pci/hotplug/rpadlpar_sysfs.c struct kobj_type ktype_dlpar_io = { · line 136
Quoted 10 lines
drivers/pci/hotplug/rpadlpar_sysfs.c +3
-2@@ -129,8 +129,9 @@ struct kobj_type ktype_dlpar_io = { };struct kset dlpar_io_kset = { - .subsys = &pci_hotplug_slots_subsys, - .kobj = {.name =DLPAR_KOBJ_NAME , .ktype=&ktype_dlpar_io,}, + .kobj = {.name =DLPAR_KOBJ_NAME , + .ktype = &ktype_dlpar_io, + .parent = &pci_hotplug_slots_subsys.kobj}, .ktype = &ktype_dlpar_io, };
That seems to work, I get 'add_slot' and 'remove_slot' under /sys/bus/pci/slots/control again.
cheers
Signature · 8 lines
Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person
Quoted 3 lines
That seems to work, I get '
add_slot' and 'remove_slot' under/sys/bus/pci/slots/controlagain.
I verified that PCI hotplug actually works with that patch.
Ben.
Quoted 5 lines · Benjamin Herrenschmidt
Quoted 3 lines
That seems to work, I get '
add_slot' and 'remove_slot' under/sys/bus/pci/slots/controlagain.I verified that PCI hotplug actually works with that patch.
Thanks for testing, and Al, thanks for the patch, the rpadlpar code was doing something different from what I expected...
thanks,
greg k-h
Quoted 1 line
Signed-off-by Al Viro <[email protected]>
Verified boot, hotplug, and dynamic add/remove of buses. Perfect, thanks Al!