From patchwork Thu Aug 4 07:14:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1034052 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p747EdRw032067 for ; Thu, 4 Aug 2011 07:14:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751689Ab1HDHOh (ORCPT ); Thu, 4 Aug 2011 03:14:37 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:53608 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480Ab1HDHOY (ORCPT ); Thu, 4 Aug 2011 03:14:24 -0400 Received: from localhost (p548E06E4.dip0.t-ipconnect.de [84.142.6.228]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MMHYT-1QjfbW0oQ9-008h6L; Thu, 04 Aug 2011 09:14:23 +0200 From: Thierry Reding To: linux-media@vger.kernel.org Subject: [PATCH 06/21] [staging] tm6000: Increase maximum I2C packet size. Date: Thu, 4 Aug 2011 09:14:04 +0200 Message-Id: <1312442059-23935-7-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1312442059-23935-1-git-send-email-thierry.reding@avionic-design.de> References: <1312442059-23935-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:uJXUy084L23BIf/BN8i0yk8zIyAySD1ecniHnHIR/uk FE+F4k0f3u4ZvYkIyrJJ4w4Wi9NVfVhmp3Eg1Y98vMJ+4NAiiX v4txw1GBc0gjJ4RCIASoeiWakNpLbM7cQ8hvEQr+0p6PkhDDTA 1IOEO91cfjwmTrek6OlfxjmA8dOZIjAX2N9d0BNvo8bPTS9DYj rHyPxtolTxUWorxX781Ein1/AimTyd9fOXkNP1/wkNFBqI6CzB SPY1I6SYwrfCw 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, 04 Aug 2011 07:14:40 +0000 (UTC) The TM6010 supports much larger I2C transfers than currently specified. In fact the Windows driver seems to use 81 bytes per packet by default. This commit improves the speed of firmware loading a bit. --- drivers/staging/tm6000/tm6000-cards.c | 1 + drivers/staging/tm6000/tm6000-i2c.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/staging/tm6000/tm6000-cards.c b/drivers/staging/tm6000/tm6000-cards.c index c3b84c9..a5d2a71 100644 --- a/drivers/staging/tm6000/tm6000-cards.c +++ b/drivers/staging/tm6000/tm6000-cards.c @@ -929,6 +929,7 @@ static void tm6000_config_tuner(struct tm6000_core *dev) memset(&ctl, 0, sizeof(ctl)); ctl.demod = XC3028_FE_ZARLINK456; + ctl.max_len = 81; xc2028_cfg.tuner = TUNER_XC2028; xc2028_cfg.priv = &ctl; diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c index 21cd9f8..2cb7573 100644 --- a/drivers/staging/tm6000/tm6000-i2c.c +++ b/drivers/staging/tm6000/tm6000-i2c.c @@ -50,7 +50,7 @@ static int tm6000_i2c_send_regs(struct tm6000_core *dev, unsigned char addr, unsigned int i2c_packet_limit = 16; if (dev->dev_type == TM6010) - i2c_packet_limit = 64; + i2c_packet_limit = 256; if (!buf) return -1;