Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp646128ybh; Tue, 10 Mar 2020 05:47:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvrHFdtRXnC+osu6Mlm7tNAzq7LZpxB+1GC9344Nw5+v4krK4veU/tly2UMX+LUaQQgPg0k X-Received: by 2002:a05:6830:4a6:: with SMTP id l6mr17482168otd.61.1583844469909; Tue, 10 Mar 2020 05:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583844469; cv=none; d=google.com; s=arc-20160816; b=hNrpYYmdpq5l3t2gDsVploxj49RskhwdvAPPJIdwgXP/KKPZ6dvE20WyS1DZ5noxb6 tl8sokiwQGkQk//E+fOF7q4wrPqfUICoo6XFtnMk3gNb1EROcjk8XV5pp5LLclU9ldDW Ro9RiBME67f1oZRweGsbmtMIOzVxbBs2awAK0gNq9XvEKrV3dinvTCmeAHNxMtpPyq65 PpSHGkLNBOjJGaOilF9kot35/6Cm4Ja63dChuAIklLmi+uVJGoUtABvlGcn9L6syDW2w eRNR9KTPa48asDwP1pYeb1ye7sKMMhtfnhkyEh3wdLpfYSwRBNOOX9tqPWsYm2SHQerx NyAA== 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=+4jcQGfxNZmntlKf+TZkrAQkIOevW2hj0toaHG6AhZw=; b=n+ZgDHy8EyslwpZSkJkU2iUzY5opUtMQF3UdtLvWGY56jL8CjAoapoxZnlye7MjGDl skCY9NnIU+Qx3yklJdnd5wSAv6c2xibLkUXzQpo9//cq7kWMkYVuibgrCJrItkz6+7lQ 1jYHNkEdhAtcu5M0oBeUvf7XASlGHSXyYcGNB1vQcMYKMlVG1RVkUSTaWmoypcqO9PA6 WzPrtpm/lSzwOyVg9ZVfpb8UJKZ+xv52vEscT+p81OTp2AU9OLAve9/tWW39htJ5vd2a w1sl37dC8jHg8ArfitutqFjieYgYGliHKThZR3DRAtBscvlEIf5YnmLADx8eW+pTOvQE Rhyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vSQi+yGv; 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 b21si389839otp.79.2020.03.10.05.47.37; Tue, 10 Mar 2020 05:47:49 -0700 (PDT) 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=vSQi+yGv; 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 S1727458AbgCJMp4 (ORCPT + 99 others); Tue, 10 Mar 2020 08:45:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:48810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727361AbgCJMpy (ORCPT ); Tue, 10 Mar 2020 08:45:54 -0400 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 5DA652468C; Tue, 10 Mar 2020 12:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844353; bh=f/KoOrQ5UNbB+ZWe5oWIk6h2JcUqzFq1wESw4mwP/J4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vSQi+yGvlo2wyUU/is2hfz1hZkyMiY17dQOXmzSyJ7a+7Ssj3qhtxl56AY8eO1SCB v36wxpFv+UbJ2V6U7CsRslZXBe7/12+LJ+VkvE6psHoWkA1ZZ6163EjuJBRjoc8wp5 9IYXdNWsqIeHvaj3zFJsVz7AO1AY4MYQ3Rm1S36M= 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 4.9 33/88] HID: core: increase HID report buffer size to 8KiB Date: Tue, 10 Mar 2020 13:38:41 +0100 Message-Id: <20200310123613.993998210@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310123606.543939933@linuxfoundation.org> References: <20200310123606.543939933@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 @@ -453,7 +453,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