Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3948813pjo; Tue, 3 Mar 2020 09:57:06 -0800 (PST) X-Google-Smtp-Source: ADFU+vuwIjQvcLrhyvRkob4X0dfSnBOQtgzHGj/GLXBrXXCmR9WMiBHUIAmXI+2PH9aoqDyVG2wF X-Received: by 2002:a05:6808:64e:: with SMTP id z14mr3112992oih.79.1583258226861; Tue, 03 Mar 2020 09:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583258226; cv=none; d=google.com; s=arc-20160816; b=fAZUSqEWUTmXokHiTzEZ1WjaaSrUhyyBjMmcssBldRG5ifj/eR6lsNU8bnZSP6cLiK 95Yr1k55zQBUQxSw21Zeql1HOb8pqxs/J3aHZQMiA6fg7xjVp4l0QPXi0yUpAd5P+llW 8UW0veltwtgFv5ZFavLeT8DeI7oW4twb4D6pqZBtRNooSOmetk95qUyZcaBvCKJFmx+K DdKCKDq7JDU3uTJ9RC1IiR+ANMGa0Yh4VHmwe2gT/FU1rvDijrpi5R7ABA0XJi/V+s1r JG3hIyKYuT7GIhw3EvZpLSO2eJZZ1ZpC3ko64IdT7m8++CR05fT/IwfTK0D4Per3Cjpz kg4A== 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=ZI1hNdTGqbKvpiFkk0OU+7zLWZFuUpCvdqLF6uXMnNH5vbFilTloZKTRvrK1+9QET5 +ozVYpTPCCTIVaXg2UoULQB/0LUqPqGXiDF8iu6+l/8kUWs33CsBErxTzqjSBFkEOw6Z iSNM175JvHatviqUnL2oWgrMsVRs8FjF+TjPYIi0yCxi7uXKdZ5d086Xkur+XpfnuZoJ L7277ursRStLMxcNUBn2PCAu7aXPibDuoM7U8jYWQIkDhd4mZOofM8Fj+X3tKPoC+a2D T/rEcEtYA7xaXRikyTl9rJDfXvDaATC4+LogK5BlP71L2GSZwnyHv1Jw6EP/1Kf+o709 joYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Nwf7AAGr; 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 e23si8246550oie.105.2020.03.03.09.56.55; Tue, 03 Mar 2020 09:57:06 -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=Nwf7AAGr; 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 S1732698AbgCCRzY (ORCPT + 99 others); Tue, 3 Mar 2020 12:55:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:36846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732690AbgCCRzU (ORCPT ); Tue, 3 Mar 2020 12:55:20 -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 8609B2072D; Tue, 3 Mar 2020 17:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583258119; bh=ycZ1bxyQLndLiWxf3ue2qQI22SoB6PZQUs2l7+PFo+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nwf7AAGrcMpvID0MBdJpbJgBS67mxbGsrsyMsNPijZ9P7Q7RBssQ8jV6qUpqu+6Og KvtRV/mqwUycggvNSd8PEYbDKuX7H3hWUIRz9tNIQ2bPvLsoXGRAIOahptJmrpARQn nuCXOEE7ivR7laRHbO6F+yzeHXLpg7S/hGwY3N+U= 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.4 078/152] HID: core: increase HID report buffer size to 8KiB Date: Tue, 3 Mar 2020 18:42:56 +0100 Message-Id: <20200303174311.385582971@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174302.523080016@linuxfoundation.org> References: <20200303174302.523080016@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