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

Commit 85c85ac4 authored by Armaan Siddiqui's avatar Armaan Siddiqui
Browse files

msm: ipa: Add default cases for gsi and ipa hw version



Add default cases to avoid compilation error for unsupported
or new hw version

Change-Id: I37d8c753225a71ef6f1f28261e5938e40435fe50
Signed-off-by: default avatarArmaan Siddiqui <asiddiqu@codeaurora.org>
parent 502288d0
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -886,6 +886,9 @@ static uint32_t gsi_get_max_channels(enum gsi_ver ver)
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_CH_PER_EE_BMSK) >>
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_CH_PER_EE_BMSK) >>
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_CH_PER_EE_SHFT;
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_CH_PER_EE_SHFT;
		break;
		break;
	default:
		GSIERR("GSI version is not supported %d\n", ver);
		break;
	}
	}


	GSIDBG("max channels %d\n", reg);
	GSIDBG("max channels %d\n", reg);
@@ -957,6 +960,9 @@ static uint32_t gsi_get_max_event_rings(enum gsi_ver ver)
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_EV_PER_EE_BMSK) >>
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_EV_PER_EE_BMSK) >>
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_EV_PER_EE_SHFT;
			GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_EV_PER_EE_SHFT;
		break;
		break;
	default:
		GSIERR("GSI version is not supported %d\n", ver);
		break;
	}
	}


	GSIDBG("max event rings %d\n", reg);
	GSIDBG("max event rings %d\n", reg);
+1 −0
Original line number Original line Diff line number Diff line
@@ -5934,6 +5934,7 @@ int ipa3_init_mem_partition(enum ipa_hw_type type)
	case IPA_HW_v3_5:
	case IPA_HW_v3_5:
	case IPA_HW_v3_5_1:
	case IPA_HW_v3_5_1:
	case IPA_HW_v4_0:
	case IPA_HW_v4_0:
	default:
		IPAERR("unsupported version %d\n", type);
		IPAERR("unsupported version %d\n", type);
		return -EPERM;
		return -EPERM;
	}
	}