Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2074182imu; Thu, 24 Jan 2019 06:50:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN5MB1DUyivF4R8pQjDC6WmCYYQsefEbP+nTwoWxocR3dGBpbC8XYtmnD6GAPCZMTELcV/fM X-Received: by 2002:a62:b80a:: with SMTP id p10mr6750175pfe.32.1548341457993; Thu, 24 Jan 2019 06:50:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548341457; cv=none; d=google.com; s=arc-20160816; b=ZlekjgGPPgXgUFAzRGQmyd6BFzRmNtQg5ovYoiG1X2Ujie+1OkS7LYWYgrTnYU3MWj Bg2Fc0QUgb2tkyC+tcjFaAVneGbLd+CNYTbQhxeO2h4l3aQL5hmKnrill27QYn9M/S7F vO1DQOxMddYG4/Cya0AWFu0JCtca5kDKFDS08qcYhbzwBJHauc5JxrpxS97B/QdLvniR d6Sz7QFIih6d+gODQ4m4PRoL6RPbbkfkgw+Rln0ATX3TSqiDdyhMWlph0fMcHnmAd6dn D3hNhXXG/IQjlldkg1kGzhgbvi4Pe5ObB8xGBszPUFjB5fyWRRAW81z5asHAMjJCZUqi u01A== 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=H+NOTlc0XM1kKAaSD4H19lSnjpfC4vO8qfAVF9C0Osw=; b=fX3pTEMUxhBNosB3oqcs+mKMow3sYmpIlIy85Bf6iJ5/MED1Ouc61KVchryJ4UY76Y 3xTXRiS0JbPLOVWbouNkAxouKeuubgwuOrEI/usJfE/KKZlZuFV0cTicg/Is6oPPl9BJ cphyHI9gninzOaSXfcd1jLOvGK91PHCSI/yXMzaHEFAvICQWSg0y18UbqY3FzWn6P4Lb XwHSH/hQbtKTzB8Jm8pS+T+3wgqrVTDhCqK8xKB5rVEoieRPdgC45CgxJk0e4eN5dsaU yYBfc0rA+tZrpZYFOZ0ysA2/bF8lBu6Eo1p/JT312zkIYxhWkXiDvBUKumcRdB2XfxHl EsSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JWB8WMQ0; 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 b10si21418154plz.233.2019.01.24.06.50.42; Thu, 24 Jan 2019 06:50:57 -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=JWB8WMQ0; 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 S1728340AbfAXOu0 (ORCPT + 99 others); Thu, 24 Jan 2019 09:50:26 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:41935 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728030AbfAXOu0 (ORCPT ); Thu, 24 Jan 2019 09:50:26 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190124145023euoutp0274877352eec57cc3da9397e7dd10543e~80FI1j5ZD2012420124euoutp02n for ; Thu, 24 Jan 2019 14:50:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190124145023euoutp0274877352eec57cc3da9397e7dd10543e~80FI1j5ZD2012420124euoutp02n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548341423; bh=H+NOTlc0XM1kKAaSD4H19lSnjpfC4vO8qfAVF9C0Osw=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=JWB8WMQ0uc7RM8u635dFTtAhficA+3ZgpYtvsqjWtVSkJa9EUvej+ZgtZYx86V5aI 49DlsRZbyVWNrXr8AI6jdyVVWW8BgxMEfKSxuRLJdtt1zKr3T7S3BAS2q6QJSrsdj6 a5fCWWM3jHKXU+mTVTToIngryppRQo+MmnqI1EWs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190124145022eucas1p1b67f22e8f0ca9131a01af773919fd817~80FINZe_-2748427484eucas1p1z; Thu, 24 Jan 2019 14:50:22 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 62.B9.04806.EA0D94C5; Thu, 24 Jan 2019 14:50:22 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190124145021eucas1p1866079d4010503764e0ac6769de40d04~80FHZY-Ep2749227492eucas1p10; Thu, 24 Jan 2019 14:50:21 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190124145021eusmtrp2c63475a35763059eea8bae855cf1b59e~80FHK4BTt0281802818eusmtrp2A; Thu, 24 Jan 2019 14:50:21 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-c6-5c49d0ae75f1 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F7.F8.04128.DA0D94C5; Thu, 24 Jan 2019 14:50:21 +0000 (GMT) Received: from [106.120.51.18] (unknown [106.120.51.18]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190124145021eusmtip213819744c6bf6c4a69f5ab2a735c1d6b~80FGvoig40979809798eusmtip28; Thu, 24 Jan 2019 14:50:21 +0000 (GMT) Subject: Re: [PATCH v2 3/3] crypto: s5p: add AES support for Exynos5433 To: Krzysztof Kozlowski Cc: Corentin Labbe , 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: <2ba3ca26-d4cd-5c9c-35a1-ab34e965fc0f@partner.samsung.com> Date: Thu, 24 Jan 2019 15:50:20 +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: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAKsWRmVeSWpSXmKPExsWy7djPc7rrLnjGGCyZL2uxccZ6Vou/fyst 5pxvYbHofiVjcf78BnaL+/d+Mllc3jWHzWLG+X1MFmuP3GW3+P+rmdmBy2PLyptMHjtn3WX3 2HZA1WPTqk42j38Lp7B49G1ZxejxeZNcAHsUl01Kak5mWWqRvl0CV8bZvadZCs7yVrxfNou9 gfEqVxcjB4eEgInErF1RXYxcHEICKxglVh4/ygbhfGGU2PptBjuE85lRYvvyqUAZTrCOP29u QlUtZ5SY2tjIAuG8ZZR4PuMMI0iVsIC7xKUld9hBbBEBTYnrf7+zghQxC0xjlphzbhpYEZuA ucSj7WeYQGxeATeJx3/usoMcxSKgKnH1lAxIWFQgQqLj/mo2iBJBiZMzn7CA2JwCgRJ/Zz1g BrGZBcQlbj2ZzwRhy0tsfzuHGWSXhMA1domDG9cyQpztIrG3aT07hC0s8er4FihbRuL/Tohm CYFyid1bn7FDNLcwSsydvAgqYS1x+PhFVpDjmIG+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DjBIczEoivK4X3WKEeFMSK6tSi/Lji0pzUosPMZoC/TaR WUo0OR+YPvJK4g1NDc0tLA3Njc2NzSyUxHnPG1RGCQmkJ5akZqemFqQWwfQxcXBKNTDuEqoQ jj5urNgyNXjKz9+nrMW95e4x1Pnnf59WEXLmcn4id9AiHsFYQd4NleFz5vuGHZTc/3rfkW/n lmXE89yvO7bm3LUnh8SPXTdcbpJ+oObSpNKu/KWTK0xXnFtYzHhxn4PZKsE2y5IEu4P8JkIK tsdlzeJKnDq7Js683G343fF1Ya8CZ7ISS3FGoqEWc1FxIgDgLF6p5wIAAA== X-CMS-MailID: 20190124145021eucas1p1866079d4010503764e0ac6769de40d04 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> <75f3be00-8035-0586-1611-99e5da53a8e7@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.01.2019 15:39, Krzysztof Kozlowski wrote: > On Thu, 24 Jan 2019 at 15:34, Kamil Konieczny > wrote: >> >> >> >> 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 ? > > The struct contains the pointer, so the pointer will be const. However > the pointer can point to either const string or non-const string. > That's the Corentin's comment about. So in fact as he says - this > should be a pointer to a const string. Thank you for clarifing this, I will send v3 soon. -- Best regards, Kamil Konieczny Samsung R&D Institute Poland