Re: [PATCH RESEND v7 1/2] block: ioctl support for sanitize in eMMC 4.5

2012-07-17 Thread Yaniv Gardi
Hi Jens, Can you approve this patch? Thanks, Yaniv Looks good to me. Reviewed-by: Maya Erez me...@codeaurora.org On Thu, June 28, 2012 1:32 am, Yaniv Gardi wrote: Adding a new ioctl to support sanitize operation in eMMC cards version 4.5. The sanitize ioctl support helps performing

Re: [PATCH RESEND v7 2/2] mmc: card: Adding support for sanitize in eMMC 4.5

2012-07-17 Thread Yaniv Gardi
Hi Chris, Can you push this patch to mmc-next? Thanks, Yaniv Looks good to me. Reviewed-by: Maya Erez me...@codeaurora.org On Thu, June 28, 2012 1:32 am, Yaniv Gardi wrote: This feature delete the unmap memory region of the eMMC card, by writing to a specific register in the EXT_CSD unmap

[PATCH v9 0/2] *** adding and exposing SANITIZE capability to the user space via a unique IOCTL ***

2013-02-19 Thread Yaniv Gardi
*** adding and exposing SANITIZE capability to the user space via a unique IOCTL *** Yaniv Gardi (2): block: ioctl support for sanitize in eMMC 4.5 mmc: card: Adding support for sanitize in eMMC 4.5 block/blk-core.c |8 + block/blk-lib.c | 51

[PATCH v9 1/2] block: ioctl support for sanitize in eMMC 4.5

2013-02-19 Thread Yaniv Gardi
Adding a new ioctl to support sanitize operation in eMMC cards version 4.5. The sanitize ioctl-support, helps performing this operation via user application Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- block/blk-core.c |8 +++ block/blk-lib.c | 51

[PATCH v9 2/2] mmc: card: Adding support for sanitize in eMMC 4.5

2013-02-19 Thread Yaniv Gardi
for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/mmc/card/block.c | 75 - drivers/mmc/card/queue.c | 10 +- include/linux/mmc/host.h |1 + 3 files changed, 63 insertions(+), 23 deletions(-) diff --git

[PATCH v9 0/2] *** adding and exposing SANITIZE capability to the user space via a unique IOCTL ***

2013-02-19 Thread Yaniv Gardi
*** adding and exposing SANITIZE capability to the user space via a unique IOCTL *** Yaniv Gardi (2): block: ioctl support for sanitize in eMMC 4.5 mmc: card: Adding support for sanitize in eMMC 4.5 block/blk-core.c |8 + block/blk-lib.c | 51

[PATCH v9 1/2] block: ioctl support for sanitize in eMMC 4.5

2013-02-19 Thread Yaniv Gardi
Adding a new ioctl to support sanitize operation in eMMC cards version 4.5. The sanitize ioctl-support, helps performing this operation via user application Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- block/blk-core.c |8 +++ block/blk-lib.c | 51

[PATCH v9 2/2] mmc: card: Adding support for sanitize in eMMC 4.5

2013-02-19 Thread Yaniv Gardi
for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/mmc/card/block.c | 75 - drivers/mmc/card/queue.c | 10 +- include/linux/mmc/host.h |1 + 3 files changed, 63 insertions(+), 23 deletions(-) diff --git

[PATCH v1] mmc: card: Adding support for sanitize in eMMC 4.5

2013-02-24 Thread Yaniv Gardi
is the memory region that was previously deleted (by erase, trim or discard operation). In order to avoid timeout when sanitizing large-scale cards, the timeout for sanitize operation is 240 seconds. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/mmc/card/block.c | 68

RE: [PATCH v8 1/2] block: ioctl support for sanitize in eMMC 4.5

2012-09-09 Thread Yaniv Gardi
by The Linux Foundation = -Original Message- = From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- = ow...@vger.kernel.org] On Behalf Of Arnd Bergmann = Sent: Thursday, July 26, 2012 4:37 PM = To: Yaniv Gardi = Cc: linux-...@vger.kernel.org; linux-arm-...@vger.kernel.org; open = list

RE: [PATCH RESEND v7 2/2] mmc: card: Adding support for sanitize in eMMC 4.5

