Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3555935rwb; Tue, 20 Sep 2022 01:05:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TT+TFwSMG3Mng6fZ0zZfZWCpc8Vmlxce66YSUMLTYOI/cQ9jSUDUzJzz/4WIv7pdgocPS X-Received: by 2002:a17:906:847b:b0:773:db0f:d533 with SMTP id hx27-20020a170906847b00b00773db0fd533mr15872532ejc.0.1663661141064; Tue, 20 Sep 2022 01:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663661141; cv=none; d=google.com; s=arc-20160816; b=Be9QDz3ZBA4C4GyG2czeQF8ZhEdBt3fZ+LDi9YWTxWSBOFzdbE5YCExb6UUAQ2vijH 0W8rJyGAdcpUFF8LOrLVlRsWV2TDVbcff1maacDT9+YDZF42snPoJyQkrX+srwpbL4zn 7+lgoQCsuWT53fpsJKRDRfLsFsYNpvITqQLJMWog7514qm8gTehQ1wMjxGU/FpqjCgaH uTp+PxUvY4RVuNIy5pGyeuLRWHRlr/8ksoNVu/XibqD78f/2kWTQ+/R3XvwDjNVX2kC2 qhmDA58NKPgOVFWAXcaGvxBqoa2FnKaxolKhFhZUDre+q9QdZ5/zrF2xVJ1k9JMl3uGG mg5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ouPEC3kvQ0ao0uh8YN4F3GFPf1No8spzAha5/ht5RO0=; b=mdpzYygxzD7dLcgOA09Awk5cOnSDpgbtkqGPRyl3be/TtVPSq6vnnnHAUATpgkFkHP nBS9ejxNQvSc25CNZRggm6xO1l2rBeI87SLUvelzYAWXEDFr/AZp0Qr0LT23SUfZVgRp yKGr53Qv19J3mvz1JfxkdA12C2jIbgfYkaKJSiaZUZNNvDAfJtfUhQtsj5MKVq+Nl3pF jAtH1L3FqJ4b9du8KW/0BLXNHdy+RKGwNoCxgAFsBDF+Ks1URsA5nL0chWYM+rO07aRR rOUEhH4Rp+b47ZWZf0pjl0RmyLpU8Kmi1ObOZiD7xzP+GlcW9z+sXQ5Cs2DHdtjA0rzi WzRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maxlinear.com header.s=selector header.b=HGTNXCJK; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=maxlinear.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170906b10900b007707ab4be28si646575ejy.972.2022.09.20.01.05.16; Tue, 20 Sep 2022 01:05:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maxlinear.com header.s=selector header.b=HGTNXCJK; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=maxlinear.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231263AbiITIDV (ORCPT + 99 others); Tue, 20 Sep 2022 04:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbiITIBy (ORCPT ); Tue, 20 Sep 2022 04:01:54 -0400 Received: from us-smtp-delivery-115.mimecast.com (us-smtp-delivery-115.mimecast.com [170.10.129.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D68A642C8 for ; Tue, 20 Sep 2022 01:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxlinear.com; s=selector; t=1663660910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ouPEC3kvQ0ao0uh8YN4F3GFPf1No8spzAha5/ht5RO0=; b=HGTNXCJK11DAo+e0DUnVri9yf1s6tjip0JyFT7ezYNqkCfQsr9P1hmsmJ119soMBDi7NQU kbeFulUmlS5ZQqMKQNcLl0rxzfcvFC//Ld3iUh0nPFFa58kKitIOr6M4Rc+O922yq2sV0a noa0EeV3F548Zytt1Ux+PCeahc5lx5DGWc7vqTgXbaHJ2EzVxg2fn/T6rxMVCIbQhzBAR2 8fPlYMLFqEzhe0byacCXeSqR/B1ObK+woQdgQqHcjZt8Fe6YaPkvb6vlXn+94HnHb8UJNm uvryYkSDEknLgv1Bx5Fnw1srKfCJnOGSoMriKWbrqbICcRbrfsm/XKaKp9LmXA== Received: from mail.maxlinear.com (174-47-1-84.static.ctl.one [174.47.1.84]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id us-mta-235-qkySXk_lNHylBziHljehCg-4; Tue, 20 Sep 2022 04:01:49 -0400 X-MC-Unique: qkySXk_lNHylBziHljehCg-4 Received: from sgsxdev002.isng.phoenix.local (10.226.81.112) by mail.maxlinear.com (10.23.38.119) with Microsoft SMTP Server id 15.1.2375.24; Tue, 20 Sep 2022 01:01:45 -0700 From: Peter Harliman Liem To: , CC: , , "Peter Harliman Liem" Subject: [PATCH 3/3] crypto: inside-secure - Add MaxLinear platform Date: Tue, 20 Sep 2022 16:01:39 +0800 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: maxlinear.com Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This is to add MaxLinear platform into compatible id. Firmware endianness option is added since MaxLinear firmware is in little endian format. Signed-off-by: Peter Harliman Liem --- drivers/crypto/inside-secure/safexcel.c | 9 +++++++++ drivers/crypto/inside-secure/safexcel.h | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/insid= e-secure/safexcel.c index 955170d2dd7c..4b7c18db290c 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -1830,6 +1830,11 @@ static const struct safexcel_of_data eip197d_mrvl_da= ta =3D { =09.version =3D EIP197D_MRVL, }; =20 +static const struct safexcel_of_data eip197_mxl_data =3D { +=09.version =3D EIP197_MXL, +=09.fw_little_endian =3D true, +}; + static const struct of_device_id safexcel_of_match_table[] =3D { =09{ =09=09.compatible =3D "inside-secure,safexcel-eip97ies", @@ -1843,6 +1848,10 @@ static const struct of_device_id safexcel_of_match_t= able[] =3D { =09=09.compatible =3D "inside-secure,safexcel-eip197d", =09=09.data =3D &eip197d_mrvl_data, =09}, +=09{ +=09=09.compatible =3D "inside-secure,safexcel-eip197-mxl", +=09=09.data =3D &eip197_mxl_data, +=09}, =09/* For backward compatibility and intended for generic use */ =09{ =09=09.compatible =3D "inside-secure,safexcel-eip97", diff --git a/drivers/crypto/inside-secure/safexcel.h b/drivers/crypto/insid= e-secure/safexcel.h index a89dd8dc1ddd..078dbfb2b094 100644 --- a/drivers/crypto/inside-secure/safexcel.h +++ b/drivers/crypto/inside-secure/safexcel.h @@ -730,7 +730,8 @@ enum safexcel_eip_version { =09EIP97IES_MRVL, =09EIP197B_MRVL, =09EIP197D_MRVL, -=09EIP197_DEVBRD +=09EIP197_DEVBRD, +=09EIP197_MXL, }; =20 struct safexcel_of_data { --=20 2.17.1