TODO 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Contributions are solicited in particular to remedy the following issues:
  2. cpcihp:
  3. * There are no implementations of the ->hardware_test, ->get_power and
  4. ->set_power callbacks in struct cpci_hp_controller_ops. Why were they
  5. introduced? Can they be removed from the struct?
  6. * Returned code from pci_hp_add_bridge() is not checked.
  7. cpqphp:
  8. * The driver spawns a kthread cpqhp_event_thread() which is woken by the
  9. hardirq handler cpqhp_ctrl_intr(). Convert this to threaded IRQ handling.
  10. The kthread is also woken from the timer pushbutton_helper_thread(),
  11. convert it to call irq_wake_thread(). Use pciehp as a template.
  12. * A large portion of cpqphp_ctrl.c and cpqphp_pci.c concerns resource
  13. management. Doesn't this duplicate functionality in the core?
  14. * Returned code from pci_hp_add_bridge() is not checked.
  15. ibmphp:
  16. * Implementations of hotplug_slot_ops callbacks such as get_adapter_present()
  17. in ibmphp_core.c create a copy of the struct slot on the stack, then perform
  18. the actual operation on that copy. Determine if this overhead is necessary,
  19. delete it if not. The functions also perform a NULL pointer check on the
  20. struct hotplug_slot, this seems superfluous.
  21. * Several functions access the pci_slot member in struct hotplug_slot even
  22. though pci_hotplug.h declares it private. See get_max_bus_speed() for an
  23. example. Either the pci_slot member should no longer be declared private
  24. or ibmphp should store a pointer to its bus in struct slot. Probably the
  25. former.
  26. * ibmphp_init_devno() takes a struct slot **, it could instead take a
  27. struct slot *.
  28. * The return value of pci_hp_register() is not checked.
  29. * The various slot data structures are difficult to follow and need to be
  30. simplified. A lot of functions are too large and too complex, they need
  31. to be broken up into smaller, manageable pieces. Negative examples are
  32. ebda_rsrc_controller() and configure_bridge().
  33. * A large portion of ibmphp_res.c and ibmphp_pci.c concerns resource
  34. management. Doesn't this duplicate functionality in the core?
  35. * Returned code from pci_hp_add_bridge() is not checked.
  36. shpchp:
  37. * The hardirq handler shpc_isr() queues events on a workqueue. It can be
  38. simplified by converting it to threaded IRQ handling. Use pciehp as a
  39. template.