2012-07-24 Thread Yaniv Gardi
Of me...@codeaurora.org = Sent: Thursday, July 19, 2012 2:25 PM = To: Chris Ball = Cc: Yaniv Gardi; linux-...@vger.kernel.org; me...@codeaurora.org; = linux-arm-...@vger.kernel.org; open list = Subject: Re: [PATCH RESEND v7 2/2] mmc: card: Adding support for = sanitize in eMMC 4.5

[PATCH v8 1/2] block: ioctl support for sanitize in eMMC 4.5

2012-07-25 Thread Yaniv Gardi
Adding a new ioctl to support sanitize operation in eMMC cards version 4.5. The sanitize ioctl support helps performing this operation via user application. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- block/blk-core.c | 15 ++-- block/blk-lib.c | 51

[PATCH v8 2/2] mmc: card: Adding support for sanitize in eMMC 4.5

2012-07-25 Thread Yaniv Gardi
This feature delete the unmap memory region of the eMMC card, by writing to a specific register in the EXT_CSD unmap region is the memory region that were previously deleted (by erase, trim or discard operation) Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/mmc/card/block.c

RE: [PATCH RESEND v7 2/2] mmc: card: Adding support for sanitize in eMMC 4.5

2012-07-25 Thread Yaniv Gardi
= Sent: Tuesday, July 24, 2012 9:56 AM = To: Yaniv Gardi = Cc: linux-...@vger.kernel.org; linux-arm-...@vger.kernel.org; 'open = list'; me...@codeaurora.org; Girish K S; S, Venkatraman; Dong, Chuanxiao; = Stephen Boyd; Jaehoon Chung; Kyungmin Park = Subject: Re: [PATCH RESEND v7 2/2] mmc: card

[PATCH RESEND v8 1/2] block: ioctl support for sanitize in eMMC 4.5

2012-07-25 Thread Yaniv Gardi
Adding a new ioctl to support sanitize operation in eMMC cards version 4.5. The sanitize ioctl support helps performing this operation via user application. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- block/blk-core.c | 15 ++-- block/blk-lib.c | 51

[PATCH RESEND v8 2/2] mmc: card: Adding support for sanitize in eMMC 4.5

2012-07-25 Thread Yaniv Gardi
This feature delete the unmap memory region of the eMMC card, by writing to a specific register in the EXT_CSD unmap region is the memory region that were previously deleted (by erase, trim or discard operation) Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/mmc/card/block.c

[PATCH v1] mmc: card: fixing an false identification of SANITIZE command

2013-06-05 Thread Yaniv Gardi
identified. In order to prevent such a case, the condition is expanded and now it also checks the opcode itself, and verifies that it is an MMC_SWITCH opcode. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/mmc/card/block.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions

RE: [RFC/PATCH 1/3] scsi: ufs: query descriptor API

2013-08-29 Thread Yaniv Gardi
Looks good to me. Reviewed-by: Yaniv Gardi yga...@codeaurora.org QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation = -Original Message- = From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- = ow

RE: [RFC/PATCH 3/3] scsi: ufs: Logical Unit (LU) command queue depth

2013-08-29 Thread Yaniv Gardi
Looks good to me. Reviewed-by: Yaniv Gardi yga...@codeaurora.org QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation = -Original Message- = From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- = ow

RE: [RFC/PATCH 2/3] scsi: ufs: device query status and size check

2013-08-29 Thread Yaniv Gardi
Looks good to me. Reviewed-by: Yaniv Gardi yga...@codeaurora.org QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation = -Original Message- = From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- = ow

RE: [RFC/PATCH 1/3] scsi: ufs: query descriptor API

2013-08-29 Thread Yaniv Gardi
Tested-by: Yaniv Gardi yga...@codeaurora.org QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation = -Original Message- = From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- = ow...@vger.kernel.org

RE: [RFC/PATCH 3/3] scsi: ufs: Logical Unit (LU) command queue depth

2013-08-29 Thread Yaniv Gardi
Tested-by: Yaniv Gardi yga...@codeaurora.org QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation = -Original Message- = From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- = ow...@vger.kernel.org

RE: [RFC/PATCH 2/3] scsi: ufs: device query status and size check

2013-08-29 Thread Yaniv Gardi
Tested-by: Yaniv Gardi yga...@codeaurora.org QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation = -Original Message- = From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- = ow...@vger.kernel.org

RE: [RFC/PATCH 2/2] scsi: ufs: requests completion handling

