From patchwork Wed Mar 17 06:53:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 12144975 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,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 C0616C433E0 for ; Wed, 17 Mar 2021 06:57:42 +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 3A4FC64DF2 for ; Wed, 17 Mar 2021 06:57:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A4FC64DF2 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: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=f3bMqb+njKF4+lSi6aPGrsQC/crR70HLdDJEi1MT9FM=; b=K8yl+tHm5CHfybbWYjJz9/Ly6 R6t9/jZGpUX3/ubk59t3Da++CltaP/0TgFHRMZhcoJ3zxskd6ki6gLiwt1a6W9z1/VPNwvviz2qar bOqKD9/DiEJZ9fOGa2QOuddW51yk7MTPSWLWEgf3PIYlEgS7J+K9PVemi6sdE9yZVf6Rnk3i+YMZ8 UMSvjVsfrXEg7zkShl1l1Yp1I0Zzox44Pikgd//153ncQkmYJAVUekioMAuXvuZlDgqVk1XOWw+ph igw1ZAEFVySrdvc113O6ssKKw2k7F8HYNSCRqi0qKKLCs+q02ynnnKQ6kAp1lS2AoKC3GsUcs1FXZ oWxNw1JBg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMQ6A-002bsK-Pr; Wed, 17 Mar 2021 06:56:07 +0000 Received: from mail-eopbgr80053.outbound.protection.outlook.com ([40.107.8.53] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lMQ4P-002bDj-C2 for linux-arm-kernel@lists.infradead.org; Wed, 17 Mar 2021 06:54:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HG3GE7YuDacdYmzfLwIhwEvVcW6SgLrwk8GJHPG4bxjeeO9FdPILcJt7kFC2cIS2RlKif05FfOadycWx9/Fjx6UUPTMe3M1dUywQrW3cYZpKAzbDegbMXQRnbVpPBODEBAF44tPcNFMgWUDwo0xNSwroEz9grBaU+VqN6JnXwEPll8Qef5NCIKLdlilcTCbGcss4Zqh+FY1QKYANHm7f67X/2xR4mzWfLkp+jsixSMYWky3GpRNYm2hhDRuU9K/wDUGzXsdsTEiKEA0FAn0yu8Is9yvObCVR067XbHFyHHlOb5xzlNh3qUys22kJgKns0iS40G13FLlLl2At1WnBdg== 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=J9i3nQH7+71iMs/WFQuZ/Ffy/uBGsJ8hTRVVtVVxavU=; b=CcCTooiill7ZuhB7SHrFjcqTNx0MtsSde+cTq+S0bciifk4RNimg7RjmpXd0DKzxcqMY9ZiMr5wjTUSg4i1ODudVdDi9qkkDzbvNNEq4Xj9skjryBAQvF4kvlINt01wGchaux+MGaVrZZLw23DT/xGjE0mh0yXnB2d3VZLY0IgCMLeVhEhZGSGojfxc4Mlo+2Yszl/RDxklRblzvPOZZS2NowZQdXJA+i9IZ2LX3Zhao/UYwGj8Rm8vs2b8PWdgsRsr0IkxVse6/wB9hT/90OEIyIVbcIJ4Kt7j1kHkJXTegHwmPUv8HbdJBOXaQU+H+q+mgdpNs6B95iUVlO29NKA== 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=J9i3nQH7+71iMs/WFQuZ/Ffy/uBGsJ8hTRVVtVVxavU=; b=dPJo+vZVd+c5GPDs9LiLG80RswFkOpnaTyYcayiHEcFFyAowSc8FJLirsMFTzr8Poaa5Qxr+w89z4Q45s1a9BEz3rqKw4imsEpBfnz9fMkbVMvS6IzuykiDSeGXQlrrf+TOfvldbpTW7cA66Yl4eUmsqAX9hLqF4UMfE0DeCDyM= 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:54:14 +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:54:14 +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 07/11] i2c: imx-lpi2c: increase PM timeout to avoid operate clk frequently Date: Wed, 17 Mar 2021 14:53:55 +0800 Message-Id: <20210317065359.3109394-8-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210317065359.3109394-1-xiaoning.wang@nxp.com> References: <20210317065359.3109394-1-xiaoning.wang@nxp.com> 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:54:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: fad57526-5e49-40e2-82f4-08d8e9117997 X-MS-TrafficTypeDiagnostic: AM0PR04MB7091: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RJAb/TiLPhiBKsatbnzMcpb8CJg5F1QvmB2VVlNZ28iYqfbF/mgFVRUB4vh4z4vMfZ7e3saGfm/Oh0H9v7VtSwtq5DSdUuXaJx2Fj3RpnGWIO4FuJnW7O0+A8Yis1HttkxdSq8K8tEREiAG+s1s/Y/kZracmzqNsTkDmvw1sLspxLzT9cDGLJ7CRF9JId7ts9suLnsUZVS9PKNFvzoMlhxBXX/u24fd/s9QguDUvfZyWFmEw79WCl/uFikNI4wK/csC9U1cSkq8MKIW8cMTZADrL7CJEkxHqWL3OjMkJqywLFpsAhbhAfBBJEtiabVFwM66bik+DNyaNcHfoA61v5HfKxFYbkWQFHqRa4nktIkHncVxmi0vAsGM5mnz7iEyAQ5ih83s8HG3/lyD+2vPqkgN66OtbQtrlEEmHSTdUMxqohY8vTcbsD3nc/yCm32JKarSm5m21u8VHIzjmhylm0mH6IxN+iVGsMNkhqkLaVVmnmB9BagjXQqG7tpolsQBHpBLFoKEd2IIgaw0YhFsvmRllFeFNvmIDV01NYzUl7aH+L0VCRpGJiIuwfE26KMfUjab3yeQ69PLwxf0oYqCh63l2Tw49YaD5kMU+vUsXxLmgimzQPasUwS/2w9n5hoql 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)(6666004)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-Message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wcX8aDqN2bOk7n+g/SxMqHy+BowT9wa7pi5rELCg5UrW6GqfQ3UEP+pFDO7gWn1FvkRD21xjpuO4VbuKEyGQynQx9VZemnwRJJEYrF+HlV5gki7dDdR/rCHVQsz3PNhw1y804AhkFDoImTkqzsYtgDhsH1vlOeTQHYy5R41cSxo485l1OavBaoTk6dYdt/HbDyXL0QIKBAV4Rio2o+uwm+hKft8Uq6rTj6oQ8LZEMNOyTa98/GNiHNbxC6eSeSjEpOwojHCUq X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fad57526-5e49-40e2-82f4-08d8e9117997 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:54:14.0021 (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: wXrXRuV+5qPR/4WFqG42AqYrAFUG0maeIiHfCeM52yKIlhTc5KewikV2eCg53wMoNiZEOoq7om7zfp3Q1yIQig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7091 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210317_065417_797964_20BEED6D X-CRM114-Status: GOOD ( 12.94 ) 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 Switching the clock frequently will affect the data transmission efficiency, and prolong the timeout to reduce autosuspend times for lpi2c. Acked-by: Fugang Duan Signed-off-by: Clark Wang Reviewed-by: Dong Aisheng --- drivers/i2c/busses/i2c-imx-lpi2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c index 86b69852f7be..c0cb77c66090 100644 --- a/drivers/i2c/busses/i2c-imx-lpi2c.c +++ b/drivers/i2c/busses/i2c-imx-lpi2c.c @@ -75,7 +75,7 @@ #define I2C_CLK_RATIO 2 #define CHUNK_DATA 256 -#define I2C_PM_TIMEOUT 10 /* ms */ +#define I2C_PM_TIMEOUT 1000 /* ms */ enum lpi2c_imx_mode { STANDARD, /* 100+Kbps */