Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5503845imm; Mon, 23 Jul 2018 00:23:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdT3JuNZGkjzYWoIS7U42uJrbB/8CcIgJKEdH4j/1SIl8GQcp10URdJKSYs+61EW3flKLnY X-Received: by 2002:a63:6501:: with SMTP id z1-v6mr11294987pgb.419.1532330589210; Mon, 23 Jul 2018 00:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532330589; cv=none; d=google.com; s=arc-20160816; b=sqpgGxwpnQuWd8OCGS74BQRvjEySTQQ0dXdv3jggVwasW0Z1ElFfjiR6MCMZZ9WqBw FUNREothA71lIMdZDp2uYbt2xCYNNeonrTrOvrcJv0yuPhG1xlb80J+kuDinjt6OYPCk cO9w9kaOYcrZQLRNynHn7rUfl4S3HEFNOhH4DcZfusrI9V3cCsegdhlXJW785t1aoONJ funAd1M0O2zKSL0n/B8dRmEJxw+9xwBb63GAMDtt/1zVzs2N2OJ2rnb6/9WX44wgN2ko GS62NdNZFS9UnLIbnvn9Fwb4OTFoQ+VWxrhQfeSgxv4vbcXCGyGPjk7JY9Dcck3gzO+o 1tJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=O8s4F2Kki6oHbWk09DKVfqD3VkFdO6gBvny0XmnuIlE=; b=TCSXnIVgSUNSU8/4dE9n/fR+vIA4crgf2g3BWQajIjdQ1d7oVJbm9oVVqj3sgupmTP P8tIzGac5h5QkZ1L6SNeewV2H5UpJPlcyR4nXwqILPg1WaDKgeK5uSAFECAnx9Yh5iUG WFZMCZWzLL6JWCecqjTlzdFf0bKPeae4hdcMKy7Np80xaQXMGf76dptF6irRkL5dhWg7 jX0y5/K5iQArchfl0YM1nACY1wekKc/pyI2Gp/N5qEiBHHdt/PwDZFFqspFjpdZ/fqXh k9lO2DpL1sb9zPpJsgjmaHnKsKWR06qV7CNeSv05LNX4wRnMv9C06JyNQ7cpnMHOBWZc cRww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g69-v6si7902578plb.297.2018.07.23.00.22.54; Mon, 23 Jul 2018 00:23:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387955AbeGWIVx (ORCPT + 99 others); Mon, 23 Jul 2018 04:21:53 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42587 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387775AbeGWIVx (ORCPT ); Mon, 23 Jul 2018 04:21:53 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 3FCB8207B0; Mon, 23 Jul 2018 09:22:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-78-122.w90-88.abo.wanadoo.fr [90.88.20.122]) by mail.bootlin.com (Postfix) with ESMTPSA id 0B279206A6; Mon, 23 Jul 2018 09:21:52 +0200 (CEST) Date: Mon, 23 Jul 2018 09:21:52 +0200 From: Antoine Tenart To: Olof Johansson Cc: Antoine Tenart , Herbert Xu , David Miller , Gregory CLEMENT , Andrew Lunn , Jason Cooper , Sebastian Hesselbarth , linux-crypto@vger.kernel.org, Linux Kernel Mailing List , Thomas Petazzoni , maxime.chevallier@bootlin.com, miquel.raynal@bootlin.com, Nadav Haklai , oferh@marvell.com, igall@marvell.com Subject: Re: [PATCH 13/14] arm64: dts: marvell: armada-cp110: update the crypto engine compatible Message-ID: <20180723072152.GA3456@kwain> References: <20180628151544.22134-1-antoine.tenart@bootlin.com> <20180628151544.22134-14-antoine.tenart@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Olof, On Sat, Jul 21, 2018 at 02:35:01PM -0700, Olof Johansson wrote: > On Thu, Jun 28, 2018 at 8:15 AM, Antoine Tenart > wrote: > > New compatibles are now supported by the Inside Secure SafeXcel driver. > > As they are more specific than the old ones, they should be used > > whenever possible. This patch updates the Marvell cp110 device tree > > accordingly. > > > > Signed-off-by: Antoine Tenart > > --- > > arch/arm64/boot/dts/marvell/armada-cp110.dtsi | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/marvell/armada-cp110.dtsi b/arch/arm64/boot/dts/marvell/armada-cp110.dtsi > > index 2bf083272a87..bb2914f90048 100644 > > --- a/arch/arm64/boot/dts/marvell/armada-cp110.dtsi > > +++ b/arch/arm64/boot/dts/marvell/armada-cp110.dtsi > > @@ -427,7 +427,7 @@ > > }; > > > > CP110_LABEL(crypto): crypto@800000 { > > - compatible = "inside-secure,safexcel-eip197"; > > + compatible = "inside-secure,safexcel-eip197b"; > > So the device is still compatible with the less-specific binding, > right? If so, it should probably have both compatible properties in > there, not just the more specific one. Using "safexcel-eip197" as a compatible was a mistake as there's no such thing as an eip197, they all have minor versions (such as 'b'). I've thought about using the compatible for a less specific binding, but this isn't true for the other patch, using the compatible ending in "-eip97". The engine it supports is the most specific one (i.e. with the largest number of algorithms supported). So it would simply not work, and as we only have a few device trees supporting the engine as of now, I thought fixing this by removing the wrong compatible was a better solution (of course the driver is backward compatible, and using the old compatibles will still work). Thanks, Antoine -- Antoine T?nart, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com