From patchwork Thu Apr 29 07:30:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12230557 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, 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 1D4FFC433B4 for ; Thu, 29 Apr 2021 07:09:00 +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 498176100C for ; Thu, 29 Apr 2021 07:08:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 498176100C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.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:References:In-Reply-To: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:List-Owner; bh=oP8jTtSmjiulizYsPUtg839glSN7CNA+7wAJ/YCXsBM=; b=P2ntIhK9HGZghHf9sruH5RklB 5Oh7RQxs/e0KImuj44FmFykEViz83jXn79xLOVQrYJ8rfC0AUJJgWjM8Q8QonQ9Ss5XYxZbbLBuh2 DT2JvVWo2hEb80w885cqz97zvOOM8iqK2VSyPvoQtCG73RbOPyirOzzoT/IQWALRxzIF+y8ZUbpel 4bc7knxi3xE3wPvM0QKHGNa4OCj1eVhIp/bzEulh1A2HmgOHAtiI53csJvlaKdtFYoEwaxs29DhFd M6+bq51bkH3YFVDgi8dEarxjScgclGbYSpJJIH9d1BTKOExyADREhptpOUdvh/y87T3rr0S8Ez4K9 cjK7tGm4g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lc0l4-00598P-Q2; Thu, 29 Apr 2021 07:06:47 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lc0ez-0057e6-SA for linux-arm-kernel@desiato.infradead.org; Thu, 29 Apr 2021 07:00:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=ScCgM6Xj3MfaNGdmWO+nsQf/c4MtEelA8j3CWroZwTk=; b=fz9hluHsZefy0o97mXp24mn4qZ gzHASNoCsHTPig+rJRee+m/d48nQkU3VJ88ZS2N1X391XSu8kfUBJizrYUtvOfMMC3/MaT+kEsLc8 b2YzKgxuA8dmddywjcUXTL/6/Qzch9klOUYWZ7PFarsqK8ZSHm12vIlyiuK7S5rI44xH6XkDsEXa2 7puBouxlFl+5hT1Dr5HY92HAeiGpsa5e61/4161PazX9SP0NxGW5oYGMMDoXdl2Hvp1PZX0gTT5sg iyFBAMuGGzZthyr4vB0SNiqIU78BFldo+zpSU/eWMsxl16BCHaqwXdmD539SWrJvoqIC8d3Q1tYgz eeGGnxCA==; Received: from mail-vi1eur05on2069.outbound.protection.outlook.com ([40.107.21.69] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lc0ex-000QOt-Bs for linux-arm-kernel@lists.infradead.org; Thu, 29 Apr 2021 07:00:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fS19RF/JIGea46wxVz1SdrhZJph2D1EtcJH5yZAOQs4dZs4rOFQ23ZeBibYY2GSXRAAo1nL1N1bcR7rNncwg9/MW64DgneS3EwJ4vRClcgkMnHStsADOa1DDpMg6YgYY8ogw9ge93aGvWfNpEw+rljkiz4S5tEaTDTrtABs2mOTOLMInhoShPitAbSeuaAMcmWFIfQm52rqMpJTHZ+Nq3RbeDWyyTsTNYrbpNJq0S5pYOqp03vSBKgoioyOHUy0rVgrijhsP/eXGvVMBqssTDbJKpHggSURuLA+bRpoihtLqrLIjbMHs6nTsUNYGdC8GWhI1WKT0yzk7qr8/M9iGXg== 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=ScCgM6Xj3MfaNGdmWO+nsQf/c4MtEelA8j3CWroZwTk=; b=V1cRWc0d8ImI4Iz2JzIgQ1mqFv1I+QQd8lw1afg3o+kl6cLd6/OvKB0huJi68SRtCTnDy6tLpLVUdyy2JeRywZTV9C9vW0esHb4/UHG+7SRs+a54Ec+5FUJjHuMiSN4kXd++oK5R3WAVD/A3X5ga0tQyqqQXynx3xc5lw+5Inz+YvT4tA0j0YISOJRmPPbA0xdyTJpZbZ4b5nuFwUwARwe8zn/WudNDZctii15ZzXwl4IXtcsRwyahWRRDiKj3hLTPthsOVOj0/DzBUqoRzV59HHN7nru0zEBiL9nCr8NqQqC6vT9BaK4RbEfiytRgzryxZ8OCaE9dNKcaR4FTkCYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ScCgM6Xj3MfaNGdmWO+nsQf/c4MtEelA8j3CWroZwTk=; b=V5mlwA2XrvREJ/i9E+ED27elRnXvzIKGdpDSkwLKWhNUkrGI+pE4axtpWDJwZ/9ghKY/CJKKkAwFO5Om2kkam3yoNNpH11fUjEStGfiiJp4q9fM0typTNqa0+nZrHWh91EqRdaynl7D5YbURwtq7SXXiUmgU+89toytCmkd+0ME= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5468.eurprd04.prod.outlook.com (2603:10a6:10:86::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.25; Thu, 29 Apr 2021 07:00:20 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.023; Thu, 29 Apr 2021 07:00:20 +0000 From: "Peng Fan (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, l.stach@pengutronix.de, krzk@kernel.org, agx@sigxcpu.org, marex@denx.de, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ping.bai@nxp.com, frieder.schrempf@kontron.de, aford173@gmail.com, abel.vesa@nxp.com, Peng Fan Subject: [PATCH 13/16] soc: imx: gpcv2: correct pm_runtime_get_sync usage Date: Thu, 29 Apr 2021 15:30:47 +0800 Message-Id: <20210429073050.21039-14-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210429073050.21039-1-peng.fan@oss.nxp.com> References: <20210429073050.21039-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: HK2PR02CA0208.apcprd02.prod.outlook.com (2603:1096:201:20::20) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by HK2PR02CA0208.apcprd02.prod.outlook.com (2603:1096:201:20::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.29 via Frontend Transport; Thu, 29 Apr 2021 07:00:14 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 615bb2b2-6687-4cd4-2a6f-08d90adc7367 X-MS-TrafficTypeDiagnostic: DB7PR04MB5468: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:989; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WRVRVPHhcwGCdhBGX9LKXXBsTw67Ti6a/Eun1tfvgSuLI/ogJ4gqKRj07mbXX/rbj3PLfvgX9VqXpshYuumy9yHmO+mklPfRlgHbximGMSMjyuGfAy7DCOCRtthXF4ubvs+Q4PN9i/L+rn1IRMi9tnaJmEae4b2tXlQwI3wqjP+6nBPRGHXYxtyjkkBGIItX/OB3bQ89KAngkql0aguhX6VsYmhyTMH0NxyahkDa4Un8bLPT+xfiZPSMOMYMQ2qxPtaljLnRuDYDWGxm0phzP8MV9K6mVm1mbVkNjNF//irAeBR+QE2wjxvAGzgyb8sWu6MXy1dSYoqsCtf/YFWQilwWakYuPpgdURgo6kvVmb9oBRkxYHRxjzmOEQ/gwjg8uXVNinNVEwxZ2grzrQnU8DX6MQaNKwi/2uqSolMmkS5zvYLRzRIdBTq2mC2yAjtuTKrzJJ3IjgJV8UMgvGIcTHLrLCnZBKWocbylCZ4NobFYiHTKO2axNfMIcnA/85g8k7lwBR6jLwDUftbifuw77xI1sKkCpGRHm7Fsc95OOCB/03TC1Oi7ay6FezlLyWznS8XWEwpKjRP3AOvzOnehSBCUGcBVWs+TEqM9aspEFl3rhHKyLLSx7dlObbEkPXDcz6ceKaoM6X53zXom7d2B8g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(376002)(39860400002)(346002)(136003)(2906002)(8936002)(4326008)(52116002)(38100700002)(38350700002)(6666004)(956004)(6512007)(83380400001)(8676002)(66946007)(66476007)(16526019)(2616005)(1076003)(6506007)(186003)(6486002)(66556008)(7416002)(478600001)(4744005)(5660300002)(26005)(316002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: AlMN295AY+G7neEculDspmywES2brq4KqsUJMHPfb/0U3OiZwVxd5VzKRHNxvs+O0D4Tib3jupFIsAGlhSPK+Dj93SEi19xfhewVREwkCSw67/XPW7ikfS/ymA2GEieg70/58tud6fdorKlhqa8L78xzc5Spkq1iGKstCnCb/IyV+gfy0mU72tPoFTZt+tfm0n5SMQr244AjVHKu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iGYDl/H2SnemJPyT2e8N8eb4QnMH+4WN3EpyCCpnBVb6KsQdA6Orgp5tPEyVKce X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 615bb2b2-6687-4cd4-2a6f-08d90adc7367 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 07:00:19.9207 (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: t4uHnv+aVGy4Bw0g+MLaHX/VO+yZ0aI9JnH5kwcigIWroM0O6lBs4mLOTOgYj33P7obK57I19SxU+zses8Dr7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5468 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210429_000027_429265_E2E3A092 X-CRM114-Status: GOOD ( 11.60 ) 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 From: Peng Fan When the return value is negative, there is error, otherwise it is expected. Signed-off-by: Peng Fan --- drivers/soc/imx/gpcv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index 42b9be05e1f2..d2ce47a5ebad 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -197,7 +197,7 @@ static int imx_pgc_power_up(struct generic_pm_domain *genpd) int ret; ret = pm_runtime_get_sync(domain->dev); - if (ret) { + if (ret < 0) { pm_runtime_put_noidle(domain->dev); return ret; }