Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp681196ybh; Tue, 10 Mar 2020 06:22:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtG4SsuqD0JTrayFA241BnATKT6gbRgyPlCELJ+UWzsD22jlO2kX6qClVzFZyaSM+Gwj6fu X-Received: by 2002:aca:6156:: with SMTP id v83mr1058858oib.171.1583846575269; Tue, 10 Mar 2020 06:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583846575; cv=none; d=google.com; s=arc-20160816; b=U29jQsyEGdLPYDwX1hy4w79JMnVLQa4riQWzHvzrK1JS7c+AYX9Wxpjx0TR9u94mzk z5ZPuwzX+gWX7OTx3NyG5lqAn+gpxFd+VEeSShD7NU4bwNYqcnSOy8tAib0ZJXOsGXDd ro254e0svRXq59gGZOcld3Mtm0Fh9cFePnUaSAP73dtF0+pneceMPQ9jtEUZRVOOAaaZ DZMQ3M6bBBPQrGE65aWWya1pB4HLPCw6nZM9iUpXZuxkTlbSOebvw6fnRgdh/zcicH0D Raw6uAxfOWFAD6VyDZkJ0LdtS3NQs/ANFUzhCTXooHdS+RieQ6s+hejj0bbrXovCZXEk M3wg== 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=RMY5TAWBlYXzJekOTx77aAOxqNfak0aAJbSjBROgIAw=; b=sUdDoRHrd5nziI+ivvyHM0U3dD/32oqDcb1qtzelGSC7jNemAszoG5BTKwycyt3LiS 4Hk0lnbA3ByMAc9sGuHfk7NEFtowlPN55NQ53KbybIfFe4agmrujoJl59ziMCpEuexqm i1zWoFid6H71El1vuWf8Ja5i9pyyAw8lRDM9fzewkuOfahv2j26f1+/OUS3oY7uNbtx7 3G0cwI/dS4J6R0F/SpJDOZbb3Tk5C0GsQCcPRPhMm/3ybJJ1ilhZcgjFLYK9ogigyv/v re4XmV6bhoYbr1qvTE/pgQa34igD6ypg1LKuB2KquOi9OJ7O8MFUwa8by2TNtOMp+28q upvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uA5eSpCY; 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 v13si2192686otq.129.2020.03.10.06.22.43; Tue, 10 Mar 2020 06:22:55 -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=uA5eSpCY; 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 S1730919AbgCJNHJ (ORCPT + 99 others); Tue, 10 Mar 2020 09:07:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:52774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730914AbgCJNHI (ORCPT ); Tue, 10 Mar 2020 09:07:08 -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 2B25220873; Tue, 10 Mar 2020 13:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583845626; bh=m7Jrelza+8EYqkODYBgcHkbKKrnlY5Kmoixt9gZZAXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uA5eSpCYj7g6AxhMQmNcKnwxA1zWiLHchl6krALi/fglBrFuIbK6UD4/vfSu6GvSG cO/gztbVHFB82AFBdONlBT3VrWTFX9Umaq1xkEBpMgcJGeCJLglGDeeu2yEm31cqvR xnzZbvjYSfDx53WhqtkASEVl70V4Qk14ExVBX4no= 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.14 041/126] HID: core: increase HID report buffer size to 8KiB Date: Tue, 10 Mar 2020 13:41:02 +0100 Message-Id: <20200310124206.965633061@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310124203.704193207@linuxfoundation.org> References: <20200310124203.704193207@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 @@ -477,7 +477,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