From patchwork Sun Jul 3 20:13:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafi Rubin X-Patchwork-Id: 941052 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 p63KVtFj002844 for ; Sun, 3 Jul 2011 20:31:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754612Ab1GCUbw (ORCPT ); Sun, 3 Jul 2011 16:31:52 -0400 Received: from fox.seas.upenn.edu ([158.130.68.12]:58953 "EHLO fox.seas.upenn.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752938Ab1GCUbw (ORCPT ); Sun, 3 Jul 2011 16:31:52 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 03 Jul 2011 20:31:55 +0000 (UTC) X-Greylist: delayed 1058 seconds by postgrey-1.27 at vger.kernel.org; Sun, 03 Jul 2011 16:31:51 EDT Received: from bb.home ([71.175.80.180]) (authenticated bits=0) by fox.seas.upenn.edu (8.14.4/8.14.3) with ESMTP id p63KE0Qo013700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 3 Jul 2011 16:14:11 -0400 From: Rafi Rubin To: linux-media@vger.kernel.org, linux-input@vger.kernel.org, jarod@redhat.com Cc: Rafi Rubin Subject: [PATCH 2/2] mceusb: increase default timeout to 100ms Date: Sun, 3 Jul 2011 16:13:53 -0400 Message-Id: <1309724033-27804-2-git-send-email-rafi@seas.upenn.edu> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309724033-27804-1-git-send-email-rafi@seas.upenn.edu> References: <1309724033-27804-1-git-send-email-rafi@seas.upenn.edu> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813, 1.0.211, 0.0.0000 definitions=2011-07-03_07:2011-07-02, 2011-07-03, 1970-01-01 signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Signed-off-by: Rafi Rubin --- This changes the default to something a little more sane. I have one mceusb device that currently does not respond properly to the initial polling and is left using the default timeout. 1ms does not work well. I propose changing the default to 100ms to match the timeout reported by my other mceusb device and works fine for me. --- drivers/media/rc/mceusb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index 377f826..956d296 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c @@ -1082,7 +1082,7 @@ static struct rc_dev *mceusb_init_rc_dev(struct mceusb_dev *ir) rc->priv = ir; rc->driver_type = RC_DRIVER_IR_RAW; rc->allowed_protos = RC_TYPE_ALL; - rc->timeout = US_TO_NS(1000); + rc->timeout = MS_TO_NS(100); if (!ir->flags.no_tx) { rc->s_tx_mask = mceusb_set_tx_mask; rc->s_tx_carrier = mceusb_set_tx_carrier;