Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp339861rwb; Mon, 26 Sep 2022 20:16:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vjkafSAd9eTeqmjy8MPl/dp06tsG2dJg7lqrm3w4uzM17m1ZSQX9ZQSCNwla9vF3dSkXa X-Received: by 2002:aa7:cf89:0:b0:457:3dff:8a4 with SMTP id z9-20020aa7cf89000000b004573dff08a4mr9476326edx.175.1664248591880; Mon, 26 Sep 2022 20:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664248591; cv=none; d=google.com; s=arc-20160816; b=iKyEi+qPCjcxsm9HsK3st1l0BRFXNurymCbHL8y6KL3xUiT4tIlb6I7mVX4W752/pl izxjeeulri8Mi8cvMHtFz6sVb9rKs+2wYi1/2epxgjpeS08CZYvn1En3zXIUhToVrpVE vLmmm7CR56IB8bpdAE+dLg2QUmN8azyDeiJn24U0aKKQ7PVm+hcTEGTqB6816uvcox/J hmfsGU24c+hwqjptdbHSiVm3kYuAc1VoC5L29KqwaGmX2KjGuFXDwavWwo4bQJaK7BS9 RDZznGgSZB73o9ud+tVQ7WNeWhEkGJySBPCvD6Fz9pIyuVQUwRUDixwuPJpD9pnOoRS0 N7tg== 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=iPxt7D78MSmCkt3QR+zGnR1lJY4CjBW9vU4txUhA/m0=; b=yh6r+qv419KnkKwgY7+KBxu4jStTWHzBEVXt3Vwgdn/ArEzKEno3JYU7c86X0pHbSo HjS2md1i3l+nyQkiRUoDkrOWQrdaCBKLRbEx+y/kRk59TnBhvnnUp56LMkiVtQZqJDt+ JKGzvVnGCsxgK5hH95NVX5GCw8Sy8E5JfXevspWUd4ArBULhySflUZkydiWxIl5aylTN OuGqIewcvSAiFlr9Hi5uo+Tkk6mooR6U14jN3qKhOpZcopjmqml+xAzUUtm96+sDj74F f0iTFtGRE7CELxvGal/pjeLAZ7mbtoN3jpsyEBkwEp9zDjGgzn7azaWISfpzz5w7+pK8 DJvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maxlinear.com header.s=selector header.b=iZko2+Mj; 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 m16-20020a1709062b9000b00772fe97b31esi75146ejg.901.2022.09.26.20.16.08; Mon, 26 Sep 2022 20:16:31 -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=iZko2+Mj; 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 S229531AbiI0DN2 (ORCPT + 99 others); Mon, 26 Sep 2022 23:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbiI0DMc (ORCPT ); Mon, 26 Sep 2022 23:12:32 -0400 Received: from us-smtp-delivery-115.mimecast.com (us-smtp-delivery-115.mimecast.com [170.10.133.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E50CF5F9BC for ; Mon, 26 Sep 2022 20:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxlinear.com; s=selector; t=1664248224; 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=iPxt7D78MSmCkt3QR+zGnR1lJY4CjBW9vU4txUhA/m0=; b=iZko2+MjNCNxdnkJG3JMGVDG4PozHA4WEu7vakXpQLF9sCbS9QEKvY38TEU+s5dj9OkFp+ z18TpN1Ss6vY1jfjBfWInff5d56oQv1c0yAcatxcAavQM3nglUes7ANDEzJTANlwqh7Dbb GtVuCaI17C+/Fby/JhbqfojidPc+V5ZooViIsjrq+fS9ZMYDvL07ltiXrNPuPALnhoqqW9 eVo0aYNwSlyPlxjKVGA6DX2Ucv6n0ZpELRnIQYRpGHKLe10g4Ac1RCzpzYpb6Kg6aYBPaB 7nFdRHTjR79loyz7ZoIr/PDin+SO5yR1LwfxUB3JSX5KNxBhwiSOF7n0B/aGdA== Received: from mail.maxlinear.com (174-47-1-83.static.ctl.one [174.47.1.83]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id us-mta-642-qcODJMh8MD2pJryJkWBGJg-1; Mon, 26 Sep 2022 23:10:24 -0400 X-MC-Unique: qcODJMh8MD2pJryJkWBGJg-1 Received: from sgsxdev002.isng.phoenix.local (10.226.81.112) by mail.maxlinear.com (10.23.38.120) with Microsoft SMTP Server id 15.1.2375.24; Mon, 26 Sep 2022 20:10:20 -0700 From: Peter Harliman Liem To: , CC: , , , Peter Harliman Liem Subject: [PATCH v2 3/3] crypto: inside-secure - Add MaxLinear platform Date: Tue, 27 Sep 2022 11:10:10 +0800 Message-ID: <006744b6ac881824ecf0019d4de1e3c01509b308.1664247167.git.pliem@maxlinear.com> 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 | 11 +++++++++++ drivers/crypto/inside-secure/safexcel.h | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/insid= e-secure/safexcel.c index 4d6d64ff9a0f..ae6110376e21 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -421,6 +421,8 @@ static int eip197_load_firmwares(struct safexcel_crypto= _priv *priv) =09else if (priv->data->version =3D=3D EIP197B_MRVL || =09=09 priv->data->version =3D=3D EIP197_DEVBRD) =09=09dir =3D "eip197b"; +=09else if (priv->data->version =3D=3D EIP197C_MXL) +=09=09dir =3D "eip197c"; =09else =09=09return -ENODEV; =20 @@ -1828,6 +1830,11 @@ static const struct safexcel_priv_data eip197_devbrd= _data =3D { =09.version =3D EIP197_DEVBRD, }; =20 +static const struct safexcel_priv_data eip197c_mxl_data =3D { +=09.version =3D EIP197C_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", @@ -1841,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-eip197c-mxl", +=09=09.data =3D &eip197c_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 f049293870b4..6c2fc662f64f 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, +=09EIP197C_MXL, }; =20 struct safexcel_priv_data { --=20 2.17.1