Re: [PATCH V2 1/3] scsi: ufs: Allow vendor specific initialization

2013-09-19 Thread Sujit Reddy Thumma
On 9/9/2013 5:03 PM, Seungwon Jeon wrote: > Hi Sujit, > > On Tue, August 27, 2013, Sujit Reddy Thumma wrote: >> Some vendor specific controller versions might need to configure >> vendor specific - registers, clocks, voltage regulators etc. to >> initialize the host c

Re: [PATCH V5 3/4] [SCSI] ufs: Add Platform glue driver for ufshcd

2013-01-06 Thread Sujit Reddy Thumma
resource_size(mem_res); + release_mem_region(mem_res->start, mem_size); + } + platform_set_drvdata(pdev, NULL); + return 0; +} + +static const struct of_device_id ufs_of_match[] = { + { .compatible = "jedec,ufs-1.1"}, +}; + +static struct platform_dri

Re: [PATCH V5 3/4] [SCSI] ufs: Add Platform glue driver for ufshcd

2013-01-11 Thread Sujit Reddy Thumma
On 1/9/2013 5:41 PM, vinayak holikatti wrote: On Mon, Jan 7, 2013 at 1:11 PM, Sujit Reddy Thumma wrote: Hi Vinayak, I have few comments below: +#ifdef CONFIG_PM +/** + * ufshcd_pltfrm_suspend - suspend power management function + * @pdev: pointer to Platform device handle + * @mesg: power

[PATCH 1/1] scsi: ufs: Generalize UFS Interconnect Layer (UIC) command support

2013-04-23 Thread Sujit Reddy Thumma
at a time. Further, the command completion for DME_LINKSTARTUP is modified and the command completes in the context of the caller instead of a separate work. Signed-off-by: Sujit Reddy Thumma --- drivers/scsi/ufs/ufshcd.c | 257 + drivers/scs

[PATCH 1/1] scsi: ufs: Add support for sending NOP OUT UPIU

2013-04-24 Thread Sujit Reddy Thumma
device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma --- drivers/scsi/ufs/ufshcd.c | 167 ++--- drivers/scsi/ufs/ufshcd.h |4 + 2 files changed, 162 insertions

Re: [PATCH 2/5] scsi: ufs: wrap the i/o access operations

2013-04-24 Thread Sujit Reddy Thumma
On 4/24/2013 9:36 PM, Seungwon Jeon wrote: Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon --- drivers/scsi/ufs/ufshcd.c | 106 +++-- drivers/scsi/ufs/ufshcd.h |5 ++ 2 files changed, 49 insertions(+), 62 deletions(-) dif

Re: [PATCH 4/5] scsi: ufs: rework link start-up process

2013-04-24 Thread Sujit Reddy Thumma
On 4/24/2013 9:36 PM, Seungwon Jeon wrote: Link start-up requires long time with multiphase handshakes between UFS host and device. This affects driver's probe time. This patch let link start-up run asynchronously. And completion time of uic command is defined to avoid a permanent wait. I have

Re: [PATCH 4/5] scsi: ufs: rework link start-up process

2013-04-28 Thread Sujit Reddy Thumma
On 4/26/2013 10:44 AM, Seungwon Jeon wrote: On Thursday, April 25, 2013 , Sujit Reddy Thumma wrote: On 4/24/2013 9:36 PM, Seungwon Jeon wrote: Link start-up requires long time with multiphase handshakes between UFS host and device. This affects driver's probe time. This patch let link sta

Re: [PATCH 4/5] scsi: ufs: rework link start-up process

2013-04-29 Thread Sujit Reddy Thumma
On 4/29/2013 3:54 PM, Seungwon Jeon wrote: On Monday, April 29, 2013, Sujit Reddy Thumma wrote: On 4/26/2013 10:44 AM, Seungwon Jeon wrote: On Thursday, April 25, 2013 , Sujit Reddy Thumma wrote: On 4/24/2013 9:36 PM, Seungwon Jeon wrote: Link start-up requires long time with multiphase

Re: [PATCH 4/5] scsi: ufs: rework link start-up process

2013-04-30 Thread Sujit Reddy Thumma
On 4/30/2013 12:03 PM, Seungwon Jeon wrote: On Monday, April 29, 2013, Sujit Reddy Thumma wrote: On 4/29/2013 3:54 PM, Seungwon Jeon wrote: On Monday, April 29, 2013, Sujit Reddy Thumma wrote: On 4/26/2013 10:44 AM, Seungwon Jeon wrote: On Thursday, April 25, 2013 , Sujit Reddy Thumma wrote

