From patchwork Fri Jul 16 08:53:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 12381741 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.4 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,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 1C744C12002 for ; Fri, 16 Jul 2021 08:52:11 +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 D6DBA613E8 for ; Fri, 16 Jul 2021 08:52:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D6DBA613E8 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-i3c-bounces+linux-i3c=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=MyUve7FdncIpzorPL4rA2JY2pFpmAHuJpEWCDFhv4R0=; b=dlvUX8tP23RyMS 12r+CobAFG9SaS+ZsJnQflt43gfqTYQ+04GgTAsmS4haeXlxKJNLIN2zQUAaeGfjSymW/3S2Mw86W Ue7/yoSRZH7P/P8vcmIYHmBpbIVncTOXdIiWqZFiTz4llyZhAtKDJ62VbYLZZ7ggCFhoCbvbGUXpY 94nA5cvRtHvRT7NQJj+fgQxTI6PjUGRkEKasfxHzcQBet+KRKTCvVHQXeOmzT/GQAqdAwmGZTg3m0 5t9a5uPn0bXT0e9lFDoUr+twGhLdvPkwfMISwbeGqmt+jcHcr57qOfy+CpoT7j6WirwPtedzZ/2YW 2rFZoQ39wI+ENVt+nOFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4JZq-003rRd-6H; Fri, 16 Jul 2021 08:52:10 +0000 Received: from mail-eopbgr140059.outbound.protection.outlook.com ([40.107.14.59] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4JZn-003rQT-SS for linux-i3c@lists.infradead.org; Fri, 16 Jul 2021 08:52:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mz5JsqnXBXYMyQycrnB6DzKNBpIObxOomKfcEcUv71/Q5KighvrbRfVrig0do9smcwKB9J+Ff6T213Y9In3tGVvFBioCZ92P+3ITApSDqqCCapnX4wut80gdGk3xYToGKbcqfiSJ64jmim0/TAHtsDtvIIF7oKjvIdwf7jeY0A7IrjtSNsVFLVDaEXUq8RCX266R7HAFR0lEp5QPGRon8dzDZN6W384mRjBxrjiEuFbxZQTEdmOZNrdR5vqbSI4UuCfoa1IMkD6y7YlidtlAlIbBJnnEHVLp5y8NWYyxcu+ByXJTADhQ8kdoGw1+aYcg85VQY1Mowb4tTSlut1Qz1w== 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=eRp4dlOD1dGhkb9TvRqf9ju2LzTeDvAghPvZ+T2LQ1o=; b=GF9vzfxZY6gF/Vp4WJGKjI5fht9AgrVvRBtLINFvVLZ0mzgDgFwwQgmcWrXP1VX/9nnKov394okKDFOyZ2OJY/uFmbP2TrwIjhbsTxPaQPd37gUQ/AAhoDFh6VGb5+M7cUjlW9WyCK2QwvisOgU95OnrBckM6skWuVC80g9bUKF4zSTZTNlvKHL7iNalbRByg1NDOHjjdGyekKL6VQajwQQdn6Co/FsB8i3hT8pSTDKqlczAbxDfxg+dpv+dSJGR7j1vxUig97xGEKp/iLJd4JIPnOxcwcqB2OsJP1d7s+xwvP2gah8FYiWMPrQFiPfaDhPsB7R65wRJnfKk+fLT8A== 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=eRp4dlOD1dGhkb9TvRqf9ju2LzTeDvAghPvZ+T2LQ1o=; b=fgBV4iam1hYkXH/GAoR69k0OlnQdQsXVLE4t0TSdAdWwp9ieb/10IhFrB9hmJU+vaQBIAs+4palbNpb+dMgisDYHaMJxLmCdAqb73rMgV3zdJE36vgRL9Fci8EDIvc5AoKw5ApUzC0YQ88QaMNDE9NVU7WGR6LQyk/T7qN+4gmk= Authentication-Results: bootlin.com; dkim=none (message not signed) header.d=none;bootlin.com; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB5623.eurprd04.prod.outlook.com (2603:10a6:20b:a9::13) by AM7PR04MB7142.eurprd04.prod.outlook.com (2603:10a6:20b:113::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.26; Fri, 16 Jul 2021 08:52:03 +0000 Received: from AM6PR04MB5623.eurprd04.prod.outlook.com ([fe80::74f8:10b:8efd:b265]) by AM6PR04MB5623.eurprd04.prod.outlook.com ([fe80::74f8:10b:8efd:b265%5]) with mapi id 15.20.4308.027; Fri, 16 Jul 2021 08:52:03 +0000 From: Clark Wang To: miquel.raynal@bootlin.com, conor.culhane@silvaco.com, alexandre.belloni@bootlin.com Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, xiaoning.wang@nxp.com Subject: [PATCH V3 0/5] i3c: master: svc: some bug fixes and add runtime pm support Date: Fri, 16 Jul 2021 16:53:12 +0800 Message-Id: <20210716085317.3572224-1-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2PR04CA0158.apcprd04.prod.outlook.com (2603:1096:4::20) To AM6PR04MB5623.eurprd04.prod.outlook.com (2603:10a6:20b:a9::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR04CA0158.apcprd04.prod.outlook.com (2603:1096:4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 08:52:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ba5f58cd-59c8-4db2-53aa-08d94836fb96 X-MS-TrafficTypeDiagnostic: AM7PR04MB7142: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j+4k5ccg0NvN4m/dCBcv93Z8CClyxThH7hvFI0PcY4oooJtD107mvfDCIaO57iORgbDE+P6H90iQ9u7NKm6GwTH7M7kyrV3O9WkscLCPytReU/vZCCviF3BQTbx87fhIjEHvzPnL950R3hQ3srFVPJAgsQ4xkJye+FYOmOx3rQqMsYfeECqWyP2Ws5EarHwX2mvZTw+OKLHtgsk40fIT8eeKM4EnmMfyFnoNLmYGmzuse34dFCUbyxjRAOhAcnfm9hkXhP6K9fasYrZCE1vRnxmYXOwMSCSNE7OLYfgXZ8vMNCFuMe1VPup15UoGTamzmvpSiHI6fPlRU4NMvI6ZCTYXbm0SEYgEaENqVnYO0SqAPY4rjJPeDHITuDLG4fEvC6IS/dAVe6ucvmxvtARpmNt9kt2jQ0P/eyqjtW9ZkvSZS1NvJGPKlpxwyOqI6CojI3F7li5Ard87mjjtUw29pdFmQqN2wsL7R+ezL14aY9IGOShalVU4ROLCnsyL9UguRkAj/0woIyYOznU14HdcVAiphdmsbOmGtUAeugd8ndndi/Xo39S3iML5trldaLUhf1H8u8vMSGVVoFrrit3gz30BTV4ozj9HiRD3T4xysqhQ7A9YUk4KgfajPMJFWUV0cA69S66xyu2ouphwaZbYrvUCkrHIdpAXln7DkGl1SjUA6MMWhNcs15FlXbDKTNqwqzDutkNeIIXdN9BWRP1y0A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB5623.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(39850400004)(136003)(366004)(376002)(36756003)(478600001)(5660300002)(8936002)(4744005)(316002)(66556008)(66476007)(8676002)(4326008)(86362001)(6512007)(1076003)(66946007)(26005)(2616005)(956004)(6506007)(52116002)(2906002)(6486002)(6666004)(186003)(83380400001)(38350700002)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9hGK44nyTI+ymjQP+6PmlDxn5biNsKt4cE4CPrV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QHLAcEWmE2KfaxzyAa0ynZ+eB05n7/kdbzkl0PtLF+Jrc5zaddjKD7d3csLxoVNAdjW74eIMkoSsOkXyeybSpHIDwl+h7gkcnEDvp+iAvOGDsM3SKPe+liuNPcSy+fhJE+U1VzTJNv8X0PbpqRE4k+ah7P+vad4id7ezLhGDdMPXMyuk4Rxq/RPKUHQ0RzilKsia3+0cjn/WO6iSXBxUDHX X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba5f58cd-59c8-4db2-53aa-08d94836fb96 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5623.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 08:52:03.8701 (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: C5fzGrYimQYPSMiHVznvjAgDrWnJIoI+01xGSCS5Prp7ymCiobqxNYCioSQtQmnt6nFhmrXaCwnCeklBjCBGqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7142 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210716_015207_992606_A131CCA7 X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-i3c@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-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org Hi, V3 changes: - i3c: master: svc: add runtime pm support: - restore the error path of probe function - enable runtime pm just before i3c module reset V2 changes: - align the parameters of the function in the second patch - add a new patch to support runtime PM. Clark Wang (5): i3c: master: svc: move module reset behind clk enable i3c: master: svc: fix atomic issue i3c: master: svc: add support for slave to stop returning data i3c: master: svc: set ODSTOP to let I2C device see the STOP signal i3c: master: svc: add runtime pm support drivers/i3c/master/svc-i3c-master.c | 234 ++++++++++++++++++++++------ 1 file changed, 184 insertions(+), 50 deletions(-)