From patchwork Fri Oct 6 14:06:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yiannis Marangos X-Patchwork-Id: 9989547 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 A5D7060247 for ; Fri, 6 Oct 2017 14:06:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8717328C59 for ; Fri, 6 Oct 2017 14:06:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C07C28CA9; Fri, 6 Oct 2017 14:06:39 +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 2BB8528C59 for ; Fri, 6 Oct 2017 14:06:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751620AbdJFOGi (ORCPT ); Fri, 6 Oct 2017 10:06:38 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33413 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751459AbdJFOGi (ORCPT ); Fri, 6 Oct 2017 10:06:38 -0400 Received: by mail-wr0-f195.google.com with SMTP id z96so10067147wrb.0 for ; Fri, 06 Oct 2017 07:06:37 -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=ZmmUCZ1ASvk/sDsIt+HUsFTByUq/gI/UXPff/5ENdho=; b=hVCpltF8MrWK/YwzU5Izhdt2BHNFSgAUxuDWtn8xkAGnZObd5ZneQ1L9BczFPhjbxy kNwDQ4AkcruePUE60a0vwt0YcErQHhrbLAcvhqqNwWYu7f6KIgZ86grbt3432Gz3hxRd 5iO1M5Wc/7U00nNB8wiBP77JAtPfzl3TbSHDnxfGYqLQBmwRtHoLmQbuJziAMuH8UnTJ C64b/gfILtmNrOMVBqnzmATMC9XQGV6ewHswNs2JgRlGjVTVMf+5L2IGDgfXrDTNgZ0B Ye9IJJgMoS5HK07XkWlSe+eM4OFLNZtNbnZwUM3uuzIFEFgcKPqP5EEXOtce2LR4Y+Lx 1ZgQ== 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=ZmmUCZ1ASvk/sDsIt+HUsFTByUq/gI/UXPff/5ENdho=; b=Hf3SgZCFkJsAcC2KsY3Dkx9ZsttvpSwwLRYLxlmCf8YlQdx39M2DEUzGKltpUdk8Pn yGWZd0FZX9EYWpt7K6mYdozKLFjQFV6GNk7/5PD1I+UzA5bE4INSXljaWznapZ7QMOZJ S6L2MfOGXlJPBthXgepJ6Eao/SILixEsAilwqRfg0P2jxpZgfvZGsu8WyB9qEicn9ldR 0krJFOtKrdxRhgPF66o2foFeo7w8U3bkV0PtJfqyyC5uS/MnlmRyrQT0JULbMkW2gY5Z /xKDfHYjMDVXxXIQbtKVy/5/hBAFZqYdFLNpBeJIxCPKmJ2ei3nLu6WrBiPPsiEDV6z2 W5vg== X-Gm-Message-State: AMCzsaXbIE/s6ZkkFXQhS5yuuMPESYPad8FrNtRulL14WtM+xzpzy3v7 An7TiAJWFnX1ispKTXgdEODygg== X-Google-Smtp-Source: AOwi7QB4DeOnhExU33/Wz9qO76qgGYJ8OgCjXZkNW6MP0hQ4mHG13V39BPaPS9f7kkwNet27hmatYw== X-Received: by 10.223.181.1 with SMTP id a1mr2138685wrd.279.1507298796894; Fri, 06 Oct 2017 07:06:36 -0700 (PDT) Received: from localhost ([216.241.151.191]) by smtp.gmail.com with ESMTPSA id z192sm1673893wmz.28.2017.10.06.07.06.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Oct 2017 07:06:36 -0700 (PDT) From: Yiannis Marangos To: linux-input@vger.kernel.org Cc: Yiannis Marangos Subject: [PATCH v2 1/2] Input: synaptics-rmi4 - RMI4 can also use SMBUS version 3 Date: Fri, 6 Oct 2017 17:06:29 +0300 Message-Id: <20171006140630.6398-2-yiannis.marangos@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171006140630.6398-1-yiannis.marangos@gmail.com> References: <20171006140630.6398-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;