From patchwork Wed Jul 8 14:24:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: horia.geanta@freescale.com X-Patchwork-Id: 493122 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E0569140787 for ; Thu, 9 Jul 2015 05:28:24 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A65F4BA8E; Wed, 8 Jul 2015 21:28:22 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qAyk9U2ZH4fV; Wed, 8 Jul 2015 21:28:21 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AF2C04BA73; Wed, 8 Jul 2015 21:28:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B71F14BA03 for ; Wed, 8 Jul 2015 16:42:34 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0jXWkJN2D773 for ; Wed, 8 Jul 2015 16:42:34 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0122.outbound.protection.outlook.com [65.55.169.122]) by theia.denx.de (Postfix) with ESMTPS id 41A4D4BA00 for ; Wed, 8 Jul 2015 16:42:30 +0200 (CEST) Received: from BN3PR0301CA0054.namprd03.prod.outlook.com (10.160.152.150) by BL2PR03MB385.namprd03.prod.outlook.com (10.141.91.139) with Microsoft SMTP Server (TLS) id 15.1.207.12; Wed, 8 Jul 2015 14:26:23 +0000 Received: from BY2FFO11FD032.protection.gbl (2a01:111:f400:7c0c::104) by BN3PR0301CA0054.outlook.office365.com (2a01:111:e400:401e::22) with Microsoft SMTP Server (TLS) id 15.1.207.19 via Frontend Transport; Wed, 8 Jul 2015 14:26:22 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD032.mail.protection.outlook.com (10.1.14.210) with Microsoft SMTP Server (TLS) id 15.1.201.10 via Frontend Transport; Wed, 8 Jul 2015 14:26:22 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t68EQ85s000968; Wed, 8 Jul 2015 07:26:21 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: York Sun , Ruchika Gupta , Tom Rini Date: Wed, 8 Jul 2015 17:24:58 +0300 Message-ID: <1436365498-25890-3-git-send-email-horia.geanta@freescale.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1436365498-25890-1-git-send-email-horia.geanta@freescale.com> References: <1436365498-25890-1-git-send-email-horia.geanta@freescale.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD032; 1:lOosom0EvIn+T26rY8++F8kdkKRn/xvTCPmeNQLGxP0h6sAzl0mpSqFFCiEJrKx+jAzDSfLLV10vZzToG1jLMDL5/mHnkNVk/3fOF7pSU/3QnXO9xqXjHenDebjNZPu2rb+QaI6fXTO0q+FxNiNavncE3FxKtzNU5HTmsBFtQ0AKVErIjvbGywp9HllG+FFnkPByLaJhvQv41t4KkYCW9emb/r8yyIQakuafrRZuUK3inJ8ukGe8pBZJCsvUnKdo177/nfLDCLVJSU9zcrMmYmvKNjZf5oNLMz070urXRiOzQz4tJjzGG321DuWcH0p+wdJiKbl+EBJTPvgd6LW2Sg== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(23676002)(19580405001)(189998001)(5820100001)(5001960100002)(50226001)(36756003)(107886002)(5001770100001)(77156002)(104016003)(6806004)(229853001)(33646002)(62966003)(2950100001)(19580395003)(86362001)(50986999)(85426001)(105606002)(47776003)(76176999)(106466001)(50466002)(46102003)(87936001)(92566002)(77096005)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB385; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB385; 2:+H+Dgxmr8AFZZmJL5Rvm5uGdCSA8qP96WUGvN+9dw9PXNo7Ib6Oij43NqIJaBVpr; 3:d8luxuEcqr0MCOFjHqDQccTftt/+BZVdMRlIiFNYGisaS64EoPY6+7oXOAJAYi13DmLacnOHkxPDjL4XOEmB4czQioWt4d8z0ezDxcszC3YiFOluXqjHdu8Mc2iG5DZA1u67MnX1pgXfsT9BviXb3zoFokVolM/eyXyBp1TX7VD556tBwiqDWFGUGooqeEW3aROnAzdQLe/mJBKXpbqSE/veryflglpkbG9j2jijTno=; 25:rR4pbF7RBCFxLSM8a6qxIyvusDLl9g6q59H0ArAGU8nnRUmNabO92ztVCCJQBapkdl2TeJB2Zaso2Dx9ey/5q39fu1c3MCv9okdmamgVF9jWuEq6OZDv0dcSwoU/2PUjZoxwz1wqXfuaWnrxEHlEurbXr2sKUV05Wpt1/JHdID/ofI+vqO+pz8DHd1CA1+WWCk5u1HX1A2cN44PjArzWm5SyxS1u+j0WPATHLw7I2BIEzxAh6QHtmh7nregTH7DfqmNTmAnguIQ5hfRKx059M6dKFU2GESPByFAx7pimbco=; 20:TbQqpXhYMOK3FMytqg3Tj8Myw9EpEi33H6dWNF3eKkBFtmtUx1NULeGCsj5zX3r0Yy8DBtd8A1CXu9louW8E/IEUMIqMO8Z+kz9EUQC11Fw4egRgT126Ev2p/VFVzWeI+vO1g9kjvTSi9EC9HBigvcjEQRCoLCyOuwoEU8C0S06LT17YLhL9Z0rPVtUlg3dxfaYg49Z//G3H6cfx/LFGwgv0STYvA9f//71LyqDi7oEPAA6plHqsZefUvQvV7MulIVo4vb0I/tOeuYJu+KbIz7jlT6hrK0pBfMYLrFTvIckDCGUv2P/vz8XsFHqYNuP+E6YA1p59RLeABWim7Xse5nhYbNR3B7Mm9jFaXPkv8CU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB385; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BL2PR03MB385; BCL:0; PCL:0; RULEID:; SRVR:BL2PR03MB385; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB385; 4:dFZV8q0t9mAIrJxr0HlYQkX1AW4mMc+c1lAh1ChJhFH+P8eHq4Euk3UvR9NUeyCqSaT29bl1IJi0xhiECQb6LBZpjcqEM4LOHAMs8WJqTbTHwQEUBrrWu1gMDTAviMiPDRlUCR8fTNokxy+5NgzWA0LGzBniQHziyWTHLh1nvkC/lY+Zg4uYZPRUhuojoHiGDtmc3MQzQfRp0zqljDyS/y1o2S0ZPDVPpd77MADnHoo+6xHrs3rhZ1mz3BYHowIVfPXo6ti5YcKpF6ZGpZRzFSLlJUcS/VdHTb/wN8s08Lk= X-Forefront-PRVS: 0631F0BC3D X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB385; 23:e3EB7khfWfSqO/A1/65XJU8HgH0f+vQaxFkc4jkMW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ti5BIaZ6ZAkq9MfAHrOsGMfF3rkQ==; 24:BqySBMMC5QNMvjkN7NFL0juromUAI9+h/M9/fZEWlmkBikBgfMTCrMEC9+rjnyK2ZLX6vTQuk2qkC2gJSsOO1Hebyk3TQSvtE8ocLANmWLU=; 20:41M3uMI+RT/Fmmg/N6KpKIjhc3vTzKDTYGrgZYDl1+/i9QU6fNcnelH0E9TTgNxERX0dFLtWbieCuQOgFPqVjQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2015 14:26:22.8480 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB385 X-Mailman-Approved-At: Wed, 08 Jul 2015 21:27:58 +0200 Cc: u-boot@lists.denx.de, =?UTF-8?q?Horia=20Geant=C4=83?= Subject: [U-Boot] [PATCH 3/3] crypto/fsl: clean-up - use fdt_setprop_u32 helper X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" Signed-off-by: Horia Geantă Acked-by: Ruchika Gupta --- drivers/crypto/fsl/sec.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c index b25b1a4052d2..0940faf768cc 100644 --- a/drivers/crypto/fsl/sec.c +++ b/drivers/crypto/fsl/sec.c @@ -60,27 +60,26 @@ void fdt_fixup_crypto_node(void *blob, int sec_rev) return; } - val = cpu_to_fdt32(sec_rev_prop_list[sec_idx].num_channels); - err = fdt_setprop(blob, crypto_node, "fsl,num-channels", &val, 4); + err = fdt_setprop_u32(blob, crypto_node, "fsl,num-channels", + sec_rev_prop_list[sec_idx].num_channels); if (err < 0) printf("WARNING: could not set crypto property: %s\n", fdt_strerror(err)); - val = cpu_to_fdt32(sec_rev_prop_list[sec_idx].descriptor_types_mask); - err = fdt_setprop(blob, crypto_node, "fsl,descriptor-types-mask", - &val, 4); + err = fdt_setprop_u32(blob, crypto_node, "fsl,descriptor-types-mask", + sec_rev_prop_list[sec_idx].descriptor_types_mask); if (err < 0) printf("WARNING: could not set crypto property: %s\n", fdt_strerror(err)); - val = cpu_to_fdt32(sec_rev_prop_list[sec_idx].exec_units_mask); - err = fdt_setprop(blob, crypto_node, "fsl,exec-units-mask", &val, 4); + err = fdt_setprop_u32(blob, crypto_node, "fsl,exec-units-mask", + sec_rev_prop_list[sec_idx].exec_units_mask); if (err < 0) printf("WARNING: could not set crypto property: %s\n", fdt_strerror(err)); - val = cpu_to_fdt32(sec_rev_prop_list[sec_idx].channel_fifo_len); - err = fdt_setprop(blob, crypto_node, "fsl,channel-fifo-len", &val, 4); + err = fdt_setprop_u32(blob, crypto_node, "fsl,channel-fifo-len", + sec_rev_prop_list[sec_idx].channel_fifo_len); if (err < 0) printf("WARNING: could not set crypto property: %s\n", fdt_strerror(err));