Skip to contentSkip to conversation

Fix for hanging si2168 in PCTV 292e, making code match

PATCH Antti Palosaari 1 participant 1 message Mar 7, 2018 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Ron Economos

I'm almost 100% sure that the patch I submitted (and was committed in Linux 4.16-rc1) for the si2168 fixes Nigel's issue. I would suggest that Nigel's patch be retired.

https://github.com/torvalds/linux/blob/master/drivers/media/dvb-frontends/si2168.c

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

Quoted 8 lines

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.

Ron

Yes, you are likely correct!

Patch is already applied, but however I think it should be something like usleep_range(100, ~0) in order to allow scheduler optimize resources as upper limit of delay is not critical at all. See Documentation/timers/timers-howto.txt

regards
Antti

Signature · 1 line
http://palosaari.fi/