• Dmitry Osipenko's avatar
    clk: tegra: Don't deassert reset on enabling clocks · 4782c0a5
    Dmitry Osipenko authored
    The Tegra clock driver contains legacy code which deasserts hardware reset
    when peripheral clocks are enabled. This behaviour comes from a pre-CCF
    era of the Tegra drivers. This is unacceptable for modern kernel drivers
    which use generic CCF and reset-control APIs because it breaks assumptions
    of the drivers about clk/reset sequences and about reset-propagation
    delays. Hence remove the awkward legacy behaviour from the clk driver.
    
    In particular PMC driver assumes that hardware blocks remains in reset
    while power domain is turning on, but the clk driver deasserts the reset
    before power clamp is removed, hence breaking the driver's assumption.
    Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    4782c0a5
clk-periph-gate.c 4.54 KB