Received: by 10.223.164.221 with SMTP id h29csp1857345wrb; Wed, 25 Oct 2017 07:59:03 -0700 (PDT) X-Google-Smtp-Source: ABhQp+S41Ux2T0QzjRaaxd3+fT7vvZQnE/fknI48Lpvv+xR+wj0f5OAfbuTg0TpnHglgPctBRm3K X-Received: by 10.99.114.29 with SMTP id n29mr2238009pgc.237.1508943543031; Wed, 25 Oct 2017 07:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508943543; cv=none; d=google.com; s=arc-20160816; b=V/8dHH5YF8cNz27nEV1u7mVPXYRx0UL8eM9o2gPHVAZk0ItP3B38spbeLthEiSxP+G fYwMDVPlPc4Y2MTb7X93ByV1suM6qF3p9NOF5rVRtFrTHQshxRIqYdbHbs7aSBPvvbf6 ChEoJ4io8ZVEIyeH9QfIEsgb3YZR+geoDCATqxc+kHcScxj9JVbA5V1Ayzq0V4AnU+JY xEovZ99hFYbhE3X+r3okSyDL/8cf8ffCHGse50TpXDhMK0VjGEJ42yCquTzqfUsDDpas xFkRkyDQDYKK98JZGyO6HANy0cg0xObTTuRouiZqbNDJ0oz3lTEiN9z7EF5vkmq54DdE D/tA== 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=sreVj1r9THf01a+woJbhtf70yXdFHNdex0EzK47TS+vM4cZex0FMCgMLdY+Thocfbi xkXD65tG4PgAQ1D8Plm/SdHksSQKUMox1vF482vFLzbAzFPOiGuCuYMegb3lfi4JB2aO veGk7wvcC/LjtViZUiS4K/nbsdgwtdAIXYmpcGoDOJgciJq81gAcsrbzsxWLqCyDqqRI mFWD8cJ8+iGo3ylBV2Ws9SRYPFQsJqW7K9dkGLCFt3yAaCqELjOvEoO+q3bsp/E7h2xB WCC6y/1bybSXvYikvwwQcso/uo9HqF9VqWE/Z/x5lXZngR7B4ZlKueAmnZsZ9Ydq2y5K Xltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CXk2+yzT; 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 44si1683187pla.69.2017.10.25.07.58.45; Wed, 25 Oct 2017 07:59:02 -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=CXk2+yzT; 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 S1751951AbdJYO6L (ORCPT + 99 others); Wed, 25 Oct 2017 10:58:11 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:42921 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750823AbdJYO6H (ORCPT ); Wed, 25 Oct 2017 10:58:07 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171025145805euoutp01d45a15a434dac70b3398bde51a19c8d4~w2BsE65jb1148311483euoutp01g; Wed, 25 Oct 2017 14:58:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171025145805euoutp01d45a15a434dac70b3398bde51a19c8d4~w2BsE65jb1148311483euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1508943485; bh=U0l6b0Rdz9DMi3X/hTXxlnQjY1JF5Vds4T2xQkGi/Ak=; h=From:To:Cc:Subject:Date:References:From; b=CXk2+yzT/Pt2fGnwdazM0waMMfI4ADZRO9tLyMQCFoqTMO3J0WerD1WS0iMXo9KEg pBEop3OK8xh259+nIiDAz5xtvjJe6h8syPg8eqxmmrOoNbcqXoMgALiwMciQArxBvW PpLNGWjsLddDkZdFRPYHr4NiwrNr+l1o6yip2F9o= Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171025145804eucas1p29e7bd7a66a24995b0094a9cad48ab5bd~w2BrY-ac50738907389eucas1p2v; Wed, 25 Oct 2017 14:58:04 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 48.8F.12907.C76A0F95; Wed, 25 Oct 2017 15:58:04 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171025145804eucas1p26c3abe7d20ebf3afd803ba228daa785f~w2Bqw-zb-0738507385eucas1p2n; Wed, 25 Oct 2017 14:58:04 +0000 (GMT) X-AuditID: cbfec7f1-f793a6d00000326b-3f-59f0a67c256c Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 81.4B.18832.C76A0F95; Wed, 25 Oct 2017 15:58:04 +0100 (BST) Received: from AMDC3218.DIGITAL.local ([106.120.51.18]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OYD00JE0W8D4800@eusync2.samsung.com>; Wed, 25 Oct 2017 15:58:04 +0100 (BST) From: Kamil Konieczny To: k.konieczny@partner.samsung.com Cc: Herbert Xu , Krzysztof Kozlowski , Vladimir Zapolskiy , 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 16:57:44 +0200 Message-id: <20171025145746.9712-1-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.14.1.536.g6867272d5b56 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsWy7djPc7o1yz5EGuz6rGOxccZ6Vos551tY LLpfyVj07fvPaHH+/AZ2i8u75rBZzDi/j8ni2YFtbBb/fzUzO3B6bFl5k8lj2wFVj02rOtk8 dn9tYvT4t3AKi8fBd3uYPPq2rGL0+LxJLoAjissmJTUnsyy1SN8ugStj59ONTAVTxCvettxm aWDsEO5i5OSQEDCR2P1kFTOELSZx4d56ti5GLg4hgaWMEucfP2SHcD4zSpzecJkJpmNp7wyw DiGBZYwSbV11EEX/GSXW/H7BCpJgEzCXeLT9DFiDiICyxOR705lBipgFLjFJPG/vBOsWFnCR +H5oJ1gDi4CqxKpDc8HivALOEh9PnWGB2GYocXDjbEaQZgmBOWwSvw+fYIdIuEi8/dcPVSQs 8er4Fqi4jERnx0EmiIZ+RonlN06xQzhTGCWOT7sK9YS1xOHjF8FWMwvwSUzaBnIfB1CcV6Kj TQiixEPi7+wrrBC2o8SK6z2sICVCArESx49UTmCUWsDIsIpRJLW0ODc9tdhIrzgxt7g0L10v OT93EyMwgk//O/5xB+P7E1aHGAU4GJV4eAWmv48UYk0sK67MPcQowcGsJMLLUfohUog3JbGy KrUoP76oNCe1+BCjNAeLkjivbVRbpJBAemJJanZqakFqEUyWiYNTqoExtqZt5luVjVMXKtjr PkhlDrY7uzIj782Z1DwtPe38xYIL70edmpESXL3AU7HzpdPuJpO7kx7UZRhGKjarbcksTDtS tPvMxqn+yY7bmL8Fm8tNvv+mv1az3uaD7r6Dv5r1V7h+8A+37NeK9SkXcPlb8ZBfUK5c4MW9 YPn7nKxXt3g/Vfn/84MSS3FGoqEWc1FxIgDsIFCh3AIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsVy+t/xK7o1yz5EGty5L2ixccZ6Vos551tY LLpfyVj07fvPaHH+/AZ2i8u75rBZzDi/j8ni2YFtbBb/fzUzO3B6bFl5k8lj2wFVj02rOtk8 dn9tYvT4t3AKi8fBd3uYPPq2rGL0+LxJLoAjissmJTUnsyy1SN8ugStj59ONTAVTxCvettxm aWDsEO5i5OSQEDCRWNo7gxnCFpO4cG89WxcjF4eQwBJGibmbHrJDOI1MEnN3TWQDqWITMJd4 tP0ME4gtIqAsMfnedGaQImaBK0wS37oeMYIkhAVcJL4f2skKYrMIqEqsOjQXbAWvgLPEx1Nn WCDWGUoc3DibcQIj9wJGhlWMIqmlxbnpucWGesWJucWleel6yfm5mxiBQbXt2M/NOxgvbQw+ xCjAwajEwysw/X2kEGtiWXFl7iFGCQ5mJRFejtIPkUK8KYmVValF+fFFpTmpxYcYpTlYlMR5 e/esjhQSSE8sSc1OTS1ILYLJMnFwSjUwarNvqnGK67YWEXx3j/fr9Y/9D73LFTf2FSVUVpU4 eVZbtD75dzzFRmn6CZ4jR1fwGDulGLWdn/dvCZff/W8e15znfTHiPykac+PN9YbfHL2BQhpF Ga4THrz+UubJHrLLrnvykrvxRy/ampfoXLlh9FowJDBQqf6GfPMsg/sr37r3P1rAK71YiaU4 I9FQi7moOBEAKwUCQSYCAAA= X-CMS-MailID: 20171025145804eucas1p26c3abe7d20ebf3afd803ba228daa785f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171025145804eucas1p26c3abe7d20ebf3afd803ba228daa785f X-RootMTR: 20171025145804eucas1p26c3abe7d20ebf3afd803ba228daa785f 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 1582953192151319338@xxx Thu Nov 02 11:23:23 +0000 2017 X-GM-THRID: 1582952918418058539 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread