From patchwork Sat Mar 25 06:01:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaolei Yu X-Patchwork-Id: 9644429 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 0900C60327 for ; Sat, 25 Mar 2017 06:01:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBCCB26E16 for ; Sat, 25 Mar 2017 06:01:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFBC126E4D; Sat, 25 Mar 2017 06:01:52 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 8BE2026E16 for ; Sat, 25 Mar 2017 06:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967314AbdCYGBl (ORCPT ); Sat, 25 Mar 2017 02:01:41 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34777 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967803AbdCYGBd (ORCPT ); Sat, 25 Mar 2017 02:01:33 -0400 Received: by mail-pg0-f66.google.com with SMTP id w20so1717573pgc.1 for ; Fri, 24 Mar 2017 23:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=Gmd5l1WYgqyqpUMi07/Y1VIkUhsB4M9Wb/5yX9pH084=; b=Bq3G6L73xVq9DzA996KFMeGK2xibijGBe5+4yEa1OcFlXy5FCPdGC/RNRXs0AigpIb vgzbqXgGk8kcdUOcBUxyhE8J3N6dEw7KN6aK2sRJyoOvPLh1gI6PqYtQ7pgs6zoH7gMT m53bKZUpmvsE6JiASwAizLoSqDgDroLS4fWImuoTeLVY9gt8JUOLtuED5vIGBr4wai25 4LFXoxTcxWOwF0engMtvwrItyUmao+AwpfirSIpmoWaxc1r5DJ+IV4HnKDDvp87mmCxb KK3WiG1UlWbwoWjKP2zde5iYtLiWFktmu0OUFUDoKPeIhNAFBpmCwVr/9zbfOFbRFUIu Nylw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=Gmd5l1WYgqyqpUMi07/Y1VIkUhsB4M9Wb/5yX9pH084=; b=EgXGKpAwqOcDMKj8D8ZexoVRGrL5Z0r6SpgCY9fHufv8vnHwPpIc38ov0IgFBypxyt UNIN54gvGpRnLf42r+FawZa8PeHmZPaoD4L/QQ63KzbNrpLFXM5YoCGuIueYTlg7VWyl f2kMyetpWt2BWaANN6OzmtGJQPqqF7jFwrtJCQo30bByL0RehMWErRbAbpVzLqvdLTqB ESUAZqZEM8KOw5iG/pu66UWelzJYi+CFGD/LzHhQLaD6LNx83ZNIeqJfKIz6TxQGPuqV yxh8QbsDXJu6bUAkwgIuIsxy1VpGU3Kt9YSZCRlavQ+DEERgG73bxDMCPJkr+lrJXFsg 0IRg== X-Gm-Message-State: AFeK/H2q/L56xzwGghj/nTgneZj31DZr5Akzq44OyEtJ+dUGw0SyaZUb7YLbOk3nPK9E5Q== X-Received: by 10.84.138.193 with SMTP id 59mr15791822plp.167.1490421677579; Fri, 24 Mar 2017 23:01:17 -0700 (PDT) Received: from [10.0.0.192] ([39.174.155.91]) by smtp.gmail.com with ESMTPSA id 90sm7924061pfl.24.2017.03.24.23.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 23:01:16 -0700 (PDT) From: Xiaolei Yu Subject: [PATCH] HID: uclogic: add support for Ugee Tablet EX07S To: benjamin.tissoires@redhat.com, jikos@kernel.org, linux-input@vger.kernel.org Message-ID: Date: Sat, 25 Mar 2017 14:01:14 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 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 This device has a different vendor id but responds to initialization. Signed-off-by: Xiaolei Yu --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 3 +++ drivers/hid/hid-uclogic.c | 2 ++ 3 files changed, 6 insertions(+) { } }; MODULE_DEVICE_TABLE(hid, uclogic_devices); diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 3ceb4a2af381..004871cf0d58 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2096,6 +2096,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UGEE_TABLET_45) }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_DRAWIMAGE_G3) }, { HID_USB_DEVICE(USB_VENDOR_ID_UGTIZER, USB_DEVICE_ID_UGTIZER_TABLET_GP0610) }, + { HID_USB_DEVICE(USB_VENDOR_ID_UGEE, USB_DEVICE_ID_UGEE_TABLET_EX07S) }, { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_SMARTJOY_PLUS) }, { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_SUPER_JOY_BOX_3) }, { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_DUAL_USB_JOYPAD) }, diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 0e2e7c571d22..b85a77bb9d29 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1028,6 +1028,9 @@ #define USB_DEVICE_ID_UGEE_TABLET_45 0x0045 #define USB_DEVICE_ID_YIYNOVA_TABLET 0x004d +#define USB_VENDOR_ID_UGEE 0x28bd +#define USB_DEVICE_ID_UGEE_TABLET_EX07S 0x0071 + #define USB_VENDOR_ID_UNITEC 0x227d #define USB_DEVICE_ID_UNITEC_USB_TOUCH_0709 0x0709 #define USB_DEVICE_ID_UNITEC_USB_TOUCH_0A19 0x0a19 diff --git a/drivers/hid/hid-uclogic.c b/drivers/hid/hid-uclogic.c index 1509d7287ff3..e3e6e5c893cc 100644 --- a/drivers/hid/hid-uclogic.c +++ b/drivers/hid/hid-uclogic.c @@ -977,6 +977,7 @@ static int uclogic_probe(struct hid_device *hdev, } break; case USB_DEVICE_ID_UGTIZER_TABLET_GP0610: + case USB_DEVICE_ID_UGEE_TABLET_EX07S: /* If this is the pen interface */ if (intf->cur_altsetting->desc.bInterfaceNumber == 1) { rc = uclogic_tablet_enable(hdev); @@ -1069,6 +1070,7 @@ static const struct hid_device_id uclogic_devices[] = { { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UGEE_TABLET_45) }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_DRAWIMAGE_G3) }, { HID_USB_DEVICE(USB_VENDOR_ID_UGTIZER, USB_DEVICE_ID_UGTIZER_TABLET_GP0610) }, + { HID_USB_DEVICE(USB_VENDOR_ID_UGEE, USB_DEVICE_ID_UGEE_TABLET_EX07S) },