From patchwork Thu Sep 1 06:27:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1118392 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p816RSjX013703 for ; Thu, 1 Sep 2011 06:27:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754380Ab1IAG1Y (ORCPT ); Thu, 1 Sep 2011 02:27:24 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:57788 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753666Ab1IAG1X (ORCPT ); Thu, 1 Sep 2011 02:27:23 -0400 Received: from localhost (p548E0789.dip0.t-ipconnect.de [84.142.7.137]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0Lm4GH-1RY4Nc3TTV-00ZDJ9; Thu, 01 Sep 2011 08:27:22 +0200 From: Thierry Reding To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab Subject: [PATCH 2/2] [media] tm6000: Enable fast USB quirk on Cinergy Hybrid Date: Thu, 1 Sep 2011 08:27:21 +0200 Message-Id: <1314858441-30813-2-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.6.1 In-Reply-To: <1314858441-30813-1-git-send-email-thierry.reding@avionic-design.de> References: <4E5F1C87.9050207@redhat.com> <1314858441-30813-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:hVer2bUP6it9FQ74EKnbkXAZmDbT2UizyiMkxSkY0x+ D9i8RyrMCktFEZVtXgRsFUNkOFUVz42iEnD+jf9LI9oMmtXPHM nK/ziEwAbs0GFfchRT5S9KxaDFKnd3U1X393RDGYWRIvwBx4Oo KhHQZ3OoMeuXM/owY1fxnAEwat3SDWHmt8Z+TKHzY1gdjoe5RS QX0d+sbChSWGZGnyACxAVssYkHuoLETrS+ajYH+q1TG9Dh4/I5 L46k/0H/qIHgEpx3ZUwoNroSyXhlYbxHvQE8lFMWe869iK5dri MbleT4GtdrlrcYDUrhhCnfo7ITOuzvD1IdhdUcpI39sF5FKuRL mpR9OLdcJdV8DuDcrWIbbaC1FoSmSR9fEGMt4gSYalcCz2vQVT W7tckN+AbTx+nr2DavFPw6AtBQxf/+9nyU= 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 (demeter2.kernel.org [140.211.167.43]); Thu, 01 Sep 2011 06:27:28 +0000 (UTC) The Cinergy Hybrid cards are known not to need an artificial delay after USB accesses so the quirk can safely be enabled. Signed-off-by: Thierry Reding --- drivers/staging/tm6000/tm6000-cards.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/staging/tm6000/tm6000-cards.c b/drivers/staging/tm6000/tm6000-cards.c index 5393976..aa18173 100644 --- a/drivers/staging/tm6000/tm6000-cards.c +++ b/drivers/staging/tm6000/tm6000-cards.c @@ -1002,6 +1002,16 @@ static int fill_board_specific_data(struct tm6000_core *dev) dev->vinput[2] = tm6000_boards[dev->model].vinput[2]; dev->rinput = tm6000_boards[dev->model].rinput; + /* setup per-model quirks */ + switch (dev->model) { + case TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE: + dev->quirks |= TM6000_QUIRK_NO_USB_DELAY; + break; + + default: + break; + } + /* initialize hardware */ rc = tm6000_init(dev); if (rc < 0)