From patchwork Thu Mar 30 11:43:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaolei Yu X-Patchwork-Id: 9653983 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 6B7AB60349 for ; Thu, 30 Mar 2017 11:43:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E94E28556 for ; Thu, 30 Mar 2017 11:43:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 535EF28583; Thu, 30 Mar 2017 11:43:22 +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 00F3D28556 for ; Thu, 30 Mar 2017 11:43:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932868AbdC3LnW (ORCPT ); Thu, 30 Mar 2017 07:43:22 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33248 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932874AbdC3LnV (ORCPT ); Thu, 30 Mar 2017 07:43:21 -0400 Received: by mail-pg0-f66.google.com with SMTP id 79so9437675pgf.0 for ; Thu, 30 Mar 2017 04:43:20 -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=F7YW780k06YTqDXeU4hAza4rbVi5gk5/Zx3JXJNl73Y=; b=hJ8TErndCpbvVTp24OLx/HXoyEJVOr245aVWhyTWQt1hVhYvlORtR9+OfGYKwATOYG rRa7oRnuscOgn5hHTuLctjyjO9eFhD10uH4M8k/qatBGjPJtA1qrVn8J5DfttOnL29Uc 8viN26geoWHCqeonaaoCAAdhcPDkVsIFKQmLT/t4daiaYcnIWf3ySKM5FgUyTTOv/oO9 ANiMWFb0L5F2X57/JRUsdNhwpcDqtb083rCHHMYzINqYxJhBPRddHoeTIp1njJXFtB/h ysiVH0QF2Qa6RTbrMqJsREYQLS4EcoBeeI0Tc8Tt5I5rPXzZLX6KH5aePwR5gy+0Pwwf /TqA== 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=F7YW780k06YTqDXeU4hAza4rbVi5gk5/Zx3JXJNl73Y=; b=jaMFPYjD5a8BcVTIB2lAuBsBlqBuVqecaENZfHXfH7j0d674RKwJTWiEGH7MIUPbX0 xwGgrZJm0Kf+XvK2sQOZGX1WzaZY3UQH/f13tY+CO00Jct/Nb7PKn8d8n5hoJ2do4qoa pIEzgRr2xcounoc6T8HI7xvKLkHxVuclpOHKI2T94H6M18qFGrcKdI/RMZe4EjvSoX/W Bfj+B9/Fz+8mTWoBeDRLUDaxbdhhNe/k1MaM9mOL1gdFESg0b+K2AXs8xi+UcEgoEFhc vdX/W1jtYFke76currCLq1wqrc2v+ONCYrGIWWJN7J7+KKx7AAGq4swi9kOtVdM2kfpy 1tCg== X-Gm-Message-State: AFeK/H04m5FEgejlxYIy7pG+WCEV+2ULlgR/GNOYNsLwpD1YivsRVOHwAk6poM2xVogNSg== X-Received: by 10.98.104.4 with SMTP id d4mr5601045pfc.2.1490874199560; Thu, 30 Mar 2017 04:43:19 -0700 (PDT) Received: from [10.0.0.192] ([39.181.103.214]) by smtp.gmail.com with ESMTPSA id r17sm4151942pfa.13.2017.03.30.04.43.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Mar 2017 04:43:18 -0700 (PDT) From: Xiaolei Yu Subject: [PATCH RESEND] HID: uclogic: add support for Ugee Tablet EX07S To: benjamin.tissoires@redhat.com, jikos@kernel.org, linux-input@vger.kernel.org Message-ID: <78f2649b-3df2-14eb-7df5-0bb33922d5ab@gmail.com> Date: Thu, 30 Mar 2017 19:43:09 +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 Reviewed-by: Benjamin Tissoires --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 3 +++ drivers/hid/hid-uclogic.c | 2 ++ 3 files changed, 6 insertions(+) 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) }, { } }; MODULE_DEVICE_TABLE(hid, uclogic_devices);