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

Commit ee51ecd8 authored by Prudhvi Yarlagadda's avatar Prudhvi Yarlagadda
Browse files

spi: spi-geni-qcom: Set SPI gpios to sleep state in probe



Set SPI gpios to sleep state during probe so that these gpios
will be set to sleep state at boot up.

Change-Id: Icbc6424986e663339fd85b458b07cce33258b171
Signed-off-by: default avatarPrudhvi Yarlagadda <pyarlaga@codeaurora.org>
parent 582df5da
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1394,6 +1394,13 @@ static int spi_geni_probe(struct platform_device *pdev)
		goto spi_geni_probe_err;
	}

	ret = pinctrl_select_state(rsc->geni_pinctrl,
					rsc->geni_gpio_sleep);
	if (ret) {
		dev_err(&pdev->dev, "Failed to set sleep configuration\n");
		goto spi_geni_probe_err;
	}

	rsc->se_clk = devm_clk_get(&pdev->dev, "se-clk");
	if (IS_ERR(rsc->se_clk)) {
		ret = PTR_ERR(rsc->se_clk);