From patchwork Tue Nov 22 23:00:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsOpbXkgTGFs?= X-Patchwork-Id: 9442331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A20D60235 for ; Tue, 22 Nov 2016 23:08:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5077E1FE95 for ; Tue, 22 Nov 2016 23:08:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 426BD206AF; Tue, 22 Nov 2016 23:08:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A95751FE95 for ; Tue, 22 Nov 2016 23:08:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932506AbcKVXIp convert rfc822-to-8bit (ORCPT ); Tue, 22 Nov 2016 18:08:45 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:34656 "EHLO mx1.polytechnique.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755611AbcKVXIn (ORCPT ); Tue, 22 Nov 2016 18:08:43 -0500 Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 5720B5647CB for ; Wed, 23 Nov 2016 00:00:44 +0100 (CET) Received: by mail-io0-f177.google.com with SMTP id c21so86244785ioj.1 for ; Tue, 22 Nov 2016 15:00:44 -0800 (PST) X-Gm-Message-State: AKaTC01mDjy6OsQFYcMw5jUZwcXAjhAjLWixrj2cohfK0yfqc1N0O7T0eH/8j0WeSYY2ACydryrMCwLtQ7oB2A== X-Received: by 10.107.25.204 with SMTP id 195mr653012ioz.138.1479855640903; Tue, 22 Nov 2016 15:00:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.38.210 with HTTP; Tue, 22 Nov 2016 15:00:40 -0800 (PST) In-Reply-To: <1E169F84-8B4E-4E63-B9BD-213FBBC1B36E@holtmann.org> References: <1E169F84-8B4E-4E63-B9BD-213FBBC1B36E@holtmann.org> From: =?UTF-8?B?SsOpcsOpbXkgTGFs?= Date: Wed, 23 Nov 2016 00:00:40 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: hig_magicmouse HID_BATTERY_QUIRK_IGNORE To: linux-input@vger.kernel.org X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Wed Nov 23 00:00:44 2016 +0100 (CET)) X-Org-Mail: jeremy.lal.1997@polytechnique.org Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, i've been using this patch for a while, as a workaround for https://bugzilla.kernel.org/show_bug.cgi?id=103631 (mouse freeze when battery reports). Greetings, Jérémy --- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -321,6 +321,9 @@ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI), HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE }, + { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, + USB_DEVICE_ID_APPLE_MAGICMOUSE), + HID_BATTERY_QUIRK_IGNORE }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM, USB_DEVICE_ID_ELECOM_BM084), HID_BATTERY_QUIRK_IGNORE },