Commit 380a6c86 authored by Ron Economos's avatar Ron Economos Committed by Mauro Carvalho Chehab

media: [RESEND] media: dvb-frontends: Add delay to Si2168 restart

On faster CPUs a delay is required after the resume command and the restart command. Without the delay, the restart command often returns -EREMOTEIO and the Si2168 does not restart.

Note that this patch fixes the same issue as https://patchwork.linuxtv.org/patch/44304/, but I believe my udelay() fix addresses the actual problem.
Signed-off-by: default avatarRon Economos <w6rz@comcast.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 78e41c16
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <linux/delay.h>
#include "si2168_priv.h" #include "si2168_priv.h"
static const struct dvb_frontend_ops si2168_ops; static const struct dvb_frontend_ops si2168_ops;
...@@ -435,6 +437,7 @@ static int si2168_init(struct dvb_frontend *fe) ...@@ -435,6 +437,7 @@ static int si2168_init(struct dvb_frontend *fe)
if (ret) if (ret)
goto err; goto err;
udelay(100);
memcpy(cmd.args, "\x85", 1); memcpy(cmd.args, "\x85", 1);
cmd.wlen = 1; cmd.wlen = 1;
cmd.rlen = 1; cmd.rlen = 1;
......
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