summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-11 17:22:30 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2019-12-16 12:05:09 +0100
commit58704033816210b6fd549f407a30092af5a498b0 (patch)
treea9fba99789cd76739935303a24066fd69e21b7ae /drivers/media
parent601282d65b96bf2cbdc715e08bcdc9ca92b239e8 (diff)
media: pulse8-cec: schedule next ping after current ping finished
Don't schedule the next ping before the current ping is sent, schedule it after. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/usb/pulse8-cec/pulse8-cec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pulse8-cec/pulse8-cec.c b/drivers/media/usb/pulse8-cec/pulse8-cec.c
index d18d1f456576..17fcaf7e558a 100644
--- a/drivers/media/usb/pulse8-cec/pulse8-cec.c
+++ b/drivers/media/usb/pulse8-cec/pulse8-cec.c
@@ -790,7 +790,6 @@ static void pulse8_ping_eeprom_work_handler(struct work_struct *work)
container_of(work, struct pulse8, ping_eeprom_work.work);
u8 cmd;
- schedule_delayed_work(&pulse8->ping_eeprom_work, PING_PERIOD);
mutex_lock(&pulse8->lock);
cmd = MSGCODE_PING;
pulse8_send_and_wait(pulse8, &cmd, 1,
@@ -809,6 +808,7 @@ static void pulse8_ping_eeprom_work_handler(struct work_struct *work)
pulse8->config_pending = false;
}
unlock:
+ schedule_delayed_work(&pulse8->ping_eeprom_work, PING_PERIOD);
mutex_unlock(&pulse8->lock);
}