• Saravana Kannan's avatar
    of: property: Add functional dependency link from DT bindings · a3e1d1a7
    Saravana Kannan authored
    Add device links after the devices are created (but before they are
    probed) by looking at common DT bindings like clocks and
    interconnects.
    
    Automatically adding device links for functional dependencies at the
    framework level provides the following benefits:
    
    - Optimizes device probe order and avoids the useless work of
      attempting probes of devices that will not probe successfully
      (because their suppliers aren't present or haven't probed yet).
    
      For example, in a commonly available mobile SoC, registering just
      one consumer device's driver at an initcall level earlier than the
      supplier device's driver causes 11 failed probe attempts before the
      consumer device probes successfully. This was with a kernel with all
      the drivers statically compiled in. This problem gets a lot worse if
      all the drivers are loaded as modules without direct symbol
      dependencies.
    
    - Supplier devices like clock providers, interconnect providers, etc
      need t...
    a3e1d1a7
kernel-parameters.rst 8.07 KB