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

Commit 1e69c745 authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: phy: qusb: Fix invalid gpio being treated as valid



A gpio of value 0 is valid and currently in the case
of invalid gpio, the notifier_gpio is updated to 0.
This causes invalid calls of get gpio value on gpio 0.

Fix this by not setting the gpio value to 0, if a valid
gpio could not be fetched.

Change-Id: Idbf3a36df6dfb4eaca1fe53d59faccc4b064d461
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 39cb43ef
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1769,7 +1769,6 @@ static int qusb_phy_probe(struct platform_device *pdev)
		if (ret)
			return ret;
	} else {
		qphy->notifier_gpio = 0;
		qphy->is_port_valid = true;
	}