From patchwork Wed Sep 16 07:17:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312158 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp197901ilg; Tue, 15 Sep 2020 23:53:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcidIzZ0tQZclmOFNZHEjgpw3kfFc6NDySFrGPNIZ0jvRsHv60In/q3NZJiR6LeNADviKq X-Received: by 2002:aa7:d815:: with SMTP id v21mr26588475edq.56.1600239194033; Tue, 15 Sep 2020 23:53:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600239194; cv=pass; d=google.com; s=arc-20160816; b=NLPQMb5lyza3BNcBc+zBGcSu0Yw/nsMy2QaDRxJKc4cTrfY/PPZwIbrDkwFZLQCGlH 0veZIqND1vZtKpiAV3cglrqNfjesXFV96b2oX7TMfSvrsm5Bmzx2aScStyR/Di/PUvq1 WLv9GADEl46zpnETE6fFKgpagfdOR/f9ZqH5n8jZp6ZmUYI4HhMGB26tqol0GBKIAg8u aB4JPqQQAg10C2YQE/oK01c4Mn1gsTgrMklZrefI2iAF3IhFLpERowJPzyaG1gqCJtjE KxdV2ykwGE/B6FFjRIAtBPoA0K4w8j0f0WHG4/oKtQTo5htto5i+gaTu/OkBajQBG4tE yIWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=TtVYaC1B9XwOFGw/rYCpScrzhrelJuL/2nrc5xXLn/k=; b=SPoZTjsleX/IcumCekk0shZDpr76G8NSIkROVDUqZ0m3VdvIDmdYT8ya0058t4tBEP /gElbztbcxRzWKL2jI8ihVH/p375rENMuB/PQl2+3MsClgWG5XyH4jWFWhYq7Jj/WDwy 9GoAe1HZ7A04N2uB4mSiqW2vRq/TLYvmXbGx/wXsg3mF0Um5jOeA2wo9L12JUEXyykl+ MMYUUqcvjiUSBIIqMhgVy6OT0Zgt9AlKjoKXIlSLX1/pqXZ/l5hgb8wWVsLy9JbR6ss0 +UXXDIIbso5gPFvrMkricS7kcxGfaRTyHNgQPxybtWo78WZALP9r4J12DQermGo4FbbK QrvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KvD8VWsv; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id v10si11120881edy.425.2020.09.15.23.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 23:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KvD8VWsv; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 89D58822A3; Wed, 16 Sep 2020 08:53:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="KvD8VWsv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F166822A3; Wed, 16 Sep 2020 08:53:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0603.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::603]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 88A52821F8 for ; Wed, 16 Sep 2020 08:53:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6EbM/m7kOwRxy1b1nsoy/SLd3y4KrWRdSE29JIssVLE0FStEZpqGa/qHn8nSAIe4trKdl0imUY8FbB4LkFArht1F49H7g0V8KbtXMHP28TkKkSGpJH6p6pn0UN7v2xhie0vx/Vy9XaR1MFX1FzxRy7N/COPnnPIquBo/22lhGN/mVH8LvGU19Vhu56CpdlC2b3dXHQabyWNdz3JZJc+3cIJq7ZckpW5vG2RmWi54JAY24LE8Gk/8ez6kOPU6/8q2a0TZiyZhwYy6VwBTFHoO81lbG6fI8r0yr8sOvXKC6BiCLoP1rIja9bT/sBgjowzoKNPzcblPZRSVqgL/evEEQ== 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=TtVYaC1B9XwOFGw/rYCpScrzhrelJuL/2nrc5xXLn/k=; b=DRvBA32s1APMuTcPOAebL8zUYy3g5OWZg+X8blb1IZrWziIiqc6IQE85AbHVH6QgcCssS7+yy8N/vV2bfEsAZhFlJkOxCvclTVA1w2meu6qgrhpD0CvjHaOSWZFt+/E+mhuHyl8LuHfePro06jV2JDCY0iw8uMbd3tAX/qoNAIORyKlJgcpUDLzuPaLjInTJTZJ8e6eghipEkLiYYcYlkXTHrrpX2EEpXs4TC0EdTz8+IWn6sfvxIgiLok7QWgcbPUUqt72MkhqkBpvM2mLArjFhKjHG+2tWuxmX/lCiBUnFPmgvD80FwlfQ338Qkq31aoiBW3bb/45cuTPOHKYxNQ== 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=TtVYaC1B9XwOFGw/rYCpScrzhrelJuL/2nrc5xXLn/k=; b=KvD8VWsvszeU1sF6z6Y2ypal3ArfpyuAbnWVr/S9vfK6SpGp9H5EObOasbZhhQJMZu4Qc5f/JCx7xamQuuj5lXJjhsyn+ZuBatTs6PAlNhWeXNGVQOY5E82ID3T2yB/WztjihGNxPW5CzD2IN1hospvsfOm4MjJppvujou8Wjb4= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4762.eurprd04.prod.outlook.com (2603:10a6:10:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 06:53:06 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 06:53:06 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan , Ye Li Subject: [PATCH 1/5] imx7: ccm: correct target interface num Date: Wed, 16 Sep 2020 15:17:18 +0800 Message-Id: <20200916071722.28772-1-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 X-ClientProxiedBy: SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) 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 SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 06:53:03 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d9b807f8-dc40-47f4-07e5-08d85a0d29eb X-MS-TrafficTypeDiagnostic: DB7PR04MB4762: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:883; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GjrUvz1EtVGM2ELBnJ9OBAvZM9kyD3UsLG2jGsok/cui1e9VGUiOZ+7997eGljknDCjOJtdRk0HsQnOTalyAD0mzkqDmO0S8A0Lkwq7Cq7R++lndk5cHZS7et+98PPZW4FQbJLmzjcYIbO9chjFtOmrBo2r9fw36j1FcIVt9wv5sNEv4sbPw1shoOkPQsXFVMgcG8rfAXuyQgNLCVkmxmlIMhyAYl89qxgdtZS0INk5Cu2PMG7hO3UdszdAYVxo/J/m8yo2+rHtjKkiDp+L7RByI+SGmBXGFFckR6ct2XBGWFCPE6JqAx9rBkeNaeQIi4OZOOE5MsIfMVlqbNkpAJg== 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)(366004)(2906002)(6666004)(16526019)(83380400001)(498600001)(186003)(4744005)(4326008)(36756003)(6506007)(5660300002)(1076003)(6486002)(26005)(8936002)(66946007)(956004)(9686003)(2616005)(8676002)(86362001)(66476007)(6512007)(66556008)(52116002)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: uV0stnhyCtH6/WhOzkU5iWCcFfLRMOwZcqC99cVhLprEEFgeF/z7WqAgnukVQnMQ2jaCqWh8s229HTayxHD4kkURxG1xfzrtPb0l1q8XtpZTacKIRqCOyFav66LZ1uImssTYDLo8Bdek72/QhV7P3MEO+4pFAz+jCMZrSC2dHTiV3YeTER9WG1xeqI/9e6i6iocSDJkTIkAMahv8HUcrvjNr3FVwrYxUM1T9sZ80xf6F7Kz27+x0y88Ma+ZlBcGqtdOojQAFHm362NbCKgn6y4eNcQfPccnfDedSqHBY4gTFr6rotWFA2gfnzJ0CuR+WpvwHpJp4SMAm9B+ZsET4o1lTMhKfeYNjdsGEqUeWDEYIi+l1PfjD2BEAbndk4TXRrt4f6y7OEIJLzYnnWjtalGnKhHcB/RWlSqS+DajETG1SEJlZ51D9eS9tZCSQVFYERe/wiC1VcYqY+LKH0hYt2YhhAKRmEA1ysYi4Svb3pZzm6gXRV30Qk36UiJ91XEkLMgLsqF+hN2is8tMPaCp4opQuyLcLnGbG5vTZav0uisOE8ckX3Q4Ch0UmqIVS7/DT3Jadqx3WQNdWgjE+Hl6wPJ5obv9Ua5Oi6Cu4titgjPmJYjzszHtGTfUNbSY3h/g7ZuGcd18vuRaB+ZrKM5xBGA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9b807f8-dc40-47f4-07e5-08d85a0d29eb X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 06:53:06.1986 (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: qh4GMHxzn/UcxMTMCoIuvZbcbP410tyC04FIXqWVTOfxET+OIBlraeJzMTx6CQFDDSyGAU/xLhVmUHlWLEmWlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4762 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan According to i.MX 7Dual Applications Processor Reference Manual, Rev. 1 The target interface CCM root index ranges [0,124], so the number should be 125. Reported-by: Coverity 18045 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-mx7/crm_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/include/asm/arch-mx7/crm_regs.h b/arch/arm/include/asm/arch-mx7/crm_regs.h index f3515fab03..bfa68a9d2a 100644 --- a/arch/arm/include/asm/arch-mx7/crm_regs.h +++ b/arch/arm/include/asm/arch-mx7/crm_regs.h @@ -57,7 +57,7 @@ struct mxc_ccm_reg { uint32_t reserved_0[4092]; struct mxc_ccm_ccgr ccgr_array[191]; /* offset 0x4000 */ uint32_t reserved_1[3332]; - struct mxc_ccm_root_slice root[121]; /* offset 0x8000 */ + struct mxc_ccm_root_slice root[125]; /* offset 0x8000 */ };