OSDN Git Service

ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data
authorTony Lindgren <tony@atomide.com>
Wed, 10 Feb 2021 08:53:48 +0000 (10:53 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 15 Feb 2021 04:40:54 +0000 (06:40 +0200)
commitfbfa463be8dc7957ee4f81556e9e1ea2a951807d
treee021762787661dbcb74b87cf6a0eb265d4ba597a
parenta249ca66d15fa4b54dc6deaff4155df3db1308e1
ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data

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: a6b1e717e942 ("ARM: OMAP2+: Drop legacy platform data for omap4 smartreflex")
Fixes: e54740b4afe8 ("ARM: OMAP2+: Drop legacy platform data for dra7 smartreflex")
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/sr_device.c