Skip to contentSkip to conversation

r820t: Checking lock scopes around i2c_gate_ctrl() calls?

media SF Markus Elfring 1 participant 1 message Dec 28, 2015 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello,

I have looked at the implementation of the function "r820t_signal" once more.
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/drivers/media/tuners/r820t.c?id=80c75a0f1d81922bf322c0634d1e1a15825a89e6#n2242

The function which was assigned to the pointer "i2c_gate_ctrl" from the variable "fe" (data structure "dvb_frontend") is called after a mutex was locked. Would it make sense to reconsider the size of this lock scope?

Regards,
Markus