Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1656942ybh; Tue, 14 Jul 2020 03:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIOqjESIMxLSH3jLo52Q92mmXx8eOpp+5Gs3ClkKtQBG1epKwRKIXBkg1iwjrXOBJnajqC X-Received: by 2002:a17:906:8381:: with SMTP id p1mr3845719ejx.280.1594724292549; Tue, 14 Jul 2020 03:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594724292; cv=none; d=google.com; s=arc-20160816; b=sBmjNN+k5XDeWN4oC3z1sy3v7hJ1euVTVxCZ8haNU48YPfLMWdp6kJU5nTGFFI/HLj 5feSnpnAHj9THD4Gh0jkBkovpdNVUhL6oF7qN1aBQTtAQr/NtsuawLraAR5NxLCWXcf9 k+k+ef6hXqv3amHWx1QQkVeFVU8O7hxyp4NCSpe2K4g9iFOIoOY119N/Ef+hebppjuw+ 0FQHqqx276FIc/s/awjWZhuUebhYVzKfsih/GGnbrNTO2K1/5Wx1/ZhId8kwwxctj7gY nhjs1E5RDJJDFiXKVhdYYwPcVY5epvsZSWQIuKMGOhwbCJHu3cfvCmOJckHWwlfsFJ04 ushA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=lIQImvfSJrhPLTQC6R7pwcZ1rk/gQ1If1SKTF2Hrjzk=; b=HFnLix7mM79yf3jihyHRcNyTVFG/qr3aTS8U47E6ZT76UbVsIZm4vNrNyPEsi/ezlm Eckw37Xj6vIzpMfTqdXVYH9OMBtE1DPeiI0CULIt6k/cznk2AGERtDE+7yb2WfDrCFQi EY7cj+uzk5rFDSxWVpO0tEH1friOGu85sQ3vvqG1ublxc4d4VV+lh3oOCUippYVxLxAM JsreT+UmnWjaM+JyOSEUdntKav4rJ4inS1OgDcX2+ulTGG3uOEkDe4ex/jcrGc9E6Tqf 5Bw1lbKZzMm1+IBkfvIRDzM8BAP38suEoKpQb45tL3QywS7e2U6soPKxsjMGstGf7F/G OQHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q26si10062026ejc.433.2020.07.14.03.57.49; Tue, 14 Jul 2020 03:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727826AbgGNK4r (ORCPT + 99 others); Tue, 14 Jul 2020 06:56:47 -0400 Received: from emcscan.emc.com.tw ([192.72.220.5]:30348 "EHLO emcscan.emc.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbgGNK4r (ORCPT ); Tue, 14 Jul 2020 06:56:47 -0400 X-IronPort-AV: E=Sophos;i="5.56,253,1539619200"; d="scan'208";a="36424500" Received: from unknown (HELO webmail.emc.com.tw) ([192.168.10.1]) by emcscan.emc.com.tw with ESMTP; 14 Jul 2020 18:56:43 +0800 Received: from 192.168.10.23 by webmail.emc.com.tw with MailAudit ESMTP Server V5.0(69270:0:AUTH_RELAY) (envelope-from ); Tue, 14 Jul 2020 18:56:42 +0800 (CST) Received: from 101.12.45.92 by webmail.emc.com.tw with Mail2000 ESMTPA Server V7.00(2477:1:AUTH_LOGIN) (envelope-from ); Tue, 14 Jul 2020 18:56:42 +0800 (CST) From: Jingle Wu To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com Cc: phoenix@emc.com.tw, josh.chen@emc.com.tw, jingle.wu@emc.com.tw, kai.heng.feng@canonical.com Subject: [PATCH 1/2] Input: elan_i2c - Add ic type 0x11, 0x13, 0x14. Date: Tue, 14 Jul 2020 06:56:33 -0400 Message-Id: <20200714105633.15099-1-jingle.wu@emc.com.tw> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ic type 0x11, 0x13, 0x14 page sizes for update firmware. Signed-off-by: Jingle Wu . --- drivers/input/mouse/elan_i2c_core.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 3f9354baac4b..e90beada0ecf 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -126,6 +126,15 @@ static int elan_get_fwinfo(u16 ic_type, u16 *validpage_count, case 0x10: *validpage_count = 1024; break; + case 0x11: + *validpage_count = 1280; + break; + case 0x13: + *validpage_count = 2048; + break; + case 0x14: + *validpage_count = 1024; + break; default: /* unknown ic type clear value */ *validpage_count = 0; -- 2.17.1