2013-08-29 Thread Yaniv Gardi
Hi James, See reply inline Thanks, Yaniv -Original Message- From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi-ow...@vger.kernel.org] On Behalf Of James Bottomley Sent: Thursday, August 29, 2013 12:28 PM To: Raviv Shvili Cc: scsi-m...@vger.kernel.org;

RE: [PATCH] scsi: ufs: read door bell register after clearing interrupt aggregation

2013-08-30 Thread Yaniv Gardi
Tested-by: Yaniv Gardi yga...@codeaurora.org -Original Message- From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi-ow...@vger.kernel.org] On Behalf Of Subhash Jadavani Sent: Tuesday, August 27, 2013 11:59 AM To: Dolev Raviv Cc: linux-s...@vger.kernel.org; linux-arm

RE: [PATCH v3] scsi: ufs-msm: add UFS controller support for Qualcomm MSM chips

2014-08-24 Thread Yaniv Gardi
, 2014 8:33 PM To: Yaniv Gardi Cc: james.bottom...@hansenpartnership.com; h...@infradead.org; linux-kernel@vger.kernel.org; linux-s...@vger.kernel.org; linux-arm-...@vger.kernel.org; santos...@gmail.com; linux-scsi-ow...@vger.kernel.org; subha...@codeaurora.org; n...@codeaurora.org; dra

[PATCH v1] scsi: ufs-msm: add UFS controller support for Qualcomm MSM chips

2014-08-12 Thread Yaniv Gardi
The files in this change implement the UFS HW (controller PHY) specific behavior in Qualcomm MSM chips. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-msm-phy-qmp-20nm.c | 254 +++ drivers/scsi/ufs/ufs-msm-phy-qmp-20nm.h | 216 ++ drivers/scsi/ufs/ufs-msm

[PATCH v2] scsi: ufs-msm: add UFS controller support for Qualcomm MSM chips

2014-08-12 Thread Yaniv Gardi
The files in this change implement the UFS HW (controller PHY) specific behavior in Qualcomm MSM chips. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-msm-phy-qmp-20nm.c | 254 +++ drivers/scsi/ufs/ufs-msm-phy-qmp-20nm.h | 216 ++ drivers/scsi/ufs/ufs-msm

[PATCH v3] scsi: ufs-msm: add UFS controller support for Qualcomm MSM chips

2014-08-14 Thread Yaniv Gardi
The files in this change implement the UFS HW (controller PHY) specific behavior in Qualcomm MSM chips. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- Documentation/devicetree/bindings/ufs/ufs-msm.txt | 37 + .../devicetree/bindings/ufs/ufshcd-pltfrm.txt |4 + drivers/scsi/ufs

RE: [PATCH v3] scsi: ufs-msm: add UFS controller support for Qualcomm MSM chips

2014-08-14 Thread Yaniv Gardi
...@vger.kernel.org] On Behalf Of Yaniv Gardi Sent: Thursday, August 14, 2014 5:22 PM To: james.bottom...@hansenpartnership.com; h...@infradead.org Cc: linux-kernel@vger.kernel.org; linux-s...@vger.kernel.org; linux-arm-...@vger.kernel.org; santos...@gmail.com; linux-scsi-ow...@vger.kernel.org; subha

[PATCH v1] Revert scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS

2015-02-02 Thread Yaniv Gardi
This reverts commit 54acb89a8d8682d99ee8594f9ce0dd863a2df80d. Since ICE driver hasn't been uploaded to upstream, ICE support for UFS driver could not be functional at this time. Therefore this change should be reverted. --- drivers/scsi/ufs/Kconfig| 12 - drivers/scsi/ufs/Makefile

[PATCH v7 0/5] phy: qcom-ufs: add support for QUALCOMM

2015-01-15 Thread Yaniv Gardi
Technologies UFS PHYs and the specific UFS PHYs that will be added. Yaniv Gardi (5): phy: qcom-ufs: add support for QUALCOMM Technologies UFS PHY drivers phy: qcom-ufs: add support for 20nm phy scsi: ufs-qcom: add support for Qualcomm Technologies Inc platforms phy: qcom-ufs: add support

[PATCH v7 2/5] phy: qcom-ufs: add support for 20nm phy

2015-01-15 Thread Yaniv Gardi
This change adds a support for a 20nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Makefile| 1 + drivers/phy/phy-qcom-ufs-i.h| 43 +- drivers/phy/phy-qcom-ufs-qmp-20nm.c

