Message ID | 20230612192847.1599416-1-abel.vesa@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp93313vqr; Mon, 12 Jun 2023 12:41:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JlNasg0LusGGrahK+uxgh4hHhjZjU2p/NtzX6R7kQ0J2sITLYO8Ly41Bm+U392SfFqx/l X-Received: by 2002:a05:6a20:54a6:b0:10e:dc7d:cbbe with SMTP id i38-20020a056a2054a600b0010edc7dcbbemr12951071pzk.25.1686598888835; Mon, 12 Jun 2023 12:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686598888; cv=none; d=google.com; s=arc-20160816; b=jDRkmBlsGwp8J+fEXlvnBPeFIPty8JDmImaI/4eKbPtMhQJOUqJRaUNE+mAGxj4yd9 d/si+lTpWDUu1TTMFsJPUgAY1GpHiouTYFyaNI2laO6XalvdywfCO2V2qHLu+XdOGBbe FsszzIuuFXUcAMYUBoqFCnRTnxCrDv5WUh3gi+e4owc9y1w9F/bhvlrLlA497CZSKyeL oFsPurXityY0adMJ1awmM6AtjhnXJp87kyHxzEuClwBFbZP3jVGJuidiBguTp4im0AS9 uIpNPDQBUIDJUxe/cKr4BLBARrUmvxDxw/gSG/77A2c2cBX8aV6ierGn+rrCFpk23Gtl IBmg== 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=QSYBGTdyimNzo9Hxj/FvO4R9KxtHQqCpSMwtY/wd6Mx4R4ew7V5QYxoCKGIy4f6g8z JItE9eYra4aW49HluMLOE4+Yywbz/5b87O32g2HPmoJgjt1Ob+J+8jkP1NiS5nndugPA nJsCAwOPrrL35qBT54zDBINmNa1XkhYubqw+++OvyDDsRi/+mkupafOPx3q0RyLbETH7 E7DcxJwBC5Ja2T0lSrpU/HMr9eTtHyw/Gvn1oToUxT/uywTvs9b6On1pr/DpN0okcq1G nGPQ/5bsntYgKciShAan1O4AES6sms/RlQGXw/Feikpkb9iAN++bGTXN3JkTVFa+Z59Q UdrQ== 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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h62-20020a625341000000b00663a7024b50si4868591pfb.201.2023.06.12.12.41.17; Mon, 12 Jun 2023 12:41:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S235149AbjFLT3E (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 15:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234808AbjFLT3B (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 15:29:01 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D7D1720 for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 12:28:53 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f6dfc4dffaso35880765e9.0 for <linux-kernel@vger.kernel.org>; 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=E4cgpoCIfVpjO31bGSRXAXmWpHTQoREnMm7zGnFgFKDkZThvlivrDg/4fATNTEFgtH v9Bb2j0nrEan+fDApH1+a8OoSWYdzJ+NXrVhU2cpZuP0uvBG6AontQ+cZfv4AxS0wDRp KIoJlJ5or+CiWr1H9hkASDYhZ3g8i8U+boDVbsOdPj3P2pNHkYWrWmyTIHfaceZXflPz qvYUK9OzP62sZtPFM2vI9PDBdiDu3weZ6IGcK4NY82Y0OIYLW23BKytntvg2sHN3QKWl 9b+ljb+91LRhf4lAFD41TmmvBoic8OYbrYLxmryXqW7VE1Tf9vq3yrlrTjzWNoDSqHYY dGVw== X-Gm-Message-State: AC+VfDzjveKGMRhRiH0pJC6DcrkD0M9TwL041wn/kvGUIisi5QcQ8quS yhNZB+JXW+D4wIbIPosnxD3oVg== 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 <abel.vesa@linaro.org> To: Ulf Hansson <ulf.hansson@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Manivannan Sadhasivam <mani@kernel.org>, Alim Akhtar <alim.akhtar@samsung.com>, Avri Altman <avri.altman@wdc.com>, Bart Van Assche <bvanassche@acm.org>, Adrian Hunter <adrian.hunter@intel.com>, "James E . J . Bottomley" <jejb@linux.ibm.com>, "Martin K . Petersen" <martin.petersen@oracle.com>, Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Eric Biggers <ebiggers@kernel.org> Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, 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=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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768527116446252061?= X-GMAIL-MSGID: =?utf-8?q?1768527116446252061?= |
Series |
Add dedicated Qcom ICE driver
|
|
Message
Abel Vesa
June 12, 2023, 7:28 p.m. UTC
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
Comments
Abel, > 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. Applied 1-2 to 6.5/scsi-staging, thanks!