From patchwork Thu Jan 6 11:28:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 458741 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p06BWuqA007290 for ; Thu, 6 Jan 2011 11:32:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292Ab1AFLc3 (ORCPT ); Thu, 6 Jan 2011 06:32:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3914 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753286Ab1AFLc2 convert rfc822-to-8bit (ORCPT ); Thu, 6 Jan 2011 06:32:28 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p06BW5ar029508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 6 Jan 2011 06:32:05 -0500 Received: from gaivota (vpn-8-230.rdu.redhat.com [10.11.8.230]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p06BSltO001011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 6 Jan 2011 06:32:02 -0500 Date: Thu, 6 Jan 2011 09:28:32 -0200 From: Mauro Carvalho Chehab Cc: moinejf@free.fr, stable@kernel.org, Linux Media Mailing List Subject: [PATCH 4/4] [media] gspca - sonixj: Fix a bad probe exchange Message-ID: <20110106092832.41f5d061@gaivota> In-Reply-To: References: Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 To: unlisted-recipients:; (no To-header on input) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 06 Jan 2011 11:32:57 +0000 (UTC) diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 7adadd8..6f48b46 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c @@ -1715,7 +1715,7 @@ static int sd_init(struct gspca_dev *gspca_dev) /* setup a selector by bridge */ reg_w1(gspca_dev, 0xf1, 0x01); reg_r(gspca_dev, 0x00, 1); - reg_w1(gspca_dev, 0xf1, gspca_dev->usb_buf[0]); + reg_w1(gspca_dev, 0xf1, 0x00); reg_r(gspca_dev, 0x00, 1); /* get sonix chip id */ regF1 = gspca_dev->usb_buf[0]; PDEBUG(D_PROBE, "Sonix chip id: %02x", regF1);