From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0CD7C3F2D1 for ; Tue, 3 Mar 2020 18:00:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C3252146E for ; Tue, 3 Mar 2020 18:00:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583258436; bh=U6piOsv9XrOS3+z/bq10x+o93s3Fm6OzMZ8TBxCjG9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=YAuEeWs16Nd6rO2Qb3ez21cm2owoI4tNONFDF2XtZnYWzU3iGWP8nYVIjOj44dR9N 0JRsI72BtJCPtWQZAoL2rcwmTEnUJYWNi13bfUav47P7k4axfWge3UAkFfG4uN0gCg i3AK4pMsr8J1Ajwv8cKLRoMcFEgIPnzdGrdGbSuk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387800AbgCCSAf (ORCPT ); Tue, 3 Mar 2020 13:00:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:44336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387789AbgCCSAb (ORCPT ); Tue, 3 Mar 2020 13:00:31 -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 554612072D; Tue, 3 Mar 2020 18:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583258430; bh=U6piOsv9XrOS3+z/bq10x+o93s3Fm6OzMZ8TBxCjG9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1+n5rT9IZUER7MgjS92PNNBPfZjT+l6WAP8zTibW0fbHwadw7GUyuAgziNRAuiNnS eD2wd3mxsh6WHaCd1h50C67Oh0Ofp9A2DAGfbjYceCDj6Z+h4LubdopBJpwx9koOyf wOM3VTvQSH9wNJsxrgMnE7rFZQXONwmdBsN9qvpU= 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.19 46/87] HID: core: increase HID report buffer size to 8KiB Date: Tue, 3 Mar 2020 18:43:37 +0100 Message-Id: <20200303174354.490164257@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174349.075101355@linuxfoundation.org> References: <20200303174349.075101355@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 @@ -495,7 +495,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