From patchwork Thu Apr 29 07:30:50 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: 429208 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp1321686jao; Thu, 29 Apr 2021 00:01:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKusbwGWUqHAtVZ2deFSBBGqUBZ6wU/F3AWwPYIkRUFYby3XEqkNRYa2Pf4SNDb1X2jq3B X-Received: by 2002:a17:902:d64f:b029:e7:1f02:5741 with SMTP id y15-20020a170902d64fb02900e71f025741mr33488633plh.48.1619679661645; Thu, 29 Apr 2021 00:01:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619679661; cv=pass; d=google.com; s=arc-20160816; b=xv1kvhoYZ8hSXCA4q/rzQgG1gOwB7Sef2Im+W3i2wUd+D52jbl+JbvZWsolznNkRc6 m4VXUp1WN5BL9pNh4JawGDSFNFFET0I2lURoBJcm4uDcpiTIibqjoe57tn8IZMSVIqk6 5grCNSn+ZBL+of5imOxg9Stdo+qqrydo0pc2r7cEG6axCSAbJqhilF6zZoItKo7h1lmy PNq6whuIh1Go3WxUl8yp2FL8REku/scuoMyhjfRhGzi1/uNUyfMqY2MK37Wv4v+JvSql Q5xQNrnT75Li4XtiP+rL/+G6B11QVqtpyT434PLqSeXHUqSNsgM/3Hx3zL8MGY/XtH44 j94w== 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=Lt0GIkn1Z91P2rEtQcj8GdYvp0eIbCO3iKRwi1e9AhY=; b=hRGIvkH9faIuEjhSDX46rJqY4YjZ+6xCcPjKrOaUwFGTzOb5ElCSBy+Fl81M6UTtvO cF2fIP6/LBVUsOYDPEFOa5pbisactEkn/SNAjMR2iclYEpdsl6hhKR3FMvnjfWMf4Yi+ qjaOvonUPgUFKrcQo6Fl9xwijMLEXpuitldBynIw+vcLguw/ylIQA2IG0jCVUa4dD8rW bOaVmJKBx6BnEC4F0D3o2uTHAHfjkZsB7UKoTpoqvTEsq7L0Bd5xbazgWm3lg95C+Fy0 oAbOb3IsAps9Zs9FCqrlAemhX16fkaLIAWM46utrXvxW6b/uYzryhh9BwO2RntgEi8Dl HXMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=HpP0gIMi; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l75si2544613pfd.28.2021.04.29.00.01.01; Thu, 29 Apr 2021 00:01:01 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=HpP0gIMi; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239280AbhD2HBq (ORCPT + 6 others); Thu, 29 Apr 2021 03:01:46 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:14756 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231202AbhD2HB1 (ORCPT ); Thu, 29 Apr 2021 03:01:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UQO2OWGFjqmnec0GBF8LUrhi+IhrMn4XgGb1bvq4eqCYW/WO9E/CM5A4S8wSQdIAzpIvE1XCisUl2R7MYorlNw+zb11XObTkDhg/f3NkboqtaaXikckFeREITdW1LcqYJiDKN7lRHNB058cKd2gUsn1CF4Ph6/m12c6THR4YiGje9y7mD9tFvCsu4qipMMbXHFaXDXZafIYBIP1c158RMRiwKVzVgh46aDeggacfSImBq0a1OFXPf0WlCRF0S+fuattIwwk958EhxSx+LlRDuwDwb3BkdF3GbqcQLbJhkSHrVQHqp5GG2oedcBzq7Bg+KHMNNoW0VUizpfC9CJ3nKw== 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=Lt0GIkn1Z91P2rEtQcj8GdYvp0eIbCO3iKRwi1e9AhY=; b=BKZ0A2NU7XfKwsUjBzFgdllsqfp17sPh6mfitCwmLky3QpHvtaOUIha1Bh2cj8i1+RZAeLgttsc+lvBCeXK/bRqC5HKbNy0aNQ3GoelAsZLb8k4CJr8CuOgilmZ5GCjCQ4g9zkQflwSmHBi6yc1YSIrlOdQXntLiDNJKVIRSM6wSFO07G1e+iZEEauGhJtbatybQNNn/5zE8ipP1M2WAjExEz89f2o8O5eHOBU0+bZIEa41DU7iwV/Z0rx8X5+DoRe/qVbzTzSZKXxGwVH+hGUsLh9h7IjJWy+2jV8e3jmMu87I6WZSAErU1xbAt6Beu+aeREngFjlwwQWBOmgq3Jg== 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=Lt0GIkn1Z91P2rEtQcj8GdYvp0eIbCO3iKRwi1e9AhY=; b=HpP0gIMi29XulM98xoqDdl438CK8Lg8mB1uhW2JrAhx70lvnTXOhiSfwri59LoFjf7gvcSMaRbMPEjRYtweLEpiMK/wnbi02MAP6Z7KKkP/jvz+LFdrbr+j6FmUd01gj0w5UesdZLdXGhLmvytBY7C0T5Igv5R52Njel8pW8XjA= 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 DBBPR04MB7930.eurprd04.prod.outlook.com (2603:10a6:10:1ea::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 29 Apr 2021 07:00:38 +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:38 +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 16/16] soc: imx: gpcv2: remove waiting handshake in power up Date: Thu, 29 Apr 2021 15:30:50 +0800 Message-Id: <20210429073050.21039-17-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:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7d04067-85f0-48cf-760e-08d90adc7e6c X-MS-TrafficTypeDiagnostic: DBBPR04MB7930: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 03Xt0Oee8/Uw9QLXIFuK057f0WopZ5iQriehjNIsZ+fGrpI3LaMByBI9Fb820Go5hB09VGk9Img74vBkn3njJrPtdOOSpMGPl2i+NIh+boxZ2xtKqf6fCRDVK6XDdYotInxm2AR/tOUlBQxiAM1SoPHHvU+mifNPhmN0pDUCsKFshGlhGDeeojbBCJju+Hie9S1cj019LX8xM1USrn4yT77uvJDgQVg+LLjV4ccXOlxnEIBD9c6mPJFTDhpxstrPJZ5aG4QGW5qhm/xTrX9NnenDap7Lb4Z7dMyWVQSelNc4nOMjPfhEu/shrjZSKXaWhH67+qRJhVlq4ce9A2C744oVJDHOdLUV4H/+fOXPTUmmYJj4tZ3IERNGQdqm/zf+25Y4R+tOKI+BBfZDp7YX2RpATQj8WtigLJQHHrcJItI4+wFKhSdllNx7ufit7pTvMDVzGzwxz9OyyQYH27dOug1RXtYbhLSqm57rHh7Zl21N9XffbzOV2uAg0HgzJdATNbvPNgQFyVQSkWvxZ7vGCJk2xPrahwCAfyoZj6NgX3HIhhvtQzlsyW2HV3v972Bvp2DQDW3nSskUzVdAouyH5Nc+pu/YQqpquQBmOBmWczwh66KKzs+Ty/Ogi1XYXJWPtr7qafaFRWByigyqQqQP9A== 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)(346002)(136003)(396003)(366004)(39860400002)(376002)(6666004)(2906002)(7416002)(26005)(52116002)(5660300002)(8676002)(66556008)(478600001)(66476007)(16526019)(186003)(316002)(6486002)(38350700002)(6506007)(2616005)(38100700002)(1076003)(83380400001)(86362001)(4326008)(956004)(66946007)(6512007)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ZTkE2z5f5NSOdbQdUHISGK00PrzkfHximtDFJrLyGWsXB9MIn/mzQecQ5v9yPwX3pGXY/WSsNYVp1u9vl7QJTccJLL154MX4QE5/FldS9R5kw7PVrromuvcHWuG6C28KQRyH0i3Lvd7Br7mvemsdY54TV0k3+5QQvemZhxHKATGGE0p8diHeA/02x3wFvWPsZIflnfMfspkcGpAQ4fLEuSxBHp5VeLA9xO9WV34uylo/30WmNM5KFGtzybFHWbnz14rxpBNmFQ8aFGAtKjw2yB6sI33mcY/W5qoNXhXsXFn6SlYubT3m9oTfvThREQHcuSxnda0Zn7rQn9yyWl+KksJBmuJ6kuymf+HiuetefVCT65aXIq6v8hsku4EQurKFzpMXDNoiNvTIMlPiwDbttBXuwsMeDolHUEAMxXXWsJXgufAkZZEiziOxkA9tf6VIi8AgYJWvijPZsNRx+BB+Xrr8acACgPHXaNGQgEeAYhHXVk0OjfzAmS8aHFpxjIrefXcnpIlOGIk7JIXhWz+APrs13mNYZJ2cYm74+DObqhUlDT7OH5957oD0ASj/TsM+szldTczVMJ4XsJnsLSfY7uK/ir5TDfGlE8+nCHFS2pZxi5pvtHlReZT7sg1aeLHXSu2Jr1EhIQsAh3nIW6wR0YkO7ooyVMmBcZXWMUNlgTwtjfgal4mn1MurkZrrnbrrP6zII9XWrWkX3bL2gDjcDjWSgLmH3bNXfQ2XLBEoSTJuCR58v4nmnoK+K6/FtU6WH9HYl5Fh3J2SNM+h7bI4RXoR8fpWfMEt7CvY8fxN/S+Rr6C6jg6F0ooLJheBGCEmT7/mDQnbxz8KAywAEkc913xB9HYpTwnJTB6lUeX21rKMNpxVpYBv37La02ZroEUZdGz6ULprPM+HUpcHjUf/agnX6XpDXj2xJdrtpLDpQEUGfsFbL3rhQAFMf6A0a76qy8kCirSRp6Tmpmo46YJE5tE2KrS9dQUFNLTVhjmA7DlroXOn8GNx621mryLftXiq16vAIoC26oqIEZT0UvD+CHciK3ktRXSvPi4KyXdxzGbQ8gwC9fE5hWZQ7tPwzoQhsD2j3a+X35fcjcM3KJGE5HPAmLZKEYMkH5a9Fw720BMzuR2LCh0It3MpYsVYTmNoIXsQYE9UszRcVNDB210++dILONNw84MOSFFi8DTbrf2DeAk9USx+tePRMm2co1+K8x6rScpaUA43boyENo+gkd98TA9hII2JmH8Sm+Lw6haTA8EhK62DDP/Uw2rK4i0qlOqRO1GCpLS19gz5s2Wpl+vAKtZ69q09fTRIsXyxcnChDGYB0RVoLXx39mGpo3vX X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7d04067-85f0-48cf-760e-08d90adc7e6c 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:38.3674 (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: 7rz9Gp33AnDEBSy0t8HDkTm02K6QeTuzBv74RhWOELeJsHz2cR3nOliAYyBv2sVqPB1JZucxS2EZlrtLQpJQsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7930 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan i.MX8MM has blk ctl module, the handshake can only finish after setting blk ctl. The blk ctl driver will set the bus clk bit and the handshake will finish there. we just add a delay and suppose the handshake will finish after that. Signed-off-by: Peng Fan --- drivers/soc/imx/gpcv2.c | 8 -------- 1 file changed, 8 deletions(-) -- 2.30.0 diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index 49dd137f6b94..04564017bfe9 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -251,14 +251,6 @@ static int imx_pgc_power_up(struct generic_pm_domain *genpd) regmap_update_bits(domain->regmap, GPC_PU_PWRHSK, domain->bits.hskreq, domain->bits.hskreq); - ret = regmap_read_poll_timeout(domain->regmap, GPC_PU_PWRHSK, - reg_val, - (reg_val & domain->bits.hskack), - 0, USEC_PER_MSEC); - if (ret) { - dev_err(domain->dev, "failed to power up ADB400\n"); - goto out_clk_disable; - } } /* Disable reset clocks for all devices in the domain */