mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-08 07:15:55 +00:00
[media] rtl2832: Fix deadlock on i2c mux select function
Signed-off-by: Luis Alves <ljalvs@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
0ea872d43e
commit
0db5c800aa
@ -917,7 +917,7 @@ static int rtl2832_select(struct i2c_adapter *adap, void *mux_priv, u32 chan_id)
|
|||||||
buf[0] = 0x00;
|
buf[0] = 0x00;
|
||||||
buf[1] = 0x01;
|
buf[1] = 0x01;
|
||||||
|
|
||||||
ret = i2c_transfer(adap, msg, 1);
|
ret = __i2c_transfer(adap, msg, 1);
|
||||||
if (ret != 1)
|
if (ret != 1)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
@ -930,7 +930,7 @@ static int rtl2832_select(struct i2c_adapter *adap, void *mux_priv, u32 chan_id)
|
|||||||
else
|
else
|
||||||
buf[1] = 0x10; /* close */
|
buf[1] = 0x10; /* close */
|
||||||
|
|
||||||
ret = i2c_transfer(adap, msg, 1);
|
ret = __i2c_transfer(adap, msg, 1);
|
||||||
if (ret != 1)
|
if (ret != 1)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user