From patchwork Mon Jun 12 19:28:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 691786 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C48A7C7EE43 for ; Mon, 12 Jun 2023 19:29:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237648AbjFLT3D (ORCPT ); Mon, 12 Jun 2023 15:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236853AbjFLT3B (ORCPT ); Mon, 12 Jun 2023 15:29:01 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FB3172A for ; Mon, 12 Jun 2023 12:28:53 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f736e0c9a8so35875415e9.2 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=ZbPdweCdP4vV1kORTjGZavawDzKE2wYJtNB3EGOI/AlSTg0s7K/Si9UnymLA2J2OSY k/6ZBWUZWpkOBMTA/Zg8mQwQ5nvHA3PoH4W4Mg1678aO5ijnatS2z834iI0dySReN3pc CsetTyl2U0lUPcxExfK0AcooprNimC758i2BmgIopQn3RNJD0gY204BRLWXbv3b7aoVp fldP6fkv5ac8A3iuGySRuK7F/dOF2bLsTNutaXDhr+Ax7BqKTDN/J2w5J9CuDb8GLuxt muEkER7SQx75gK4dcqHwiNX8WU0vJ3zTVJTpndTaTTyfBlivjpC26zEimHeUe0TcnpxM ivLg== X-Gm-Message-State: AC+VfDy6iIVVxknuiaEhJfcLe817Siv1vbvIsydMuokOj8hyN0B+2rWy 0q+fSj8rsyvPhHoP6b5Pxvp3sg== X-Google-Smtp-Source: ACHHUZ5OzKiW3U57XN0Htaa50N2NhdLd5CFniE1NlCW4kDpPPcqYy2HPZOQKXayyvEEZJhY+ya0Wwg== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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