Skip to content

Commit 9f26bc7

Browse files
committed
Merge tag 'mtk-soc-fixes-for-v6.9' of https://git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux into for-next
MediaTek driver fixes for v6.9 This fixes the MediaTek SVS driver to look for the right thermal zone names, and adds a missing Kconfig dependency for mtk-socinfo. Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 14672a9 + ab6cd6b commit 9f26bc7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

drivers/soc/mediatek/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ config MTK_SOCINFO
7272
tristate "MediaTek SoC Information"
7373
default y
7474
depends on NVMEM_MTK_EFUSE
75+
select SOC_BUS
7576
help
7677
The MediaTek SoC Information (mtk-socinfo) driver provides
7778
information about the SoC to the userspace including the

drivers/soc/mediatek/mtk-svs.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,7 @@ static int svs_bank_resource_setup(struct svs_platform *svsp)
17681768
const struct svs_bank_pdata *bdata;
17691769
struct svs_bank *svsb;
17701770
struct dev_pm_opp *opp;
1771+
char tz_name_buf[20];
17711772
unsigned long freq;
17721773
int count, ret;
17731774
u32 idx, i;
@@ -1819,10 +1820,12 @@ static int svs_bank_resource_setup(struct svs_platform *svsp)
18191820
}
18201821

18211822
if (!IS_ERR_OR_NULL(bdata->tzone_name)) {
1822-
svsb->tzd = thermal_zone_get_zone_by_name(bdata->tzone_name);
1823+
snprintf(tz_name_buf, ARRAY_SIZE(tz_name_buf),
1824+
"%s-thermal", bdata->tzone_name);
1825+
svsb->tzd = thermal_zone_get_zone_by_name(tz_name_buf);
18231826
if (IS_ERR(svsb->tzd)) {
18241827
dev_err(svsb->dev, "cannot get \"%s\" thermal zone\n",
1825-
bdata->tzone_name);
1828+
tz_name_buf);
18261829
return PTR_ERR(svsb->tzd);
18271830
}
18281831
}

0 commit comments

Comments
 (0)