Message ID | 20230720094128.536388-5-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp3020798vqt; Thu, 20 Jul 2023 03:32:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgNaVSiD+0DkrKk20etBHINXY32VZiVnOQ4AI6oLDaitxFiotCI8MWaiydFklBw/AtNdyF X-Received: by 2002:ac2:5b9a:0:b0:4f9:6a74:d149 with SMTP id o26-20020ac25b9a000000b004f96a74d149mr1671541lfn.15.1689849158360; Thu, 20 Jul 2023 03:32:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689849158; cv=pass; d=google.com; s=arc-20160816; b=HQWR1UdOP+8RWyxNeEI9ruBZAkBgypQ3IbVhouor5hnPBgmsnR36hfsyIeyiNqn2kU xEJdbflxworkGIlBRToLAbzLpKdBjB335QthSO18MOL405xopKcYd7WHeqJRUiRk40im rOYb2SkGyp5r0NJWCicEYluJj2YTQMTt7WRYvgZAffP+VgtLiYiqYxPz1xLtbZfwrRXo OvrSjga4HSZciXAZzzqef/fs/99g8XhTgn964SOskmwH4vW9qV7pY9t5i8iMSs5uR8cq CcdK+X4o5iGmGnYDBvBGdBORlONNFwDCcZGoAakObkGamC70XG0J7GVU8MmTxoDtZObO ycPA== 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=oI4tLjdGvrvpQt5r0xaIf/zZnKlkwUrXvNkzmXrngp8=; fh=lMFpnJZCjkSvetl9tpFZk4oM1K582D2CBXvvYFGhgSk=; b=nWNJTxDaovgzmbHN6Ni4B+NZb47V2pZbEdTumuk/IuU0qNhyQEhubE6TNQfKQ6LD3r 9x3gXv0vd4yP99jm0p7Kqcx9tLc+aKSTSD9mS1G1xzh/kYWM9GOTTqa8U1rPOTCuzw7+ P4C0lX/QDX0rrkHzoiQNCATSm73+sf24/mI1aK8wSEMjqJPnGpzEkErjyN9B9B30lN+u FRivJOiEofAUkzR5qVVwhyUboZaw+LOMBZ+EecrZdp/RQuSH9HMLAE8ecx/2/YijibR2 3Cmy62B21ofbMkrDCchSBmlyzdDBxtO25BNjKWV+B9U7KBw05m8CsZOl1MWpoL6YnTBQ zxBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=j6kMinNT; 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 linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020aa7da01000000b0051e2cc05ba9si591639eds.306.2023.07.20.03.32.15; Thu, 20 Jul 2023 03:32:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=j6kMinNT; 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 linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S230501AbjGTJlh (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Thu, 20 Jul 2023 05:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbjGTJlJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Jul 2023 05:41:09 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2040.outbound.protection.outlook.com [40.107.20.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 254BE3A99 for <linux-kernel@vger.kernel.org>; Thu, 20 Jul 2023 02:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PVT29MBdrAeZS1D1RLphqLQwRGgwwMVi/RmEGCHm68SYKvHTQRUczb51j2ofk3cSpTl5mZKFdV2Jm2+SsU1pkyXpGWqWBhb//8lAGPuRzokTsgRfyxsnBaRYF7t9Q337WE8uVNK9Vx11YDp7grOBB/EABTUL9g8B46bmvMBAomx80bvtystSvwkFeL0lqu6sfLTKIIt7/m8Z2bGgjStp9gKhmdjK7w1mQkTTutFN2yyzR1FtBPfJeKgmT+C2Mb1+IpZbNzoTOrlggpL5i5rW49ZkxodL9RgUDtUjwmlYWaKBA5gsdf2vWugQvGoIaJuuMXKELV4IZubpjCrG+nCD9Q== 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=oI4tLjdGvrvpQt5r0xaIf/zZnKlkwUrXvNkzmXrngp8=; b=SJ94VND7Cq775JJPh7V3O7DDo+z0XNQdSF3K68c8RBCwIMYusK5x76FQ93GqEocb8LaqEb2B4opWIjBYtk6g6whEI9lCJIbiKop3xC73Tv2qYUNmlAwloxXO5dvpemewHk3/UdaxCgfh0sn/OlNAfirBSiddC83EelPZblgfxY+k9o6Sf5grB35rQac4bGjpid+/ud/hClUuZfrsTSQ1HYwFP4w9c+wdcdM4pLlDKfUqJwftMWaB5qJy04Sb7qXk5uP5fks8tqes1XaE6raqJG3DXRU5m6P232BSDBBAtvwusxUGy8QS0JnmhsRQbn0tttwpzhRWEQDtPDflsucCZA== 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=oI4tLjdGvrvpQt5r0xaIf/zZnKlkwUrXvNkzmXrngp8=; b=j6kMinNTRomikpVSSDfBVjq8/Glp9MZao/FMDPA1jVjqMXe2tva9HKH5RMVIo78s9eN7xJKSuD70utcReInn6vmUoI616135C6C/7vrXkfFKKJwYILXBkouMG6JLcsTvqeAmWEilkGIGEop1Ogdjj/e8QgafTyWkzAskl3REdTA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PA4PR04MB9367.eurprd04.prod.outlook.com (2603:10a6:102:2aa::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24; Thu, 20 Jul 2023 09:36:59 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c874:7c87:c13b:64f8]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c874:7c87:c13b:64f8%5]) with mapi id 15.20.6609.024; Thu, 20 Jul 2023 09:36:59 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, alexander.stein@ew.tq-group.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com> Subject: [PATCH 4/8] firmware: imx: scu: use soc name for soc_id Date: Thu, 20 Jul 2023 17:41:24 +0800 Message-Id: <20230720094128.536388-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230720094128.536388-1-peng.fan@oss.nxp.com> References: <20230720094128.536388-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0110.apcprd03.prod.outlook.com (2603:1096:4:91::14) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PA4PR04MB9367:EE_ X-MS-Office365-Filtering-Correlation-Id: ed0247ef-5c0c-4484-ca05-08db8904dd27 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zWvp04fyUcUZFBSOzY5W6JoEUB2rfDc4+Os2FLeWKoMEeoUNTo6LWvwhAh8ir7GAZF/S9rxBcsQ/WYf6j6MClxjFsjjRnRJJw/VQtB7unXf6y2UigR0IchcHcDScaqwtxNmPBTP3Wm5nHC2dmW8/oR2Yj3lYabZfzAtF5WyK+/4z1Wu/9Nlhc3VAyTOECvhCD56IH9XW4nKhbGZawqgPBCrouLH4f9TrSoQahST/afhB+e8YI7jJx8rMraSBxjr8LQnxL/qDkgf7tDezCureoObycXWZBdKAclEv3beJZXuoJKu3FnmC5bigefgxchg3GbRMIaSX+stH2tl5fGFPUvOEpOEAiK3ptqybQtXlVo0bt96rFT+mvGqRKEvhXZO7d0UOiEVtLmjpEFypvYPphKcJFp8FDBNXmASg7QTcd8bMNPRrcZ+dth/hpPUAIBthuvzaOHsGf6kDM7oE7v6L309JqhtaXF4eXEUtMRx1HVtiQZCZBk61fQEa7qyAD7WGTPp/Vtjtr1/UyMivBzSETL/eb7mqwdqoHdymbD59fTLpebhiqGw/BtkKONZJ3Af5HMQ1nNYdt2MBs4C2hBlIh1i+x4vNKtYG+YpjJP+yvjiL4vZFioerFFyeJdBYawSM X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(136003)(366004)(346002)(376002)(451199021)(26005)(83380400001)(6506007)(1076003)(316002)(41300700001)(6512007)(186003)(2616005)(478600001)(66476007)(6666004)(52116002)(6486002)(38350700002)(66946007)(66556008)(4326008)(38100700002)(86362001)(8936002)(5660300002)(8676002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: i4WfVb5CBZueyptXLk+B8PrExQBZ5iSjxj+5aoH+stWewvVpgZQwjkPTkSzTl1tlAuaiKAqPF3iO/aBCrNb9pKK3VP/7G8/OrMKvUImaYYmHC2QRAgwJHr+kLgXKqpaMCDzYivYwe9JOcFehvFfB2efwZZu6oAb2WCC/3B2bCk1N4p7nhQs/iuxysizSeMH41sHNUialZww0Z/VL/zeJjl+OHfdRr66vyjqCvfArTZt75feCR0m4B6iIQ9PcWkja0gJ9wXWQtlHZpSy4xgLM9D/3x8cNYU18ctxdJfLaX+w+EarVDl5QFalcQjQ1xS88NjCIDES4mOTB6Uqx+6FqIE4cYxhxweNXlZHupfN1QdXohR1dv+I5PmG5uGWgieQD2gCfDNGcXoIaCULkY3LOOmIXDo76QUB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RMWcjMi30r7gvQ3QyrIr9YjAhx+qA83/QyzUBHQoZtpW49/26PXMmKF12BEqh3fTfCGN4iG4Wu+4gS2exzO+5tyD9Ej74PtAUb31rU0iW76eoE9y X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed0247ef-5c0c-4484-ca05-08db8904dd27 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2023 09:36:58.9414 (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: h5vbHcAWw8pfkW/hJ9Y+BSioWKLOhJj6R0lExBXtrCDYKRmjRLKAbt+NwLSCNiYrrrtjpGNCnbjyi3ipeqMr2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9367 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771935270991065229 X-GMAIL-MSGID: 1771935270991065229 |
Series |
firmware: imx: scu/scu-irq: misc update
|
|
Commit Message
Peng Fan (OSS)
July 20, 2023, 9:41 a.m. UTC
From: Peng Fan <peng.fan@nxp.com> Same as soc-imx8m and soc-imx driver, use soc name for soc_id Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/firmware/imx/imx-scu-soc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/firmware/imx/imx-scu-soc.c b/drivers/firmware/imx/imx-scu-soc.c index ef9103987e76..cb8377670a7d 100644 --- a/drivers/firmware/imx/imx-scu-soc.c +++ b/drivers/firmware/imx/imx-scu-soc.c @@ -107,10 +107,12 @@ int imx_scu_soc_init(struct device *dev) return -EINVAL; /* format soc_id value passed from SCU firmware */ - val = id & 0x1f; - soc_dev_attr->soc_id = devm_kasprintf(dev, GFP_KERNEL, "0x%x", val); - if (!soc_dev_attr->soc_id) - return -ENOMEM; + if (of_machine_is_compatible("fsl,imx8qm")) + soc_dev_attr->soc_id = "i.MX8QM"; + else if (of_machine_is_compatible("fsl,imx8qxp")) + soc_dev_attr->soc_id = "i.MX8QXP"; + else if (of_machine_is_compatible("fsl,imx8dxl")) + soc_dev_attr->soc_id = "i.MX8DXL"; /* format revision value passed from SCU firmware */ val = (id >> 5) & 0xf;