From patchwork Wed Mar 17 06:53:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 12144957 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.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, 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 7EDFDC433E6 for ; Wed, 17 Mar 2021 06:55:49 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 4128764F99 for ; Wed, 17 Mar 2021 06:55:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4128764F99 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.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=desiato.20200630; 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=M2Z5vB3wJX3I8V7nX71stxHMDkE20J3YXVfgKwPA6Fc=; b=VvaPPTOa/3Kze3aMKmcTt4IOhc Qze4VhTFg9D+YAXXGasbazJVIDtIA7W1e1oEIRVyw8NGRLyCny8zQKryBrEbZOZl+d3CK4XBeHC8C Mz/EapnElv1iAFEdq6ZgVOfZyteD3ZVgrR81fyz2L/20RvxjFCKkO/geCTpAd8pxGQGxh8RTeowyU juyW9UZOwaWJIpZ3HHxnryJw6MdqpXDbhKtzJ9Tbm3bV86DVpkL0huDASuJdRuP4NlBu5cvs2enQs /6VkYUDAn0NOZW37r4hzlkRSsNqK7ECavQDnN7Hpmp43ljnx6ZMhkvqbjllln2kaUHsUGg/3Mybgx 52Al33hA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMQ46-002b8K-0x; Wed, 17 Mar 2021 06:53:58 +0000 Received: from mail-eopbgr80048.outbound.protection.outlook.com ([40.107.8.48] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lMQ40-002b6E-DG for linux-arm-kernel@lists.infradead.org; Wed, 17 Mar 2021 06:53:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BCqbxUYPfsB+5AUium0/qtmfKSiGVoGp9MlIGeV7z0dhFok39Jtz6ovt5olTzWF6Sp1ZQLxmrvJMZaDgiyMHVD2DI4HPT/2wMH3I/G1zYnQfp9M2r5Nyy0KH49vejJ7sQDglRv1A5XxX5e0MC8f5V6nqTogURhfULp223l6SAphZDwGL+Cyj+6Yt6fN2S7a3PJsUuyex+WF94bxdbWG9w+FNLbROZA5JGy4UrAsp+HprROdgXuZcxY5hzxA1jrYTZtsZbY2y8Gv2sEdYMO8hJts+8eNBm+dBy33MaV6JqqXJlbxw3FEAiOuPzVC611/DeZf7H7obEyMiGQvSApO2tQ== 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=2ZBuag9BJWN9LNBfAcR9cSQnSNrF0a/e1GdfQqRPUIk=; b=buaH6Ilpy8upuqbnhUcX8/GMofCW9rJT4Yrz1lSL6jgkJFROQEmerRDgAcx0Q9iA7NlZfTiS3NsFaHgzI7E4QYwAZ+7frYHfzXbgcJr5KI2FAXVvgKR0aiqCThqofzMS/yqzmR8yjXSJR/lr8qCLymdssjVsstILUrDgKXYKYo8SnGju7YNeDG9HEh9ed+PTN5WerQuCaqg6nvuh4bbNkyIY0xnAXVo2ge25iLNlB84Ay6ljeeMssTMOMDT7AGxAGJla5u9ShINyWUdha2+zNOTws89T8GlU0wstrUA6jCoiAlqx52qBT9zRT5/39QfyWCTUnbnRUn9sg1EzNbDctQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2ZBuag9BJWN9LNBfAcR9cSQnSNrF0a/e1GdfQqRPUIk=; b=d/iLdiOP/p76ndZm8QYZwmwupRThGe3dic2uYwKzesGbCDVhNwGmFfJKAmkNO7xYZJiuHUQsDf4KISIsxZWcmEc/GQJhLumgBRnzrxnTj9KV0XNtb32o7vJ2HwQfX+DDg8hhs8lVoAA+fVjeM8PbSrirNUwDEF5jsX4FZVfFuxg= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB5618.eurprd04.prod.outlook.com (2603:10a6:208:123::11) by AM0PR04MB7091.eurprd04.prod.outlook.com (2603:10a6:208:197::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.31; Wed, 17 Mar 2021 06:53:48 +0000 Received: from AM0PR04MB5618.eurprd04.prod.outlook.com ([fe80::69a8:a768:8fa1:7236]) by AM0PR04MB5618.eurprd04.prod.outlook.com ([fe80::69a8:a768:8fa1:7236%7]) with mapi id 15.20.3933.032; Wed, 17 Mar 2021 06:53:48 +0000 From: Clark Wang To: aisheng.dong@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, sumit.semwal@linaro.org, christian.koenig@amd.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/11] i2c: imx-lpi2c: New features and bug fixes Date: Wed, 17 Mar 2021 14:53:48 +0800 Message-Id: <20210317065359.3109394-1-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: HK2PR02CA0215.apcprd02.prod.outlook.com (2603:1096:201:20::27) To AM0PR04MB5618.eurprd04.prod.outlook.com (2603:10a6:208:123::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by HK2PR02CA0215.apcprd02.prod.outlook.com (2603:1096:201:20::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18 via Frontend Transport; Wed, 17 Mar 2021 06:53:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 99473c99-6654-4f51-c7e2-08d8e9116a72 X-MS-TrafficTypeDiagnostic: AM0PR04MB7091: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AAZeXXx4HfWtoRvvs8ClPG2WLfgy2lNHi+I9xJ8zeGsdMLVtWr1H9E2dnCSYNRuAuJDVBoLDYSFXSRRKN0J4gw2xsSviPrgwgYfjv11thW5eQyp4bz/gnEE5F2KPGH9OjhAk6xZYOAz7f0NJhHf4JBY5o6RAXkkPzYIAYKDou7CghgWd9+pcMer6LC/EvzsMwVvoOKNQp42qJGnA/LC+tYzKlZkJFya/1jra8O5cJXoirFl/iLuM8tT3qfXMj5aVNDsuM9ycmn00PKeTQVlL/RO9mr1BMPR0inpWl0EomcPdV9cuJjSmXxyvA/upWBKCGaaZLGK6mX4hftdNT89sxkMmqmD/qpF5SVRonqlKNBT8xHXDHsVg/n82dNSjN3HfezeCvPM31uRvbtg0M/Ql4cuG197f1R64DXmopx+HWujU/PKhXbd9fQW7ecVxPPnB6NnzhH0v/pSCJCrk98V/iPw4tV8vjC1RG8kiZgHn1pBjsPeoXV05veQYOGJ+V+bkrtCl1HRgj3y3tcc06L/1yc1hq4adkRDFN+nMwAgQzfwWDwXIOkcqinddqM6spcBHjGLbAN6dRxgLaCAO+wf5EiwnfTFtEVNTKE+c43HhP1siaxXU+iyMFL2Vvh2bKnFt X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB5618.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(396003)(346002)(39860400002)(136003)(478600001)(4744005)(66556008)(66476007)(69590400012)(6506007)(66946007)(83380400001)(36756003)(16526019)(5660300002)(2616005)(316002)(2906002)(1076003)(8936002)(26005)(52116002)(186003)(956004)(4326008)(6512007)(6486002)(8676002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: p8lrs+jp+KcFYNf5wNTudU6BOa5tsw+sB7tMvX23q3e8ErjjKoev4n9hy5ZpIfBvkVHB1ul7/n/MH4NXtJDVHfa+rAyo+j+hVcpY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oA2YP2I0vSYZ3ttRgXNGhr290qUHOSsJWNOsWKkOTBAlRUIAt4u8JChhq0E95vMAzcYCYRAICNAlkCvp1vsfuHG3LHXbX+8gjJuhLyADAOklEA1W+ijNroTJUDyTGSp6Dd8yOnDuD2TGlil4gVADIaq3EzRSZG/XOg X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99473c99-6654-4f51-c7e2-08d8e9116a72 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5618.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2021 06:53:48.6256 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eKF2Ng5YIeumSslHGMdRstOEHkBEjPjORMT8uhVaRGOowTI/IRkAJSGoeWbXaLWoSgtVUt+Pq9I3A2O3UABAwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7091 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210317_065352_667591_5DA4375F X-CRM114-Status: GOOD ( 10.35 ) 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 Hi, Here are some patches to add some new features and bug fixes/improvements. Each patch of these 11 patches is made on the basis of the previous patches. New features: - add bus recovery support - add edma mode support - add runtime pm support Improvements: - increase PM timeout to avoid operate clk frequently - manage irq resource request/release in runtime pm - directly retrun ISR when detect a NACK - improve i2c driver probe priority - add debug message Bug fixes: - fix i2c timing issue - fix type char overflow issue when calculating the clock cycle - add the missing ipg clk Best Regards, Clark Wang drivers/i2c/busses/i2c-imx-lpi2c.c | 536 +++++++++++++++++++++++++---- 1 file changed, 478 insertions(+), 58 deletions(-)