[lkml]   [2011]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC PATCH] slimbus: Linux driver framework for SLIMbus.
    On Monday 22 August 2011, Sagar Dharia wrote:
    > Another suggestion about probe is having callback to notify when the
    > device is ready-to-use after driver probe powers it up. I will change the
    > framework accordingly to have this done.

    Is this actually needed? If the driver is responsible for powering up the
    device, maybe it's enough to have a simple exported function from the
    framework that blocks until the device has been probed, using a
    'completion' or a similar wait_event() based primitive for waiting for
    the device:

    1. The bus driver creates the struct slim_device in one of the three ways
    mentioned and does init_completion().
    2. The probe function of the driver ensures that the regulators/clocks/...
    are set up correctly and then calls wait_for_completion()
    3. When the device shows up on the bus, the slimbus layer calls complete().

    Steps 2 and 3 can happen in any order.


     \ /
      Last update: 2011-08-22 15:49    [W:0.020 / U:20.496 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site