Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2058413imu; Thu, 24 Jan 2019 06:35:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN4DIR7n3SICkHBWrI8rkkqfy6dyWQdy4VROb8c7Ya4iSxGvXIiM4jzVJs4G7OVoS4nG9mTE X-Received: by 2002:a63:1444:: with SMTP id 4mr6221607pgu.430.1548340522723; Thu, 24 Jan 2019 06:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548340522; cv=none; d=google.com; s=arc-20160816; b=U28jS4qn9/fF+3Fl8j+Tc0IjwPzNELKimlzILJ6axNJe9b5gEPytF3bmdIoCfNp2jv /eYbpzkTOFanlumJGiQBkjpB5TZ7oH8zAM1XgPIEms/DVkf1PiBu9GknKyG9liNaM8vI LNs8BRysFUAGaPnS0WW6+Fq/I84of3otNPqaT5p22W1f6tZENbacjlg/iEWvGI8OR53g GSEDMlRQZwETM+0kr/BFjRW3t4b4mQkaEKaGpHxL+LhR9qiDgQfxoptfdDl+rkUB8WzU fL8IMduzZT8k9yxV0Nnr2fZvriI5cbeA0shv/4wOqzOxnyNLj5YFEZ4ZA2aUGe65L3Gc T1gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=fLft92XOvAmxHSW9w72md68dqA+cokNFROfhpO9NeV0=; b=W78tv55HN3qIW+oUw6O/Ah9rduU6rCglJvb4DvHcWRC56m2YskjgrSMKVSftzwXxLS feT5O2Yi2e7j4x80Dwk9b4i5WgNBLRul1hmpmI7xx38hCEt3Dzu5u4SnuFgvlWpw2yIe q5CZWWmS1iqB4a6YZBbCo2X8CtqfNUbfoewnhm6HRFSljDrJPo2fO6Y1YGnqvgMQOsh/ IerJw+uMSNQeKlUMU+wFMeN/s57/QKFv2YBXyh1U22pWIOWAL5PmaOL+HrCK+JITDHBU 9aoT6RbWcR2ahODn2MD/YYAhSIQlabnpJIi2JHIxTTt31XMHVoexGqpYvbcE7Crcr1MA Ryxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rIbxFzjH; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w190si22812579pgd.338.2019.01.24.06.35.06; Thu, 24 Jan 2019 06:35:22 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b=rIbxFzjH; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728343AbfAXOei (ORCPT + 99 others); Thu, 24 Jan 2019 09:34:38 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60555 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728059AbfAXOei (ORCPT ); Thu, 24 Jan 2019 09:34:38 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190124143436euoutp01624f949cbd3382b4c4015436918c6e4f~8z3W3fGbt2286122861euoutp01P for ; Thu, 24 Jan 2019 14:34:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190124143436euoutp01624f949cbd3382b4c4015436918c6e4f~8z3W3fGbt2286122861euoutp01P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548340476; bh=fLft92XOvAmxHSW9w72md68dqA+cokNFROfhpO9NeV0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=rIbxFzjHjJEgzA/1TtDJosgD4FTSfo1z+AqvgsZs9n+aHTmOS7kSmRjrBIngJX837 EQsUtL4mshAxGJlvKryp23TiRIjVPeWgEuRhfkibeuGzXxpf/t+E8q66cYH0DNMaRY tTgbBChAeBiQegq/3GUyaFnCNML5wQczPoEqYLm0= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190124143435eucas1p10144f4932b17047cd0d478dfd91d15b1~8z3Vzs_mZ1088910889eucas1p1S; Thu, 24 Jan 2019 14:34:35 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 12.87.04806.AFCC94C5; Thu, 24 Jan 2019 14:34:34 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190124143434eucas1p240b84938182676e4450e88a70753e814~8z3U_eZcb1173311733eucas1p2S; Thu, 24 Jan 2019 14:34:34 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190124143434eusmtrp12f5687187a71eb7f4ab75afee2093c80~8z3Uv4FBP1630716307eusmtrp1G; Thu, 24 Jan 2019 14:34:34 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-76-5c49ccfaac8c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7B.60.04284.AFCC94C5; Thu, 24 Jan 2019 14:34:34 +0000 (GMT) Received: from [106.120.51.18] (unknown [106.120.51.18]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190124143433eusmtip2cf7442d236a8fe9962ca45d1f1ec1be7~8z3UT6b_-0640606406eusmtip2w; Thu, 24 Jan 2019 14:34:33 +0000 (GMT) Subject: Re: [PATCH v2 3/3] crypto: s5p: add AES support for Exynos5433 To: Corentin Labbe Cc: Krzysztof Kozlowski , Vladimir Zapolskiy , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski From: Kamil Konieczny Message-ID: <75f3be00-8035-0586-1611-99e5da53a8e7@partner.samsung.com> Date: Thu, 24 Jan 2019 15:34:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190124133729.GB13624@Red> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLKsWRmVeSWpSXmKPExsWy7djPc7q/znjGGMy7ZG2xccZ6Vou/fyst 5pxvYbHofiVjcf78BnaL+/d+Mllc3jWHzWLG+X1MFmuP3GW3+P+rmdmBy2PLyptMHjtn3WX3 2HZA1WPTqk42j38Lp7B49G1ZxejxeZNcAHsUl01Kak5mWWqRvl0CV8atOQ+ZC75yVOxruMbW wLiUvYuRk0NCwETi4+ZTjF2MXBxCAisYJfbe3M8K4XxhlNjSf40JpEpI4DOjxL5LZjAdZ/8c Y4WIL2eUePbOBKLhLaPEi8MzwBLCAu4Sl5bcAVshIqAn0TbrENgKZoHXTBIbbr8Cm8omYC7x aPsZMJtXwE3ixb7LLF2MHBwsAqoSf28ogIRFBSIkOu6vZoMoEZQ4OfMJC4jNKaAp8fvNWmYQ m1lAXOLWk/lMELa8xPa3c5hBdkkIXGOXmD5hN5DDDuS4SFw0gbhfWOLV8S1Q38tInJ7cwwJh l0vs3vqMHaK1hVFi7uRFTBAJa4nDxy+ygpzG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BrYllxZe4hRgkOZiURXteLbjFCvCmJlVWpRfnxRaU5qcWHGE2BfpvI LCWanA9MH3kl8YamhuYWlobmxubGZhZK4rznDSqjhATSE0tSs1NTC1KLYPqYODilGhi91c4F 66zXMxM1tr2pave/+tbRy92s098az2laZXJxbr7DlZl/nhu6RT8+ufNg9wXr1r1yys8vPv+p 9Exp3x5Ly5rH9YXx+myrJjVaODaK6fX5FDlan7LIWtAS1hbN1JOz4fPbfQfL16Zu0vRuC5ye 5mARvJ57+3wf08x9+j5ST3eWvbpwY48SS3FGoqEWc1FxIgBoANYW5wIAAA== X-CMS-MailID: 20190124143434eucas1p240b84938182676e4450e88a70753e814 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190123165551eucas1p1cd99462e3767dbb4feb88b996225ed21 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190123165551eucas1p1cd99462e3767dbb4feb88b996225ed21 References: <20190123165533.29645-1-k.konieczny@partner.samsung.com> <20190123165533.29645-4-k.konieczny@partner.samsung.com> <20190124133729.GB13624@Red> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.01.2019 14:37, Corentin Labbe wrote: > On Wed, Jan 23, 2019 at 05:55:33PM +0100, Kamil Konieczny wrote: >> Add AES crypto HW acceleration for Exynos5433, with the help of SlimSSS IP. >> >> Signed-off-by: Kamil Konieczny >> --- >> drivers/crypto/s5p-sss.c | 50 ++++++++++++++++++++++++++++++++++++---- >> 1 file changed, 46 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c >> index 0064be0e3941..e2d247f59254 100644 >> [...] >> @@ -240,6 +241,7 @@ >> struct samsung_aes_variant { >> unsigned int aes_offset; >> unsigned int hash_offset; >> + char *clk_names[]; > > Hello > > this could be set as const Definitions sets const: grep "static const" drivers/crypto/s5p-sss.c static const struct samsung_aes_variant s5p_aes_data = { static const struct samsung_aes_variant exynos_aes_data = { static const struct samsung_aes_variant exynos5433_slim_aes_data = { so it is not needed at struct declaration, or am I missing something ? -- Best regards, Kamil Konieczny Samsung R&D Institute Poland