Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77e01d6d authored by Hong Liu's avatar Hong Liu Committed by Matthew Garrett
Browse files

intel_scu_ipc: return -EIO for error condition in busy_loop



Signed-off-by: default avatarHong Liu <hong.liu@intel.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 215c330f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -148,7 +148,10 @@ static inline int busy_loop(void) /* Wait till scu status is busy */
			return -ETIMEDOUT;
		}
	}
	return (status >> 1) & 1;
	if ((status >> 1) & 1)
		return -EIO;

	return 0;
}

/* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */