From patchwork Thu Jul 9 08:25:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 11653757 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25A0C739 for ; Thu, 9 Jul 2020 08:31:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 F311D2076A for ; Thu, 9 Jul 2020 08:31:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W1XetusT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="FcP1cl9o" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F311D2076A 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=FwQ0m0k0jEIHmE9JbzI5t6XMDzsatlWYWxF2gH3S6tI=; b=W1XetusTmFJjLK7T9IcC5HoL8H iTq4m25qF7LsjZbf2uxTDgdZCc1+Nk4BB0qepw4b4Qhsu/4tKbVLHTP633ZzjVjSJ3s8nYJr+l9gX SnX5Q39ISr2DLKm1eorAkXJyWYnkUiaOzaGNCT7aTvsgdma0lSZISR5cvTAeb7ZP3VbPbUtsKSXrC vHRCtmkLbZ29+vqD3bNJ0+9shuOnTjcGjeHkVSLQWPO7uFvmeK6nEPTJqJisUPWCVGPTrufEWFDUn VJOiV2AU07TXeNEo0pEP56W0Iahgxu6s4LhFAJrJqL0wep6pngHZvwXXPmagU3qdcW3MTwUDb3nib BxvwBLQg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtRvm-0001lF-Gg; Thu, 09 Jul 2020 08:29:22 +0000 Received: from mail-eopbgr80058.outbound.protection.outlook.com ([40.107.8.58] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtRvk-0001k8-7G for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2020 08:29:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eRJtNX3dZjG8VpQIAK5px7XUXjfhpQjuAIMhMUrJ4/a7eWIRfHFEw9/e+XZTrBAUQvOa15gSo0O9CUSyj5C4e0ZkKz5dscbr161hbbFbWSZTf2MM5of3eXOCJa2c5HeIX6IdJfdxCpwzjw913Z/fa5gY1E2pFqfS9Ss2TPFPZuNfQFOCAJ8iqkx0jNWEk16QPZR0eCkQcTenwoFpztl1WZcrA9wV6/YZGwIY6SpqKWKqaUCtLve8wGzE3hXyfY8f+3ABCA/mcKCWU2lDq/WAxWz3UuBFIIKQ+ZBSg7tnM6feu5+f59XeDeVCAP3vLLH2TdXMGNPQrr5KPTTC4BJsZQ== 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=VpCCo+7S4+l5KRt+70HGNw6Xuo/qff7UOUXlk97un6c=; b=L1IVimM8f2h87bdDXqlcNi4SUVPBo8OOPr9m2mkxeWPJ5U1KAu6OqLjd+Sv8a9BYpHELGY6l5iZGOGUsNUhU3sqWfQ3dXQzJUuqLqF3hzqGbecYIrluC9VTpWHlPitx3gOCgUNyEzr2YxMfFrxwRcG0X7kdK6DUJpVRfL7L0h/6+VM1k7C6qIGnJsUmHjarrzBVAPEYlchiiUf7zOTCLfUHNPt9C1uM6cbayJ3DIGZcfNjhlaIF2GzK3JJo7kWWNhq3CeTOzU25AAS7lTh+ZiifUMHA63QNYkC5Dzz7M6fe3tVtGiOuPPNnAPvjNo/PsE+rleviRC6trmHtcfZWHWA== 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=VpCCo+7S4+l5KRt+70HGNw6Xuo/qff7UOUXlk97un6c=; b=FcP1cl9ooAsfcCZbOmyRWOmXQbSNCCUvg38o1cKUkY+yGE6RrXL4cuefdQrl+yOwnBoCYzbigftRyILxAWmyFAiOuo6XoeVYH25WW7SSxvUkNmraH4VommJlYoi5L90yTYlVaBDt8Jo6sMMJ8NlY6pJgyDI6pgQEFhpKcVVdnA8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR04MB3015.eurprd04.prod.outlook.com (2603:10a6:6:11::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Thu, 9 Jul 2020 08:29:16 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::2d36:b569:17c:7701]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::2d36:b569:17c:7701%4]) with mapi id 15.20.3153.032; Thu, 9 Jul 2020 08:29:16 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, aisheng.dong@nxp.com Subject: [PATCH] soc: imx: check ls1021a Date: Thu, 9 Jul 2020 16:25:45 +0800 Message-Id: <1594283145-7981-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.67) by SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 08:29:13 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c8901006-4d2b-41f6-9b38-08d823e22ac4 X-MS-TrafficTypeDiagnostic: DB6PR04MB3015: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B/H+Fwo0h8nmeU9efyNsVrhCdm3+SB/pWrDncNMiPNWsI4/KNCSz4Ovx0+gNKMVExjZ+Js0s7m1hqnh92I6VyvWovugCdUyXtqzuNdbuWhHx7Smn2zrDUSe+rzBX0mzdDnbnBdQo1jZg1FggboHqupLTIMYr7SQGwrIf9DBo+LHsOhTs/uQ3dzAIfiLDdN9wuSAy9b3OK0udRN0zCgI2fX80z2sxtCAXhfjLbxvA8n7wcE0XmPIzC4JQbU4RTMV4UYLNL2sSEDU4C5Rl8ySwIm72AOb77gSNo3EzsHQf7frZKCNkFFjIFCu+3CF0jfFPWn3lTKB9rt7KWoBMzllq38ktY8/w4rnmXq3SB25FYhr7dnBoNgPju28c+RS1Rl4U 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; SFTY:; SFS:(4636009)(376002)(136003)(39860400002)(366004)(396003)(346002)(478600001)(26005)(4326008)(86362001)(52116002)(956004)(2906002)(2616005)(186003)(16526019)(69590400007)(6506007)(4744005)(8936002)(8676002)(5660300002)(6666004)(316002)(66946007)(66556008)(66476007)(6486002)(9686003)(6512007)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: WJ/ni71x6Z9tTo+Do52OGo+4avalaxV/UHGek7dxVyf+6AR3W73IbZOCHuUgvMhodpXo1QrvaSzKjv7RgCTNsOrwwz91/fT1IK7MSWj0CuC1fxYxbVOeUFlysO3ThBx7t38YRGdWz1hUrfV93ekzySIQrk9uZbagwCD2yefHmUj9CLrvzQsSBWiqWkLzEoGINGcvpN3rTJCc3IJEhtxA3sbp8fqyYjtg84uWx7G1pkztJIV0wEuIMBgMblcJzz4MX4Ct81bRUUKynEbz73dH55gtFpasrQdX0REbwr7wOKCQQuQodNFdKAVXZNsQXs7pNvVy9zcSyUDaKpD2l0Q+n4s9o24WwQ9EU8vFniSsSYTJ+3byc+F9fINqmSR/pJ3+xMbezJSYkpmz7xJLpMeEpwjqb+IyviO+anQUyLLQLiHEsQq2gKNlPxTUm1/wvYcU1cQBlKQ3FJjyA9r7Q+35RnoPVNCvgATj/tvUUVD5dFH2+laR+v4Hsu7FKDTx5XM4 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8901006-4d2b-41f6-9b38-08d823e22ac4 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 08:29:16.4022 (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: 28EWZgxLu41/peyEASiBENXIYi8mqp7Oi/C521Rfo0F8Dj1UgwBBaHxOD+N+UFjlCUFnrcueTOv0dr0avo6sKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3015 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200709_042920_278743_D43D6942 X-CRM114-Status: GOOD ( 10.71 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.8.58 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.8.58 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , horia.geanta@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, leonard.crestez@nxp.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Peng Fan fsl,ls1021a is a mach under arch/arm/mach-imx/, however it could not use the soc driver which will break caam on ls1021a platform. So directly return if it is compatible with fsl,ls1021a. Fixes: 52102a3ba6a61 ("soc: imx: move cpu code to drivers/soc/imx") Signed-off-by: Peng Fan Tested-by: Horia Geantă Reviewed-by: Fabio Estevam --- drivers/soc/imx/soc-imx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/imx/soc-imx.c b/drivers/soc/imx/soc-imx.c index fec3d672b606..01bfea1cb64a 100644 --- a/drivers/soc/imx/soc-imx.c +++ b/drivers/soc/imx/soc-imx.c @@ -33,6 +33,9 @@ static int __init imx_soc_device_init(void) u32 val; int ret; + if (of_machine_is_compatible("fsl,ls1021a")) + return 0; + soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); if (!soc_dev_attr) return -ENOMEM;