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

Commit 693cdec6 authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: mailbox: qti_tcs: Return ETIMEDOUT instead of EIO



Respond with a more appropriate error value instead of the generic EIO,
when there is no response from the always-on subsystem.

Change-Id: I11fc2468a4281ed053c571fcbbf331cdcad37a5e
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 79d42bd7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -440,7 +440,6 @@ static void tcs_notify_timeout(struct work_struct *work)
	struct tcs_mbox_msg *msg = resp->msg;
	struct tcs_drv *drv = resp->drv;
	int m = resp->m;
	int err = -EIO;

	/*
	 * In case the RPMH resource fails to respond to the completion
@@ -471,7 +470,7 @@ static void tcs_notify_timeout(struct work_struct *work)
	}

	free_response_to_pool(resp);
	mbox_notify_tx_done(chan, msg, -1, err);
	mbox_notify_tx_done(chan, msg, -1, -ETIMEDOUT);
}

static void __tcs_buffer_write(struct tcs_drv *drv, int d, int m, int n,