Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3764741pxb; Mon, 21 Feb 2022 05:22:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVT61Uor8caETs7KBPgonrGcOgv4o6p5u2WVsK7QRKWqL1Eq8r6sl0XDtMnMyJhKSgbNzi X-Received: by 2002:a17:902:780f:b0:14f:d765:b6f1 with SMTP id p15-20020a170902780f00b0014fd765b6f1mr398499pll.85.1645449752046; Mon, 21 Feb 2022 05:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645449752; cv=none; d=google.com; s=arc-20160816; b=ZHtUH1ZnYASqJ0mVA/8DkXfmacR++1C9pD/zN96LJTj0R1ZV6K34OgHciWrFBeNsmF PgG6K3DEsFqplAtvTe+4245r7Oex16uppi9UH2liMsLMSi8/YruSZGIj3wz6nvsvUr9w FYVhQdW03RpSI0nHpzzhCFucMuhs7/vDc9vnBPk41dZwxVTZiuFdNucQjbyFiZbMYg96 S3JwaZZaMXXXikQZ9EPwraNBc6dDy5YxfLuQA9ZOF24sIA9lE0WFL8Oxsh9XSV5eUAG9 bHSPxNVs/CQ21wCDc1wRD6b16FvkM15m65V7O0qq4A0rM1hIWsf0ka5uyKFPKzGO1D1s GuDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Zw27oUhCrB0QZK00BGaL6ypDacXESdH3gDYCG+Ytcjk=; b=sIn+mlsd75Jl6dYTwRgCutcjWIUAB9kjt49CU5RsS8m+pvd8JA/uHlXA1YAtQWe2bz 32lnWMhVtOG70BeXuRolGUoUgtNuYI1TtShj4WxLpLMUb+CQ7IDQn8pODdbQ9s4TJ2b2 NNBXxiFpUhTic6iz41niv6kML5BUvHvfZiPK6RqOMybUpBUP0Qa/exXOGDGSXukGbvyq W6/GZM2AjHNZDBTdfydpOaKaE3qWRNPu4ynXR5q8T0JF3hJuui/aLPhrOSmvxRc72+pe FAvPRaS0UUARX2Fu0g/6NAAJf8CQ4A7uCldp4Wqu/ks6Ztoles7SPjJZ1c8yTvvX0jV5 dqcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VXKkM2ES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d23si20177699pll.453.2022.02.21.05.22.16; Mon, 21 Feb 2022 05:22:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VXKkM2ES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347461AbiBUJGa (ORCPT + 99 others); Mon, 21 Feb 2022 04:06:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348246AbiBUJC2 (ORCPT ); Mon, 21 Feb 2022 04:02:28 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7FEA2BB09; Mon, 21 Feb 2022 00:57:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5776E61204; Mon, 21 Feb 2022 08:57:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C193C340E9; Mon, 21 Feb 2022 08:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645433867; bh=QyCF0o4y4fx0Ep2NGgH5KJV+Ak69aF4ASN4T83VUzmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VXKkM2ESQWTGRJUdamaDuj7hJlPS+J8CKkdY2SPFXpRjgRB4/dog02ZvqSs+juxL0 jrE/RBISBHLacy5clqx91+ZJrp+f81boa2ujhJ80ZVtEyeu/s/bXSB2ZH1eaKh1EQb t6C76TRMohucl4yH7lK3/MWgzvOWJriZexj+zXKU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergio Costas , Benjamin Tissoires Subject: [PATCH 5.4 02/80] HID:Add support for UGTABLET WP5540 Date: Mon, 21 Feb 2022 09:48:42 +0100 Message-Id: <20220221084915.635138720@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084915.554151737@linuxfoundation.org> References: <20220221084915.554151737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sergio Costas commit fd5dd6acd8f823ea804f76d3af64fa1be9d5fb78 upstream. This patch adds support for the UGTABLET WP5540 digitizer tablet devices. Without it, the pen moves the cursor, but neither the buttons nor the tap sensor in the tip do work. Signed-off-by: Sergio Costas Link: https://lore.kernel.org/r/63dece1d-91ca-1b1b-d90d-335be66896be@gmail.com Cc: stable@vger.kernel.org Signed-off-by: Benjamin Tissoires Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1311,6 +1311,7 @@ #define USB_VENDOR_ID_UGTIZER 0x2179 #define USB_DEVICE_ID_UGTIZER_TABLET_GP0610 0x0053 #define USB_DEVICE_ID_UGTIZER_TABLET_GT5040 0x0077 +#define USB_DEVICE_ID_UGTIZER_TABLET_WP5540 0x0004 #define USB_VENDOR_ID_VIEWSONIC 0x0543 #define USB_DEVICE_ID_VIEWSONIC_PD1011 0xe621 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -187,6 +187,7 @@ static const struct hid_device_id hid_qu { HID_USB_DEVICE(USB_VENDOR_ID_TURBOX, USB_DEVICE_ID_TURBOX_KEYBOARD), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_KNA5), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_TWA60), HID_QUIRK_MULTI_INPUT }, + { HID_USB_DEVICE(USB_VENDOR_ID_UGTIZER, USB_DEVICE_ID_UGTIZER_TABLET_WP5540), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_WALTOP, USB_DEVICE_ID_WALTOP_MEDIA_TABLET_10_6_INCH), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_WALTOP, USB_DEVICE_ID_WALTOP_MEDIA_TABLET_14_1_INCH), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_WALTOP, USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET), HID_QUIRK_MULTI_INPUT },