TODO 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. cpqphp:
  7. * The driver spawns a kthread cpqhp_event_thread() which is woken by the
  8. hardirq handler cpqhp_ctrl_intr(). Convert this to threaded IRQ handling.
  9. The kthread is also woken from the timer pushbutton_helper_thread(),
  10. convert it to call irq_wake_thread(). Use pciehp as a template.
  11. * A large portion of cpqphp_ctrl.c and cpqphp_pci.c concerns resource
  12. management. Doesn't this duplicate functionality in the core?
  13. ibmphp:
  14. * Implementations of hotplug_slot_ops callbacks such as get_adapter_present()
  15. in ibmphp_core.c create a copy of the struct slot on the stack, then perform
  16. the actual operation on that copy. Determine if this overhead is necessary,
  17. delete it if not. The functions also perform a NULL pointer check on the
  18. struct hotplug_slot, this seems superfluous.
  19. * Several functions access the pci_slot member in struct hotplug_slot even
  20. though pci_hotplug.h declares it private. See get_max_bus_speed() for an
  21. example. Either the pci_slot member should no longer be declared private
  22. or ibmphp should store a pointer to its bus in struct slot. Probably the
  23. former.
  24. * ibmphp_init_devno() takes a struct slot **, it could instead take a
  25. struct slot *.
  26. * The return value of pci_hp_register() is not checked.
  27. * The various slot data structures are difficult to follow and need to be
  28. simplified. A lot of functions are too large and too complex, they need
  29. to be broken up into smaller, manageable pieces. Negative examples are
  30. ebda_rsrc_controller() and configure_bridge().
  31. * A large portion of ibmphp_res.c and ibmphp_pci.c concerns resource
  32. management. Doesn't this duplicate functionality in the core?
  33. sgi_hotplug:
  34. * Several functions access the pci_slot member in struct hotplug_slot even
  35. though pci_hotplug.h declares it private. See sn_hp_destroy() for an
  36. example. Either the pci_slot member should no longer be declared private
  37. or sgi_hotplug should store a pointer to it in struct slot. Probably the
  38. former.
  39. shpchp:
  40. * There is only a single implementation of struct hpc_ops. Can the struct be
  41. removed and its functions invoked directly? This has already been done in
  42. pciehp with commit 82a9e79ef132 ("PCI: pciehp: remove hpc_ops"). Clarify
  43. if there was a specific reason not to apply the same change to shpchp.
  44. * The ->get_mode1_ECC_cap callback in shpchp_hpc_ops is never invoked.
  45. Why was it introduced? Can it be removed?
  46. * The hardirq handler shpc_isr() queues events on a workqueue. It can be
  47. simplified by converting it to threaded IRQ handling. Use pciehp as a
  48. template.