Received: by 10.223.164.221 with SMTP id h29csp1890429wrb; Wed, 25 Oct 2017 08:29:58 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R+5bHmWIO/EdnZnRexIJsY6uLVTzpPZT4oLiU+E0WUDY4SLgqUeShDFYjIeVcxB6oNNbTN X-Received: by 10.101.65.197 with SMTP id b5mr2302418pgq.91.1508945398256; Wed, 25 Oct 2017 08:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508945398; cv=none; d=google.com; s=arc-20160816; b=WtdFoYWinRJ3ZpvQ2xi33Gnm1EX+11MVMYbrVWtEELlyUeus8IRuhP8GP0rfQIwQFO 80WrzMSEafVcIhH/Bm895HARxb1COA/9ja2YerOD+0s/wps2KPdGNY9ablRjmT0RH/P7 9dzDxJM3arALST3dUFZjavgP65W/jsoq+yks6lKAeiKkVIZ3AqgNtCoKyTk5P9goH8kq yBKQLO7joD/MjwdaGgkiWRrx19pl1PiCL3jETK6pY+eiAQq1bw1BHImIeV8h6bJ0Ey69 JCwbeBsJKDNLTlh3HGTz5PifYd3bhDue0Mt3lmkkn6cVkEfSkSWv2BgKQfjy2UDwkxZe 3H8Q== 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 :arc-authentication-results; bh=U0l6b0Rdz9DMi3X/hTXxlnQjY1JF5Vds4T2xQkGi/Ak=; b=hJ2UdWkKaCaw0Hj/I/HFgdUhW53YzJNbpnTZvxeghlGL1sapCcWOmUisWdiynDQTdm X0Ibg33K0RbPL1cVKoleFVDcal/XngDJUjXlid4He9W2d7APp5jrGPi4kM7T6T15dmno vI+ImgYMGD7RSwvPmcMhJZjiNA0tJrOyV/EdzbGFD447IqF1YmOeICX5UQIrQ1eKuqa2 GhPfZFa9bYp/U4wO8oIS7yCX7gLerg0073xoQV858Gqz1Co7hFWGj1QKm8HfOi0Zl49x P8xNciSWTXxlk4wciHEnE4vam5RdriY/tHuDef69Ot7B/tXeiVdicyVioWSd8pJ41nOC ZEnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=oWXYBIzS; 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 j10si1689788plg.102.2017.10.25.08.29.41; Wed, 25 Oct 2017 08:29:58 -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=oWXYBIzS; 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 S1751899AbdJYP2B (ORCPT + 99 others); Wed, 25 Oct 2017 11:28:01 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:50023 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750982AbdJYP16 (ORCPT ); Wed, 25 Oct 2017 11:27:58 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171025152756euoutp01e44e1ec7352b6c8dd5c4ee0cae4bb85f~w2bvdDzLh2600326003euoutp01I; Wed, 25 Oct 2017 15:27:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171025152756euoutp01e44e1ec7352b6c8dd5c4ee0cae4bb85f~w2bvdDzLh2600326003euoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1508945276; bh=U0l6b0Rdz9DMi3X/hTXxlnQjY1JF5Vds4T2xQkGi/Ak=; h=From:To:Cc:Subject:Date:References:From; b=oWXYBIzSv+osxU2DMjgcLfv4amiYtNuXwr6nBPoUndoollxxZJVY19v1Eg2I9nnIR EnuiKt2dcz8d8Oc4bj6Ly9MImHIIaxN0UcVCPv7xN0FHYJB1IP6RsF0AWs3zp9yU5J Dpv5alct+zwc4vzXCIVzMnK/xaQAUhnvcraEqT+0= Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171025152755eucas1p1c42e46d7b02d7b52e89acf14b633cee3~w2busvdEO0736607366eucas1p1v; Wed, 25 Oct 2017 15:27:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 26.F1.12907.A7DA0F95; Wed, 25 Oct 2017 16:27:54 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171025152754eucas1p2854a8c48544949585dcbfdd0286ad499~w2buEWG_O0782707827eucas1p2R; Wed, 25 Oct 2017 15:27:54 +0000 (GMT) X-AuditID: cbfec7f1-f793a6d00000326b-af-59f0ad7abb69 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 78.21.20118.A7DA0F95; Wed, 25 Oct 2017 16:27:54 +0100 (BST) Received: from AMDC3218.DIGITAL.local ([106.120.51.18]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OYD008WHXM2CO70@eusync4.samsung.com>; Wed, 25 Oct 2017 16:27:54 +0100 (BST) From: Kamil Konieczny To: linux-crypto@vger.kernel.org Cc: Kamil Konieczny , Herbert Xu , Krzysztof Kozlowski , Vladimir Zapolskiy , "David S. Miller" , Bartlomiej Zolnierkiewicz , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 0/2] crypto: s5p-sss: Add HASH support for Exynos Date: Wed, 25 Oct 2017 17:27:33 +0200 Message-id: <20171025152735.11382-1-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.14.1.536.g6867272d5b56 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsWy7djP87pVaz9EGkx5amOxccZ6Vos551tY LLpfyVj07fvPaHH+/AZ2i/v3fjJZXN41h81ixvl9TBb/fzUzO3B6bFl5k8lj2wFVj02rOtk8 /i2cwuJx8N0eJo++LasYPT5vkgtgj+KySUnNySxLLdK3S+DK2Pl0I1PBFPGKty23WRoYO4S7 GDk5JARMJHrPdDJC2GISF+6tZ+ti5OIQEljKKPGo6zwrhPOZUeLqgvdMMB1HNy1hB7GFBJYx SvTs04Ao+s8o8fz5IbAEm4C5xKPtZ4AaODhEBBQk5n3VAalhFrjIJLG44QZYjbCAi8T3QztZ QWwWAVWJDZ/ngZ3BCxS/8uQqO8QyQ4mDG2czgjRLCExhk9jQPpkVIuEi8abpLlSRsMSr41ug bBmJy5O7WSAa+hkllt84xQ7VzShxfNpVqB+sJQ4fvwg2iVmAT2LStunMIKdKCPBKdLQJQZge Eot+l0NUO0rcv7OdDeLjWImz+6YwT2CUWsDIsIpRJLW0ODc9tdhIrzgxt7g0L10vOT93EyMw ak//O/5xB+P7E1aHGAU4GJV4eAWmv48UYk0sK67MPcQowcGsJMLLUfohUog3JbGyKrUoP76o NCe1+BCjNAeLkjivbVRbpJBAemJJanZqakFqEUyWiYNTqoEx6/edzL23bf/nvn927cb9jtiW TQ8ma7yp/cKU8UG94tQDg68JMvMP29vOv85x4dvv+KW9N3rrc5esDnl0Ukv/8k/fx/Yn/Q4v nKv9ebHLZ5ao2Rb3QiKdk9rUBf2e/8y17rGbcGrZUbnZe2czLSpIP+Nuu5u1Zf0Wo9WMwvrr ODo7XzZflrjlpcRSnJFoqMVcVJwIANQwK4XWAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplluLIzCtJLcpLzFFi42I5/e/4Nd2qtR8iDXavV7TYOGM9q8Wc8y0s Ft2vZCz69v1ntDh/fgO7xf17P5ksLu+aw2Yx4/w+Jov/v5qZHTg9tqy8yeSx7YCqx6ZVnWwe /xZOYfE4+G4Pk0ffllWMHp83yQWwR3HZpKTmZJalFunbJXBl7Hy6kalginjF25bbLA2MHcJd jJwcEgImEkc3LWGHsMUkLtxbz9bFyMUhJLCEUWJlw2ZGCKeRSWJF03JmkCo2AXOJR9vPMHUx cnCICChIzPuqA1LDLHCZSWJm92+wScICLhLfD+1kBbFZBFQlNnyexwhi8wLFrzy5CrXNUOLg xtmMExi5FzAyrGIUSS0tzk3PLTbSK07MLS7NS9dLzs/dxAgMpG3Hfm7Zwdj1LvgQowAHoxIP r8D095FCrIllxZW5hxglOJiVRHg5Sj9ECvGmJFZWpRblxxeV5qQWH2KU5mBREuft3bM6Ukgg PbEkNTs1tSC1CCbLxMEp1cAYedpAzIchuMZv3uJa28vv77WL8YW8Drmq0Hr1p75P/YfFd2fb urMEbAh2eP3xzSbHjlMeU+vF5h2b+S5yG2fVqZRiBn+93+tUUns287sceauczRRkYzf7bXr0 pLKCN1VlQT79f11ZbuamWiXpuH9g09x9YpvnJeXaXdVZR1d+2aR6XIGB9akSS3FGoqEWc1Fx IgDALEfmIAIAAA== X-CMS-MailID: 20171025152754eucas1p2854a8c48544949585dcbfdd0286ad499 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171025152754eucas1p2854a8c48544949585dcbfdd0286ad499 X-RootMTR: 20171025152754eucas1p2854a8c48544949585dcbfdd0286ad499 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First patch change spaces to tabs, second adds HASH support for Exynos. Changes: version 8: - fixes suggested by Vladimir Zapolskiy: drop first condition check in s5p_hash_import, delete unused include delay.h, fix typo in commit message, fix descriptions of struct s5p_hash_reqctx and function s5p_hash_final() version 7: - fix ifdef into if(IS_ENABLED()) as suggested by Krzysztof Kozlowski version 6: - fixes suggested by Vladimir Zapolskiy: change HASH_OP enum into bool, fix comments, change int into unsigned int in several functions, change some functions to return void, remove unnecessary parentheses in s5p_hash_import, replace rctx with ctx for request context, drop some dd vars and use tctx->dd instead, simplify s5p_hash_rx, s5p_hash_copy_result and s5p_hash_set_flow, change int final into bool final, reoder some declarations, split patch into two - rewrite and fix while loop in s5p_hash_copy_sg_lists - rewrite while loop in s5p_hash_prepare_sgs version 5: - fix suggested by Krzysztof Kozlowski: change defines HASH_OP into enum, fix comments version 4: - fixes suggested by Krzysztof Kozlowski: reformat comments, convert context flags into two bool vars, drop SSS_ALIGNED, change name of SSS_DMA_ALIGN and SSS_DMA_ALIGN_MASK, split assignments into separate lines, use IS_ENABLED in place of ifdef, remove sss_hash_algs_info and simplify register and deregister HASH algs version 3: - many fixes suggested by Krzysztof Kozlowski: comments, uppercases in const, remove unused defines, remove unused variable bs, constify aes_variant, remove global var use_hash, remove WARN_ON, improve hash_import(), change goto label into 'out' in s5p_hash_handle_queue(), reorder variable declarations, add spinlock to protect clearing HASH_FLAGS_BUSY - simplify code: replace one-line functions s5p_hash_update_req(), s5p_hash_final_req() with call to s5p_hash_xmit_dma(), and delete them - replace call to s5p_hash_hw_init() into s5p_ahash_dma_init() and delete it - fix clearing shash flag CRYPTO_TFM_REQ_MAY_SLEEP - fix s5p_hash_set_flow() version 2: - change patch format so number of lines drops - change in Kconfig as suggested by Krzysztof Kozlowski, add EXYNOS_HASH subsection - change #ifndef EXYNOS_RNG into #ifdef CRYPTO_DEV_EXYNOS_HASH - remove style fixups in aes, as they should go in separate patch - remove FLOW_LOG, FLOW_DUMP macros and its uses - remove #if 0 ... endif - remove unused function hash_wait and its defines - fix compiler warning in dev_dbg - remove some comments - other minor fixes in comments Kamil Konieczny (2): crypto: s5p-sss: Change spaces to tabs crypto: s5p-sss: Add HASH support for Exynos drivers/crypto/Kconfig | 14 + drivers/crypto/s5p-sss.c | 1596 +++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 1505 insertions(+), 105 deletions(-) -- 2.14.1.536.g6867272d5b56 From 1582243877515929738@xxx Wed Oct 25 15:29:08 +0000 2017 X-GM-THRID: 1582241984334359464 X-Gmail-Labels: Inbox,Category Forums