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

Commit e1f43442 authored by Dinesh K Garg's avatar Dinesh K Garg
Browse files

crypto: ice: Check right bit for BYPASS status



ICE driver is checking wrong bit for ICE BYPASS Status. Adding code
to check right bit.

Change-Id: Idb7f9609b3e125b2bf0b1f084960958cd01b1033
Signed-off-by: default avatarDinesh K Garg <dineshg@codeaurora.org>
parent 09deb55f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -407,7 +407,7 @@ static void qcom_ice_enable(struct ice_device *ice_dev)
		((ICE_REV(ice_dev->ice_hw_version, MAJOR) == 2) &&
		 (ICE_REV(ice_dev->ice_hw_version, MINOR) >= 1))) {
		reg = qcom_ice_readl(ice_dev, QCOM_ICE_REGS_BYPASS_STATUS);
		if ((reg & 0x8000000) != 0x0) {
		if ((reg & 0x80000000) != 0x0) {
			pr_err("%s: Bypass failed for ice = %p",
				__func__, (void *)ice_dev);
			BUG();