Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2062969imu; Thu, 24 Jan 2019 06:39:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN4W+0yKvgZcYN/RBdMm5ernn+69BBcsXP9sSn6VDClhFfDxdwUimrdPVLTngWrqciQ18dEE X-Received: by 2002:a63:a91a:: with SMTP id u26mr6040782pge.349.1548340777342; Thu, 24 Jan 2019 06:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548340777; cv=none; d=google.com; s=arc-20160816; b=EAsh+eBPCPchnWwEVVwkRb/q9HETFbc3roZLhneZG9VtuXhxcBI1Bu5995v7eS7YKb U2SipdV0vgf4Z77nZy8y8caoRdGTccAi32LchFQH/2iAwEHpuIyXvzsM7LOpF8ngSUFt VvpYcQpkmUq2ztAuPmIj/n+V/svKwZO5xKn7ESFO053Cda0BuXm1zREGn2/MvLd557bE Iwvhls2L1c+kTGo6domYs+rNkrdYUFjWVzs1zC8OYZphXUE7xZ7iH70GnDQZAmw1YbiN Q5z++IaWI7lqH2VV6JqXWQg3sxL/EGju+4ohlRk+u60eF0rEPWUYdA7cRFx7G+gjoI1B rqNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rRm+xZASsd0oYcVDfWMf3Ka/EPn2dzLEr6RIXSTbxqM=; b=PmX+PbFNg3pBvFYwa6dnL05LomPBKIB6KmBBUFCKXjjmoY4IvwQYk9qh1WWXvtKCWm oFX+Kc7am1ugE0SI1WzcyNrt9arDEtQYhloMYBq6FBDDPStyhxEav/Y3EHpbusi9WpAo qVkp9rS7YRODTGm+9jgwVpWdD15KrF5a0kLiRmEF0BrEEbrXRJZ1lBt4NK+c+l/7kILe Og1bqC3azVT5hNi1HitNdQzInz7z8L4AcP9d0jvSzo8/iChA1JULsoUtbClyCnj0q2Yz nei+5VVB+ZWx4seECfmBZjZbuY+WVvHhXabJK1zjzo9a9cCewmC1y+fyEyfxan5S6zqK pWKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K4EcFmut; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si22831458pfe.243.2019.01.24.06.39.21; Thu, 24 Jan 2019 06:39:37 -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=@kernel.org header.s=default header.b=K4EcFmut; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728288AbfAXOjP (ORCPT + 99 others); Thu, 24 Jan 2019 09:39:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:51848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727862AbfAXOjP (ORCPT ); Thu, 24 Jan 2019 09:39:15 -0500 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66056218C3; Thu, 24 Jan 2019 14:39:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548340754; bh=4duOeQSex3XwiwRKUwmpYPoGccLYgHg9ZxkXUYHxtX4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K4EcFmutw6O/0d8BtTHIHx8DAljV6i4/fcUuMCqyaC284ODGqJ3AgoodMRxUCnW/o L+c5hrWoEkpKKohKLERvoub8Pf+cYfH8J6jeW/pDrFE6ogsqTIulmCs2injuNFpYuh 3W2vkH7lU57clSPJFAUDtKEpBuxAxBx/3iAN6En4= Received: by mail-lf1-f41.google.com with SMTP id a8so4470591lfk.5; Thu, 24 Jan 2019 06:39:14 -0800 (PST) X-Gm-Message-State: AJcUukfoGL0bdum/U97eG73Dx6upUGPYD985sptnLTHb0j2M4+90FYgY ocrFsey6pTqpZcOJO4ezsjX+9Kn9VeC2Ru2k1EU= X-Received: by 2002:a19:4948:: with SMTP id l8mr5894422lfj.156.1548340752471; Thu, 24 Jan 2019 06:39:12 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <75f3be00-8035-0586-1611-99e5da53a8e7@partner.samsung.com> From: Krzysztof Kozlowski Date: Thu, 24 Jan 2019 15:39:01 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/3] crypto: s5p: add AES support for Exynos5433 To: Kamil Konieczny 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Best regards, Krzysztof