Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp989389imm; Wed, 20 Jun 2018 09:44:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL8fv8Pb/cW+EfJrwxoj7uMbSCCnXuUlajzgs8yXWSdDH2EvHmj3HPznUivXpiP9KF+a03E X-Received: by 2002:a63:3201:: with SMTP id y1-v6mr9018330pgy.419.1529513076989; Wed, 20 Jun 2018 09:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529513076; cv=none; d=google.com; s=arc-20160816; b=kzMwk7s9aYlaO3AyRBfo4VovOjnoWrMWbWMShniSEkLCsXaqyB69fs6uUWiRSFOuXX ORivatBCHybci7Q3H9aAUuHVP3v06CIdEO9LY9TGJUkgdZb3wO5x6Bye2mQlPYsVLJsW zeye6Tv9tI372tLjRfmVh4XTSOQAtV4pPjWf13KUCtLPEnAKXGXIAzad1Ty/N2zqdkSK CLTFtHdQycclOXz232QGfLqtGxOUf7ADk/oLYD6OqaMolUKZFDp7gCFw6raP3FuVdgl6 HbZXiB3PYHBdJeHIQ0CfGmzSSKhx9t4CS0DFqrFmV4eRfHa7PZFFhkzNtWtRvqlQ6Qoo RLJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TiMvXpFGwZgg69VIpYwYjcgID+DkI0RVpBSlod93iUM=; b=pLm1XKms1XAi6KIYnB92i5CKGtoTeZIwhx7vnPmTW0OaV/vnhlohgylAoNWYDyPx8V 6wp+roptxBrC7O7Yc3qI/NG0y1vMcTUazruPJgb2edS9Z9MKphlv+esYP5AjXSrQRN+H W48IQcqHHdwtjzPle7Z3fzFLIaKUDuRHkh8SoJM+qjRg7EPN7bF0kapwrsofkSmAQfM9 XPDKWZTHkL7pymoSLGOACszSAbGU3iKf3tCmRHyRAyRIbm0HAmMQggdUpGlljNdIOZMm FdnGU39jO59pBt4OTU7H+O6sX5ss/fu4B/zAY3k1/xo9w+kHEiqtWHzdYNFJ/2PMcYeu 1Y2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8-v6si2298381pgc.182.2018.06.20.09.44.23; Wed, 20 Jun 2018 09:44:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932662AbeFTQmr (ORCPT + 99 others); Wed, 20 Jun 2018 12:42:47 -0400 Received: from mga07.intel.com ([134.134.136.100]:56744 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932494AbeFTQmp (ORCPT ); Wed, 20 Jun 2018 12:42:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2018 09:42:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,248,1526367600"; d="scan'208";a="50538160" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga007.jf.intel.com with SMTP; 20 Jun 2018 09:42:41 -0700 Received: by stinkbox (sSMTP sendmail emulation); Wed, 20 Jun 2018 19:42:40 +0300 From: Ville Syrjala To: linux-bluetooth@vger.kernel.org Cc: Dmitry Torokhov , Greg Kroah-Hartman , Marcel Holtmann , Kay Sievers , =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= , systemd-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Subject: [PATCH v2] hid2hci: Fix udev rules for linux-4.14+ Date: Wed, 20 Jun 2018 19:42:40 +0300 Message-Id: <20180620164240.6535-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180507130638.3516-1-ville.syrjala@linux.intel.com> References: <20180507130638.3516-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ville Syrjälä Since commit 1455cf8dbfd0 ("driver core: emit uevents when device is bound to a driver") the kernel started emitting "bind" and "unbind" uevents which confuse the hid2hci udev rules. The symptoms on an affected machine (Dell E5400 in my case) include bluetooth devices not appearing and udev hogging the cpu as it's busy processing a constant stream of these "bind"+"unbind" uevents. Change the udev rules not do anything except for "add" and "change" events. This seems to cure my machine at least. v2: Don't mess up "change" (Zbyszek) Fix up the commit message a bit Cc: Dmitry Torokhov Cc: Greg Kroah-Hartman Cc: Marcel Holtmann Cc: Kay Sievers Cc: Zbigniew Jędrzejewski-Szmek Cc: systemd-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Cc: linux-bluetooth@vger.kernel.org Signed-off-by: Ville Syrjälä --- tools/hid2hci.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hid2hci.rules b/tools/hid2hci.rules index db6bb03d2ef3..5c7208af7a02 100644 --- a/tools/hid2hci.rules +++ b/tools/hid2hci.rules @@ -1,6 +1,6 @@ # do not edit this file, it will be overwritten on update -ACTION=="remove", GOTO="hid2hci_end" +ACTION!="add|change", GOTO="hid2hci_end" SUBSYSTEM!="usb*", GOTO="hid2hci_end" # Variety of Dell Bluetooth devices - match on a mouse device that is -- 2.16.4