Received: by 10.213.65.68 with SMTP id h4csp529261imn; Fri, 16 Mar 2018 10:30:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELvFhYPhEsEBnkIIT8SDRZC4hm+cIv9WdK6gOvTBiajmlpiBs/QuI2XvL4EJTkcRO5hEyDc6 X-Received: by 10.101.86.70 with SMTP id m6mr2102864pgs.349.1521221423303; Fri, 16 Mar 2018 10:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521221423; cv=none; d=google.com; s=arc-20160816; b=In9WpPfAbF8JSm5KTkxmIFI7f4SHSOrJNDcs4N3RqKDdkZpDyYQzbpsb9XxBfBKKJA IT80r0AXZrMOveywW2mT4Y7ajdmhe3mHCCQh0p84LKUjkbBregpEIR5zuMt38vTLKeRL +LgKuJXNOQCjgD1jWhAIgoiYri9v5bJl77St1ttoMnqvLmk5XAXgi04cWazCUppGncKm wuCCeUgVvi0PwtqVqHmcv1WEy03SO+iaKKfHhYjoPgoMX2RrdAukNrzbtDTMAe0Qd3Ox VrDr8F60SfN3wd7p2pBl3H9UTEsEq1MgU6gyFFdmq6RZDt3FcnS8gLKirdgke98N3GOk z2Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=m6+dKC10BqRw2plHGeP8d+HrPAVC3fnYwLVQXBa9nmA=; b=0huHfkSrsvKVHEJYSiKisIg2WqzW9Vc0KfhtQTH7ar8m+TjFTFWDg6x7XzHnXXBngh PN79k+4HyPenBHD/H2Y7ASquLmMib67D/rbR5iwpgyThn8We4tz6BZ8Oip21G7Cy4Jbe HKM7nLtwXy1rWgJrkKnaCQijsW7NTQqbfYb5ZI7ttoy2Ia16olQLKjpzL9cdLMMaFf3i e7X2s8eozNBIJAhrnHAbDHLnZRHZ1vItUWrR+JZrART1G41+Eh4fc0hZf4H0iInZ2Hl4 8PmNH6D4n+yEd+1PCz84h+fp45ULnrcovAHT8iLxTtYdaw1UorQyLa4fiN9Z/FPWmtzP lSPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h128si4516353pfb.152.2018.03.16.10.30.08; Fri, 16 Mar 2018 10:30:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932775AbeCPP2E (ORCPT + 99 others); Fri, 16 Mar 2018 11:28:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34910 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754270AbeCPP2B (ORCPT ); Fri, 16 Mar 2018 11:28:01 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 86113124A; Fri, 16 Mar 2018 15:28:00 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab , Philipp Zabel , Arnd Bergmann , Hans Verkuil , Ben Hutchings Subject: [PATCH 4.4 33/63] [media] tc358743: fix register i2c_rd/wr function fix Date: Fri, 16 Mar 2018 16:23:05 +0100 Message-Id: <20180316152303.724604381@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Philipp Zabel commit f2c61f98e0b5f8b53b8fb860e5dcdd661bde7d0b upstream. The below mentioned fix contains a small but severe bug, fix it to make the driver work again. Fixes: 3538aa6ecfb2 ("[media] tc358743: fix register i2c_rd/wr functions") Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Philipp Zabel Acked-by: Arnd Bergmann Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -226,7 +226,7 @@ static void i2c_wr8(struct v4l2_subdev * static void i2c_wr8_and_or(struct v4l2_subdev *sd, u16 reg, u8 mask, u8 val) { - i2c_wrreg(sd, reg, (i2c_rdreg(sd, reg, 2) & mask) | val, 2); + i2c_wrreg(sd, reg, (i2c_rdreg(sd, reg, 1) & mask) | val, 1); } static u16 i2c_rd16(struct v4l2_subdev *sd, u16 reg)