[PATCH v7 4/5] phy: qcom-ufs: add support for 14nm phy

2015-01-15 Thread Yaniv Gardi
This change adds a support for a 14nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Makefile| 1 + drivers/phy/phy-qcom-ufs-qmp-14nm.c | 201

[PATCH v7 5/5] scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS

2015-01-15 Thread Yaniv Gardi
From: Yaniv Gardi yga...@qti.qualcomm.com In-order to enhance storage encryption performance, an Inline Cryptographic Engine is introduced to UFS. This patch adds in-line encryption capabilities to the UFS driver. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig

[PATCH v7 3/5] scsi: ufs-qcom: add support for Qualcomm Technologies Inc platforms

2015-01-15 Thread Yaniv Gardi
configuration - Rate, Gear, Mode negotiation between device and controller Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig| 13 + drivers/scsi/ufs/Makefile |1 + drivers/scsi/ufs/ufs-qcom.c | 1004 +++ drivers/scsi/ufs

[PATCH v7 1/5] phy: qcom-ufs: add support for QUALCOMM Technologies UFS PHY drivers

2015-01-15 Thread Yaniv Gardi
This change adds a generic and common API support for ufs phy QUALCOMM Technologies. This support provides common code and also points to specific phy callbacks to differentiate between different behaviors of frequent use-cases (like power on, power off, phy calibration etc). Signed-off-by: Yaniv

[PATCH v6 3/4] phy: qcom-ufs: add support for 14nm phy

2015-01-11 Thread Yaniv Gardi
This change adds a support for a 14nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Makefile| 1 + drivers/phy/phy-qcom-ufs-qmp-14nm.c | 201

[PATCH v6 4/4] scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS

2015-01-11 Thread Yaniv Gardi
From: Yaniv Gardi yga...@qti.qualcomm.com In-order to enhance storage encryption performance, an Inline Cryptographic Engine is introduced to UFS. This patch adds in-line encryption capabilities to the UFS driver. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig

[PATCH v6 1/4] phy: qcom-ufs: add support for 20nm phy

2015-01-11 Thread Yaniv Gardi
This change adds a support for a 20nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Kconfig | 7 + drivers/phy/Makefile| 2 + drivers/phy/phy-qcom-ufs-i.h| 159

[PATCH v6 2/4] scsi: ufs-qcom: add support for Qualcomm Technologies Inc platforms

2015-01-11 Thread Yaniv Gardi
configuration - Rate, Gear, Mode negotiation between device and controller Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig| 13 + drivers/scsi/ufs/Makefile |1 + drivers/scsi/ufs/ufs-qcom.c | 1004 +++ drivers/scsi/ufs

[PATCH v6 0/4] *** add support for UFS in Qualcomm Technologies

2015-01-11 Thread Yaniv Gardi
*** BLURB HERE *** Yaniv Gardi (4): phy: qcom-ufs: add support for 20nm phy scsi: ufs-qcom: add support for Qualcomm Technologies Inc platforms phy: qcom-ufs: add support for 14nm phy scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS drivers/phy/Kconfig

[PATCH v5 2/4] scsi:ufs-qcom: add specific support for Qualcomm platforms

2015-01-07 Thread Yaniv Gardi
, Gear, Mode negotiation between device and controller Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig| 12 + drivers/scsi/ufs/Makefile |1 + drivers/scsi/ufs/ufs-qcom.c | 1004 +++ drivers/scsi/ufs/ufs-qcom.h | 170

[PATCH v5 1/4] phy: qcom-ufs: add support for 20nm phy

2015-01-07 Thread Yaniv Gardi
This change adds a support for a 20nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Makefile| 2 + drivers/phy/phy-qcom-ufs-i.h| 167 drivers/phy/phy-qcom-ufs-qmp

[PATCH v5 0/4] *** add support for UFS in QCOM platforms ***

2015-01-07 Thread Yaniv Gardi
*** BLURB HERE *** Yaniv Gardi (4): phy: qcom-ufs: add support for 20nm phy scsi:ufs-qcom: add specific support for Qualcomm platforms phy: qcom-ufs: add support for 14nm phy scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS drivers/phy/Makefile|3

[PATCH v5 4/4] scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS

