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

Commit c6a3363c authored by J. German Rivera's avatar J. German Rivera Committed by Greg Kroah-Hartman
Browse files

staging: fsl-mc: changed timeout units for MC cmd completion



Changed units for the timeout to wait for completion
of MC command, from jiffies to milliseconds.

Signed-off-by: default avatarJ. German Rivera <German.Rivera@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e65f46a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -42,9 +42,9 @@
#include "dpmcp.h"

/**
 * Timeout in jiffies to wait for the completion of an MC command
 * Timeout in milliseconds to wait for the completion of an MC command
 */
#define MC_CMD_COMPLETION_TIMEOUT_JIFFIES   (HZ / 2)	/* 500 ms */
#define MC_CMD_COMPLETION_TIMEOUT_MS	500

/*
 * usleep_range() min and max values used to throttle down polling
@@ -305,7 +305,7 @@ int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd)
{
	enum mc_cmd_status status;
	unsigned long jiffies_until_timeout =
	    jiffies + MC_CMD_COMPLETION_TIMEOUT_JIFFIES;
		jiffies + msecs_to_jiffies(MC_CMD_COMPLETION_TIMEOUT_MS);

	/*
	 * Send command to the MC hardware: