Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1246357rwl; Fri, 7 Apr 2023 12:18:53 -0700 (PDT) X-Google-Smtp-Source: AKy350bfohUi2DqsyHxYbyWf5zcXdG7PRwUio7ypCOGmn8r9OLfijPg5Yrl7AO95szH52SnQWWVY X-Received: by 2002:a17:902:b701:b0:1a5:1fab:a747 with SMTP id d1-20020a170902b70100b001a51faba747mr358464pls.3.1680895132940; Fri, 07 Apr 2023 12:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680895132; cv=none; d=google.com; s=arc-20160816; b=gKq1O54AkqThBkgRVCN7n4ihbDqMl9MX91RI44QkN3PCBEplVXdMg/8NsryrRXBs+t ZSMXJN/JtLwmSnrNHPC+NT5MVPr2uk4zTNyukPObIxhfsvJWQjZPZia1ZDTiguaUca2c mfftbR/HWwbMNzfxQZYKGqFzSVMKXjeX77S7R2Jl5+5hl+/rn590xQamH0hka6UPirdJ W9OK39AaWCifAqwFmuvUJf/gYVTAexgQKZInJGoyAbZBSFdZGpf0TWzMiPM2KqcnZ5PT iroLtqdhN5LpeLQNPtJy0Om0Nyiw3L+8ws+gjffatqwr7nY/CRH1aWSZZaRLSFjyerVf nPGw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lGKscZSDGUWmLwwdsbii4JUaSsV7UC58h7eOMZpf8CU=; b=mi/LkIgUINnHBxCZBReKRLKAkGe0I38AGs3qpwhIVGaci5NlqFeBSEvNSuueHysfN7 rfjyfd/kZlsxWKvNWC7QehiAh8Fsg5DLA/JpvQofvmq2+803wiC7Zu/LbL5BdCzryM1x Nlj61aAwcrOBzf9s8yuITmagXqT9drTKiXdBzKmi7z720jju5F5kd7J48igacmO0uL/b rkZIBZkFZbkgNVInvPUjuIVlIk+pzBtKMLLsdB3V0ZfyWvzabPfJXd934CHKyzMjr/yJ HrW1tTmc84tVu563nF40QIb0lxJ2ZRMYU01c/2xsSawX9PVjKvrGcISx7ooNh5VPjnfX y78g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MiTiaY4n; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a5-20020a170902ecc500b0019c33978781si4666815plh.283.2023.04.07.12.18.32; Fri, 07 Apr 2023 12:18:52 -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=@kernel.org header.s=k20201202 header.b=MiTiaY4n; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230385AbjDGTSL (ORCPT + 99 others); Fri, 7 Apr 2023 15:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230347AbjDGTSK (ORCPT ); Fri, 7 Apr 2023 15:18:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A477BBB9A; Fri, 7 Apr 2023 12:18:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3F7AF64D51; Fri, 7 Apr 2023 19:18:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 316F4C433EF; Fri, 7 Apr 2023 19:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680895088; bh=v36g2BJAp9VAUH4Pa6BbAM86j6+La0PhFyT56lBz4qk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MiTiaY4nNrXh2Blyn4YPwEYHeW1ZRvk7gDlluFVq7g0F5of484SqgjKjTogpg7PYY U7nFq0OuSg4f3cJ0Slb0/ECgFq1IOCt5bj3lc6EI7yCutpMlbHLZu/5rb9fIhh/xZ7 KZOlhNoAXKw1XOGLEyQH3W4olv3S9pdTRU6y72XxZ1aN/F6sbHsefCN1YokjDYYGfQ XewjP5Wog4DHU8Up85MynErWjvvYhzNr2z80wyNFovvWpxQpOwBUT0u2XQA0fkJdxY j6lBo/q9pJ5y0fcOXnyjYsEaYmAv1Yn0j+DFGJpnzRQcoDBjZqkIyfaEQ1O6F9jAXA xstivBMt6PjzQ== Date: Fri, 7 Apr 2023 12:20:57 -0700 From: Bjorn Andersson To: Abel Vesa Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche , Adrian Hunter , "James E . J . Bottomley" , "Martin K . Petersen" , Herbert Xu , "David S . Miller" , Eric Biggers , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH v6 0/6] Add dedicated Qcom ICE driver Message-ID: <20230407192057.pgccwiie3mriuklp@ripper> References: <20230407105029.2274111-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230407105029.2274111-1-abel.vesa@linaro.org> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Fri, Apr 07, 2023 at 01:50:23PM +0300, Abel Vesa wrote: > As both SDCC and UFS drivers use the ICE with duplicated implementation, > while none of the currently supported platforms make use concomitantly > of the same ICE IP block instance, the new SM8550 allows both UFS and > SDCC to do so. In order to support such scenario, there is a need for > a unified implementation and a devicetree node to be shared between > both types of storage devices. So lets drop the duplicate implementation > of the ICE from both SDCC and UFS and make it a dedicated (soc) driver. > > For now, only SM8550 has been added to support the new approach. This > also involves adding support for HW version 4.x. > I picked the ICE driver and pushed it out to make it possible to pick up the mmc and ufs patches independently. https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git tags/20230407105029.2274111-4-abel.vesa@linaro.org Regards, Bjorn > The v5 is here: > https://lore.kernel.org/all/20230403200530.2103099-1-abel.vesa@linaro.org/ > > Changes since v5: > * See each individual patch for changelogs. > > Changes since v4: > * dropped the SDHCI dt-bindings patch as it will be added along > with the first use of qcom,ice property from an SDHCI DT node > > Abel Vesa (6): > dt-bindings: crypto: Add Qualcomm Inline Crypto Engine > dt-bindings: ufs: qcom: Add ICE phandle > soc: qcom: Make the Qualcomm UFS/SDCC ICE a dedicated driver > scsi: ufs: ufs-qcom: Switch to the new ICE API > mmc: sdhci-msm: Switch to the new ICE API > arm64: dts: qcom: sm8550: Add the Inline Crypto Engine node > > .../crypto/qcom,inline-crypto-engine.yaml | 42 ++ > .../devicetree/bindings/ufs/qcom,ufs.yaml | 26 ++ > arch/arm64/boot/dts/qcom/sm8550.dtsi | 9 + > drivers/mmc/host/Kconfig | 2 +- > drivers/mmc/host/sdhci-msm.c | 223 +++-------- > drivers/soc/qcom/Kconfig | 4 + > drivers/soc/qcom/Makefile | 1 + > drivers/soc/qcom/ice.c | 366 ++++++++++++++++++ > drivers/ufs/host/Kconfig | 2 +- > drivers/ufs/host/Makefile | 4 +- > drivers/ufs/host/ufs-qcom-ice.c | 244 ------------ > drivers/ufs/host/ufs-qcom.c | 99 ++++- > drivers/ufs/host/ufs-qcom.h | 32 +- > include/soc/qcom/ice.h | 37 ++ > 14 files changed, 637 insertions(+), 454 deletions(-) > create mode 100644 Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml > create mode 100644 drivers/soc/qcom/ice.c > delete mode 100644 drivers/ufs/host/ufs-qcom-ice.c > create mode 100644 include/soc/qcom/ice.h > > -- > 2.34.1 >