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

Commit 94893df3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: tspp: fix mode 2 configuration for TSIF1 port"

parents 7c6cf2cc 022d119e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -661,8 +661,7 @@ static int tspp_config_gpios(struct tspp_device *device,
	int ret;
	struct pinctrl_state *s;
	struct tspp_pinctrl *p = &device->pinctrl;
	/* Both TSIF always work in the same mode */
	bool mode2 = device->tsif[0].mode == TSPP_TSIF_MODE_2;
	bool mode2;

	/*
	 * TSIF devices are handled separately, however changing of the pinctrl
@@ -673,6 +672,7 @@ static int tspp_config_gpios(struct tspp_device *device,

	switch (source) {
	case TSPP_SOURCE_TSIF0:
		mode2 = device->tsif[0].mode == TSPP_TSIF_MODE_2;
		if (enable == p->tsif1_active) {
			if (enable)
				/* Both tsif enabled */
@@ -693,6 +693,7 @@ static int tspp_config_gpios(struct tspp_device *device,
			p->tsif0_active = enable;
		break;
	case TSPP_SOURCE_TSIF1:
		mode2 = device->tsif[1].mode == TSPP_TSIF_MODE_2;
		if (enable == p->tsif0_active) {
			if (enable)
				/* Both tsif enabled */