From patchwork Thu Jun 6 14:00:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitor Soares X-Patchwork-Id: 10979601 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D079B17D2 for ; Thu, 6 Jun 2019 14:00:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF8EC28646 for ; Thu, 6 Jun 2019 14:00:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3E2E284F0; Thu, 6 Jun 2019 14:00: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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D732828385 for ; Thu, 6 Jun 2019 14:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Pa2uYYOxi34Km8bClUrm4icO9Z5b+pjRXpI4xAuOIpg=; b=S+z 95V0S3xlTrp04kg5baDwSSgxR0wryMcrVOReRy6k7slIAnrPb9TILm9KBb8OcPmePwCjfoW6ucw3V Um4ker8UcplvjMYRlM19pT3P13YqVI7eFbJW2uJUF3rkqeL/4qWOXD1l9wxEsznSR5wZm4i9UnsxI /bE3HwnQim2La4QsdBDI47FXPHqH8p2GjpyL/ed+/3GKgSFTxLxhhDJOyKygM6pscGxwmlFDYMEFd odM75JGsTG/FdOGDslJYq39zBXw/jsFS4MveNP50YFqMRih5YdYHAa2dhZEOIDTRkmLMo0KqPBFPw iDl8loQfdePZvkkWjjqn+wXnBtomgww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYswC-0004b6-GD; Thu, 06 Jun 2019 14:00:16 +0000 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102] helo=smtprelay-out1.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYswA-0004U5-1m for linux-i3c@lists.infradead.org; Thu, 06 Jun 2019 14:00:15 +0000 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 1916FC0B4B for ; Thu, 6 Jun 2019 14:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1559829619; bh=llL9weTnFhAXpoLAP7tKlRaiIgSzIDQ4VfIXTT9nIjI=; h=From:To:Cc:Subject:Date:From; b=kpjJCBsxEWy0KrggoqrUNQzlZxnUoAmhTH8kcBbFT3Njfw+AE0jdA3Rar1tT86mr8 ugRIUCMzeo1kmI7uBVb0LzDAOcFw/IsxNhGP1uvgpi2G97/nHRFh1TagUw/HrBthQm f6fqURyOtEK882RhU/oX46k7JXTVRz/gAluqLeh5AHqiHiT/VrY1RXGssESH42vHYv HUN6gLS3XVE22XMJZz56LsUNsXRgcX9TGIPf1uWLtOVGMghEgUu0GI1+ISh2FJO1Lb VYYIrn+f30DMzfaI5JuOk8Se/vSoxHpBkgwAWNxQ1D+Gg4mqMD6zaGks8Ep4c8gp0X 7QKO9HjFkyRxA== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id D56F4A0057 for ; Thu, 6 Jun 2019 14:00:06 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id A3ED73F6CB; Thu, 6 Jun 2019 16:00:06 +0200 (CEST) From: Vitor Soares To: linux-i3c@lists.infradead.org Subject: [PATCH v2 0/3] Fix i2c and i3c scl rate according bus mode Date: Thu, 6 Jun 2019 16:00:00 +0200 Message-Id: X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190606_070014_090520_07C5EAF5 X-CRM114-Status: UNSURE ( 7.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux I3C List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joao.Pinto@synopsys.com, Vitor Soares MIME-Version: 1.0 Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series fix the i2c and i3c scl rate according the bus mode and LVR register. It also introduce the mixed limited bus for the cases where i2c devices doesn't have 50 ns filter but allow higher clock rate for i3c transfers. Please refer table 5 and 10 of i3c bus spec v1.0 for more detail. Please follow each patch commit message for more details and changes made in this version. Vitor Soares (3): i3c: fix i2c and i3c scl rate by bus mode i3c: add mixed limited bus mode i3c: dw: add limited bus mode support drivers/i3c/master.c | 66 ++++++++++++++++++++++++++++++-------- drivers/i3c/master/dw-i3c-master.c | 1 + include/linux/i3c/master.h | 5 +++ 3 files changed, 59 insertions(+), 13 deletions(-)