Skip to content

Commit 762d076

Browse files
Oleh-Kravchenkogregkh
authored andcommitted
cx231xx: Fix I2C on Internal Master 3 Bus
[ Upstream commit 6c5da8031a3abfad259190d35f83d89568b72ee2 ] Internal Master 3 Bus can send and receive only 4 bytes per time. Signed-off-by: Oleh Kravchenko <oleg@kaa.org.ua> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0806eaf commit 762d076

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/media/usb/cx231xx/cx231xx-core.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,12 @@ int cx231xx_send_vendor_cmd(struct cx231xx *dev,
356356
*/
357357
if ((ven_req->wLength > 4) && ((ven_req->bRequest == 0x4) ||
358358
(ven_req->bRequest == 0x5) ||
359-
(ven_req->bRequest == 0x6))) {
359+
(ven_req->bRequest == 0x6) ||
360+
361+
/* Internal Master 3 Bus can send
362+
* and receive only 4 bytes per time
363+
*/
364+
(ven_req->bRequest == 0x2))) {
360365
unsend_size = 0;
361366
pdata = ven_req->pBuff;
362367

0 commit comments

Comments
 (0)