Commit af66df0f authored by Thierry Escande's avatar Thierry Escande Committed by Samuel Ortiz

NFC: digital: Set the command pending flag

There is a flag in the command structure indicating that this command is
pending. It was checked before sending the command to not send the same
command twice but it was actually never set. This is now fixed.
Signed-off-by: default avatarThierry Escande <thierry.escande@collabora.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 82e57952
...@@ -176,6 +176,8 @@ static void digital_wq_cmd(struct work_struct *work) ...@@ -176,6 +176,8 @@ static void digital_wq_cmd(struct work_struct *work)
return; return;
} }
cmd->pending = 1;
mutex_unlock(&ddev->cmd_lock); mutex_unlock(&ddev->cmd_lock);
if (cmd->req) if (cmd->req)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment