From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22BF9C4332F for ; Mon, 18 Oct 2021 12:45:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 13F26610A1 for ; Mon, 18 Oct 2021 12:45:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231818AbhJRMrh (ORCPT ); Mon, 18 Oct 2021 08:47:37 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:52864 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbhJRMr0 (ORCPT ); Mon, 18 Oct 2021 08:47:26 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20211018124514epoutp02e64cf007c3c9733c43105bb13a397d57~vIKxF7Jlg0581205812epoutp02N for ; Mon, 18 Oct 2021 12:45:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20211018124514epoutp02e64cf007c3c9733c43105bb13a397d57~vIKxF7Jlg0581205812epoutp02N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1634561114; bh=2yK8hED749QszIIrfrFDo/NEjUuWI6KG7B3Gm0sgmnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pmxe6GaXMx50uDSsMpprLL3fjUcMs6cdjyeybEc+ElcMIhWxYJ/BCWusA/lqBOk7Y xMwIBwa3VEJ9HO0Qz+oaEwSks173WwuNp3D4Q86QrO3H1PsjA8qbi1nMZw7KI49CP4 Vy1IBq9jL9n+iKovj4GnEewjazPJL8RV2fu/EWNs= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20211018124513epcas2p1fb3fc498275eb5b0301bc4e949fb8ff0~vIKwKuiQE2115521155epcas2p1T; Mon, 18 Oct 2021 12:45:13 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.90]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4HXxRP5Pt8z4x9Q1; Mon, 18 Oct 2021 12:45:05 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 49.D9.09823.15C6D616; Mon, 18 Oct 2021 21:45:05 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20211018124505epcas2p143bb8374e3399e2670ced625862a8653~vIKo3ffnI2115521155epcas2p1H; Mon, 18 Oct 2021 12:45:05 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20211018124505epsmtrp216366a9e9e7d8b14fbee0a91242541bb~vIKozmESa2052720527epsmtrp2J; Mon, 18 Oct 2021 12:45:05 +0000 (GMT) X-AuditID: b6c32a48-127ff7000000265f-16-616d6c5181d4 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id A9.40.08738.05C6D616; Mon, 18 Oct 2021 21:45:05 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20211018124504epsmtip2947f06696b5630ac3f80a717bce289cd~vIKom0r4N0377703777epsmtip2c; Mon, 18 Oct 2021 12:45:04 +0000 (GMT) From: Chanho Park To: Alim Akhtar , Avri Altman , "James E . J . Bottomley" , "Martin K . Petersen" , Krzysztof Kozlowski Cc: Bean Huo , Bart Van Assche , Adrian Hunter , Christoph Hellwig , Can Guo , Jaegeuk Kim , Jaehoon Chung , Gyunghoon Kwon , Sowon Na , linux-samsung-soc@vger.kernel.org, linux-scsi@vger.kernel.org, jongmin jeong , Chanho Park Subject: [PATCH v5 02/15] scsi: ufs: add quirk to enable host controller without ph configuration Date: Mon, 18 Oct 2021 21:42:03 +0900 Message-Id: <20211018124216.153072-3-chanho61.park@samsung.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211018124216.153072-1-chanho61.park@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01TbUxTZxTee2+5LR/FSwV9RzJH7iSEbkDbtPTWibLg9DrQYVgWwxbYXXsH SL/oLcxNl7C5IaUIqAvMVgarYTo2JHR8OlBAFiUjmxvqQHEoH1F0jNKaCehwLbdu/nvOOc/z nJxz3leAiiawSEGe3syY9LSWwIJ47edjFXG7tDpa0lYRSw5OfYeRN79sx8iZxSsY2XfLwiOr XYso6W7+OoAcPvciWd6VQv5U5UDIqWYbSjpG2hFyZKkkgPzmKkm2zC4g5Be/nEVI6++dGHny wjJCPlzsR5JF1PDlVMpWfAijhisOIdT3p8TUie4ZhHI2WjCqytELqAfNpRg1P32NR1W0NgLK 41xHHey1Iukhmfkbcxlaw5iiGL3aoMnT5yQRqRnZKdmKRIk0TqoilUSUntYxScSWtPS4rXla 72xEVBGtLfSm0mmWJRI2bTQZCs1MVK6BNScRjFGjNSqN8SytYwv1OfF6xrxBKpHIFF7iO/m5 p/sq+Ub7qr1DR37gFYPRkDIQKIC4HLo9DVgZCBKI8E4A75/t4HOBG8ARyxDCBR4Amz45CJ5I bBN2v+QMgLfqmvySeQCrbnyK+lgYHgdbb98FvkI4Pgfg1OTnKywUn0HhlUEP38dajavhWMsy 5sM8PBpe/LvUqxYIhPhm6H4UxLV7Hg4sWVZMA/FkWO4YQHxYiIfBwWNTPB9GvZwDbXbU5w/x OwK4UO4APh+Ib4HVjW9zPqvh3QutfA5HQs9fPRjHtwL42cRjf+FbAC0fp3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LfPrDBTFfXuLIr05mEJtTwEGiZ9ERJohd9hKLX84Gi/MKCEqcnPmE BcRmBqpv3jqbeQKjwCwkqVlIUgsYmVYxSqYWFOem5xYbFhjlpZbrFSfmFpfmpesl5+duYgRH n5bWDsY9qz7oHWJk4mA8xCjBwawkwpvkmpsoxJuSWFmVWpQfX1Sak1p8iFGag0VJnPdC18l4 IYH0xJLU7NTUgtQimCwTB6dUA5Pg87b5+yQ3G7/fk1asHf2gvSNkxt+UbY3qr+uk/kffPr8+ q3duZNcz6SXfgxnybsvIWFUEHvoQEFcgupbh2/H3Lxfxhgjt9av98X5a2PfbXy8XunofONwX pbCjUOz9lvkJm3pcv64/+oaFiVEndN/TbRvTrx1eefZltlLo7ifbbaccst0dKVzb82393dil dcbl+kc4J+Uo6n8zXdfmNOXk1InnnokazJ7B6nbEaNOLnq4/X+bK5Xxt1/PbfSKKsyCPJ1H9 hdXLjd0XHVTTMiyXTT7iwsyc7rg65e03fT+On+WZ3BprxV3yk5sFp6Td/zO39/UtNi955j72 KkFWuXzGuvJFh80vC/f4aMVoRiixFGckGmoxFxUnAgAalSEFLQMAAA== X-CMS-MailID: 20211018124505epcas2p143bb8374e3399e2670ced625862a8653 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20211018124505epcas2p143bb8374e3399e2670ced625862a8653 References: <20211018124216.153072-1-chanho61.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: jongmin jeong samsung ExynosAuto SoC has two types of host controller interface to support the virtualization of UFS Device. One is the physical host(PH) that the same as conventaional UFSHCI, and the other is the virtual host(VH) that support data transfer function only. In this structure, the virtual host does not support like device management. This patch skips the physical host interface configuration part that cannot be performed in the virtual host. Suggested-by: Alim Akhtar Cc: James E.J. Bottomley Cc: Martin K. Petersen Cc: Bart Van Assche Reviewed-by: Alim Akhtar Signed-off-by: jongmin jeong Signed-off-by: Chanho Park --- drivers/scsi/ufs/ufshcd.c | 3 +++ drivers/scsi/ufs/ufshcd.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 3dbfae32599c..a25b88721b34 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -8010,6 +8010,9 @@ static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params) if (ret) goto out; + if (hba->quirks & UFSHCD_QUIRK_SKIP_PH_CONFIGURATION) + goto out; + /* Debug counters initialization */ ufshcd_clear_dbg_ufs_stats(hba); diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 5d39aeb2bccb..0c474432f2ed 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -595,6 +595,12 @@ enum ufshcd_quirks { * support UIC command */ UFSHCD_QUIRK_BROKEN_UIC_CMD = 1 << 15, + + /* + * This quirk needs to be enabled if the host controller cannot + * support physical host configuration. + */ + UFSHCD_QUIRK_SKIP_PH_CONFIGURATION = 1 << 16, }; enum ufshcd_caps { -- 2.33.0