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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 5A14AC3F2D8 for ; Thu, 5 Mar 2020 17:18:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 281BE20848 for ; Thu, 5 Mar 2020 17:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583428735; bh=PSf3N2di/O3d2/Fv7BAPgBIxqwvJC4exNOCrpSNCm3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=a+OIhHd4zKtJ5N+6x1cgNxyT9FEsnGUTIreAKsDkVl8QY6Bh0ZD2nyYzxa2NhPxSt yQ/2cpTCXkXAU+LbeJGWJVRSEen4rmWMmf/94D8BmuJK/WMYVRibLn9i6xlpYZRl+k fec3V27gnFMDdA/BE1s6W8WQGNRzezJ8psWfC200= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727560AbgCERSy (ORCPT ); Thu, 5 Mar 2020 12:18:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:42086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728032AbgCERPW (ORCPT ); Thu, 5 Mar 2020 12:15:22 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C61620848; Thu, 5 Mar 2020 17:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583428521; bh=PSf3N2di/O3d2/Fv7BAPgBIxqwvJC4exNOCrpSNCm3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AB6cygDUmVigawxYnpbJ/WdxtZVVN47yTEzJu3sxo7qEZ6F1ZmTn8mHr2HsH8Ee8S doK/YuHGiJeT1SFqJV2wHVqS6MM+MfGjYLjolOT8gXxeMsZFdw8jiHtY81oMKcRB+Q OiXM9JlMtbW+nVROyD+FgaoDcFAWVulFNV2k/Bk0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Johan Korsnes , Alan Stern , Armando Visconti , Jiri Kosina , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 04/31] HID: core: increase HID report buffer size to 8KiB Date: Thu, 5 Mar 2020 12:14:48 -0500 Message-Id: <20200305171516.30028-4-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200305171516.30028-1-sashal@kernel.org> References: <20200305171516.30028-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Johan Korsnes [ Upstream commit 84a4062632462c4320704fcdf8e99e89e94c0aba ] 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: Sasha Levin --- include/linux/hid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/hid.h b/include/linux/hid.h index 8b3e5e8a72fbc..8506637f070d1 100644 --- 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 -- 2.20.1