Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp346808rwb; Mon, 26 Sep 2022 20:25:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6rwMN2R4uKBWP3c/+f01HKc3gu1DoZAcA8HI3A3cRUT24OURjmlP7Zp/GQFP8k4J8o+UOM X-Received: by 2002:a17:90b:4d05:b0:202:ec78:9d73 with SMTP id mw5-20020a17090b4d0500b00202ec789d73mr2142381pjb.103.1664249135389; Mon, 26 Sep 2022 20:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664249135; cv=none; d=google.com; s=arc-20160816; b=xIS7OBwphNHnyawR0c/QKUaz7qnF80BL0PoKbAHOmG64fckR1sW3y8nGgC7pSms4ZL YAmrpaPhH+LrkLAQKm88gQj8AUYW1En3EQXE+jEWTcwuhub1l1bs08Kli13N+xu49ReI rrkXcM6d3pPZeg9mz/oOBTOdhA4GMBms1pdKck2bW9BQ5U8EZZqu+AjURaWR1UWNWPE3 lnvICXrwLoCMeOWNwfAipL5guAg5n+V4dsq2y7DAtQJFZVM/N7rRlzNPCfV/6qpngjT3 vA7qjsG1YSlpwgA60bIcJpuYloukT+OtjSKq0apqOHrIPzp8C89q2JQKfjun1DpEdbBG U/kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=0o4BTnNa2d6Zn/BuTMKNiov47z5LKJG8v2S+UHbT4EY=; b=RxyNAuLT40ybpuDD9DTzZMla+Z/ieGGXbaoOo5g4O3a2wP0YLdX7w5GOS/d/KxTWdl HevToO7ZCsar30rQ4AHp3tOVvMRkg3UApIBk6FovJyLVI5a/PaMtHjDZLiKjUxLVH+aL RQdGznlQAegTrA7iF5x7vBc0I8Banu3ldCIQ5OWt2rZAfu6k9KtKJQYOIRafvL1WCHUp qO6ZQVaM9TrX/KCYprmUphGA2Vp3RI7yxrbJRLtw//HoVydE+SM9p3pmj2ln6ZWgQ21P gLZJXFDCXPcAhxxNX7Q8cXNbgfA4L1OaAJXPej+KtjWJDJnY6z5zvfhjk7rCgv02d4jR jChg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maxlinear.com header.s=selector header.b=qIaA8Iuy; 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 t8-20020a17090aba8800b00202b6975a96si12885214pjr.56.2022.09.26.20.25.20; Mon, 26 Sep 2022 20:25:35 -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=qIaA8Iuy; 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 S229794AbiI0DTC (ORCPT + 99 others); Mon, 26 Sep 2022 23:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbiI0DSf (ORCPT ); Mon, 26 Sep 2022 23:18:35 -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 0029F855A1 for ; Mon, 26 Sep 2022 20:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxlinear.com; s=selector; t=1664248625; 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: references:references; bh=0o4BTnNa2d6Zn/BuTMKNiov47z5LKJG8v2S+UHbT4EY=; b=qIaA8Iuyu1smM3aJLwJ84D6/AdW3l7ICA+s5VSThroA5TDSvK4pzDWSjPdazXAJPXac8S5 8FR7mPf5VxghWceNSSPV0Dan+FZZMQhIwmcdoiJzMeF7c4d4eDFvrn+GiWEkj1kyC9VzM/ 1zxYUQNNilZsOHP9JTIbMEcoO54+QvHQktANUm3mimAC9GtgMTL/AAgYt3/C4cPdeXXyrc lkEGk8+GXDBExHDUzh8T9uWm7dWA2aGwSd8AChUiAnM5ballhJ+Zge17G+UqpTAwpTV76c NbFIzEOREQfGS5Ip8mjF8P3AtNSpcD9W+zZi1dvXaUiwrcfxK0ReswqbjsdFEA== Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2109.outbound.protection.outlook.com [104.47.55.109]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-669-hEzdPG1rMQyLZapAwdZPZw-2; Mon, 26 Sep 2022 23:17:02 -0400 X-MC-Unique: hEzdPG1rMQyLZapAwdZPZw-2 Received: from DM6PR19MB3163.namprd19.prod.outlook.com (2603:10b6:5:19a::23) by PH0PR19MB5346.namprd19.prod.outlook.com (2603:10b6:510:d9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Tue, 27 Sep 2022 03:16:57 +0000 Received: from DM6PR19MB3163.namprd19.prod.outlook.com ([fe80::d02e:2c4b:c65b:36b2]) by DM6PR19MB3163.namprd19.prod.outlook.com ([fe80::d02e:2c4b:c65b:36b2%4]) with mapi id 15.20.5654.026; Tue, 27 Sep 2022 03:16:57 +0000 From: Peter Harliman Liem To: Antoine Tenart , "herbert@gondor.apana.org.au" CC: "linux-crypto@vger.kernel.org" , linux-lgm-soc Subject: Re: [PATCH 1/3] crypto: inside-secure - Expand soc data structure Thread-Topic: [PATCH 1/3] crypto: inside-secure - Expand soc data structure Thread-Index: AQHYzMc6iqtdBZ+VvU+yV/J0URY7ZQ== Date: Tue, 27 Sep 2022 03:16:57 +0000 Message-ID: References: <131f0d802d4e251dd8f98672260a04c2f649440c.1663660578.git.pliem@maxlinear.com> <166392414185.3511.12102278740497366855@kwain> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR19MB3163:EE_|PH0PR19MB5346:EE_ x-ms-office365-filtering-correlation-id: ee55ffc5-2300-4b4c-e011-08daa036bc3e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: kHpGNWx4UW99HGEwaj7FHcGBVVgSJJTi0a+274al1O5KT/iDBX8v6Iu3SH5Wywdij+8EgkHzpzY8pNxSDqzij0KBK1N1OVn8Qr6SS302Ys0dBUMPV+xm23LXl96CdEAOUzqssJ6JT19mq+ebXlNZ3Z4JigWBZAtb8d4iBPBlzgUSv9AbIhESwklu2BH2zUO0gosNtUQIQ4YRrmxvlRHxAcBWcYQw8fgkGcI+LA917IQ2unHAlW3l3O5zUq5E0eGec432Qx5eEDHpmh3QwA6J9BhM1qqYTMsNQcvDX7z5x0meCDfgWYkoutM1ZWMfN07PP/wz2yyNOK0nRkzYQKSvGcZPKPvG8BV4prr9FosvofD1AY6M/vzAcSaTt7jzmpOzaEUSDugG1bMOaR0TNJipdv5LQn3UPzMiRvfkUryS+3wswPaPibRngiwjnh324PIUhwgTc5mQdc5EHanHQg5iZ6LC1X4ZkKuyu6TbSjt1TNmoLFjqx4vthXMoPdIqIR0X7PKXsbfsa+SEXXpYxhGZJt442OZD4MNPZ50NxzirHfWY+iLgf72GHQZ7ci4NOXDGnGoWoNEZA/F6yfAd5kHLQXnbSzc0Q+WOLpf1R65Ao+dpA6a4yjEDiXcX9nyGuWqftxP4cgmSvDkM1hfG0HHuHG6v1doUIrtLtRnUhYMOMgeCQJD1Xoev0YArCa31+76y5+bsd80jDP7AubwYnSUT6cVJpcQ1sHFojCZ7qq+/Q9VHovmzwP3jAaSNoY+cu9jBdyt5sj06NvdvTMkkdtBIJg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR19MB3163.namprd19.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(39850400004)(366004)(136003)(346002)(376002)(451199015)(86362001)(64756008)(66446008)(66476007)(66556008)(8936002)(52536014)(33656002)(5660300002)(4744005)(2906002)(41300700001)(66946007)(4326008)(76116006)(91956017)(8676002)(54906003)(316002)(110136005)(38070700005)(55016003)(122000001)(83380400001)(38100700002)(71200400001)(186003)(9686003)(26005)(53546011)(7696005)(6506007)(107886003)(478600001);DIR:OUT;SFP:1102 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FuHjUBCG1rOr9Xc9oQRXeVm1uHmSUFEcN5Ydm2qVRwn+JpxmdTqZ0kIJcw2N?= =?us-ascii?Q?ylLKLKBEUkz5IJySE3z/j9rQdWdbb2JHy31IrhnhirBCBx8ohiyS7t5wY842?= =?us-ascii?Q?SfQijdLgsLoc2Wbqlb+mCccKzSOx1jyYdg19ohLbwgDNLMoj+pMM7jL9N11g?= =?us-ascii?Q?dI51s0hex58kdCzVouKGiBCKqntFBZ4MZba8gmQgjct8GFEhyGfX26GbnOvZ?= =?us-ascii?Q?UN6KffbJwhsmvofYGJc+AofY0vtcKiWLb+95pYhFVAWuLFlX6vJMt2ghb3Qz?= =?us-ascii?Q?iJJ0YSjvWcZ15+f7yi6XrdT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A7?= =?us-ascii?Q?60TtXq+xsfQkE/w6bEgSIufcUiaJr1EWpUC3LPkfaS4tcujMlSoK2chO/9F+?= =?us-ascii?Q?0QbMjvPlEn2fiNuUbcqQOD4AGbFS/FV+NJbISHz/iJFlnQ03UsH/mxswcY7T?= =?us-ascii?Q?igPGq/cku7l1/B0RqYkecYoaYEHXigyjrQrit8mNHQXXFl+8O15g7rYw9cbb?= =?us-ascii?Q?xL5LxsS6EcA/H3mtsuitBLjtp1L8QAqfegkyZm0sChthUupDZguEnds4GgY8?= =?us-ascii?Q?Y1ljEfx7Bxi8ggBW3tVKIslu7dGrSpEK1kDrUySzsuVYZZFRq1zyq9B+U7jm?= =?us-ascii?Q?fe7sd/1tv2zD6DJLlVYTikcK4cbJWunkNjVr9m6GqMTQWnNiecHAU27MwBzC?= =?us-ascii?Q?hnNW2fJC7i9vTYyElNYhqiBbktpUDVGvt5NCdIFsUyJePrzMTe+Om+F9mYB9?= =?us-ascii?Q?Fw=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: maxlinear.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR19MB3163.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee55ffc5-2300-4b4c-e011-08daa036bc3e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2022 03:16:57.2949 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: dac28005-13e0-41b8-8280-7663835f2b1d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1u3sEXBWbpWX1tTF6bBv72xNDvpF3KwJZZry2hB1NCkPxhKPRROZsE/4tmOzzzJBu75fEOeTYnPCZoYtWqd+hQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR19MB5346 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: maxlinear.com Content-Language: en-US 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 On 23/9/2022 5:09 pm, Antoine Tenart wrote:=0A> Quoting Peter Harliman Liem= (2022-09-20 10:01:37)=0A>> + default:=0A>> + /* generi= c case */=0A>> + dir =3D "";=0A>> + }=0A>=20=0A> Why "g= eneric case"? We shouldn't end up in this case and the logic=0A> changed af= ter this patch: an error was returned before.=0A>=20=0A> The if vs switch i= s mostly a question of taste here, I don't have=0A> anything against it but= it's also not necessary as we're not supporting=0A> lots of versions. So y= ou could keep it as-is and keep the patch=0A> restricted to its topic.=0A= =0AThis change has been removed in v2.=0A=0A>> {=0A>> = .compatible =3D "inside-secure,safexcel-eip197",=0A>> - .d= ata =3D (void *)EIP197B_MRVL,=0A>> + .data =3D &eip197b_mrvl_= data,=0A>> },=0A>> {},=0A>> };=0A>=20=0A> The pci_device_i= d counterpart update is missing.=0A=0AI missed that. Thanks for catching.= =0AUpdated in v2.=0A=0A>> +struct safexcel_of_data {=0A>> + enum safe= xcel_eip_version version;=0A>> +};=0A>=20=0A> The driver supports both of a= nd PCI ids, you can rename this to=0A> safexcel_priv_data.=0A=0AUpdated in = v2.=0A=0AThanks!=0A=0A-Peter-=0A