Commit dfabd5ad authored by Oleh Kravchenko's avatar Oleh Kravchenko Committed by Thadeu Lima de Souza Cascardo

cx231xx: Fix I2C on Internal Master 3 Bus

BugLink: http://bugs.launchpad.net/bugs/1731915

[ Upstream commit 6c5da803 ]

Internal Master 3 Bus can send and receive only 4 bytes per time.
Signed-off-by: default avatarOleh Kravchenko <oleg@kaa.org.ua>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent 905ee991
...@@ -356,7 +356,12 @@ int cx231xx_send_vendor_cmd(struct cx231xx *dev, ...@@ -356,7 +356,12 @@ int cx231xx_send_vendor_cmd(struct cx231xx *dev,
*/ */
if ((ven_req->wLength > 4) && ((ven_req->bRequest == 0x4) || if ((ven_req->wLength > 4) && ((ven_req->bRequest == 0x4) ||
(ven_req->bRequest == 0x5) || (ven_req->bRequest == 0x5) ||
(ven_req->bRequest == 0x6))) { (ven_req->bRequest == 0x6) ||
/* Internal Master 3 Bus can send
* and receive only 4 bytes per time
*/
(ven_req->bRequest == 0x2))) {
unsend_size = 0; unsend_size = 0;
pdata = ven_req->pBuff; pdata = ven_req->pBuff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment