Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3297441pxj; Tue, 11 May 2021 00:57:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvzJbA4JnTXbJG93E1AXtOvfAF3Cbk+PlswhCPPlE5B7oJk2hwZQIG3z490fUo1g3/IKxv X-Received: by 2002:a92:c649:: with SMTP id 9mr25683292ill.79.1620719877627; Tue, 11 May 2021 00:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620719877; cv=none; d=google.com; s=arc-20160816; b=hCPtpc0pNBHwcknzEwgOcFGTa3SirXuwYezHP3Bzx2tGpAcPKzEAA7z1Gjk+a+wT93 Rk8IFarE3DOr9mNmmgSt1yhDmMP2dzi90ekg/W0FOg23diLHDXPX8tgwjk0a6hXsVQBq j5AdEBcYRlUH/Pdu7GLhboX9IwyFjsAiPV1cMVZv6aQT+9kOMRVjmk/MABAkdt/VLLkb /rbyrmDBsChuHc6YM4OaQ50us5wTOHaQU/ROPeer7pBEEgi1AWRtuKC9WQOHH6RLVaoj Rh4NtMeMvnRpJ7taK6gniZ+PKK9s03qBUk0YsYy08uNjAVDC6Hri3Oy9vAifoRIOoTBt prxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S/QitPv103F5Fk6w9tFGA9scLWKx6oxLZ4e1nVahMtw=; b=w0eJT0DMJ20ERSeXoXIuDecAEgK3u55Nq2LpvFF1Yl3BdQkY1ZETKtsBF+YhdBQrI7 C6kUH60DmE32D3dctnIZSAaun4aTMVbsGljozGarKPtC2Roerut6s8mxgR+XbdAL+SCK 7wklCp+HzFQUrMO2U0XK0dhE/ZseTUYqHpCTDf8u/JYUhIrEz1dCNW2LISXnnUV1QQkM 8Pd7f90lCEYZjkvsz6ba/ECZ+b1ZxoN24uoLLAJSpQU+Ez2lYyLReQIymWmbYlddE6cI RD6UbjL7nxwUpNlTuF8RgDSKmY8/44p+8POHes0Ta3q6QF9tA/wUGEe35S9mWw7Qlv7J 9QDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=axsYHDrB; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si3815575jaj.66.2021.05.11.00.57.33; Tue, 11 May 2021 00:57:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=axsYHDrB; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbhEKH6b (ORCPT + 99 others); Tue, 11 May 2021 03:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229984AbhEKH6b (ORCPT ); Tue, 11 May 2021 03:58:31 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 364F2C06175F for ; Tue, 11 May 2021 00:57:25 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id l2so19106776wrm.9 for ; Tue, 11 May 2021 00:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=S/QitPv103F5Fk6w9tFGA9scLWKx6oxLZ4e1nVahMtw=; b=axsYHDrBYk9E/3NeWYW7ESe28m0wldJ8ylDI9300hs3QE24udpCkECgjFy53F45wax e5Oe+MUMZo8/v2kkYplL9VVt2Y+l+yNdn+EwQRvZCoHFiyCOTz1tgNweo+rV7i46tz+Z sVvythHQ8qfNTZ4VkoHFeYIoquxoAfYtmN80XpSKJFDLb6FWtO1u4nAzVyVdwe9fSb/s UP44KYTFwB1yhXxon6HSvKzEklWxei5bF6Y32VCQ7OozAXdhwqC78BAZJoBirdA2uUkD bVS2pYYz9GWx2RpJ02g+dR/CIJZFmsjIhcpzYDG7Z6ealA4cxwauxjm7N3oRXN4S5D7n NbqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=S/QitPv103F5Fk6w9tFGA9scLWKx6oxLZ4e1nVahMtw=; b=RRQDoGwhB/M51FYqEdXTZifvcQhtAKaL8Z7IlF99MAWfr8OVw0ggL0UXC4cMzjyMmA ZexUVKGVBct6bxBR2Jenn0lI6RTEqM528K6rOH0A7jKoAya5uxc7CG4PpQQbnJGTZBQo VmhQXkOQO7/47oo6YsMwUhLYkxu4mrc9pWYQuhNwwB/F98yBlz9Xc5oLoPO2XGhBL+wn ladccsiyzOIyExq4/pV2lVVN2NKhkS9fsSY6JyUsDac71oooFkulD7wupeLFZvuXYiYc 4GznHolzVazI1CACSF/6ZxYrY8hHoU5vllNicgwnQ0ZvBVIts8lgRfl8QJkIttx6Y0ZI L3NA== X-Gm-Message-State: AOAM533qX9CuHhJ+FzY8JmpYUaPla7TMYFVBvD0hmomrauT5A/vd35XE kP2I+klRYwnoGNoJeZ5PJQK5w6e/xug= X-Received: by 2002:a5d:5310:: with SMTP id e16mr35088107wrv.321.1620719843880; Tue, 11 May 2021 00:57:23 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id y14sm26225211wrs.64.2021.05.11.00.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 00:57:23 -0700 (PDT) Date: Tue, 11 May 2021 09:57:21 +0200 From: Corentin Labbe To: Linus Walleij Cc: linux-crypto@vger.kernel.org, Herbert Xu , "David S . Miller" , linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , Arnd Bergmann Subject: Re: [PATCH 1/3] crypto: ixp4xx: convert to platform driver Message-ID: References: <20210510213634.600866-1-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210510213634.600866-1-linus.walleij@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Le Mon, May 10, 2021 at 11:36:32PM +0200, Linus Walleij a ?crit : > From: Arnd Bergmann > > The ixp4xx_crypto driver traditionally registers a bare platform > device without attaching it to a driver, and detects the hardware > at module init time by reading an SoC specific hardware register. > > Change this to the conventional method of registering the platform > device from the platform code itself when the device is present, > turning the module_init/module_exit functions into probe/release > driver callbacks. > > This enables compile-testing as well as potentially having ixp4xx > coexist with other ARMv5 platforms in the same kernel in the future. > > Signed-off-by: Arnd Bergmann > Signed-off-by: Linus Walleij > --- > Herbert, David: I am looking for an ACK to take this > into the ARM SoC tree as we want to change more stuff in > the machine at the same time that we want to resolve > there. > --- > arch/arm/mach-ixp4xx/common.c | 26 ++++++++++++++++++++++++ > drivers/crypto/Kconfig | 3 ++- > drivers/crypto/ixp4xx_crypto.c | 37 ++++++++++++---------------------- > 3 files changed, 41 insertions(+), 25 deletions(-) > Hello With minor editing I successfully added this series on top of my fix series https://lore.kernel.org/patchwork/cover/1421865/ With the following patch, I successfully booted my epbx100 board and the crypto driver loaded. --- a/arch/arm/boot/dts/intel-ixp4xx.dtsi +++ b/arch/arm/boot/dts/intel-ixp4xx.dtsi @@ -61,9 +61,16 @@ timer@c8005000 { interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; }; - npe@c8006000 { + npe: npe@c8006000 { compatible = "intel,ixp4xx-network-processing-engine"; reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>; + + crypto { + compatible = "intel,ixp4xx-crypto"; + intel,npe-handle = <&npe 2>; + queue-rx = <&qmgr 30>; + queue-txready = <&qmgr 29>; + }; }; }; }; So you could add Tested-by: Corentin Labbe Thanks