2015-01-07 Thread Yaniv Gardi
In-order to enhance storage encryption performance, an Inline Cryptographic Engine is introduced to UFS. This patch adds in-line encryption capabilities to the UFS driver. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig| 12 + drivers/scsi/ufs/Makefile

[PATCH v5 3/4] phy: qcom-ufs: add support for 14nm phy

2015-01-07 Thread Yaniv Gardi
This change adds a support for a 14nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Makefile| 1 + drivers/phy/phy-qcom-ufs-qmp-14nm.c | 201

[PATCH v1] qcom: opensource: mmc-utils: fix building errors

2015-03-18 Thread Yaniv Gardi
: Ica1ea5e4c7b8efecfba07c35f87ea6bb6716b668 Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.mk b/Android.mk index 7c8cce4..4b7afb1 100644 --- a/Android.mk +++ b/Android.mk @@ -3,6 +3,7 @@ LOCAL_PATH:= $(call my-dir) include

[PATCH v1 0/2] *** scsi: ufs: add support for quirks ***

2015-03-31 Thread Yaniv Gardi
changes of v1: - change#1: in this version we modify ufs_qcom_host structure to hold the UFS controller revision info. - change#2: here we add quirks support for non standard behaviour of the controller. Yaniv Gardi (2): scsi: ufs-qcom: save controller revision info in internal structure

[PATCH v1 1/2] scsi: ufs-qcom: save controller revision info in internal structure

2015-03-31 Thread Yaniv Gardi
. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 14 +++--- drivers/scsi/ufs/ufs-qcom.h | 8 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 9217af9..d7cb843 100644

[PATCH v1 2/2] scsi: ufs: add support to allow non standard behaviours (quirks)

2015-03-31 Thread Yaniv Gardi
. In this change a UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS is introduced, where a minimum delay of 1ms is required before DME commands for stability purposes. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 22 +- drivers/scsi/ufs/ufs-qcom.h | 18

[PATCH v1 0/2] *** update obsolete configuration to support

2015-05-11 Thread Yaniv Gardi
*** BLURB HERE *** Yaniv Gardi (2): scsi: ufs: update obsolete configuration of ARCH_MSM into ARCH_QCOM phy: update obsolete configuration of ARCH_MSM into ARCH_QCOM drivers/phy/Kconfig | 2 +- drivers/scsi/ufs/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions

[PATCH v1 1/2] scsi: ufs: update obsolete configuration of ARCH_MSM into ARCH_QCOM

2015-05-11 Thread Yaniv Gardi
Since ARCH_MSM is no longer supported as configuration definition, it should be modified into ARCH_QCOM in order to add support for Qualcomm platforms. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v1 2/2] phy: update obsolete configuration of ARCH_MSM into ARCH_QCOM

2015-05-11 Thread Yaniv Gardi
Since ARCH_MSM is no longer supported as configuration definition, it should be modified into ARCH_QCOM in order to add support for Qualcomm platforms. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v1 05/10] scsi: ufs: introduce a broken PA_RXHSUNTERMCAP quirk

2015-05-17 Thread Yaniv Gardi
The attribute PA_RXHSUNTERMCAP specifies whether or not the inbound Link supports unterminated line in HS mode. enabling this attribute to 1 fixes moving to HS gear. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 11 +++ drivers/scsi/ufs/ufshcd.h | 7

[PATCH v1 02/10] scsi: ufs-qcom: don't enable interrupt aggregation

2015-05-17 Thread Yaniv Gardi
in the newer UFS host controller revisions. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 6652a81..e8dc050 100644

[PATCH v1 03/10] scsi: ufs: provide a quirk to disable the LCC

2015-05-17 Thread Yaniv Gardi
-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 42 ++ drivers/scsi/ufs/ufshcd.h | 8 drivers/scsi/ufs/ufshci.h | 3 +++ 3 files changed, 53 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs

[PATCH v1 08/10] scsi: ufs-qcom: enable UFSHCD_QUIRK_DME_PEER_ACCESS_AUTO_MODE quirk

2015-05-17 Thread Yaniv Gardi
Current version of host controller on QUALCOMM Technologies requires this quirk to be enabled, as DME commands to device must be sent only in AUTO mode (SLOW AUTO or FAST AUTO). Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 4 +++- 1 file changed, 3

[PATCH v1 01/10] scsi: ufs: introduce the capability and quirk for interrupt aggregation

