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

Commit ec8c9095 authored by Laxminath Kasam's avatar Laxminath Kasam
Browse files

soc: swr-ctrl: increase num retry count for soundwire link status



Increase retry count to check soundwire link status at bootup
inorder for probe to succeed. Handle error scenario if 
soundwire probe fails to cleanup device properly.

Change-Id: I4a545530e68221a1f428e05aff3d8a93b1dacf84
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent 02c598e2
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -45,7 +45,7 @@
#define ERR_AUTO_SUSPEND_TIMER_VAL 0x1
#define ERR_AUTO_SUSPEND_TIMER_VAL 0x1


#define SWRM_INTERRUPT_STATUS_MASK 0x1FDFD
#define SWRM_INTERRUPT_STATUS_MASK 0x1FDFD
#define SWRM_LINK_STATUS_RETRY_CNT 0x5
#define SWRM_LINK_STATUS_RETRY_CNT 100


#define SWRM_ROW_48    48
#define SWRM_ROW_48    48
#define SWRM_ROW_50    50
#define SWRM_ROW_50    50
@@ -2582,7 +2582,7 @@ static int swrm_probe(struct platform_device *pdev)
			"%s: Error in master Initialization , err %d\n",
			"%s: Error in master Initialization , err %d\n",
			__func__, ret);
			__func__, ret);
		mutex_unlock(&swrm->mlock);
		mutex_unlock(&swrm->mlock);
		goto err_mstr_fail;
		goto err_mstr_init_fail;
	}
	}


	mutex_unlock(&swrm->mlock);
	mutex_unlock(&swrm->mlock);
@@ -2627,6 +2627,8 @@ static int swrm_probe(struct platform_device *pdev)
	return 0;
	return 0;
err_irq_wakeup_fail:
err_irq_wakeup_fail:
	device_init_wakeup(swrm->dev, false);
	device_init_wakeup(swrm->dev, false);
err_mstr_init_fail:
	swr_unregister_master(&swrm->master);
err_mstr_fail:
err_mstr_fail:
	if (swrm->reg_irq)
	if (swrm->reg_irq)
		swrm->reg_irq(swrm->handle, swr_mstr_interrupt,
		swrm->reg_irq(swrm->handle, swr_mstr_interrupt,