From patchwork Thu Oct 5 18:22:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yiannis Marangos X-Patchwork-Id: 9987733 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 851196029B for ; Thu, 5 Oct 2017 18:22:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7663228D2A for ; Thu, 5 Oct 2017 18:22:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AE4C28D2D; Thu, 5 Oct 2017 18:22:17 +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 179A828D2A for ; Thu, 5 Oct 2017 18:22:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557AbdJESWN (ORCPT ); Thu, 5 Oct 2017 14:22:13 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:47610 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbdJESWL (ORCPT ); Thu, 5 Oct 2017 14:22:11 -0400 Received: by mail-wm0-f68.google.com with SMTP id t69so3652077wmt.2 for ; Thu, 05 Oct 2017 11:22:10 -0700 (PDT) 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=nLhIa/fVC7dGa1VAGZYiwLWs7ZFEmObwE8SlyHCbOrw=; b=e4luB5SZAFCGAsjelc8yqm8TwEyZx/eZxo0em6IG6UIb6Z289nOKqmFYwtSrowiUWO d/c5V9JxoymrfifV0d4GZrPTstZ+oOarH/i9PJzypbqP8boaJodpEVC/M+i537ryy9TY B/7OeLwTK6A2RR4qgvrb3UGz8KOsU0XnGLdc+oPkH1I5Ifqm5gUEd+t9/hBSaCPCIXjw CEPTQlmZJZzqHwTk0mFbgDgWbG5ZLgd1nFMjYUUjDqhufsRqnw/2AZ6qAZJzwQ9mHWqH l4s32y7nMrO2lVZouQ6Vz4cOWzjVJ0qyScpgFZgRm44P/PbQq8+lfUUoMcbr9SaaH/Y5 7dIw== 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=nLhIa/fVC7dGa1VAGZYiwLWs7ZFEmObwE8SlyHCbOrw=; b=TtzNucXw/J0Pz+foUk9xFHniQM7D7EA1C3xJeoGgNhovBNrRMFkDlzNn4mlPFnGH5c pJSXUKFY8IXN+RQZwVJG/+4tuvM2gTPJB+At/qDHcArScej+Y2xJIKLs/CFKCvKW5SGt 2Q09qlObaFT1ME1IsYwjTcY5FcO6P2zJAIhyB9RSpmDiXykxgfMeCPbk1TJinGmHtL+a LvWK69Ro1D8BhNV8Ypq4GjED3yUNQ9f/K05pO0NSuk/xzc/uiSb9OkqHAqAGlA28O1GC q/SrIO1jIP1tZVYj5gK812aSqrpyiM/uXJZjwj2xmW6iQiLFfgsk3uLME1PvlqmrPHD0 Rm4A== X-Gm-Message-State: AMCzsaWZ+0X29I6HcnaxLhbP3TSF7kMqAQwNrjSuPgwB20aPCADCQpUe XDEI7LbakP2bjUot4ianR1nqJw== X-Google-Smtp-Source: AOwi7QAWI01MnqOooVXy+1Rb/PMl76zZ1UvVw99/ROsu0pgFhyulWBUxbLR+kHrCplLkDZumXVvgyg== X-Received: by 10.28.90.87 with SMTP id o84mr15557wmb.132.1507227730030; Thu, 05 Oct 2017 11:22:10 -0700 (PDT) Received: from localhost ([216.241.151.191]) by smtp.gmail.com with ESMTPSA id u96sm35960422wrc.68.2017.10.05.11.22.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 11:22:09 -0700 (PDT) From: Yiannis Marangos To: linux-input@vger.kernel.org Cc: Yiannis Marangos Subject: [PATCH 1/2] Input: synaptics-rmi4 - RMI4 can also use SMBUS version 3 Date: Thu, 5 Oct 2017 21:22:20 +0300 Message-Id: <20171005182221.7138-2-yiannis.marangos@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171005182221.7138-1-yiannis.marangos@gmail.com> References: <20171005182221.7138-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. --- 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;