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

Commit 13cde485 authored by himta ram's avatar himta ram Committed by Gerrit - the friendly Code Review server
Browse files

RTC6226: extend the seek timeout to 15 sec



Seek time out is set to 7 sec and when lower Channel Spacing
is configured. RTC6226 chip is taking more then 7 sec to scan
the whole band range.
Set the seek timeout to 15 sec so that scan can be performed
within the seek timeout value.
Set the Tune time out value to 3 sec.

CRs-Fixed: 2744390
Change-Id: Id79f21aaac049b78ec22b8f90c533deac4bc448b
Signed-off-by: default avatarhimta ram <hram@codeaurora.org>
parent e3e20132
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ void rtc6226_scan(struct work_struct *work)
		goto seek_tune_fail;
	/* wait for tune to complete. */
	if (!wait_for_completion_timeout(&radio->completion,
				msecs_to_jiffies(WAIT_TIMEOUT_MSEC))) {
				msecs_to_jiffies(TUNE_TIMEOUT_MSEC))) {
		FMDERR("In %s, didn't receive STC for tune\n", __func__);
		rtc6226_q_event(radio, RTC6226_EVT_ERROR);
		return;
@@ -360,7 +360,7 @@ void rtc6226_scan(struct work_struct *work)
		}
			/* wait for seek to complete */
		if (!wait_for_completion_timeout(&radio->completion,
					msecs_to_jiffies(WAIT_TIMEOUT_MSEC))) {
					msecs_to_jiffies(SEEK_TIMEOUT_MSEC))) {
			FMDERR("%s:timeout didn't receive STC for seek\n",
						__func__);
			rtc6226_get_all_registers(radio);
@@ -433,7 +433,7 @@ void rtc6226_scan(struct work_struct *work)
				goto seek_tune_fail;
			}
			if (!wait_for_completion_timeout(&radio->completion,
					msecs_to_jiffies(WAIT_TIMEOUT_MSEC))) {
					msecs_to_jiffies(SEEK_TIMEOUT_MSEC))) {
				FMDERR("timeout didn't receive STC for seek\n");
				rtc6226_q_event(radio, RTC6226_EVT_ERROR);
				return;
@@ -489,7 +489,7 @@ void rtc6226_scan(struct work_struct *work)
				__func__, retval);
	else {
		if (!wait_for_completion_timeout(&radio->completion,
			msecs_to_jiffies(WAIT_TIMEOUT_MSEC)))
			msecs_to_jiffies(TUNE_TIMEOUT_MSEC)))
			FMDERR("%s: didn't receive STD for tune\n", __func__);
		else
			FMDERR("%s: received STD for tune\n", __func__);
+2 −1
Original line number Diff line number Diff line
@@ -199,7 +199,8 @@
#define SEEK_PENDING 2
#define SCAN_PENDING 3
#define START_SCAN 1
#define WAIT_TIMEOUT_MSEC 7000
#define TUNE_TIMEOUT_MSEC 3000
#define SEEK_TIMEOUT_MSEC 15000

#define RTC6226_MIN_SRCH_MODE 0x00
#define RTC6226_MAX_SRCH_MODE 0x02