2015-05-17 Thread Yaniv Gardi
capability is kept disabled. This change also introduces a quirk for broken interrupt aggregation feature, as in some UFS controllers, this feature may not work. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 19 --- drivers/scsi/ufs/ufshcd.h

[PATCH v1 06/10] scsi: ufs-qcom: enable quirk to fix gear change to HS

2015-05-17 Thread Yaniv Gardi
With the G3 UFS devices, changing gear into HS is failing in UFS host controllers of version 0x2. The quirk solves the problem of changing gear into HS by enabling the attribute that specifies whether or not the inbound Link supports unterminated line in HS mode. Signed-off-by: Yaniv Gardi yga

[PATCH v1 07/10] scsi: ufs: introduce UFSHCD_QUIRK_DME_PEER_ACCESS_AUTO_MODE quirk

2015-05-17 Thread Yaniv Gardi
Some UFS host controllers may only allow accessing the peer DME attribute in AUTO mode (FAST AUTO or SLOW AUTO) hence we had added a quirk for switching to AUTO power mode before accessing the peer DME attribute. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c

[PATCH v1 04/10] scsi: ufs-qcom: enable UFSHCD_QUIRK_BROKEN_LCC

2015-05-17 Thread Yaniv Gardi
-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index e8dc050..76d6e9d 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -715,6 +715,8

[PATCH v1 09/10] scsi: ufs: add quirk to handle broken UFS HCI version

2015-05-17 Thread Yaniv Gardi
Some host controller hardware controllers may not advertise correct version in UFS HCI VER register. To workaround this, add new quirk and call the host controller hardware vendor specific callback to get the correct UFS HCI version register value. Signed-off-by: Yaniv Gardi yga...@codeaurora.org

[PATCH v1 10/10] scsi: ufs-qcom: enable UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION

2015-05-17 Thread Yaniv Gardi
register value. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index de9cfb0..4cdffa4 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b

[PATCH v1 00/10] *** introduce quirks for UFS host

2015-05-17 Thread Yaniv Gardi
This series of patches introduce additional quirks and also, their enabling in QUALCOMM Technologies specific code. Yaniv Gardi (10): scsi: ufs: introduce the capability and quirk for interrupt aggregation scsi: ufs-qcom: don't enable interrupt aggregation scsi: ufs: provide a quirk

[PATCH v1 3/3] scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component

2015-05-19 Thread Yaniv Gardi
This change is required in order to be able to build the component as a module. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index e945383

[PATCH v1 2/3] scsi: ufs-qcom: fix compilation warning if compiled as a module

2015-05-19 Thread Yaniv Gardi
This change fixes a compilation warning that happens if SCSI_UFS_QCOM is compiled as a module. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs

[PATCH v1 0/3] fixing building errors and warnings when components

2015-05-19 Thread Yaniv Gardi
on the commit message of patch 1/3 in the series. Ignore as the commit message is the build errors that this patch fixes. Yaniv Gardi (3): phy: qcom-ufs: fix build error when the driver is built as a module scsi: ufs-qcom: fix compilation warning if compiled as a module scsi: ufs-qcom: update

[PATCH v1 1/3] phy: qcom-ufs: fix build error when the driver is built as a module

2015-05-19 Thread Yaniv Gardi
! ERROR: ufs_qcom_phy_enable_iface_clk [drivers/scsi/ufs/ufs-qcom.ko] undefined! make[1]: *** [__modpost] Error 1 Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/phy-qcom-ufs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/phy-qcom-ufs.c b/drivers

[PATCH v3 2/4] scsi: ufs-qcom: fix compilation warning if compiled as a module

2015-06-07 Thread Yaniv Gardi
This change fixes a compilation warning that happens if SCSI_UFS_QCOM is compiled as a module. Also this patch fixes an error happens when insmod the module: ufs_qcom: module license 'unspecified' taints kernel. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c

[PATCH v3 3/4] scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component

2015-06-07 Thread Yaniv Gardi
This change is required in order to be able to build the component as a module. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index e945383

