提交 c4f880d0 编写于 作者: S Sean Young 提交者: Zheng Zengkai

media: igorplugusb: receiver overflow should be reported

stable inclusion
from stable-v5.10.94
commit f6bc6b178ce1dc6e2545f5830fe79e2c6b14724f
bugzilla: https://gitee.com/openeuler/kernel/issues/I531X9

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f6bc6b178ce1dc6e2545f5830fe79e2c6b14724f

--------------------------------

[ Upstream commit 8fede658 ]

Without this, some IR will be missing mid-stream and we might decode
something which never really occurred.
Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 d259afc2
...@@ -64,9 +64,11 @@ static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len) ...@@ -64,9 +64,11 @@ static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len)
if (start >= len) { if (start >= len) {
dev_err(ir->dev, "receive overflow invalid: %u", overflow); dev_err(ir->dev, "receive overflow invalid: %u", overflow);
} else { } else {
if (overflow > 0) if (overflow > 0) {
dev_warn(ir->dev, "receive overflow, at least %u lost", dev_warn(ir->dev, "receive overflow, at least %u lost",
overflow); overflow);
ir_raw_event_reset(ir->rc);
}
do { do {
rawir.duration = ir->buf_in[i] * 85; rawir.duration = ir->buf_in[i] * 85;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册