]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/panfrost: Skip speed binning on EOPNOTSUPP
authorDavid Michael <fedora.dm0@gmail.com>
Wed, 16 Aug 2023 01:42:41 +0000 (21:42 -0400)
committerSteven Price <steven.price@arm.com>
Mon, 21 Aug 2023 14:38:54 +0000 (15:38 +0100)
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: 7d690f936e9b ("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
drivers/gpu/drm/panfrost/panfrost_devfreq.c

index 58dfb15a8757f11598819a003efef8e463c84e9f..e78de99e9933586b5bb8d114d1cd39f3c10313f0 100644 (file)
@@ -96,7 +96,7 @@ static int panfrost_read_speedbin(struct device *dev)
                 * keep going without it; any other error means that we are
                 * supposed to read the bin value, but we failed doing so.
                 */
-               if (ret != -ENOENT) {
+               if (ret != -ENOENT && ret != -EOPNOTSUPP) {
                        DRM_DEV_ERROR(dev, "Cannot read speed-bin (%d).", ret);
                        return ret;
                }