Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp310798ybh; Thu, 12 Mar 2020 02:24:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvfzBwaxlNTec41yOPbs7SUgm6RXKY5NMUKyblaFQjFqWICwanEUK+Mf107CNW7LXOy+XiV X-Received: by 2002:aca:e146:: with SMTP id y67mr1764131oig.93.1584005085417; Thu, 12 Mar 2020 02:24:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584005085; cv=pass; d=google.com; s=arc-20160816; b=J7LM0AucbAtARSjcCp5GjRlY7SAdrOrcknSD5V8mi+qg5UNKan1L0HvSIHOVujlYVz kkfsx7GOUNNA4MJ5g0rgu+v4VuQNVPl7hOIhSe2V3ZTc4PmKU0GjO1rFhfhzTBhu0+8g 4ImrVP2lDDnwU8KVScumW7WAjunLJWo/afQLJs1uXd6mh9Xiy6IzoeutIlNEKXD1BzPC wQsGZ1Efsl4BaWHblbyhejQ+V22pYuuK0QmgurjPiYqWxhzgZmQEQuQIyBnyGO1OZgpN S4okGYfT2BONt8toL1jt5S73xIkmMxZPCXoRZ0xvZNE+/S1kl2CEFM2ajlR8DhC7xvKn 8dgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=O1vgNOYIEHm1GJnhcKpeTOncfmcQYdWgzXYLqnqvAKo=; b=O6MDuxlnaFy9n/DXVncjigYLWriu26jRKQW8tHowiDN7haCooYyCp8qnP/HigmkVp0 z/C0F2sTrwaI8XeT924uJ20FmoUIv0AlESbgdPzh0sgiONYNxrpOEzFMhxx+nSevK3dK zfqBPY+JbyhH1hZpelgAA3bS6XWSHgt5Tifd3O3hYk3mTBzcs8YXIC+AH7PYRdjPxuMt x3K7sDeGVTZdc65AVO0Q6PZkq5+rHLefX4FgaT7Oj0pjuk+kiYcMTOZdo3tdwtwElbxz tGghdoo9ekCmEfcCefIJ5ePT/XubsN1q5I6N2+YD/EZM0SQvQPfQ9PPixHi3r4PqdCC5 xDow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bo+yZQyM; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si2414155oti.107.2020.03.12.02.24.31; Thu, 12 Mar 2020 02:24:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bo+yZQyM; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbgCLJYK (ORCPT + 99 others); Thu, 12 Mar 2020 05:24:10 -0400 Received: from mail-eopbgr130047.outbound.protection.outlook.com ([40.107.13.47]:10534 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726099AbgCLJYK (ORCPT ); Thu, 12 Mar 2020 05:24:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FfQW/kTP0vVgac2xyJpDqiIOHGm0FXSQDuwJxSsx8cC6uxZ3GNjIVkLtf2T1TwfzfyPOE/CkVV5tsxEO6gIEBS1P58B1UBfuqZUHnXm489/6MRubuzEpSuBdoxjKsahxhg05pEEvr9qTIY2RuYO+oeReZ6qd89gPp+Ls9KVRwm1ePlIvvKPrgSzT4FZBRzMg63IdzpS9EKek93AmraBWEIoCQGVPovz2KpzdFFpgckorJCkpEgXuxCTLF6CzSY3rzNJCS5ZK7hH9gBbjTTa5/xWrV8zvI6Z8zNSTRv8NqzQT4Q28KzoCOB5auMsB9iEDglmIBAOi9jZKaOvk82w9Ew== 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=O1vgNOYIEHm1GJnhcKpeTOncfmcQYdWgzXYLqnqvAKo=; b=Wn8/pfTGFK8j4EY2HNEMCPnGbhiVWY+tvWxPAiC9gZ0QmHZs9p1Kjs7FeUd5rABr88NWsfl+Bq8iuq7i9pDldiwGiVME21ulRavCiPcA94JmcV6i63cGp3GpLF8pkbYl4IH0ZuXgh3pC+o4RLSWa11o8dVQ+MI/luqoF0Vk5rlGoWbSWJb0VpAJ0OrrlDHAkCeN+EREhiov1YrTmPwin1HWZSNEeJcCbchizCu+oeQFLyMIXzLsxqAPtZ919uj1jX/CHeFDgjriBRqiy8wsgAaHI+/hiMIj/wNWhOT2EqXt//D/0ZmZ+aE1JzZ6AuRcC10AZdTXHOzCCmyo1xX3VyA== 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=O1vgNOYIEHm1GJnhcKpeTOncfmcQYdWgzXYLqnqvAKo=; b=bo+yZQyM6Er0bk00TkObmTcEh+y6o8WMGoMbmIM/BghYsMikuYokHWI8zPCQGKU2tpFfNMv3calvsM3nskJ357sYeMrrdIoFoSOIkFfoc5jvP8fuUngDVlQ6w6ePgaXBuxGCQIgAGIgo0QR7iQePOk9Jd2UyZkyx5oRngxHaMGU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5042.eurprd04.prod.outlook.com (20.177.41.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.17; Thu, 12 Mar 2020 09:24:07 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::548f:4941:d4eb:4c11]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::548f:4941:d4eb:4c11%6]) with mapi id 15.20.2793.018; Thu, 12 Mar 2020 09:24:07 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, allison@lohutok.net, info@metux.net, Anson.Huang@nxp.com, leonard.crestez@nxp.com, git@andred.net, abel.vesa@nxp.com, ard.biesheuvel@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V1 0/4] ARM: imx: move cpu code to drivers/soc/imx Date: Thu, 12 Mar 2020 17:17:21 +0800 Message-Id: <1584004645-26720-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: SG2PR0302CA0001.apcprd03.prod.outlook.com (2603:1096:3:2::11) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR0302CA0001.apcprd03.prod.outlook.com (2603:1096:3:2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2835.7 via Frontend Transport; Thu, 12 Mar 2020 09:24:02 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 650cc49a-8ea6-42a8-9d13-08d7c6671d21 X-MS-TrafficTypeDiagnostic: AM0PR04MB5042:|AM0PR04MB5042: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(366004)(396003)(376002)(39860400002)(346002)(199004)(316002)(52116002)(8676002)(8936002)(6506007)(36756003)(81166006)(81156014)(186003)(6666004)(9686003)(6486002)(16526019)(4326008)(66556008)(66476007)(26005)(7416002)(6512007)(956004)(5660300002)(966005)(86362001)(478600001)(2616005)(2906002)(66946007)(69590400007);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5042;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yGtd1c7ZOpPGUnwU6g3rjvWq3qagwROcKANC6od1SJLPnB/PZndh4IABUcRL/WH0GO+NvRRjN1b3fVOlDJtHa+mX+4Cjbbe0JKPNF0NRYANwXI4c6O0cAboxXZuH1rD6fdqqsNf5i8kKMr6NDWHPp+BIWX7OmgZwERlPlSU3X2YWsYRSifDjYPcz81aRiE6yrfQfUKfi2MLxSTROfa3PbbZBv3Cky2APdubGg7bsYs3DFcBPnyEvBqULYmuLDh6EAsr9hiUOC0Uj+VT9RRioMEm6ryiLNOqe/jeEzEChb32YLj+qOsFcmY1GeTQBXODhDgLanTrJT1cbwJGugnyAfTmWWC88VoCUErwjKjUuodVyL52VirNq73zxU0aVkR5ynRO3b6UyC1D+V2p5TuduX6ih9WEpFWdko34Yp60yme2g62vicrPEgFsyMI9XjcJWgzMgKNos8+imQx+eCOzpyoXQdFzlf/4qIpgqzL8cqgTqx3qXHjmqKejC//lKOv9ZWQ+BNBfg5o0ZScjBbAVP+yNXpXBA5pXe4uKgfjivJfym5nZr8D7ofrNnCbBXGtoKYWSzbsdKXdAUtwcy63yuWw== X-MS-Exchange-AntiSpam-MessageData: GQa6UKM3F9mrD+AuaNBakh6bNDC12LffW+5IPQhn2wej0pfDfFgyXAxMSWac5xcmS5rP03L8v9C/Vl1PBnLf+UsQ03PzzcZI5ZBv8pcYJXo69OD8dNMdnOxdiN4p2bewMUvf6ZPS/N8y5dyQRVeVxQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 650cc49a-8ea6-42a8-9d13-08d7c6671d21 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2020 09:24:07.0796 (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: 1WIlepKl4+/jRad5pcbBKtBotftHA3zUPMkKAkdsSyktD/JUTLe2yhrR6LAMn77SmwMEzQofuhf+4hRvVRVpbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5042 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan RFC version : https://patchwork.kernel.org/cover/11336433/ Nothing changed in v1, just rename to formal patches Shawn, The original concern has been eliminated in RFC discussion, so this patchset is ready to be in next. Thanks. Follow i.MX8, move the soc device register code to drivers/soc/imx to simplify arch/arm/mach-imx/cpu.c I planned to use similar logic as soc-imx8m.c to restructure soc-imx.c and merged the two files into one. But not sure, so still keep the logic in cpu.c. There is one change is the platform devices are not under /sys/devices/soc0 after patch 1/4. Actually ARM64 platform devices are not under /sys/devices/soc0, such as i.MX8/8M. So it should not hurt to let the platform devices under platform dir. Peng Fan (4): ARM: imx: use device_initcall for imx_soc_device_init ARM: imx: cpu: drop dead code ARM: imx: move cpu definitions into a header soc: imx: move cpu code to drivers/soc/imx arch/arm/mach-imx/common.h | 1 - arch/arm/mach-imx/cpu.c | 159 --------------------------------------- arch/arm/mach-imx/mach-imx6q.c | 8 +- arch/arm/mach-imx/mach-imx6sl.c | 8 +- arch/arm/mach-imx/mach-imx6sx.c | 8 +- arch/arm/mach-imx/mach-imx6ul.c | 8 +- arch/arm/mach-imx/mach-imx7d.c | 6 -- arch/arm/mach-imx/mach-imx7ulp.c | 2 +- arch/arm/mach-imx/mxc.h | 22 +----- drivers/soc/imx/Makefile | 3 + drivers/soc/imx/soc-imx.c | 146 +++++++++++++++++++++++++++++++++++ include/soc/imx/cpu.h | 30 ++++++++ 12 files changed, 185 insertions(+), 216 deletions(-) create mode 100644 drivers/soc/imx/soc-imx.c create mode 100644 include/soc/imx/cpu.h -- 2.16.4