From patchwork Fri Dec 6 11:27:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13897084 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2081.outbound.protection.outlook.com [40.107.22.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F5D41FE458 for ; Fri, 6 Dec 2024 11:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733484484; cv=fail; b=uyDut74WR1XbxLSJwUqgIbEa+ypNkH7SP++C49SUD1MgfMYmlfhAGWMjB0THvCNh3v8cSmdMVg2UNXU3o0vSGQETYkVAJhk7B6a5x+PmOhhrlm+xOZu0k62mT3cjTL7LSgVqu4mhyjLpLI+MBe3DLW8fkFFsisA9pp9TYRid7QE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733484484; c=relaxed/simple; bh=joqtT5t0k+vLndn//ck62T3DDsqnsXjxofADUyVBM/U=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=ibO7MMcyKZHl0RqmrfeSkVyX1JgUKEkNs8zN0uIwhgxM+Q5tUks7QHmy9BM3qWIu71ZWDwWa3AZdSmo+T/p5bswy5l1oeKR0ox7Dbut3XCTjgkMLs668Ii4R4SbVbNfY/HSZft8Vx9lXfh41ewn8B1Zd4ooqGiesxQ5/o9L8QBA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=IoTdWLwL; arc=fail smtp.client-ip=40.107.22.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="IoTdWLwL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=X2Wo+SNPETk2Y4c/trpcqYweVka+wWvuB/ABaaHortDCi0baujEbKkvnfv+Q73YFoVmD2xJndcJBlXk4RCwWoSSf/VGjzv2MZAOOKPFMptMm5dMbAobD3Ug0nhV7YvKLSBpoSGqHXZRMjtm+6pmftdPkiejMpn7v9U6VICxDBBotsgshLqgv1WrlgF8mZBoO18rD91vPmckEhrKmtqE4513AJjHh05v4GZG8y1+HdFo5Dp92BqGEllfV8vdlCNS0QUj1+HEPI22qubpEvfsSwO50Pc8IvbwwaSp30zWrFhwoPnUrBFaBWv5iBcF+jBeY4RGB53n6l6/mFnNkIiBm3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=H7bLd5Br38YlumLf2aHqq/uFs355cLR87xVOfwcZYiY=; b=y8VKPLnSHw+NEaeOcTMKsZc8VwYeYB8JrrM7QdJliuzvd45/6V7f7W49/QDK+E1IH7c2DnhvusOrN+aDXdy1/NpIzz4RPvu3E91KZ4TbbTZ2/IjVFcD+xFIb5jjsMX1KH48gel286l/wIpqLKop3Lakc+Aj/SWItujw61V0KJ3LuDHyKwY3qwOIvebFtLqT0T2nXAcAwWDeQAh7VcjBhNinKqWdZaozKpSEMlCviCuhPGEdgzkcjv/ezx0H8y5yijrz752ilnMEjJNtTbfm2kUF0awBvQaVey2SuWLn4RwT8Or2wCeKyx+uA+2+NwhCs1dOAFFJdkkacUiTLZKjo/A== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H7bLd5Br38YlumLf2aHqq/uFs355cLR87xVOfwcZYiY=; b=IoTdWLwL11S8FMHE01iEIqsQM18+sIAdWEWmT2fQIRR8IyascE6A70ErJH5XSoszC97Te/VJJB6I4+HN2DzxEZsTOYbF4mM7ElCXAPoRXtuHRbuI397Yf0vrt3u3Zmzk4fLKxanVebsaFL1Kd+vYA3525UEy3m/cOpN/+gGbMMw4Ce2YTH1wFkdD8D55gaLp1fRLonFbfpzse0c8cSGt0WucxFDzBq0InS/sVfrjVKDGmXEsvnDE0W8kS6riOBRo69MTOUuXSmuhhLF3l5hnF+neX3bwu4ep5exzVnnt5xbK0uSsmGwJ5MPc60hUm+6ibssQNEyl0PygB0KQZpMYVw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PAXPR04MB8223.eurprd04.prod.outlook.com (2603:10a6:102:1c9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.19; Fri, 6 Dec 2024 11:27:58 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8230.010; Fri, 6 Dec 2024 11:27:58 +0000 From: "Peng Fan (OSS)" To: ulf.hansson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-pm@vger.kernel.org, aford173@gmail.com, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 1/2] pmdomain: imx8m[p]-blk-ctrl: Suppress bind attrs Date: Fri, 6 Dec 2024 19:27:30 +0800 Message-Id: <20241206112731.98244-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2PR02CA0044.apcprd02.prod.outlook.com (2603:1096:4:196::17) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PAXPR04MB8223:EE_ X-MS-Office365-Filtering-Correlation-Id: d3e7efcf-3ec7-4e18-7f3a-08dd15e908f9 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: e0uY/Kc8FDmDdlkufwiZSprvmS7NaWYcM5cFdlAJNJWNxISuZGU2U+oFcADU/TzQrCe8HoK9Ua6bcxJ3l4MBXPOQxzdfu+0Y72inpl3WfL+b4k3BtPEuG8umawNxTcJouRyib/4DVbrJLzsTz/dfAZQwxBVv9PkbUUEIrHSNTCfqtKyYjpchXCY7Mlfzh24m3xuWfNsVlEQpBfCisV0zbSS0hqS6plSmQQV/uw+dLsTnrgFL8tt74pOgqIygTyaBPSBSv7vkmu7sMXWlJjYgayShs4t+ID1rBr3RS+/2ry0QV7xL77xeK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nyWxoMZPNovYX+4aqHoboMl35lGVaAGPgBK3Bw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jwDkLvLDGoEOWMLz+hftZGUZSw5PKDqwl03KhprG8sqyG0tlWfYpPAPywPmeL6wUNrp/1iK6nRRgEIBX4jyLZG9We/xbLg1mTT2UuluH2kIwUie/6zpw6ALVyok9vb5iKByAWC86YAOdHG4uPtIgH8mUSnFVmI7SG4RRcT+FS4Bq3nha2WG3XtXkjYmoFDQ6Ze0fQuh51Ilfnz5cK7Dlbn7bKM3d6EBjiSjZsfglXikrcKeVmAJW9THyp/t5q3fNG8Bv0Jua3vJc66NPNFstrYm3i8+KJPJmU77RI0HnQeK6i/sOMsqTThJQoV2bn4C4lgBnB9Zd6ZU6HtJ4j1IWJ+nfoKpprZdbfcN4eQd3mSMbuMsKp4O2yCV7zDPvN52/IO+rfIGUczSBiK7aHlWBYXfuQYmFVM5XeC3KlPU7Z1lJnDdrOI7arGHRucP1kIDZ+xR6fEi0p3SKn70y/4PLCgSL8y9nbH8wCNWLZKLopUoXlmWbWOhZDqpTPg5ExcyuCFanyVBetZ9reP7Xo0TzH+nN2LLvaxdvS5tQZQqGDHjh4vXFTpAlcV6yZjO/xtQYxFl8iFW7Q+NMKI05SADrTDQKjEShr1XicE67HXwb7MPbMLiHIc6w0Vs5SGdPp+8S4XG+dNlZ/FdPdjKy+uA66RxL50yEIHZ8dn+clnZbGAES4LGg6vgBdq+Ge7rWR7oAlyRS71hDDiVydILKBvBobzgChBzYQr5phk6/B3fqLfyuesEANImPGKfcqEuFO59Vonnk0uR4eECy2ipag3H6yW3m/qouCLfcfxbhgV1ug3QRkRR3LVLOaC3d5BpwwlB6fcvHcMy6J5YSpp6v+GuTHnMjnUP5yOMCPpyZZ59bWLMedILKg7SrAeIhb3B/ZdIcT5ZG2y2V6krl8q51UoJFEXTe4mYgT0NcPfCPTF+wIK6zuX+k8IpCDXjAcp2q/JnaRmfCq29u8OhDuDYjU+2CovtzVRtgIpudRjIShE2yej8a+1wTnBQWVVKY6GuWOtBeaUNHyRxAf5Buey0xNpMomJfrS0Ux/WbWbftJbz5ibPPe8V/C7zAreUK92ktJ/QXBaxigcA1mFwywwQeK/oI6Gj8/BZPHZwHrJhvLH8/UcQ8/J0QjpRmvq49xS5e3ZJ9p/HK5WnkuTNROU1oFECgGBWMJV4JsqXh3lUCTN25hdOFbb3NtEu8NSN7xt2ZP2jexoVLYiX9Hzs0NLEvxvf7khiBthPoEHAjzraknD7Kxf8F0xzw+ormSvccUi4qNTVwzFEVdv9gL6dJ/M507gGxg/hW590/I+efM9rpd8PiLXM3V2gq4VPr3oWnvt5diidH5TqLSWtL/mtcrIhBW34PfyBxhEHxmtsCs74oVfBluUxk5PPvf2RNk+gJAZPFROWx3jAN08BtrQmw+qn5sKgGgtgzTREirqV91RnPTPsQH40VB79m9YFXzhdEckmdkMhS7zgatIpbbaohnJiiLJn1rQu646qirgypSgC5BLmAGDW8a5fizUGnvl6ZQd3pxCnOhrK/8fsKCiPDj+mHKyUSq+tOP6M8V0JA236TcmOKbrNToECX8/WH+KY8lwnuf/xlq X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3e7efcf-3ec7-4e18-7f3a-08dd15e908f9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2024 11:27:58.1741 (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: oHM7j+sOL93Fc7N1S/CM8PWiT7xscAxgd1Ls1KydegGwxZlBcHBTWNlaDKnzTA1F2IfQnTS78jOpczoPrv+U9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8223 From: Peng Fan The blk ctrl drivers on imx8m series are registered as platform devices and this opens the possibility of reloading the driver at runtime. But this doesn't actually work. There are some hardware sequence dependecy between blk ctrl and gpc, also power domains are used by other peripherals, so fix this by explicitly suppressing bind attrs. Signed-off-by: Peng Fan --- drivers/pmdomain/imx/imx8m-blk-ctrl.c | 1 + drivers/pmdomain/imx/imx8mp-blk-ctrl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pmdomain/imx/imx8m-blk-ctrl.c b/drivers/pmdomain/imx/imx8m-blk-ctrl.c index 23db85b7aa9e..912802b5215b 100644 --- a/drivers/pmdomain/imx/imx8m-blk-ctrl.c +++ b/drivers/pmdomain/imx/imx8m-blk-ctrl.c @@ -894,6 +894,7 @@ static struct platform_driver imx8m_blk_ctrl_driver = { .name = "imx8m-blk-ctrl", .pm = &imx8m_blk_ctrl_pm_ops, .of_match_table = imx8m_blk_ctrl_of_match, + .suppress_bind_attrs = true, }, }; module_platform_driver(imx8m_blk_ctrl_driver); diff --git a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c index e3a0f64c144c..411dd548c67c 100644 --- a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c +++ b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c @@ -862,6 +862,7 @@ static struct platform_driver imx8mp_blk_ctrl_driver = { .name = "imx8mp-blk-ctrl", .pm = &imx8mp_blk_ctrl_pm_ops, .of_match_table = imx8mp_blk_ctrl_of_match, + .suppress_bind_attrs = true, }, }; module_platform_driver(imx8mp_blk_ctrl_driver); From patchwork Fri Dec 6 11:27:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13897085 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2081.outbound.protection.outlook.com [40.107.22.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9572C1FE458 for ; Fri, 6 Dec 2024 11:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733484486; cv=fail; b=KmfGK3YVPTtKKM0SRKGVx/VG1xg+7TIIVGyqlShLQOm5kSka+qLaaW0nQfrKkn40RjYG91W3xldA5q0laDWfDyJ5qfhpjBtANAxUaItXNOCNMLMyUbvgUcHok8fa0qLxMr9Ip7HfYIWks9Xc3N5aG53dxmBxMjw5iy8jF/K7JCQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733484486; c=relaxed/simple; bh=SQ9lPRkR1zenQjAodLto2VEsAzqIzkVy03Kfb+LD+yU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=RRiQFEfbtIA8EQiR8kyCJBliA55mp3UHJae+sylhmjIQRFTrtmA42btQBHUwSuxXLvvrFf7tOfCxNUJV9Z0Eu5H0zW2pHcR3wXsi0b+cmU37MHEVNhdq09mLUedFdGO0r9XbRzube0PM98qTkx4TlwYPrqJ9YuRUV05cN3g4sww= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=UowEzd4a; arc=fail smtp.client-ip=40.107.22.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="UowEzd4a" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fU620jGyuVzc9bBP1Xi1ny+dQ22J4yP38gh8D8yAa1ZmGABYcWj01H903zIjOeefdwYdak4eNhvenCOuFdsoX6xUQc/8zl9MG/dfn4WrGn9UiTy3WHNrA8Hz6SJfM9ayfl+0URPtlLyW1HEj4M7Lf+mcUxBD2qYYhc9/9lGe3C2sLA61azccyAhy3Nhh4e6u/UXIghAS5C1CXlWBOx5Kx+gDZqInA+4JicRwPPWuQWdvGRCIlVJzrZSfTeriLeHVQ1YIfm5bd0a7lx/v8zDhfa3BhJbXx5PmlI0eSrqrnF9f+tRf7CuRVq4R/XF5PuZn6djqMn9tssjLWX2ykZ+wFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=VoKBVXSQTxlJmPDvP3gyKy9wmOuwqhNnsYKMhwfRkNM=; b=K7nO5TqCcPjK6al7oG3cnfOGlKTiTTygpjLOLfkxeT0cIid0vUtQ4rY2oZ/FupVpOp0a35Wdv6oKAkdU0OMh/B6yHwnPYOTvis6tDaJK4Yj4hHdV9rjv3vGaxl3Zrjqx+cN1rsorRJ8VuIxPtFUrGjYzbX26j9apbYs/gf2z4v+VQM4TQIE1yjiLlBtd7NrqFQbyEW8xjmiU/t/DUFnKeMVw3Hg1cEBVW9U8u0ay+fUx7saTaFVwzjSqynRREPccWE575wQTeAQSHiZ8fAQZB+POOFKfeXm6M4sHnTlvCBEzoXl8d1bi54u9bFSNvdNc1jqeXsqpYvi5R58MUWUaVQ== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VoKBVXSQTxlJmPDvP3gyKy9wmOuwqhNnsYKMhwfRkNM=; b=UowEzd4a1V5mohTtTbn07Yz2w4SHoh77uw2Nb+7lYCJubVzcS+hnZfw3bxclqQ1N00OCtNKuonbbqHYKqMZuk8NDiypVD5eC8OKb/p2yr4CJsghFS2zMNi5HNHsxtprKyL3hDimGCCtUOzfAPP4rZHgIIws/OmpdTMaTn/qPSzsxvYMPzQZb/K3InteZ7SOWq8r7Z8B+yORWXMgb4FoXba+09+Z7opbeqofJUfXkb+ZHwF/brekNMB9auiF/D5M2SwEPMeiobQrnMWCG1EgadpctLnoCSgcugQMC4w6F9ZFC1cIQJ2wm8JqPSRhNiX8z7yY2ITvCRUgIZnN14s7H4w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PAXPR04MB8223.eurprd04.prod.outlook.com (2603:10a6:102:1c9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.19; Fri, 6 Dec 2024 11:28:01 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8230.010; Fri, 6 Dec 2024 11:28:01 +0000 From: "Peng Fan (OSS)" To: ulf.hansson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-pm@vger.kernel.org, aford173@gmail.com, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 2/2] pmdomain: gpcv2: Suppress bind attrs Date: Fri, 6 Dec 2024 19:27:31 +0800 Message-Id: <20241206112731.98244-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20241206112731.98244-1-peng.fan@oss.nxp.com> References: <20241206112731.98244-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0044.apcprd02.prod.outlook.com (2603:1096:4:196::17) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PAXPR04MB8223:EE_ X-MS-Office365-Filtering-Correlation-Id: 13b1a3af-8410-4627-466a-08dd15e90b25 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: dv3OajVm7ThVSgCChaFLIhhBa308g2/NocnMIrx2pApSf/2jQLSdCM9FsD9pGx6DqGjHGNBoeMBBdLNdO4O8XqJLlsCbDkVXkk0S4q470bUsj4fRdOJHSM5j7a7N05VtTHiQ1ypaopFngoc52n8xkGk0dJ3Dh3XU/CUBciWFA2t9RqTuytqVAMjGRFZSuFZxgFRzmj2El222oEDMs4jjGLVPAukWebyImOwWfuurVBJcDiyZl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Npy4AhhfD3ARDXup+RbX+8CYJJSj7uObkjQy4TuodV5AuLtCWEv6nYqaWO9f7MbG2gH65b/Nu6wtNecvtlrWAlnyGxmdrNWCoe1dyWA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wePJJ6n/xKUR8bFs7ezbg51sogjdypBf25vBD68EQ+46UwXzoy2LYl/dPPX1ga6esIClMNjeHfOq8lU7zJwQ+of0hwCF4vAY196CCnU0RljRaUxb6SSmdzHlloL+2dUWBVChKewG27OFipJ/UbkpSL8VScRZXBaqUkVOl7QYSUKS4yNeOeKOn7DK+zBwwr8C7u6FwrA3LHEILP5mVYHngNi24RicuV/0F63J//SJSMpuSz5Z0HOVtygqsIPJqFRdOfsYr6V6sKnYSkeb23hSOJsx6p/1xhZTpGVLawhO44NmTYRDcuHRwu0miaWUQtMGOFAYkmbNZ3CEFuLDkXv4Ku9THxhzgckRv7Jx4Ds2xXKA99rGMYHpJ/iZfwa3ShBwCIF7yX0T04XM2Euw42uuFQzqbypNQWaUwWkSbhd1SkRNcMjbtAmgJ3zXVPZx1U2ajlmd5Gwa9Inz3Q5VVON6S7crqtQgs5YwFmvCncOKg5IX6ZP7WQR51y+vfK1DYUHUViRBsIRTvB8zlrJdXjCjb9D63cVS/9HfTrZQe+bcJrJkA5U/4sZzAQ2PXmOJHHHxNaQwLJLaO7/aM4AMFt0Q0t7c1rMti98ko45bFgellY4cH9ipsHhs0vtz1dI7WnH6kBwvX/Ecc6f6QgSN5Ena+rNPrapEmrUWKtJaKMbPdRk/6peOS3vupykHwHscdeEUWc/JteGwrYoDm8hKUNLmF+IoqyLdAOhXMRgbmZ3Iwn8S2boqYhAm6vOKbnBnja5VRQ3nqn9yonSVUDYSfBqpBzANep6SHFCfN4D7S3Oj+WeZoRBlhRybIBfqoeccEcQxpqvpK2xv9KKNPK/zEIZGDWh/s/dwkzYqiqW+6z3MoMc5qHG/28oXjKH0ywNM5ZKMuTH7YLZhkkrkqlvfLnsJ1NSHWmglPmHo1U8bz3y0d/jzuhxi7vaVEpVg3kt6jaHvyqVFhPAVnxqqfh3ojvYaRxun2Aq3Q+1lv0U+ug0U3HnzrG0W+5ArI0Zgx+5mgGa7zAUOrOaHQZrBoEYSq8rE52WiP/Z5Lvo11hwJzpWwgCtEghteEKZ3cDLwnhelNafinhjLq2UQihLr+2B3pOuWNzA/6kjw56u3EzPp/a99f0v9CAF4DPh5W0dR34WGUl5gxU6NjAFlKyB6osIK1Y1tdZ8wvtS2orIDUda8/8Rpqnr6J49NvW4gloGTnrsGT5bup57P3u/R1S8aSYeyhegrY7ssh6shxtWGz+Jiuxl6THwAMAgaQfgYPLNjUXHyz40eDKtwlNjda0jfgznC04WrPmp1UJOPxNIdpBCL1w4C1VMi8lWdAj43p0XJl6K6HXKgorwguhri7PdBWIddFE/ZU6uFrwPorSGuQrOi+1N5gvKmcsCqam4DX/VM8Vm4/geSaFypkmwibKG5jRlCZbvh+uBvLEBC+G4N32/wWG1EBN+l2ReuGIGa+ypZATPxZcToBZHCfJ/Udk7MDiijYx/NpQV08Euq8K7xajee3Z7AQSp0XlRUnsjIO3WeUNiA4fVFzhXcJmLMjv3cZnuWumUMO8o5SHdZ/pRz3mtPx/QXGhHIY78S/vux5jDv6zs750rP X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13b1a3af-8410-4627-466a-08dd15e90b25 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2024 11:28:01.8041 (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: G5mHVhLHSMIRs9cEoh4rGrqYkBJkEpmK+a6Cg8gB6+RmQjFSNP4W0b9WR3QySUCxDZO7qxzynjp+Q0spv8wqKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8223 From: Peng Fan The gpcv2 drivers on imx8m series are registered as platform devices and this opens the possibility of reloading the driver at runtime. But this doesn't actually work. There are some hardware sequence dependecy between blk ctrl and gpc, also power domains are used by other peripherals, so fix this by explicitly suppressing bind attrs. Signed-off-by: Peng Fan --- drivers/pmdomain/imx/gpcv2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pmdomain/imx/gpcv2.c b/drivers/pmdomain/imx/gpcv2.c index e67ecf99ef84..4db4d666f5bf 100644 --- a/drivers/pmdomain/imx/gpcv2.c +++ b/drivers/pmdomain/imx/gpcv2.c @@ -1437,6 +1437,7 @@ static struct platform_driver imx_pgc_domain_driver = { .driver = { .name = "imx-pgc", .pm = &imx_pgc_domain_pm_ops, + .suppress_bind_attrs = true, }, .probe = imx_pgc_domain_probe, .remove = imx_pgc_domain_remove, @@ -1549,6 +1550,7 @@ static struct platform_driver imx_gpc_driver = { .driver = { .name = "imx-gpcv2", .of_match_table = imx_gpcv2_dt_ids, + .suppress_bind_attrs = true, }, .probe = imx_gpcv2_probe, };