Skip to content

Commit f19df6e

Browse files
dm0-Steven Price
authored andcommitted
drm/panfrost: Skip speed binning on EOPNOTSUPP
Encountered on an ARM Mali-T760 MP4, attempting to read the nvmem variable can also return EOPNOTSUPP instead of ENOENT when speed binning is unsupported. Cc: <stable@vger.kernel.org> Fixes: 7d690f9 ("drm/panfrost: Add basic support for speed binning") Signed-off-by: David Michael <fedora.dm0@gmail.com> Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Steven Price <steven.price@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/87msyryd7y.fsf@gmail.com
1 parent 20c8276 commit f19df6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/panfrost/panfrost_devfreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int panfrost_read_speedbin(struct device *dev)
9696
* keep going without it; any other error means that we are
9797
* supposed to read the bin value, but we failed doing so.
9898
*/
99-
if (ret != -ENOENT) {
99+
if (ret != -ENOENT && ret != -EOPNOTSUPP) {
100100
DRM_DEV_ERROR(dev, "Cannot read speed-bin (%d).", ret);
101101
return ret;
102102
}

0 commit comments

Comments
 (0)