• T
    ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data · dd124ae7
    Tony Lindgren 提交于
    stable inclusion
    from stable-5.10.27
    commit 1f798907b4355ac6320d68f67fed1e8bc5d2a778
    bugzilla: 51493
    
    --------------------------------
    
    [ Upstream commit fbfa463b ]
    
    When I dropped legacy data for omap4 and dra7 smartreflex in favor of
    device tree based data, it seems I only testd for the "SmartReflex Class3
    initialized" line in dmesg. I missed the fact that there is also
    omap_devinit_smartreflex() that happens later, and now it produces an
    error on boot for "No Voltage table for the corresponding vdd. Cannot
    create debugfs entries for n-values".
    
    This happens as we no longer have the smartreflex instance legacy data,
    and have not yet moved completely to device tree based booting for the
    driver. Let's fix the issue by changing the smartreflex init to use names.
    This should all eventually go away in favor of doing the init in the
    driver based on devicetree compatible value.
    
    Note that dra7xx_init_early() is not calling any voltage domain init like
    omap54xx_voltagedomains_init(), or a dra7 specific voltagedomains init.
    This means that on dra7 smartreflex is still not fully initialized, and
    also seems to be missing the related devicetree nodes.
    
    Fixes: a6b1e717 ("ARM: OMAP2+: Drop legacy platform data for omap4 smartreflex")
    Fixes: e54740b4 ("ARM: OMAP2+: Drop legacy platform data for dra7 smartreflex")
    Signed-off-by: NTony Lindgren <tony@atomide.com>
    Signed-off-by: NSasha Levin <sashal@kernel.org>
    Signed-off-by: NChen Jun <chenjun102@huawei.com>
    Acked-by: N  Weilong Chen <chenweilong@huawei.com>
    Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
    dd124ae7
sr_device.c 5.1 KB