[PATCH v3 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread Yaniv Gardi
the probe function of its sub-node (if it exists), by calling of_platform_populate(). It ensures that vops are set, and ready to be used, by the time the UFSHCD driver starts its initialization procedure. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- .../devicetree/bindings/ufs

[PATCH v3 0/4] fixing building errors and warnings when components

2015-06-07 Thread Yaniv Gardi
of patch 1/3 in the series. Ignore as the commit message is the build errors that this patch fixes. Yaniv Gardi (4): phy: qcom-ufs: fix build error when the component is built as a module scsi: ufs-qcom: fix compilation warning if compiled as a module scsi: ufs-qcom: update configuration

[PATCH v3 1/4] phy: qcom-ufs: fix build error when the component is built as a module

2015-06-07 Thread Yaniv Gardi
-qcom.ko] undefined! ERROR: ufs_qcom_phy_enable_iface_clk [drivers/scsi/ufs/ufs-qcom.ko] undefined! make[1]: *** [__modpost] Error 1 Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/phy-qcom-ufs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/phy-qcom

[PATCH v2 0/4] fixing building errors and warnings when components

2015-06-03 Thread Yaniv Gardi
of patch 1/3 in the series. Ignore as the commit message is the build errors that this patch fixes. Yaniv Gardi (4): phy: qcom-ufs: fix build error when the component is built as a module scsi: ufs-qcom: fix compilation warning if compiled as a module scsi: ufs-qcom: update configuration option

[PATCH v2 3/4] scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component

2015-06-03 Thread Yaniv Gardi
This change is required in order to be able to build the component as a module. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index e945383

[PATCH v2 1/4] phy: qcom-ufs: fix build error when the component is built as a module

2015-06-03 Thread Yaniv Gardi
-qcom.ko] undefined! ERROR: ufs_qcom_phy_enable_iface_clk [drivers/scsi/ufs/ufs-qcom.ko] undefined! make[1]: *** [__modpost] Error 1 Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/phy-qcom-ufs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/phy-qcom

[PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-03 Thread Yaniv Gardi
the probe function of its sub-node (if it exists), by calling of_platform_populate(). It ensures that vops are set, and ready to be used, by the time the UFSHCD driver starts its initialization procedure. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- .../devicetree/bindings/ufs

[PATCH v2 2/4] scsi: ufs-qcom: fix compilation warning if compiled as a module

2015-06-03 Thread Yaniv Gardi
This change fixes a compilation warning that happens if SCSI_UFS_QCOM is compiled as a module. Also this patch fixes an error happens when insmod the module: ufs_qcom: module license 'unspecified' taints kernel. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c

[PATCH v1 7/8] scsi: ufs-qcom: add debug prints for test bus

2015-08-16 Thread Yaniv Gardi
Adds support for configuring and reading the test bus and debug registers. This change also adds another vops in order to print the debug registers. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 164 +++- drivers/scsi

[PATCH v1 8/8] scsi: ufs-qcom: add QUniPro hardware support and power optimizations

2015-08-16 Thread Yaniv Gardi
-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 633 drivers/scsi/ufs/ufs-qcom.h | 31 ++- drivers/scsi/ufs/ufshcd.c | 8 +- drivers/scsi/ufs/ufshcd.h | 32 ++- 4 files changed, 526 insertions(+), 178 deletions(-) diff

[PATCH v1 3/8] scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component

2015-08-16 Thread Yaniv Gardi
This change is required in order to be able to build the component as a module. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index e945383

[PATCH v1 4/8] add ufshcd_get_variant ufshcd_set_variant

2015-08-16 Thread Yaniv Gardi
Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 34 +- drivers/scsi/ufs/ufshcd.h | 21 + 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs

[PATCH v1 2/8] scsi: ufs-qcom: fix compilation warning if compiled as a module

2015-08-16 Thread Yaniv Gardi
This change fixes a compilation warning that happens if SCSI_UFS_QCOM is compiled as a module. Also this patch fixes an error happens when insmod the module: ufs_qcom: module license 'unspecified' taints kernel. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c

[PATCH v1 1/8] phy: qcom-ufs: fix build error when the component is built as a module

2015-08-16 Thread Yaniv Gardi
-qcom.ko] undefined! ERROR: ufs_qcom_phy_enable_iface_clk [drivers/scsi/ufs/ufs-qcom.ko] undefined! make[1]: *** [__modpost] Error 1 Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/phy-qcom-ufs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/phy-qcom

[PATCH v1 5/8] scsi: ufs: creates wrapper functions for vops

2015-08-16 Thread Yaniv Gardi
In order to simplify the code a set of wrapper functions is created to test and call each of the variant operations. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 3 +- drivers/scsi/ufs/ufshcd.c | 104 +--- drivers

