mirror of
https://github.com/openbsd/src.git
synced 2026-04-20 04:04:36 +00:00
drm/amd/pm: Return -EOPNOTSUPP for unsupported OD_MCLK on smu_v13_0_6
From Asad Kamal 54c143028eb45baec385e8731eb42e22b9c25333 in linux-6.18.y/6.18.21 2f0e491faee43181b6a86e90f34016b256042fe1 in mainline linux
This commit is contained in:
@@ -1494,7 +1494,7 @@ static int smu_v13_0_6_print_clk_levels(struct smu_context *smu,
|
||||
|
||||
case SMU_OD_MCLK:
|
||||
if (!smu_v13_0_6_cap_supported(smu, SMU_CAP(SET_UCLK_MAX)))
|
||||
return 0;
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
size += sysfs_emit_at(buf, size, "%s:\n", "OD_MCLK");
|
||||
size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMhz\n",
|
||||
|
||||
Reference in New Issue
Block a user