From patchwork Wed Oct 18 15:48:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 154939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4886716vqb; Wed, 18 Oct 2023 08:48:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZ8P1ukB4h/T8jdZN2D4j8nNZJGe7NUKHvutSCfA2yS0fJhJ/VaO8mtrW3Juf5Q/nUpjjA X-Received: by 2002:a17:902:760d:b0:1c6:2b3d:d918 with SMTP id k13-20020a170902760d00b001c62b3dd918mr5779266pll.3.1697644133675; Wed, 18 Oct 2023 08:48:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697644133; cv=pass; d=google.com; s=arc-20160816; b=IDVmyr4y7rSD22+4dIoZrxIGiX5RXCEv/o3PwKfU8ajOlO3SaUn9vRYVVFqEnq4RT4 Wo4194JN/gctHRrxGJQtDXCrWUQRp7+psEyiL7fsB0VnI3qVz8mKK4V+aZv35zGR7F5u O5FY2kcwkzMCv1fabk6FfXKLEu1BehtYFwq0vqiJgIgFegMMgaO+PIL2mI8Cuy+GKi2S VIi5R17pIsiIaPM9e32CMBSDJtLv97Au2bUV8el1I7Qrs2N2DiTb8VhfIQGTQ8b1K4kM ObQtMtq4xWeYDgqc7xzyNxbWC8BOmITvsGl4GYPq93tHtlz55SZEaN1Eae5Bx9NHEWwJ wRJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zxJI3Q1/N120E1UZrO8OotkdCQQ9CDow6ekaDNU32Hk=; fh=sDe3TG6/b46JEOvF2xh0f1K4oYWCH8cpxTVfh1/w/G8=; b=oJOKX4M7l7hmqs5o00A81W/ISe/2IqNp/A+BtIdAyhBTylKl37zDWsZvjLmspsB924 c5mPw4ngUlYvZm0Y/drDk5nMZwDsR/NgOkDsvmIqIsIGvdg712iS4UAeK4E34m5QUpLu xL75GtbcMvxS4/mYuzssTC4SiWD4dFI/jU/K6IqWlbmMXTEPQgi/MJWkSBUlNGePwPPZ +iTtXYLhQHk8mJItK10rJHiMITMrX/9efQyoLmbdjxQSRZgRfUDqZHX1xQO8KZyo2Jm5 tfAJOXpaBntzq8sCydrm4+CZBBFI09x7oQI+WKfjGaCW+21vrYyrbYBaq4PvEqRFU4/P wbNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Jg7E+gzU; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d13-20020a170902cecd00b001c74876f029si132461plg.381.2023.10.18.08.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:48:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Jg7E+gzU; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7D09D80F8F4C; Wed, 18 Oct 2023 08:48:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232110AbjJRPsi (ORCPT + 23 others); Wed, 18 Oct 2023 11:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231767AbjJRPsd (ORCPT ); Wed, 18 Oct 2023 11:48:33 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2089.outbound.protection.outlook.com [40.107.6.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998EF116 for ; Wed, 18 Oct 2023 08:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VeVPXoPmzEKqhb1UD1I6O1BpPbUmY60nIiXpoi1T+kMu9rMSacmW75LaqJk7Pxan+p/2kk3nkCBA280/GwOKt6Cpemq+gnbkqq/9jjjg/wsVX6NYMIED0x6PWGjBwwd8sJ1HzxlaJhYBP17XB9lE7xY6ToHVc+bK7FwJWnZFNZhDwJ/XrOE7mKmN90i3GI55JAbGZCK8P9EGbGEkrg5q9c5mQaN+Xy9C5KvIP/chJRYkxJoY7Xzqo4C5nNST69JZzQUcRnigCIVvwTbo4CDJBIsAtcRMiwz7bD7knlkZhX8HJeG9qn38vCr8bw7ELlbF08TpjwTwR8rBZfY/YqlnRw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zxJI3Q1/N120E1UZrO8OotkdCQQ9CDow6ekaDNU32Hk=; b=GmmsaLbhFTkvb4RmI9wEpdqsOazmyfFK5HbZc5iFD9IzXPh+gdTreEGtjFfbQg2o7Ce8UhswfsDkqUk5oxyFV9paRaGhcmxJX22XYr4Iw+0/daUMWnU1p/m17IM0DDkS+vTxja59dOz8ESOp9VDkXU11jSRzjV0prC9EUJF2Vyk20P+/4wl4HWVJ5J+x+XpGOgYJVtFvVNQF68wiM7db2aT3Vp/LIbkmP9iZxztQDk4UgrjgHgsvM1Z7ekFh8Gn3GROQyZxLVfuO4dpIfPyNDCLOM2TIVXHttR2lgpUlGxbbT9/VO6n0Kalbkzf1k3wCoX3wJrwG8IPZ+qIvSytEsQ== 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=zxJI3Q1/N120E1UZrO8OotkdCQQ9CDow6ekaDNU32Hk=; b=Jg7E+gzUMtn9lOTW/Txv20o63KVwAzPrGp5Y8G7L9hr65vjuUFfgHUUlV4SRXpp9wdmQUtZPQZgqKimjeZ4vuY8mioMWvWwXJdUIH4NugbmUxa6XZPmMl6pfxYc9TsD5Cgrpz3xRutzDO8fpHhvYZtD4wK4yB91CpKBoJiCzAqs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by GVXPR04MB9777.eurprd04.prod.outlook.com (2603:10a6:150:115::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Wed, 18 Oct 2023 15:48:30 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2%4]) with mapi id 15.20.6907.022; Wed, 18 Oct 2023 15:48:30 +0000 From: Frank Li To: miquel.raynal@bootlin.com Cc: Frank.Li@nxp.com, alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/6] master reduce clock Date: Wed, 18 Oct 2023 11:48:04 -0400 Message-Id: <20231018154809.3304558-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231018154809.3304558-1-Frank.Li@nxp.com> References: <20231018154809.3304558-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0087.namprd03.prod.outlook.com (2603:10b6:a03:331::32) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|GVXPR04MB9777:EE_ X-MS-Office365-Filtering-Correlation-Id: 1df620a8-decb-426b-4e5d-08dbcff1accd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jh8fCvz3YuNDbuzIcsSuT1HBiXw3B/sigeNH2bk6SioXZJ1JXI6Lskqa4p4QWhl4Mz1Aw/YIDwEgLpV1ytRC2+Grg+bnmJV89IFtgRnJ+iSnrqacbR7QskDEGfkRhn44ZfX82sCQyDwydD7xz8FW48TuYuZF3pRRh9u9G/sPcmhd/KH1u24fPdDe1zQMqikszBJSA9IANKgNK4ZQNrJZN2rjqxvPKEBH1hBn3Ip+BMP7/2VCBB/tkR29XhVLNRs73RS6WTqg36e6HodPBrNEj99zB0uFPRRtGyRFHgR5L98yqyf5+I9nSc6Miwb6ny7i4TZU82d5czT0aAso8IiVJlmAJ7u06sOObQm1M0RyMRKCSPNPfvCV7ui7xC7XGJtmPOBTcaGo74iWuwscCg4U0kM2BRJjxCya0Mxufo1LAU/stOQ4+d1sxO/OyN42iP7CrDEfCqba6Kuf5Zo41nRCGSoZbdKAd9ZYWsZ8jzquJOM6iUs5felaNkF4Wgp0+JP1Zl35Vu+L/8WhlWFawIofWQr6MLjRSxL2yERp6eFVNu4BpxdlvbmPmVfaXkuEheWLQpLCi6ieOG7PK1cvRiXnMnMSKeSVIN97O+oFnRdDtnYjyF35BxvuFbIZ36GIxjyJ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(136003)(346002)(376002)(39860400002)(230922051799003)(64100799003)(186009)(451199024)(1800799009)(38350700005)(52116002)(6666004)(6486002)(6506007)(6512007)(478600001)(66556008)(6916009)(66476007)(316002)(66946007)(36756003)(2616005)(1076003)(83380400001)(26005)(41300700001)(38100700002)(5660300002)(4744005)(8936002)(4326008)(8676002)(2906002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MGWecXSVnYbtX+HD9vWj9hJAve/wIzvyRBPe09T5163aP8wPuxwl4SsXpErmPdtDEQiAakvMzipc0DcYLEYLuC7Wxnv+xR8reRItQHdkxPqqStDDtgQjki+ZKWpXX2QP93NRVKhfcdMdwp/e7SETMietj00wsCcfQ2Av46VPBZAzYMe853Qlg/iYEV6RGEqpAlcX0kiPcz4iud8zwjybeaxcvy6A+6O+yHQ62fm/HJI5dSWWOrJPQvGYHNkwtgRzi3xoVlBgBJq+s+3oOv6jIE21nCLlhfuV20v6JP55IDTNedEanlQpPwseDZRKt9QY1S4OcbHCOChg66KBGrZNb8KClW/drZfAhx4ab0WJKiuIwoxN4zZvbPqg/CLmdkHoUXBOd7hhK7Qz2cFtU3mLttJlOHxslC5DVvBGbas5a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xjKq9zTrFW5EWk1IQ0THuCtMBrxd/kIq3dEhQZqPW30DG/ExvGRlwT1qbC1DSIL18ZW08aEHhsj8s38gMcakqkFvIjvUXD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1df620a8-decb-426b-4e5d-08dbcff1accd X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 15:48:30.4182 (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: xibRjJmgC29NjHX7sScLMVC4j53lD2TTf5XEpTpQhg05xdFJGO+qZTc0QwJwIsI4TluiSGRRcpvb2twirTmghQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9777 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 08:48:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780108895242593444 X-GMAIL-MSGID: 1780108895242593444 --- drivers/i3c/master/svc-i3c-master.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index e307ba2b965e6..d29de5fe533e6 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -511,7 +511,7 @@ static int svc_i3c_master_bus_init(struct i3c_master_controller *m) * Using I3C Push-Pull mode, target is 12.5MHz/80ns period. * Simplest configuration is using a 50% duty-cycle of 40ns. */ - ppbaud = DIV_ROUND_UP(40, fclk_period_ns) - 1; + ppbaud = DIV_ROUND_UP(500, fclk_period_ns) - 1; pplow = 0; /* @@ -521,7 +521,7 @@ static int svc_i3c_master_bus_init(struct i3c_master_controller *m) */ odhpp = 1; high_period_ns = (ppbaud + 1) * fclk_period_ns; - odbaud = DIV_ROUND_UP(240 - high_period_ns, high_period_ns) - 1; + odbaud = DIV_ROUND_UP(540 - high_period_ns, high_period_ns) - 1; od_low_period_ns = (odbaud + 1) * high_period_ns; switch (bus->mode) {