Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4099037imm; Mon, 17 Sep 2018 08:10:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZTmv1AvdUB/POjxzGo5KfqETTk3bZIgNEjqUnOJaf+ym5SqGI5KgUEllFTvrPggvmlZh3+ X-Received: by 2002:a63:de4b:: with SMTP id y11-v6mr23883253pgi.435.1537197046193; Mon, 17 Sep 2018 08:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537197046; cv=none; d=google.com; s=arc-20160816; b=dytGrwmH2AglSsE/BmFtej8NnLocApi4J07bnW1loIi3gRX8VLuZnSHGPq39b7aq0l lg9CbRHmmQSGkBtRfdGgjkqCQOQBLDrbAkfFQUsT+hrtbO8eGHsvrCdYtfrvx+Y+ksOe hvo+YAG5QMJmQAb+UdIqPXa/62TiY7Yyp48JvbqJqf1nP6VEfSYDApba9ruiIfNGn3/H 5F/J9VbgoHUUu9bTuh0yazpQ+u8u8faiU6Trgzb2xmSn+6LhuWW2+cC2VMRDdJaJNmk0 c9WJQsind+PpfYb/tX/xhYfaQQQWA5Q3IuUyxAXiiNcsf25m6UtT1VqYN8DXhdu/ucpH iJTA== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=u0fOrNBAhzxLln+0luypVqlDhZp6633mF0mVbbx2fiI=; b=FgKjIARRaIUArFd1RFsgwZo2c/7yGlnUk8GPVN2QpDB7SiYCO0VmbKp8UgC2EZNplo odH3l9S4nPDiie0DXhkFnxXMl1vyE6ziGLcNqAQu93cTt9FGCJ9cVaEN4jAODp7RLfb5 nuHUgqTXgd/NH8nquIt2vOhzgT00oA/FDB8TrwK0hyTctQ5CbC39PeLdkZb6HPGpwX3M +3Gt4HspL1yGo50tDnd5jgO2mfipUWWQYNsuGq2GmAGSwi7goalFWw6SgaUbIkca1VaO m/TAOqpXDIvO5+147dYdzPgxths1yWgjue+WYkMwUkbv7MRXpT+4cnXtge/azkKRv4Sc lBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tQZTqfHO; 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 1-v6si16700483plm.34.2018.09.17.08.10.21; Mon, 17 Sep 2018 08:10:46 -0700 (PDT) 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=tQZTqfHO; 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 S1729256AbeIQUhu (ORCPT + 99 others); Mon, 17 Sep 2018 16:37:50 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54791 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729101AbeIQUhu (ORCPT ); Mon, 17 Sep 2018 16:37:50 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180917151004euoutp01b987fa2fff3f960f891ea2c12ca832fc~VOIfeso7-2472624726euoutp019 for ; Mon, 17 Sep 2018 15:10:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180917151004euoutp01b987fa2fff3f960f891ea2c12ca832fc~VOIfeso7-2472624726euoutp019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1537197004; bh=u0fOrNBAhzxLln+0luypVqlDhZp6633mF0mVbbx2fiI=; h=From:To:Cc:Subject:Date:References:From; b=tQZTqfHO6Wpq8eSV3LYw9gzzvjs2C7wKzRAboBspndB/lz3CK5n4bM/WkUun6/PPE oTxB3QG6q85aoKnuORNmHP0PCRTGuAj1e0yCc0hvxoXPXw5Fx5cnHgitIhUmo/LHaF jRwvg6yG1Ot8ylQfTgSRmQXG6+CxfloG3IaTC7Jg= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180917151003eucas1p1e5afbf73e5aef6d48897a162bf7327fd~VOIe7KFuU1197111971eucas1p1U; Mon, 17 Sep 2018 15:10:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id C7.34.04294.AC3CF9B5; Mon, 17 Sep 2018 16:10:03 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd~VOId3-CTL2961529615eucas1p2I; Mon, 17 Sep 2018 15:10:02 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20180917151001eusmtrp28a29a5c41b9adaad5cd7ac777c422da0~VOIdl2M462674126741eusmtrp2n; Mon, 17 Sep 2018 15:10:01 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-b2-5b9fc3ca52a2 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CF.36.04128.9C3CF9B5; Mon, 17 Sep 2018 16:10:01 +0100 (BST) Received: from AMDC2034.DIGITAL.local (unknown [106.120.51.41]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180917151001eusmtip22c3ee9f4ee7974a56063a04df497f004~VOIdF1MhZ2369023690eusmtip2i; Mon, 17 Sep 2018 15:10:01 +0000 (GMT) From: Christoph Manszewski To: linux-crypto@vger.kernel.org Cc: Christoph Manszewski , Krzysztof Kozlowski , Vladimir Zapolskiy , Kamil Konieczny , Herbert Xu , "David S. Miller" , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz Subject: [PATCH v2 0/4] crypto: s5p-sss: Fix and add aes-ctr support Date: Mon, 17 Sep 2018 17:09:26 +0200 X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42LZduzned3Th+dHG/zZymixccZ6Vovju5cy Wsw538Ji0f1KxqJv339Gi/PnN7Bb3L/3k8ni8q45bBYzzu9jsvj/q5nZgctjy8qbTB7bDqh6 bFrVyebxb+EUFo+D7/YwefRtWcXo8XmTXAB7FJdNSmpOZllqkb5dAlfG528zmQrOsFd8XHuV vYFxIlsXIyeHhICJxMWXl9m7GLk4hARWMEp8WL2IBcL5wihxdXMzE4TzmVGi++FnVpiWlnNX 2SASyxkl7k3/wQbX8m5tFxNIFZuAqcTtu5+AEhwcIgIKEvO+6oCEmQVamCV+reYEsYUFXCR2 9G9lB7FZBFQlLny6wQSxQE7i5rlOZgj7M5vEgqvpIDavQJnE8vW3oe52kZj04TmULSzx6vgW dghbRuL/zvlgV0sINDNK3PpyjRXCmcAocXB1FwtElbXEphuvmECOYxbQlFi/Sx8i7Cjx++5G ZpCwhACfxI23ghA380lM2jYdKswr0dEmBFGtJvF6yxY2mLUvPn9lhCjxkNj3SRXEFBKIlXjw wHsCo9wshE0LGBlXMYqnlhbnpqcWG+WllusVJ+YWl+al6yXn525iBCaN0/+Of9nBuOtP0iFG AQ5GJR7eBQvmRwuxJpYVV+YeYpTgYFYS4WXmAwrxpiRWVqUW5ccXleakFh9ilOZg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ihMBD5xQgG8CAAA= Message-Id: <20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd~VOId3-CTL2961529615eucas1p2I@eucas1p2.samsung.com> X-CMS-MailID: 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180917151002eucas1p27689f043367e1bc64bf63bc402dffcdd References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This patch series adds aes-ctr support in s5p-sss.c driver. Additionally it it provides a fix, and a minor code cleanup. Patch 1 contains a simple fix, of a possible race condition. Patches 2-3 are code cleanup patches. Patch 4 adds support for aes-ctr block cipher mode of operation. Regards, Chris Changes in v2: - pass dev->req directly to s5p_aes_complete in s5p_aes_interrupt non-error path, - move req asignment in s5p_aes_interrupt before if statement, - change commit message and subject for patch 2/4, - remove empty lines and add rationale in commit message for patch 3/4, Christoph Manszewski (4): crypto: s5p-sss: Fix race in error handling crypto: s5p-sss: Fix Fix argument list alignment crypto: s5p-sss: Minor code cleanup crypto: s5p-sss: Add aes-ctr support drivers/crypto/s5p-sss.c | 113 +++++++++++++++++++++++++++-------------------- 1 file changed, 65 insertions(+), 48 deletions(-) -- 2.7.4