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

Commit 022d119e authored by Gilad Broner's avatar Gilad Broner
Browse files

msm: tspp: fix mode 2 configuration for TSIF1 port



Mode 2 configuration for TSIF1 was ignored unless set for TSIF0.
This caused incorrect gpio configuration and inability to read
transport stream data on TSIF.

Change-Id: Ibfd67b43d0a19373d5122d4f0741dd2b0502fcf7
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent b37e3871
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 */