Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp626407imu; Fri, 11 Jan 2019 06:25:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN7XspLKzCVTkmJZzbhvSfKu2lmabayTkMIP/AQtdyxOsf3HLW7+/iVMJAGx8WECpBcsNgC/ X-Received: by 2002:a17:902:bd0b:: with SMTP id p11mr14965369pls.259.1547216715288; Fri, 11 Jan 2019 06:25:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547216715; cv=none; d=google.com; s=arc-20160816; b=dQhXCcOtAbarD9Q5zElFpEFOKv++B3z8yn10R6h9P9dOSDj+31zPVN0tNLFYgDCoea cR+3YFPg4rvyuMPk5mpytCMeEplBW2RSdc5PfSd39x4AzuENOI/u4kDBrrPzfhJF53Y3 dCMG0EQof14+jogP35fpnPRJ7sslLDWJ0L/Tw5J4v7Za/YY3ruyVzHstR78NJBs9cQVS ZpvuE2gvO5OJl3071YJOVSj85olKnDEm5um+mN/hUKoHNWyDgwH7dgAWTe6ux+0EwGPM N1JKBzOvEcbV7hfzbMG+TqrxD0ISmxy90EbiY/boGDZ1waV8utTXOn40aCbj6smHgMCJ fz5A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pDhA5Hq0uHNGx+SG8VmlYVseNijqGKF+LmsGfytdNWI=; b=e35ewVIX88IQz816XCi1mYheCKYLW3DJaAQ0+jH9MTM4RP7QpcarN0n70fJ3l1Dmcu kv4QHoRRvpzC5FW64rbYKifI3b4wM95GUWdrOoAHOTMPpE2w/lEdkX9BWh30w1K2YPj/ GozU2G1shdLbN6D0KeIlFecABZhgscJMFKtREA1PtKM0W5yBGfxqbGUquRMoElLf1SSa AYBdpPXKx+YqZWFLxGi38e8keWkO1cYchgpG48fQFDIlwWOzQz6b8TxS1930HhCgaGOo jBeJkXJ7BxjaCm/7mARgZ2Y8PdGYadHrCCUaCj/t3Gsyto4y8H0cRD6tJ042s9TLxMSk fgiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AxPgSS53; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si51960093pgd.68.2019.01.11.06.25.00; Fri, 11 Jan 2019 06:25:15 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=AxPgSS53; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387992AbfAKOSp (ORCPT + 99 others); Fri, 11 Jan 2019 09:18:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:35224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387986AbfAKOSn (ORCPT ); Fri, 11 Jan 2019 09:18:43 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C95B2183F; Fri, 11 Jan 2019 14:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547216322; bh=NaFWnKnDkrv9YL6tdAaT2kI+jegMBSQPkxVv3rtQeOQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AxPgSS53jFoUf7K9ahT3DUGslXPw1DIbhpO0yzuIscW9np1YEERG3SsbZ4Uiy26+O jHz7hOLzssUmN22Vf29LuudOEEbHeSbDADjs5tVpjDkwch5lpgKoEnvsRe6GOLa9rh RkL1Do+BrnJx2DTsuv/mzMXuExnfdjZzLCdzD8oY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Hutterer , Martin Kepplinger , Benjamin Tissoires , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.4 58/88] Input: restore EV_ABS ABS_RESERVED Date: Fri, 11 Jan 2019 15:08:27 +0100 Message-Id: <20190111131054.880309817@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131045.137499039@linuxfoundation.org> References: <20190111131045.137499039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit c201e3808e0e4be9b98d192802085a9f491bd80c ] ABS_RESERVED was added in d9ca1c990a7 and accidentally removed as part of ffe0e7cf290f5c9 when the high-resolution scrolling code was removed. Signed-off-by: Peter Hutterer Reviewed-by: Martin Kepplinger Acked-by: Benjamin Tissoires Acked-by: Dmitry Torokhov Signed-off-by: Benjamin Tissoires Signed-off-by: Sasha Levin --- include/uapi/linux/input-event-codes.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 87cf351bab03..9e07bf4259e1 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -708,6 +708,15 @@ #define ABS_MISC 0x28 +/* + * 0x2e is reserved and should not be used in input drivers. + * It was used by HID as ABS_MISC+6 and userspace needs to detect if + * the next ABS_* event is correct or is just ABS_MISC + n. + * We define here ABS_RESERVED so userspace can rely on it and detect + * the situation described above. + */ +#define ABS_RESERVED 0x2e + #define ABS_MT_SLOT 0x2f /* MT slot being modified */ #define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */ #define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */ -- 2.19.1