Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1674792imm; Tue, 2 Oct 2018 12:02:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV61K9PJvEBWj/q1TxXb8cyVoRe0sTgVg14yt/8bK9ejjS17YJ4w3y/cRINZ+wmBTbB7bL/N9 X-Received: by 2002:a63:7b09:: with SMTP id w9-v6mr15899773pgc.385.1538506940053; Tue, 02 Oct 2018 12:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538506940; cv=none; d=google.com; s=arc-20160816; b=ud8vypiYE/bjXi3AVCtzprR5eC3XZl6xyWqgJEvOPGNUTNslMHchutb8/Fzm48i65n TN4wuVBrE8mKzU57z26o5TaaSIsmIyLy+YyKrSwnVig9pTpTwl39Sggdy5EdIyuXcWWR Ul3pjUpMOaGtWJYnSXbXKECSw7c+uyGm52IQhRanKN/ICQPHrtLX+Tu/HLsNjPbR7pT3 HX4h8Ds0Gvywdyjt9WBiX4tWUVJ+ezd02CiKdLKJWmp9SRi0oKvgohkBT0rB4OonWWgc WKO8qxE7IrJ5j22MtQ6Ora9xA1X83eLgKwnDZfI9X1pXGsBodVp1UyYxrO9rYgph3l1u S5Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=8fjM5DlSTcqG19/QDkPj7kuldjDjPmE5YSqnYVUF7QM=; b=WycQ4nr2C9SOylb6kZT9DAZl5c9FFhW6ngJtBBdyql4N3XBOHJqFFedAhGU2Fx1H1s If1PJB5MFilFxWv4a0dM/SdDxZTEpZt75XDM3f17+k26FeyuboJwJHakqDghNfcs9gl+ AAtIwVXxne99yeRHySWFAb798hxXlWMWsXUJ2aoQcLYDQx5Pj1aa1LTTNIGT2D1Sf6KS 1K4D/HaSnVLX9xoQ4zeeu2EIq8ZkcPbeb7krt8DSsOw7IqmwhuB91omvY8lCd30ujpuA dYe/CMsE8KB0NFZ5RBeo8CBP+8vMHWaC4VCzFOF2wgFWVmc3JdIv7ngWkh4w4gnXpVpp qRjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=TBOz52an; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n32-v6si15873399pgm.469.2018.10.02.12.02.05; Tue, 02 Oct 2018 12:02:20 -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=@nxp.com header.s=selector1 header.b=TBOz52an; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727604AbeJCBqk (ORCPT + 99 others); Tue, 2 Oct 2018 21:46:40 -0400 Received: from mail-eopbgr50061.outbound.protection.outlook.com ([40.107.5.61]:57649 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726881AbeJCBqk (ORCPT ); Tue, 2 Oct 2018 21:46:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8fjM5DlSTcqG19/QDkPj7kuldjDjPmE5YSqnYVUF7QM=; b=TBOz52anwo6zHsIkv+TW+gGL1DJ1Ku1k9jmhkcuJq5Fbeqi9u0VONcEgZlJgqJrSnew0UMA714m1UTR9hLbbdpL5NmwJUaGv5NxuqUv3Kv82zbKu7F1JwPj580T0QgWKzKEdGW3xOIs5eOOykswpnbNsvB7Juc54NmlaA0bVVAw= Received: from AM0PR04MB4290.eurprd04.prod.outlook.com (52.134.126.145) by AM0PR04MB4578.eurprd04.prod.outlook.com (52.135.149.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.23; Tue, 2 Oct 2018 19:01:46 +0000 Received: from AM0PR04MB4290.eurprd04.prod.outlook.com ([fe80::3836:6416:4ebd:34ef]) by AM0PR04MB4290.eurprd04.prod.outlook.com ([fe80::3836:6416:4ebd:34ef%3]) with mapi id 15.20.1185.024; Tue, 2 Oct 2018 19:01:46 +0000 From: Leonard Crestez To: Marek Vasut , Fabio Estevam , Herbert Xu CC: Horia Geanta , Franck Lenormand , Shawn Guo , Aymen Sghaier , "David S . Miller " , "linux-crypto@vger.kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , "linux-kernel@vger.kernel.org" Subject: [PATCH 0/3] crypto: mxs-dcp - Fix tcrypt on imx6 Thread-Topic: [PATCH 0/3] crypto: mxs-dcp - Fix tcrypt on imx6 Thread-Index: AQHUWoJdHSYoCZJ8aU2EkbIHywJZiA== Date: Tue, 2 Oct 2018 19:01:46 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [95.76.156.53] x-mailer: git-send-email 2.17.1 x-clientproxiedby: HE1P190CA0020.EURP190.PROD.OUTLOOK.COM (2603:10a6:3:bc::30) To AM0PR04MB4290.eurprd04.prod.outlook.com (2603:10a6:208:67::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4578;6:NnBLhWcS0VVEYiG3F/ORHdvbWW/q5MaufYIKA2QbQPtm3R82actAPaQ8zE86bC4cq2EhQ2f0NbQnD8exw2YXi217vCeDcJFwPu/YHC84M78ol0cUhfMn/WhXpWlIU77DEmKtW3A3M2++SsbWLlKRSycLep88mKiWckv85m+Dsq1TfgmhkLqCv6UwpEHo3VBRvmzC0X/jtSD2j2BAEJQRJhxvm06Krkt9lu/fnSU8AczxI/iRMBxkuNb3B89bslysfzjw1yzSMBUEJSHKoVKb78CNWJGIkIJysOXkj7EQ//PMf/dGAMXZFKEdXhqHLD5i4acJJzwVTRUg3hXOgSvG7WIFxXyUor1sw7pkffKBQjyGvu4yAmwcsTaTf/zlaeNtKZcaImCE6dS6ToTxUMfheGUT7kJRJggptYKmqD3ZCEQqZ86AnOLySdlPXveVBJziTTl+HIt2/qtAxpEDJzfkvg==;5:LXImM5LbkkckcM30rwtlv3EY/5LSmSvawKUV//0IQVxYHnaaAbVQMWAugn0NfK7RdMwGxd6tMO8JpH+qJR8uxKir8SUZPqcUKj4nybDrALLzN5mmsv6vuc7bjAhk4vj3z0KsBGSaXgM8x+/qZ+tIuAO9NmtqLkwRX7sa49D6ONU=;7:3cI1QAGZtZbL62Yv9OOtF4OFhvCwbNp1J20Z7+86dIbhERTGFcxErXgsl4OwjXtdsMCsV/7hyNlhB9sJyinzru9VuwEjMImpOTQRDunAyxWm1Qj7TD7xR4mjyCBxilqax8UE8dujJkB5JuPdNznw5n/FwZdFkUSbazs+LX74a5hLr/Az/VM3md/HzmvOkYTxseAaSeIc96ECLfYN5wkvff7yxgeAvJDPWN/4NvNKKMznIam95HLsO0IwQZgzvgHo x-ms-office365-filtering-correlation-id: 3a27ac07-b69e-4d31-cc38-08d628997ff5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4578; x-ms-traffictypediagnostic: AM0PR04MB4578: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201708071742011)(7699051);SRVR:AM0PR04MB4578;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4578; x-forefront-prvs: 0813C68E65 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(136003)(376002)(346002)(39860400002)(366004)(189003)(199004)(25786009)(6506007)(386003)(966005)(71200400001)(71190400001)(8676002)(86362001)(81156014)(26005)(81166006)(66066001)(68736007)(486006)(186003)(50226002)(102836004)(256004)(2616005)(44832011)(478600001)(305945005)(476003)(7736002)(8936002)(6306002)(53936002)(39060400002)(97736004)(5660300001)(36756003)(6512007)(2900100001)(52116002)(316002)(110136005)(3846002)(99286004)(4326008)(5250100002)(6116002)(54906003)(106356001)(14454004)(6486002)(2906002)(105586002)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4578;H:AM0PR04MB4290.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: guX1DWRGvNKO3f8zHimjePPLH8dderm7haUd2w2lvfU3cu3k8VmU4ml+CF7PqVY8nO8U3O1mkdEZarpITfqdzGAbtToZff14cF730F9hwTgvOVc931V50X6goWP5b+PCLHmeTbN44pdij8AEHS3yBirESifXiEro+EVV1bZg84bzhxhXTcH0SwSxUHDuDfFltPMdNr58fsfHlJrEJYhbZiZxbr/SYbIdaY/CAzS/FUB1K8J0sk1eBFkBZIa348+Mzqg310nZJDpfR/lmaXXjQeybY2Dar43xJcInip1Z0XYxAN+F+vsIsVMNX4TFI+NeQIFI9ym1Rbu5gFOzNnJhkJU5FfZySxSMXIk6bZkXnUU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a27ac07-b69e-4d31-cc38-08d628997ff5 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2018 19:01:46.6379 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4578 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mxs-dcp driver currently fails to probe on imx6. Fix the whole thing by porting a cleaned/squashed version of fixes carried in the NXP vendor tree. Tested with "modprobe tcrypt" and CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=3Dn on imx6sl imx6sll imx6ull: no failures. I'm not very familiar with crypto and did not write write these fixes so a skeptical review would be appreciated. Previously: https://lore.kernel.org/patchwork/patch/989652/ Dan Douglass (1): crypto: mxs-dcp - Implement sha import/export Radu Solea (2): crypto: mxs-dcp - Fix SHA null hashes and output length crypto: mxs-dcp - Fix AES issues drivers/crypto/mxs-dcp.c | 121 ++++++++++++++++++++++++++++++++------- 1 file changed, 101 insertions(+), 20 deletions(-) --=20 2.17.1