From patchwork Sun Nov 5 17:09:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yiannis Marangos X-Patchwork-Id: 10042385 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 44ED86037D for ; Sun, 5 Nov 2017 17:10:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F7D629218 for ; Sun, 5 Nov 2017 17:10:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 444F52934F; Sun, 5 Nov 2017 17:10:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCB3829218 for ; Sun, 5 Nov 2017 17:10:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750819AbdKERKV (ORCPT ); Sun, 5 Nov 2017 12:10:21 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54378 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750778AbdKERKV (ORCPT ); Sun, 5 Nov 2017 12:10:21 -0500 Received: by mail-wm0-f68.google.com with SMTP id r68so9938131wmr.3 for ; Sun, 05 Nov 2017 09:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FVoNp+66y/J1t3FkR9mzKNkDKAuDxCb5d9yihCxKBPU=; b=ornH+SPmijyuDZiMhy4YCGOg6gmAZ2k+i/7qtuEbB1pVyuNEC+UXrOMolBeU9Itxhx D8z2Yo0UpGG4lDyvdE9gTWbO/qKMV1S1SpfrVulqVZIGDVSucirJZccbBrlGSfVUP1fs HU7Sr9fInbo1l4lSYG4bgLXa1/gbG4Xn/v5QX4jsf/BcpVvYpeZkkPduvMWxdRpGEO5R 9DHtJMuq3pKEvJC6qKBW9oKQT21hRsFuqHRVKl/VP0QBFkcuh9h3iYRPvbc43INAbG2m aP2tHmqFKgNUcUhVLWeXEtQPzGEjRqDHK1Gi2wOE8eKigJp46gxW1EazTq+rTwBYVZxO Hqyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FVoNp+66y/J1t3FkR9mzKNkDKAuDxCb5d9yihCxKBPU=; b=rWhyYQO29B85GDCc8BgQTUF245AYZ7v5BndS6imjvXwE5UKajDnjaAxJ0psIELPuh6 ur9dvEoPhvM4oglepitF4aetOGviuLrCC1kxbKfs4cZU5SguqQcKh2C7csBTNDGzQyEc Jwl5PQnnVIQlhj2Yv2Scc1kBZjHQWKVOZz7TTHO3eBjCqVOdp6gey+k9blV7LAlI8WBh aC7KjJK0L6RJJJf3F7gt6DGcnYhoBFhvoeeYG4mPlIZMCLZkoQq35FGMaNod2GIXJ1yF YeW9qgQe+H/ouF3Nss9WKRffphn5PLWYeFHnBGni/IlFjtgWL3iCNxPuc/iAhAxhIwse YmEg== X-Gm-Message-State: AJaThX40QVxrdntYDObKHz0wH73pUtTeohYgiZyUgd45iWWwdz9hj0fA yu6OuDnRJteuV3/mRVdANVhc/g== X-Google-Smtp-Source: ABhQp+TCrMFCWT6c5/kXIdmFGnuc2n33noCT8kHGrCTeyUeDtU1A8JCTMHMMcbT7RSKbH1peXT/7PA== X-Received: by 10.28.199.139 with SMTP id x133mr3169610wmf.145.1509901819789; Sun, 05 Nov 2017 09:10:19 -0800 (PST) Received: from localhost ([216.241.151.191]) by smtp.gmail.com with ESMTPSA id t6sm6635181wra.28.2017.11.05.09.10.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2017 09:10:19 -0800 (PST) From: Yiannis Marangos To: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com Cc: Yiannis Marangos Subject: [PATCH v3 1/2] Input: synaptics-rmi4 - RMI4 can also use SMBUS version 3 Date: Sun, 5 Nov 2017 19:09:50 +0200 Message-Id: <20171105170951.20261-2-yiannis.marangos@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171105170951.20261-1-yiannis.marangos@gmail.com> References: <20171105170951.20261-1-yiannis.marangos@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some synaptics devices such as LEN0073 use SMBUS version 3. Signed-off-by: Yiannis Marangos Acked-by: Benjamin Tissoires --- drivers/input/rmi4/rmi_smbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/rmi4/rmi_smbus.c b/drivers/input/rmi4/rmi_smbus.c index 225025a0940c..b6ccf39c6a7b 100644 --- a/drivers/input/rmi4/rmi_smbus.c +++ b/drivers/input/rmi4/rmi_smbus.c @@ -312,7 +312,7 @@ static int rmi_smb_probe(struct i2c_client *client, rmi_smb->xport.dev = &client->dev; rmi_smb->xport.pdata = *pdata; rmi_smb->xport.pdata.irq = client->irq; - rmi_smb->xport.proto_name = "smb2"; + rmi_smb->xport.proto_name = "smb"; rmi_smb->xport.ops = &rmi_smb_ops; smbus_version = rmi_smb_get_version(rmi_smb); @@ -322,7 +322,7 @@ static int rmi_smb_probe(struct i2c_client *client, rmi_dbg(RMI_DEBUG_XPORT, &client->dev, "Smbus version is %d", smbus_version); - if (smbus_version != 2) { + if (smbus_version != 2 && smbus_version != 3) { dev_err(&client->dev, "Unrecognized SMB version %d\n", smbus_version); return -ENODEV;