From patchwork Sat Jun 26 10:27:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raviteja Narayanam X-Patchwork-Id: 12346387 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53122C49EA5 for ; Sat, 26 Jun 2021 10:30:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0BD4761926 for ; Sat, 26 Jun 2021 10:30:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0BD4761926 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=YYshTRdluTY1sLZdA/EZjFN2SJnn9QmegBMw3YqnIEI=; b=D9U2IdjProKn79 0DV/k4HcFLhPsR8iYTlPiJF1Bwh3cqmSJt6/dSA+fEVOdZsISSQcALzOqHMi1FAZt0YtCBc/7mOFv YDEM8jrP61VAfRFP7GkXrAoOnFXhKy0UXpJOMe9P23xnwgj/yAuAfPztgl41pXZJPzWtfAilndLXb v7RegCePZWL6OJsLNAERuikZP7SQNe6VojHDJRbXEyaFB4K7WSq/S3wuYvCvKwRLfScOrnGbuajQQ QxaeO3qH5bdaQzPXCTmN7kPc2TjjmyGlY7HlVysdB6um5gC3AMPvDEx2qOMkCd4YSTFqFlDgQM6UU 8P0MU85aY4HqANIkBHPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lx5Y9-003s5y-CL; Sat, 26 Jun 2021 10:28:33 +0000 Received: from mail-sn1anam02on2042.outbound.protection.outlook.com ([40.107.96.42] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lx5Y5-003s5I-Gs for linux-arm-kernel@lists.infradead.org; Sat, 26 Jun 2021 10:28:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UfFb6hHM0yglp31unbCalWdjI3N+WWKTvRCOzQZMaMYgK8ZrZX5R6ymGx8/wA55b0fiI9vdAkpMF7UohGeLjPnvU3P8TSNLRaBTq6iuFtoo4JePGwmGvsqFeV79yBbFPeKXtlgViUl7cQiP16VkxhxspDwUZ7Pprj31L0HNQjQi4GD/rqYF0ibrli2rjZxSrX7i62LE29pqEJtNPZ/Cf/vpuQjMLIMj6e7iugCcjtx9fh24X30498vIqbMoWJ8iak4H1GxarxRjPct9l2TfhlNTC2hzoS9DPAStAfrtcyWe673EFr2hQxFM0j36J0jw3NnCh6Q2JzbPSH5L7jBvPgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tgluNwHllGv4JdEQzRaEe4Pe1W+OyCZa71hijzXAeLc=; b=PwOCa1ZJSv6ZMbxXw89AVR991Su/Y0A5hDa76oWJsxRNJNT72tTN8HuXNR20UtPGYYG5oy/9DUnM9tgKwfJSGAiMC8cZNTA16GDx5tqBBlueyIPorgfnI+OOyElk+Fq5Jfd8URvKsEXBKB3LqkpznFyzhWWEq0CFhoohU1mXnEeWEjfzJgwsdN+ksCYJAVQnuixkxbgV8GjkcrHzAFE5HNOVUqc1+uso3AQP/hEKN54gyEjYRDty+gjo/G/3PvTwS7gEyu8DKrl0ci+HCvKEihFZSzsCzE90WteDIpU7zg40fRX6fzYHIK8xKzAt3sxYBWDFAqmQWPfR6V9A1rmQKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tgluNwHllGv4JdEQzRaEe4Pe1W+OyCZa71hijzXAeLc=; b=L+EbQkNfoKuBw58mJdyqKjzyyUCpesc6IVuq0D8VD3o2AXeohBvtmya8i0Fcl7VO1iXHJpuUX4I6mOUa+i4yL4KvFnW9R3uBoWpE1qFczq7qhO5Qpw3R4fXTlTO3uQxNz84IuMkRxpFLqI/NF/Z42/Ie9HWKRkGwpLY8NTi+hlw= Received: from SN4PR0701CA0018.namprd07.prod.outlook.com (2603:10b6:803:28::28) by BYAPR02MB5398.namprd02.prod.outlook.com (2603:10b6:a03:99::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18; Sat, 26 Jun 2021 10:28:25 +0000 Received: from SN1NAM02FT0064.eop-nam02.prod.protection.outlook.com (2603:10b6:803:28:cafe::d9) by SN4PR0701CA0018.outlook.office365.com (2603:10b6:803:28::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 10:28:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0064.mail.protection.outlook.com (10.97.4.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 10:28:25 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 26 Jun 2021 03:28:13 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 26 Jun 2021 03:28:13 -0700 Received: from [10.140.6.6] (port=55646 helo=xhdappanad40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lx5Xn-000AWJ-Lm; Sat, 26 Jun 2021 03:28:12 -0700 From: Raviteja Narayanam To: , CC: , , , , , Raviteja Narayanam Subject: [PATCH v2 00/10] i2c: xiic: Add features, bug fixes. Date: Sat, 26 Jun 2021 15:57:56 +0530 Message-ID: <20210626102806.15402-1-raviteja.narayanam@xilinx.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 531a2072-7437-43f1-e3e2-08d9388d21b3 X-MS-TrafficTypeDiagnostic: BYAPR02MB5398: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +v3TK5/q3+k+vHzW8oOaI8h8RUUptm6UA8vPQO2oqdg+wrqzRS91TrZ9TJL+Fj7+LojSml76IPsqaV37lrbM7URXl3/vSSkOVATfXXr70dvYkxfEBTQWVQRZnHX/hTFJbEFTDvSJzrU19S5b7oso7VpmftANM5u7zgEI7AULEj5v3umN3iT2KakYsQgYbOD2o20AD7dfAM0PNFfqVd+NLp59sPdX7/6YNnbIwGWwEjLUnNV5DwsDhJx6VRmnIDY+skj3KITIhdrxepblOkW5P4gs2/9cepIrfr/5HvZqgIsANZzNzffLnZoGiXYCIhMBCnbeugJ+JsMGHpcqHeKM+G87SNIQWsNsnH3RBeFp8OQ6lXO2ujRbD+0noWSYq/QKadC60uCN3ordW8veqkrXanrPR55SVztyzRbZJhfHzPTAGEZIOw0XOcbw8L756ppSvpsISVRzLFvTgYvSwwuJ4ufPzgSJBXCcnprCjBApPdqUbPfgsDJBSUzxQcHfcx8mAucQ2Py2iyEaOW25gKdViqd1nNpQuSPYHRGjFvwEYWjLpeORlBrsMkD7xjgaxWxBzcsfG3fP8Nu2hz9bzwgDIJr78GdxzQg14529ED/+1Otw39jx9jqDKkwijTHpE5nJoTddq8NhICwVnORDBp1M0MLEA2rr/7jL8YYy/UBihpbltToIlgaT6tBKEgRawxaKJ/6+bY5FGvp8NdodoqKsQtGoyWFb80rBKRAxOVB0D0dah5JtRb/4Bi5RDG/Ckt1uuJg3BFiUgY2nXlAyDIAAzVlKJ/BasGiMLWDwGuLD+5asdEcRTI8GvdQ/DscJAFEE X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(396003)(39860400002)(376002)(346002)(136003)(46966006)(36840700001)(316002)(6666004)(54906003)(36906005)(110136005)(478600001)(4326008)(6636002)(83380400001)(70206006)(36860700001)(2906002)(26005)(2616005)(186003)(70586007)(966005)(47076005)(36756003)(9786002)(8676002)(107886003)(1076003)(8936002)(426003)(7696005)(356005)(5660300002)(82740400003)(336012)(82310400003)(44832011)(7636003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2021 10:28:25.5807 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 531a2072-7437-43f1-e3e2-08d9388d21b3 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0064.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5398 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210626_032829_611332_AA9363DD X-CRM114-Status: UNSURE ( 5.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org -Add 'standard mode' feature for reads > 255 bytes. -Add 'smbus block read' functionality. -Add 'xlnx,axi-iic-2.1' new IP version support. -Switch to 'AXI I2C standard mode' for i2c reads in affected IP versions. -Remove 'local_irq_save/restore' calls as discussed here: https://www.spinics.net/lists/linux-i2c/msg46483.html. -Some trivial fixes. Changes in v2: -Grouped the commits as fixes first and then features. -The first 4 commits fix the dynamic mode broken feature. -Corrected the indentation in coding style issues. Michal Simek (1): i2c: xiic: Fix coding style issues Raviteja Narayanam (7): i2c: xiic: Fix Tx Interrupt path for grouped messages i2c: xiic: Add standard mode support for > 255 byte read transfers i2c: xiic: Switch to Xiic standard mode for i2c-read i2c: xiic: Remove interrupt enable/disable in Rx path dt-bindings: i2c: xiic: Add 'xlnx,axi-iic-2.1' to compatible i2c: xiic: Update compatible with new IP version i2c: xiic: Add smbus_block_read functionality Shubhrajyoti Datta (2): i2c: xiic: Return value of xiic_reinit i2c: xiic: Fix the type check for xiic_wakeup .../bindings/i2c/xlnx,xps-iic-2.00.a.yaml | 4 +- drivers/i2c/busses/i2c-xiic.c | 593 ++++++++++++++---- 2 files changed, 487 insertions(+), 110 deletions(-) Acked-by: Michal Simek