From patchwork Tue Jun 1 19:45:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luo Jinghua X-Patchwork-Id: 103692 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 o523ksIM023613 for ; Wed, 2 Jun 2010 03:46:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756910Ab0FBDqx (ORCPT ); Tue, 1 Jun 2010 23:46:53 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:51778 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755496Ab0FBDqw (ORCPT ); Tue, 1 Jun 2010 23:46:52 -0400 Received: by pvg11 with SMTP id 11so2122928pvg.19 for ; Tue, 01 Jun 2010 20:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer; bh=lkKMeeHxWn3vYW7yXcZITSDsU7iims7aB+TqDXN5+K0=; b=KlXiN5UYxkvYlGsq9SuEr/vCyUcsr0m3DVQcOJunABBaZV1fRUrVguwRFvDZeurR9c 0Rvpbu/gWycvlzGq7Qn/zaHbVa1wKJOqHLvMKFyGlTmxAvQplF95jOVqKRggF1X865Oq UnEPZYpLmrTFKIBsdgL17UiC8kGKQtsfGDAFM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=erJqvswGz7pSaswepUDdGAmcATcE49QaDGq4EA8WSBJ9mFx3J/g8zSA1h8l+KrEnq4 U7Bfe5YPdGF5hBllCiNKNmqPbrSp6aFRkf+Ihmk3jmrESCy9o1YdJK2c/Pc7rjfgC+aV TG/rgktgtiEKVfYbrQOyhGHdhtjSTw1CrPvgw= Received: by 10.114.186.36 with SMTP id j36mr6166006waf.193.1275450412012; Tue, 01 Jun 2010 20:46:52 -0700 (PDT) Received: from smtp.gmail.com ([116.231.74.241]) by mx.google.com with ESMTPS id b6sm65131934wam.21.2010.06.01.20.46.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 20:46:50 -0700 (PDT) Received: by smtp.gmail.com (sSMTP sendmail emulation); Wed, 02 Jun 2010 03:46:16 +0800 From: Luo Jinghua To: Henrik Rydberg Cc: linux-input@vger.kernel.org, Luo Jinghua Subject: [PATCH] input: bcm5974 turn wellspring mode off if failed to start traffic Date: Wed, 2 Jun 2010 03:45:59 +0800 Message-Id: <1275421559-7980-1-git-send-email-sunmoon1997@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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]); Wed, 02 Jun 2010 03:46:54 +0000 (UTC) diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c index 6dedded..5518089 100644 --- a/drivers/input/mouse/bcm5974.c +++ b/drivers/input/mouse/bcm5974.c @@ -595,6 +595,7 @@ static int bcm5974_start_traffic(struct bcm5974 *dev) err_kill_bt: usb_kill_urb(dev->bt_urb); + bcm5974_wellspring_mode(dev, false); error: return -EIO; }