Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp222425rwd; Mon, 12 Jun 2023 12:30:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7C5x9HcUKzwAjh+cbBx6JCY6WOVzg+MUBhzZU+oyTqVlzr9cMTOGDXP5oGXvK8xDvLV6Kg X-Received: by 2002:a05:6402:2546:b0:509:c551:c00c with SMTP id l6-20020a056402254600b00509c551c00cmr9961012edb.2.1686598231342; Mon, 12 Jun 2023 12:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686598231; cv=none; d=google.com; s=arc-20160816; b=UW1ty5FBbP6/FCgABv6Te86XOont8RhfSlyRckGpCVSEemMKbY3Sb0551OBD9dozTk wTq0r8gafB+Etl4oc6vI/zFJ+ZEylZ8HQAoLD2Rr2dpyIkDO/VGAYlZhjxSX2rH6xAGk P/U1fu578fDV/9uRNyEXx/WIJY9qf52LG5q63NU/lJ72ahj2g8w+i7TtXPZJLGu77KEm HWsIuyGCESUNQUOvoTTXNfrzkzz92maKvy+CjyCbibP5Mla44mcMKRCN0BGwdpU/AvPY l5uDX4Z6EgSLsEaVgS26E6/ih2agvrjsXeK7G4z9OZiXrAOEo440ltNbzetpZWBUdRpm ESzA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nJZJSaEZDg70TXbshUH3X07m1qzGMFDczgD0hVDQgVw=; b=X7jOMRZCYRCnE0MT5shtvKyB0vKNqG5rb6Z/zgbn5KrVh5x+Xa/Tc5HPXTVrYfZjrv xlOTRTtsVbVZVUa5rTSBlxFqo1BcIyE7ETHo5NaNwjm3AxCQ7oYvW2zPPVvIgCAkbxRc AHyaEfYX+a3gRD5C3aWrj1vRMT3KWcqQx2y77m/ibNV3XS9xPGIxlDiDAsQ61y2lVmDr h8CmKKu6PcIbQzC9MhtUxXBHN+TRcHBBHykYcvZee0PiTtUTSbOWqAqPGr5JWnts/cCo 17oNUW4A6ru/FO6Uw+tZ/nsqB1uoi9lq5fNCnYZHe6YaN6Kh6hR/d0lCxkqNcRj4i1m/ HZSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cp7o0HoG; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020aa7d950000000b00518276f92a0si3631492eds.389.2023.06.12.12.30.00; Mon, 12 Jun 2023 12:30: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=@linaro.org header.s=google header.b=cp7o0HoG; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237901AbjFLT3D (ORCPT + 99 others); Mon, 12 Jun 2023 15:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236807AbjFLT3B (ORCPT ); Mon, 12 Jun 2023 15:29:01 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 219D81718 for ; Mon, 12 Jun 2023 12:28:53 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f6e68cc738so35826115e9.1 for ; Mon, 12 Jun 2023 12:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686598131; x=1689190131; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nJZJSaEZDg70TXbshUH3X07m1qzGMFDczgD0hVDQgVw=; b=cp7o0HoGkxtGnWAvfPLUcigk1NXL22/mysLv2Xtu+BWI9J/YI7aKTBLHbf+4S4De4b IJ3Qtv7wM6Mp4sN/lKa+Fo/8ldPIx23PT7wxeeBbZdZ+LJx8ULV8nTuWoKAiq3aGtWtB cU5KBL+/AIJrdiRDrHJDK2+uHxSx/QePtYDhRp76VSJ/XozzWlcYGOkk5JahdeJRXLgD RAdHnAFdjI4UjLTBzCLQqrbZzWasP271gPYWjPH35aaZ84rXWbqFi8RtsYKlAos/VRLl yFN+YFWqZvuwtb/hvdK6GH/hNSHC6SrR/3Wn32b1FK10iZDlyfHUZljdNjgegR9bT+6S HdoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686598131; x=1689190131; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nJZJSaEZDg70TXbshUH3X07m1qzGMFDczgD0hVDQgVw=; b=kps2KlCLr5TWSAI5TCHf3ScJOWK0fEZX55MuW4+3xVLiKaUhoEY7BytvSKlAFggjoK PAro88Le48K13DCo6+84nc6XVmLSBAlGjXnBG92/185Xa4IhNeHui+JSsERkGbhY8udG Sdr30ij7CnZlX+Z4o9WLSysSHy5oVlTU/QhOtOl9syX3xKh402BG6hiLsTb8ho0Wbjzl PtFFZJD+MdVHEwwi1Fo5rorK45ldK0Yql++QMXO5EDzS4vneKKGG8POY+Xv1Dr1bh98+ I6WaoyMF/8++Ennl9dKqDPXMvHB+Nv7rsUD97zKGwL+oKR97lu2ZqMV+JnSVx4r6aNbP LjSQ== X-Gm-Message-State: AC+VfDz9wB3XtiVRnpF9Lg7O+l79+Uklvp/QWo1sINIeGLqs9SHFS0nU Y5uGsoSRlu3DWvVnVYrn4kQXQA== X-Received: by 2002:a05:600c:2190:b0:3f7:395e:46a2 with SMTP id e16-20020a05600c219000b003f7395e46a2mr6389324wme.16.1686598131498; Mon, 12 Jun 2023 12:28:51 -0700 (PDT) Received: from hackbox.lan ([86.121.163.20]) by smtp.gmail.com with ESMTPSA id a7-20020a05600c224700b003f60a9ccd34sm12286861wmm.37.2023.06.12.12.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 12:28:50 -0700 (PDT) From: Abel Vesa To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , 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 Cc: 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: [RESEND v7 0/3] Add dedicated Qcom ICE driver Date: Mon, 12 Jun 2023 22:28:44 +0300 Message-Id: <20230612192847.1599416-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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 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. The v7 is here: https://lore.kernel.org/all/20230408214041.533749-1-abel.vesa@linaro.org/ Changes since v7: * rebased on next-20230609 Changes since v6: * Dropped the patches 1, 3 and 6 as they are already in Bjorn's tree. * Dropped the minItems for both the qcom,ice and the reg in the qcom,ice compatile subschema, in the ufs schema file, like Krzysztof suggested 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 (3): dt-bindings: ufs: qcom: Add ICE phandle scsi: ufs: ufs-qcom: Switch to the new ICE API mmc: sdhci-msm: Switch to the new ICE API .../devicetree/bindings/ufs/qcom,ufs.yaml | 24 ++ drivers/mmc/host/Kconfig | 2 +- drivers/mmc/host/sdhci-msm.c | 223 ++++------------ 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 +-- 8 files changed, 176 insertions(+), 454 deletions(-) delete mode 100644 drivers/ufs/host/ufs-qcom-ice.c -- 2.34.1