mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
staging: vc04_services: vchiq_arm: Drop VCHIQ_RETRY usage on disconnect
Drop the usage of VCHIQ_RETRY when the vchiq has connection status VCHIQ_CONNSTATE_DISCONNECTED. Disconnected status will not be valid to carry on a retry, hence replace the VCHIQ_RETRY with -ENOTCONN. This patch removes the usage of vCHIQ_RETRY completely and act as intermediatory to address the TODO item: * Get rid of custom function return values for vc04_services/interface. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Tested-by: Stefan Wahren <stefan.wahren@i2se.com> Link: https://lore.kernel.org/r/20221223122404.170585-6-umang.jain@ideasonboard.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
82a9eb4a35
commit
030691e135
|
|
@ -3651,7 +3651,7 @@ vchiq_loud_error_footer(void)
|
|||
int vchiq_send_remote_use(struct vchiq_state *state)
|
||||
{
|
||||
if (state->conn_state == VCHIQ_CONNSTATE_DISCONNECTED)
|
||||
return VCHIQ_RETRY;
|
||||
return -ENOTCONN;
|
||||
|
||||
return queue_message(state, NULL, MAKE_REMOTE_USE, NULL, NULL, 0, 0);
|
||||
}
|
||||
|
|
@ -3659,7 +3659,7 @@ int vchiq_send_remote_use(struct vchiq_state *state)
|
|||
int vchiq_send_remote_use_active(struct vchiq_state *state)
|
||||
{
|
||||
if (state->conn_state == VCHIQ_CONNSTATE_DISCONNECTED)
|
||||
return VCHIQ_RETRY;
|
||||
return -ENOTCONN;
|
||||
|
||||
return queue_message(state, NULL, MAKE_REMOTE_USE_ACTIVE,
|
||||
NULL, NULL, 0, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user