• Vivek Gautam's avatar
    reset: Add APIs to manage array of resets · 17c82e20
    Vivek Gautam authored
    Many devices may want to request a bunch of resets and control them. So
    it's better to manage them as an array. Add APIs to _get() an array of
    reset_control, reusing the _assert(), _deassert(), and _reset() APIs for
    single reset controls. Since reset controls already may control multiple
    reset lines with a single hardware bit, from the user perspective, reset
    control arrays are not at all different from single reset controls.
    Note that these APIs don't guarantee that the reset lines managed in the
    array are handled in any particular order.
    
    Cc: Felipe Balbi <balbi@kernel.org>
    Cc: Jon Hunter <jonathanh@nvidia.com>
    Signed-off-by: default avatarVivek Gautam <vivek.gautam@codeaurora.org>
    [p.zabel@pengutronix.de: changed API to hide reset control arrays behind
     struct reset_control]
    Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
    17c82e20
core.c 16.6 KB