Skip to content

Commit 1cdbfd4

Browse files
Srinivas-Kandagatlavinodkoul
authored andcommitted
soundwire: qcom: make reset optional for v1.6 controller
On Some Qualcomm SOCs like sc8280xp which uses v1.6 soundwire controller reset is not mandatory, so make this an optional one. Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent b39301e commit 1cdbfd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soundwire/qcom.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,8 @@ static int qcom_swrm_probe(struct platform_device *pdev)
13211321
}
13221322

13231323
if (data->sw_clk_gate_required) {
1324-
ctrl->audio_cgcr = devm_reset_control_get_exclusive(dev, "swr_audio_cgcr");
1325-
if (IS_ERR_OR_NULL(ctrl->audio_cgcr)) {
1324+
ctrl->audio_cgcr = devm_reset_control_get_optional_exclusive(dev, "swr_audio_cgcr");
1325+
if (IS_ERR(ctrl->audio_cgcr)) {
13261326
dev_err(dev, "Failed to get cgcr reset ctrl required for SW gating\n");
13271327
ret = PTR_ERR(ctrl->audio_cgcr);
13281328
goto err_init;

0 commit comments

Comments
 (0)