[PATCH v1 6/8] scsi: ufs: make the UFS variant a platform device

2015-08-16 Thread Yaniv Gardi
, system suspend/resume etc), parsers of clocks, regulators and pm_levels from DT. 2. What used to be the old platform probe is now only a pltfrm_init() routine, that does exactly the same, but only being called by the new probe function of the UFS variant. Signed-off-by: Yaniv Gardi yga

[PATCH v1 0/8] Fix error message and present UFS variant

2015-08-16 Thread Yaniv Gardi
Yaniv Gardi (8): phy: qcom-ufs: fix build error when the component is built as a module scsi: ufs-qcom: fix compilation warning if compiled as a module scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component add ufshcd_get_variant ufshcd_set_variant scsi: ufs: creates

[PATCH v1 10/15] scsi: ufs: fix error recovery after the hibern8 exit failure

2015-08-21 Thread Yaniv Gardi
from first 2 context listed above. This change fixes the recovery by adding proper error handling mechanism. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 58 +++ 1 file changed, 53 insertions(+), 5 deletions(-) diff

[PATCH v1 06/15] scsi: ufs: avoid exception event handler racing with PM callbacks

2015-08-21 Thread Yaniv Gardi
while PM callbacks are running. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index ab48220..f248df2 100644 --- a/drivers/scsi/ufs

[PATCH v1 09/15] scsi: ufs: add retries for hibern8 enter

2015-08-21 Thread Yaniv Gardi
is recovered to active state, tries to put the UFS link in hibern8 enter again until retry count expires. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ufs

[PATCH v1 03/15] scsi: ufs: verify command tag validity

2015-08-21 Thread Yaniv Gardi
is done with tag which was set to -1 and so it is invalid. Assert command tag passed from scsi layer is valid. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs

[PATCH v1 08/15] scsi: ufs: add retries to dme_peer get and set attribute

2015-08-21 Thread Yaniv Gardi
The dme_peer get/set attribute commands are prone to errors, therefore we add three retries for the UIC command sending. Error code returned from ufshcd_send_uic_cmd() is checked, and unless it was successful or the retries have finished, another command will be sent. Signed-off-by: Yaniv Gardi

[PATCH v1 13/15] scsi: ufs: add missing memory barriers

2015-08-21 Thread Yaniv Gardi
of descriptors takes places before ringing the doorbell, similarly to setting up a transfer request. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b

[PATCH v1 12/15] scsi: ufs: reduce the interrupts for power mode change requests

2015-08-21 Thread Yaniv Gardi
events which is not quite necessary and instead we can just wait for the interrupt of 2nd completion, this should reduce the number of interrupts and could reduce the unnecessary CPU wakeups to handle extra interrupts. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c

[PATCH v1 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before new transfers

2015-08-21 Thread Yaniv Gardi
from each other, we need to clear the whole SCSI command field to prevent sending uninitialized data to the device. The UPIU response doesn't always include the sense data and can differ in size. Hence, the UPIU response should also be cleared before the transfer. Signed-off-by: Yaniv Gardi yga

[PATCH v1 02/15] scsi: ufs: clear fields UTRD, UPIU req and rsp before new transfers

2015-08-21 Thread Yaniv Gardi
the PRDT table length to zero which should take care of commands which doesn't have any data associated with it. We are also clearing the unused fields in request UPIU for NOP command. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 8 1 file changed, 8

[PATCH v1 00/15] Big fixes, retries, handle a race condition

2015-08-21 Thread Yaniv Gardi
This serie of 15 small patches should be pushed after the series of 8 patches I have uploaded to the upstream a week ago: Fix error message and present UFS variant probe Yaniv Gardi (15): scsi: ufs: clear UTRD, UPIU req and rsp before new transfers scsi: ufs: clear fields UTRD, UPIU req

[PATCH v1 05/15] scsi: ufs: increase fDeviceInit query response timeout

2015-08-21 Thread Yaniv Gardi
have to retry fDeviceInit query requests multiple times and each query request timeout prints one error message. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b

[PATCH v1 07/15] scsi: ufs: set REQUEST_SENSE command size to 18 bytes

2015-08-21 Thread Yaniv Gardi
According to UFS device specification REQUEST_SENSE command can only report back up to 18 bytes of data. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufshcd.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b

  1   2   3   4   5   6   7   8   9   >