Re: [PATCH 1/1] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-02 Thread Sujit Reddy Thumma
On 5/2/2013 12:57 PM, Santosh Y wrote: + +/** + * ufshcd_validate_dev_connection() - Check device connection status + * @hba: per-adapter instance + * + * Send NOP OUT UPIU and wait for NOP IN response to check whether the + * device Transport Protocol (UTP) layer is ready after a reset. + * If t

Re: [PATCH 1/1] scsi: ufs: Generalize UFS Interconnect Layer (UIC) command support

2013-05-02 Thread Sujit Reddy Thumma
On 5/2/2013 12:49 PM, Santosh Y wrote: -static inline void -ufshcd_send_uic_command(struct ufs_hba *hba, struct uic_command *uic_cmnd) +static int ufshcd_send_uic_command(struct ufs_hba *hba, + struct uic_command *uic_cmnd, int retries) { + int err = 0; + unsigned long

[RFC] scsi: ufs: Rework UFS host driver implementation

2013-05-03 Thread Sujit Reddy Thumma
specific power management Signed-off-by: Sujit Reddy Thumma --- The patch is not complete and does not handle some of the points mentioned above. This is just for review on design part. --- drivers/scsi/ufs/Makefile |2 +- drivers/scsi/ufs/ufs.c| 341

Re: [PATCH v2 7/7] scsi: ufs: add dme control primitives

2013-05-04 Thread Sujit Reddy Thumma
On 5/4/2013 2:15 PM, Seungwon Jeon wrote: Implements to support the following operations. Currently, this patch doesn't introduce DME_ENABLE and DME_RESET because host controller's HCE enable contains these roles. DME_POWERON{OFF}, DME_HIBERNATE_ENTER{EXIT}, DME_ENDPOINTRESET. Signed-off-by: Se

[PATCH V2 1/1] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-05 Thread Sujit Reddy Thumma
device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma --- v2: - fixed INTERNAL_CMD_TAG check in readl_poll_timeout - minor cleanup from v1 - rebased on Seungwon Jeon's UFS V3 patchset --- dr

Re: [PATCH v3 4/6] scsi: ufs: rework link start-up process

2013-05-06 Thread Sujit Reddy Thumma
> Added mutex to guarantee of uic command at a time. > Adapted some sequence of controller initialization after link statup > according to HCI standard. > > Signed-off-by: Seungwon Jeon > Signed-off-by: Sujit Reddy Thumma > --- > drivers/scsi/ufs/ufshcd.c | 287 >

[PATCH V3 1/1] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-06 Thread Sujit Reddy Thumma
device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma --- v3: - minor bug fix in error path v2: - fixed INTERNAL_CMD_TAG check in readl_poll_timeout - minor cleanup from v1 - rebased on Seungwon

[PATCH 1/1] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-06 Thread Sujit Reddy Thumma
device initialization completion. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma --- drivers/scsi/ufs/ufs.h| 10 - drivers/scsi/ufs/ufshcd.c | 102 + drivers/scsi/ufs/ufshcd.h |7 +++ 3 files changed, 118 insertions(+), 1

Re: [PATCH V3 1/1] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-07 Thread Sujit Reddy Thumma
On 5/7/2013 2:57 PM, Seungwon Jeon wrote: > On Monday, May 06, 2013, Sujit Reddy Thumma wrote: >> As part of device initialization sequence, sending NOP OUT UPIU and >> waiting for NOP IN UPIU response is mandatory. This confirms that the >> device UFS Transport (UTP) layer

[PATCH V4 1/1] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-08 Thread Sujit Reddy Thumma
device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma --- v4: - Removed readl_poll_timeout and replaced with wait logic - additional checks for completion v3: - minor bug fix in error path v2

[PATCH V5 1/1] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-09 Thread Sujit Reddy Thumma
device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma Acked-by: Santosh Y --- v5: - rebase on top of Seungwon Jeon's UFS V4 patchset v4: - Removed readl_poll_timeout and replaced with wait

[PATCH 1/2] Documentation: devicetree: Add DT bindings for UFS host controller

2013-05-09 Thread Sujit Reddy Thumma
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers. Signed-off-by: Sujit Reddy Thumma --- .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 16 1 files changed, 16 insertions(+), 0

[PATCH 2/2] scsi: ufs: Fix the response UPIU length setting

2013-05-09 Thread Sujit Reddy Thumma
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez Signed-off-by: Sujit Reddy Thumma --- drivers/scsi/ufs/ufshcd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index f244812

Re: REQ_PM vs REQ_TYPE_PM_RESUME

2014-01-05 Thread Sujit Reddy Thumma
On 1/6/2014 7:44 AM, Phillip Susi wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 12/16/2013 06:30 PM, Phillip Susi wrote: For some reason, the system hangs on resume if I issue the REQUEST SENSE command after blk_pre_runtime_suspend. My understanding is that the REQ_PM flag should m

[RESEND PATCH V7 2/6] scsi: ufs: make undeclared functions static

2014-05-25 Thread Sujit Reddy Thumma
Make undeclared functions static and declare exported symbols to suppress warnings from sparse tool. Signed-off-by: Sujit Reddy Thumma Acked-by: Vinayak Holikatti --- drivers/scsi/ufs/ufshcd.c | 4 ++-- drivers/scsi/ufs/ufshcd.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff

[RESEND PATCH V7 3/6] scsi: ufs: Fix broken task management command implementation

2014-05-25 Thread Sujit Reddy Thumma
TIBLE set. Signed-off-by: Sujit Reddy Thumma Reviewed-by: Yaniv Gardi Tested-by: Dolev Raviv Acked-by: Vinayak Holikatti --- drivers/scsi/ufs/ufshcd.c | 169 +++--- drivers/scsi/ufs/ufshcd.h | 8 ++- 2 files changed, 122 insertions(+), 55 dele

[RESEND PATCH V7 6/6] scsi: ufs: Improve UFS fatal error handling

2014-05-25 Thread Sujit Reddy Thumma
separate error handling work. o SCSI is informed about the expected Unit-Attention exception from the device for the immediate command after a reset so that the SCSI layer take necessary steps to establish communication with the device. Signed-off-by: Sujit Reddy Thumma Reviewed-by: Yaniv

[RESEND PATCH V7 4/6] scsi: ufs: Fix hardware race conditions while aborting a command

2014-05-25 Thread Sujit Reddy Thumma
-existent in both controller and the device. Signed-off-by: Sujit Reddy Thumma Reviewed-by: Yaniv Gardi Tested-by: Dolev Raviv Acked-by: Vinayak Holikatti --- drivers/scsi/ufs/ufshcd.c | 70 +-- 1 file changed, 55 insertions(+), 15 deletions(-) diff

[RESEND PATCH V7 5/6] scsi: ufs: Fix device and host reset methods

2014-05-25 Thread Sujit Reddy Thumma
tting the device and host and re-initializing them in proper manner. Signed-off-by: Sujit Reddy Thumma Reviewed-by: Yaniv Gardi Tested-by: Dolev Raviv Acked-by: Vinayak Holikatti --- drivers/scsi/ufs/ufshcd.c | 240 -- drivers/scsi/ufs/ufshcd.h | 2

[RESEND PATCH V7 0/6] scsi: ufs: TM, fatal-error handling and other fixes

2014-05-25 Thread Sujit Reddy Thumma
or cleanup and rebase - [PATCH V2 4/4]: Fix a bug - sleeping in atomic context Sujit Reddy Thumma (6): scsi: ufs: fix endianness sparse warnings scsi: ufs: make undeclared functions static scsi: ufs: Fix broken task management command implementation scsi: ufs: Fix hardware race condit

[RESEND PATCH V7 1/6] scsi: ufs: fix endianness sparse warnings

2014-05-25 Thread Sujit Reddy Thumma
Fix many warnings with incorrect endian assumptions which makes the code unportable to new architectures. The UFS specification defines the byte order as big-endian for UPIU structure and little-endian for the host controller transfer/task management descriptors. Signed-off-by: Sujit Reddy

Re: [PATCH V7 1/6] scsi: ufs: fix endianness sparse warnings

2014-05-25 Thread Sujit Reddy Thumma
On 11/18/2013 2:34 PM, vinayak holikatti wrote: On Mon, Sep 23, 2013 at 5:44 PM, vinayak holikatti wrote: On Thu, Sep 19, 2013 at 4:44 PM, Sujit Reddy Thumma wrote: Fix many warnings with incorrect endian assumptions which makes the code unportable to new architectures. The UFS

Re: [ANNOUNCE] scsi patch queue tree

2014-05-28 Thread Sujit Reddy Thumma
On 5/28/2014 4:24 PM, Christoph Hellwig wrote: I've pushed the following changes to the drivers-for-3.16 tree. I've there's anyting matching the rules that I did forget please resend and/or ping me. Benoit Taine (2): qla4x

<    1   2