Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp852277ybz; Fri, 17 Apr 2020 11:11:47 -0700 (PDT) X-Google-Smtp-Source: APiQypJRsbjB9tIK48AB71RSFrwIBY3EVSAO9qmmQmeQvZXzuVG+uFi4/22yZYlsoxOcgR7pxdRr X-Received: by 2002:a17:906:6845:: with SMTP id a5mr4072807ejs.143.1587147107037; Fri, 17 Apr 2020 11:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587147107; cv=none; d=google.com; s=arc-20160816; b=Mtnv22q3laEjpQGp2WHA9Ikk2IP+gWN3xTlA2xnoTH/ImLM5qqt7NCFn7moBNMF0dA TFYXxu8wVUZ52WwaiiV9U2ZU8CVL1OaHwuuREB4jNe9nlKaHA3v0g2XyJ52j+Di/fjB5 272IZB6XXg+qk4nRRNzh3oDj7cpR56Q1gOw3DE6YmQfSjxqz+M4XvOJ8AOKQDAZpjqNG j0d0hDLxFWj7xQtFwMiV2HhPWcyKUqhVlwZk7GonAdrD8wY8G8tXbgb6OQ8BbRf1cxas 4oOLo7Ss6TEhB/uRw/DZjJ4hEnEtabmuvTw4qSWcBILpZqPoDDh1jqjcERglAToNoekx b/xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=oiCEJmK0tACS8TZgl1ceI/I0bD1xx/OZpcpK1o4POBw=; b=IZLh0DKzeqbE0XKmfYyMFuplwIVsnNcxLmhrqUfiNp68LYgIlvNv2QON4WmjLCBXXW 7BfEz26+QoIwpcuZv5YW5O+SC3lV7KJUd3y3joIU1I56ewM3b4vcT7nnS9gjKfBcT6T1 ES0+Cki5u3Og/OJvHbVLnjzL4JcRoHjrlNBUQ+N0y773RtGC74i5HxYCbrdjqxWmC7n+ Yx1fHKp4cNrsrNnzyg+kqqT8COWkr6AwftihuCNJANP2CcMWm2hyG2nPhltyhsKv/U9v OXNvD6cVQ2EDPYDB2ATisYF2sbhpyWyQnniQ0WWo1qKN9I3SgGfmczyIun5nldcSHuhp eNJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nAYywgm9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i35si14780054edc.308.2020.04.17.11.11.19; Fri, 17 Apr 2020 11:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nAYywgm9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbgDQSKL (ORCPT + 99 others); Fri, 17 Apr 2020 14:10:11 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:11547 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730261AbgDQSKK (ORCPT ); Fri, 17 Apr 2020 14:10:10 -0400 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200417181007epoutp03bbceebc566203e48edb827b2a8ed2276~GrctrAkFU0173901739epoutp03t for ; Fri, 17 Apr 2020 18:10:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200417181007epoutp03bbceebc566203e48edb827b2a8ed2276~GrctrAkFU0173901739epoutp03t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587147007; bh=oiCEJmK0tACS8TZgl1ceI/I0bD1xx/OZpcpK1o4POBw=; h=From:To:Cc:Subject:Date:References:From; b=nAYywgm9n8BZvjWDbJ8vVDFf3XFBfSFjt/GJ8rs1OX8dCIZKenAeMJiUkYv7I+quK 9IEeFH6R/eULYVZfxjJtGQwbLQij6O+/D7IRMuAc+BAkpmEDRtEHi9VNJ1deaKjrmS DuybnZPtZdxN5GvgEYAlMgrElK7Dg+1B0OCyMjjI= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20200417181006epcas5p24f52712e1e973832095adc673595b5fc~GrcsqvLgV0105401054epcas5p2l; Fri, 17 Apr 2020 18:10:06 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 7C.16.04778.EF0F99E5; Sat, 18 Apr 2020 03:10:06 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20200417181006epcas5p269f8c4b94e60962a0b0318ef64a65364~Grcr_R6fc0105401054epcas5p2i; Fri, 17 Apr 2020 18:10:06 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200417181006epsmtrp13c850803575bf2e50771d3d72ad4fbef~Grcr9T4P60669906699epsmtrp1D; Fri, 17 Apr 2020 18:10:06 +0000 (GMT) X-AuditID: b6c32a4a-353ff700000012aa-07-5e99f0fe34f7 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 2C.D0.04024.DF0F99E5; Sat, 18 Apr 2020 03:10:05 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200417181004epsmtip1781ed587c91bb31ddc46c8aecb30bdca~GrcqI7GJd2094920949epsmtip1E; Fri, 17 Apr 2020 18:10:03 +0000 (GMT) From: Alim Akhtar To: robh@kernel.org Cc: devicetree@vger.kernel.org, linux-scsi@vger.kernel.org, krzk@kernel.org, avri.altman@wdc.com, martin.petersen@oracle.com, kwmad.kim@samsung.com, stanley.chu@mediatek.com, cang@codeaurora.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alim Akhtar Subject: [PATCH v6 0/10] exynos-ufs: Add support for UFS HCI Date: Fri, 17 Apr 2020 23:29:34 +0530 Message-Id: <20200417175944.47189-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIKsWRmVeSWpSXmKPExsWy7bCmuu6/DzPjDH7e1rF4MG8bm8XLn1fZ LD6tX8ZqMf/IOVaL8+c3sFvc3HKUxWLT42usFpd3zWGzmHF+H5NF9/UdbBbLj/9jsvi/Zwe7 xdKtNxkdeD0u9/UyeWxa1cnmsXlJvUfLyf0sHh+f3mLx6NuyitHj8yY5j/YD3UwBHFFcNimp OZllqUX6dglcGbtPHGAsaJSsuPZ9CXMD41ThLkYODgkBE4kPDxm7GLk4hAR2M0p8X38WyvnE KNG88CwrhPONUaLn2y+mLkZOsI4XH+6A2UICexklPi/ghihqYZLYeewjM0iCTUBb4u70LWBF IgLCEke+tTGC2MwCN5gkHqx0AbGFBWwktq7ezQJiswioSvzuPARWzwsU72tvZoVYJi+xesMB Zoi4oMTJmU9YIObISzRvnc0MslhC4DObxLL3p5khGlwktq/+B2ULS7w6voUdwpaSeNnfxg7x c7ZEzy5jiHCNxNJ5x1ggbHuJA1fmsICUMAtoSqzfpQ+xik+i9/cTJohOXomONiGIalWJ5ndX oTqlJSZ2d7NClHhI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bKZaO9ZFb1n/8Jzd+ZerTF93Pysrdqxj3jg/wq5RuuxXYHvm8wnTLjY7dBXfzP04X8vzbtGm 9KNagk+Zt0zO4WBW0ZDzcZ731ubFhl+PZH1jLq/MOD1Ln/ne52Y1t9lfGmybjtuXaR1pa+vx PzkvtejKBSWW4oxEQy3mouJEAK8j1oSRAgAA X-CMS-MailID: 20200417181006epcas5p269f8c4b94e60962a0b0318ef64a65364 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200417181006epcas5p269f8c4b94e60962a0b0318ef64a65364 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set introduces UFS (Universal Flash Storage) host controller support for Samsung family SoC. Mostly, it consists of UFS PHY and host specific driver. - Changes since v5: * re-introduce various quicks which was removed because of no driver * consumer of those quirks, initial 4 patches does the same. * Added Reviewed-by tags * rebased on top of v5.7-rc1 * included Kiwoong's patch in this series, which this driver needs - Changes since v4: * Addressed review comments from Avir and Rob * Minor improvment on the ufs phy and ufshc drivers * Added Tested-by from Pawel * Change UFS binding to DT schema format - Changes since v3: * Addressed Kishon's and Avir's review comments * fixed make dt_binding_check error as pointed by Rob - Changes since v2: * fixed build warning by kbuild test robot * Added Reported-by tags - Changes since v1: * fixed make dt_binding_check error as pointed by Rob * Addressed Krzysztof's review comments * Added Reviewed-by tags Note: This series is based on Linux-5.7-rc1 (commit: 8f3d9f354286) Alim Akhtar (9): scsi: ufs: add quirk to fix mishandling utrlclr/utmrlclr scsi: ufs: add quirk to disallow reset of interrupt aggregation scsi: ufs: add quirk to enable host controller without hce scsi: ufs: introduce UFSHCD_QUIRK_PRDT_BYTE_GRAN quirk dt-bindings: phy: Document Samsung UFS PHY bindings phy: samsung-ufs: add UFS PHY driver for samsung SoC dt-bindings: ufs: Add DT binding documentation for ufs scsi: ufs-exynos: add UFS host support for Exynos SoCs arm64: dts: Add node for ufs exynos7 Kiwoong Kim (1): scsi: ufs: add quirk to fix abnormal ocs fatal error .../bindings/phy/samsung,ufs-phy.yaml | 74 + .../bindings/ufs/samsung,exynos-ufs.yaml | 93 ++ .../boot/dts/exynos/exynos7-espresso.dts | 4 + arch/arm64/boot/dts/exynos/exynos7.dtsi | 44 +- drivers/phy/samsung/Kconfig | 9 + drivers/phy/samsung/Makefile | 1 + drivers/phy/samsung/phy-exynos7-ufs.h | 85 ++ drivers/phy/samsung/phy-samsung-ufs.c | 369 +++++ drivers/phy/samsung/phy-samsung-ufs.h | 142 ++ drivers/scsi/ufs/Kconfig | 12 + drivers/scsi/ufs/Makefile | 1 + drivers/scsi/ufs/ufs-exynos.c | 1289 +++++++++++++++++ drivers/scsi/ufs/ufs-exynos.h | 284 ++++ drivers/scsi/ufs/ufshcd.c | 126 +- drivers/scsi/ufs/ufshcd.h | 29 + drivers/scsi/ufs/unipro.h | 36 + 16 files changed, 2584 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml create mode 100644 Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml create mode 100644 drivers/phy/samsung/phy-exynos7-ufs.h create mode 100644 drivers/phy/samsung/phy-samsung-ufs.c create mode 100644 drivers/phy/samsung/phy-samsung-ufs.h create mode 100644 drivers/scsi/ufs/ufs-exynos.c create mode 100644 drivers/scsi/ufs/ufs-exynos.h base-commit: 8f3d9f354286745c751374f5f1fcafee6b3f3136 -- 2.17.1