Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3967465pjo; Tue, 3 Mar 2020 10:14:33 -0800 (PST) X-Google-Smtp-Source: ADFU+vs1BslkSAHmckJDYTiPOQz9pkd9Fjk9dM9StWcvM86hsOfdVgJfwqMU5vcz5ZJiHNMgjj21 X-Received: by 2002:aca:3542:: with SMTP id c63mr3319633oia.135.1583259273040; Tue, 03 Mar 2020 10:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583259273; cv=none; d=google.com; s=arc-20160816; b=IYpHiDW0rakmK+9thez+tdiyXrYEWilMXMRsLXuSuosmMr1iasN2dDuhRvNjLJOjH0 XWlFSdnTX82hyExThXf3ThhunFQOAWamPWtPOsqUatpN1STwLnihYQqby8eDsPfrx+6Y nX7BbGwJ6d53ge/HP+4Ny0Pyq6yXCL1nmxZPmt1mKQytN8PLejbP11EcxHnXR2Uu6tfM he2b/EM69sB5h8Qrsyc03BOq7x4AZgMmyMQTT0FwxGvpuNmYSP35208o1AevDiA2WGM6 8jXDgMdyUdBxBGlpSCEu1nHnYXtpr9lgP46NLItP0M9nJPKd2Wj7xT8C0QL511KFQqkX RAwA== 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=KB/Ini+WtuPL6tkUC3cYe5Uu8ONX0FI1e1pQvxrIu6M=; b=g4aZUjTyheq6/OciaiFJAJyVnI/lCJ21vWwWRRGXE4aWGgIZCTRiDMIg8tctSI84R6 VImpYo1n5fE1GlzTgsdV7i1rtcRqi1QNUKVkoCLfJQdf7cfUi7lpe0/hujH+EuPc81Ua BZc+rZAO5O3qqwo/bgJ+BtNGETaFPq0XDJb0dqLech3jcFrjr8y7Yvtv9HcVUBC5ErWB x5XJQ2cdtiUeeTjZCGMnb/zpGVIkkMxFHcz3d+1ace9gY6bS+nXdRbkOwEpHCNv3SxfQ BN9WqT5N8S7ivVVGI81PqcfH/HeShCwfLKypLAN0G92TTgkluRA/ILct4HRrPVJcDOJR YSSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hd3R99Fw; 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 w10si8895275ote.197.2020.03.03.10.14.20; Tue, 03 Mar 2020 10:14:33 -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=Hd3R99Fw; 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 S1731619AbgCCRsX (ORCPT + 99 others); Tue, 3 Mar 2020 12:48:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:55316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731507AbgCCRsN (ORCPT ); Tue, 3 Mar 2020 12:48:13 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 81066208C3; Tue, 3 Mar 2020 17:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583257693; bh=ycZ1bxyQLndLiWxf3ue2qQI22SoB6PZQUs2l7+PFo+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hd3R99FwuTTUWBmGFm6mhpOPxBp9axw9tCr0fTN7cR8YE7Yelm9/SI6ucYo5jGUII vRvB1TELGoZNGSc576oG2MVdbjLFhQV3U7dteSPU/+T2mLRtOfCiNLcdjnHVZoz6W4 bEjhQk1naMS16P9C4tPcMunMiipDNDxqcI3n14fw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Korsnes , Alan Stern , Armando Visconti , Jiri Kosina Subject: [PATCH 5.5 092/176] HID: core: increase HID report buffer size to 8KiB Date: Tue, 3 Mar 2020 18:42:36 +0100 Message-Id: <20200303174315.464351030@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174304.593872177@linuxfoundation.org> References: <20200303174304.593872177@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Johan Korsnes commit 84a4062632462c4320704fcdf8e99e89e94c0aba upstream. We have a HID touch device that reports its opens and shorts test results in HID buffers of size 8184 bytes. The maximum size of the HID buffer is currently set to 4096 bytes, causing probe of this device to fail. With this patch we increase the maximum size of the HID buffer to 8192 bytes, making device probe and acquisition of said buffers succeed. Signed-off-by: Johan Korsnes Cc: Alan Stern Cc: Armando Visconti Cc: Jiri Kosina Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- include/linux/hid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -492,7 +492,7 @@ struct hid_report_enum { }; #define HID_MIN_BUFFER_SIZE 64 /* make sure there is at least a packet size of space */ -#define HID_MAX_BUFFER_SIZE 4096 /* 4kb */ +#define HID_MAX_BUFFER_SIZE 8192 /* 8kb */ #define HID_CONTROL_FIFO_SIZE 256 /* to init devices with >100 reports */ #define HID_OUTPUT_FIFO_SIZE 64