From patchwork Tue Jun 1 22:57:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Lorin X-Patchwork-Id: 103664 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o51MvvKH003101 for ; Tue, 1 Jun 2010 22:57:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756670Ab0FAW5z (ORCPT ); Tue, 1 Jun 2010 18:57:55 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:56931 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754678Ab0FAW5z (ORCPT ); Tue, 1 Jun 2010 18:57:55 -0400 Received: by mail-ww0-f46.google.com with SMTP id 28so2464375wwb.19 for ; Tue, 01 Jun 2010 15:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=K3/97+exbTze0OTpeda3ADilRcrllPGSSK8P96DMfaE=; b=gEI6g/U2v70lrHCpMZ3yAO8AWp7X5rXA5vMKQmEYEuj4NgC8+R/VteNN3JY1ZxFAhd qPymqut2wVm1r0cUtrw8IW8/pGwJ2GYU+/F8r0Hopbak/q6Cmtg9BNyomP9skj17vCmX DdZsVMuTUKtv6uquxFtvMo2UaT41b4nhF+EkI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=A3RPa3D4M64dXA7x93ZfqUwatoyXZ6p9q+Cv1Pdif3IoRGpF2s+7c+3N3N+96gWbGw na+cUZ3s2JzSf+BG4/ry/AjsOx4XuBaqdLSMpOG3WSkbuFrGQFJggVHJGJg4fn33QuRS 59m2ycpZ7XxtYaiQJjvHvQl6l/xKgoW1rtxrw= Received: by 10.227.152.69 with SMTP id f5mr6611081wbw.73.1275433072898; Tue, 01 Jun 2010 15:57:52 -0700 (PDT) Received: from [192.168.1.3] (cha25-4-78-248-177-42.fbx.proxad.net [78.248.177.42]) by mx.google.com with ESMTPS id n31sm3263624wba.21.2010.06.01.15.57.52 (version=SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 15:57:52 -0700 (PDT) Subject: [PATCH 3/6] gspca - gl860: USB control message delay unification From: Olivier Lorin To: V4L Mailing List Cc: Jean-Francois Moine Date: Wed, 02 Jun 2010 00:57:48 +0200 Message-Id: <1275433068.20756.101.camel@miniol> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 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.3 (demeter.kernel.org [140.211.167.41]); Tue, 01 Jun 2010 22:57:57 +0000 (UTC) diff -urpN i2/gl860.c gl860/gl860.c --- i2/gl860.c 2010-06-01 23:11:26.000000000 +0200 +++ gl860/gl860.c 2010-06-01 23:16:59.000000000 +0200 @@ -595,10 +595,7 @@ int gl860_RTx(struct gspca_dev *gspca_de else if (len > 1 && r < len) PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len); - if (_MI2020_ && (val || index)) - msleep(1); - if (_OV2640_) - msleep(1); + msleep(1); return r; }