msm: rng: backport updates from CAF msm-3.4