Re: [PATCH v3 2/5] [SCSI] ufshcd: UFS UTP Transfer requests handling

2012-03-26 Thread Santosh Y
On Mon, Mar 26, 2012 at 10:04 AM, KOBAYASHI Yoshitake wrote: > Santosh Y wrote: >> >> +        ucd_cmd_ptr->exp_data_transfer_len = >> +            cpu_to_be32(lrbp->cmd->transfersize); >> + >> +        memcpy(ucd_cmd_ptr->cdb, >> +      

Re: [PATCH v3 2/5] [SCSI] ufshcd: UFS UTP Transfer requests handling

2012-03-26 Thread Santosh Y
On Mon, Mar 26, 2012 at 10:04 AM, KOBAYASHI Yoshitake wrote: > Santosh Y wrote: >> >> +        ucd_cmd_ptr->exp_data_transfer_len = >> +            cpu_to_be32(lrbp->cmd->transfersize); >> + >> +        memcpy(ucd_cmd_ptr->cdb, >> +      

Re: [PATCH v3 1/5] [SCSI] ufshcd: UFS Host controller driver

2012-03-26 Thread Santosh Y
On Mon, Mar 26, 2012 at 10:02 AM, KOBAYASHI Yoshitake wrote: >> > +        utrdlp[i].response_upiu_length = >> > +                cpu_to_le16(ALIGNED_UPIU_SIZE); > > > Response UPIU Length(RUL) shows the response UPIU length in Dword. > (JEDEC Standard No.223 6.2.1 UTP Transfer Request Descriptor)

Re: [PATCH v2 0/5] [SCSI] ufshcd: UFS Host Controller Driver

2012-03-21 Thread Santosh Y
On Thu, Mar 22, 2012 at 7:17 AM, Deepak Saxena wrote: > On 23 February 2012 23:19, Santosh Y wrote: >> From: Santosh Yaraganavi >> >> UFS: >> Universal Flash Storage is a storage specification for flash devices. >> It is aimed to provide a universal storage i

[PATCH v3 2/5] [SCSI] ufshcd: UFS UTP Transfer requests handling

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi This patch adds support for Transfer request handling. ufshcd includes following implementations: - SCSI queuecommand - Compose UPIU(UFS Protocol information unit) - Issue commands to UFS host controller - Handle completed commands Signed-off-by: Santosh Yaraganavi

[PATCH v3 5/5] Documentation: UFS Host Controller Driver

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi The document provides Universal Flash Storage(UFS) and UFS host controller driver overview. Signed-off-by: Santosh Yaraganavi Reviewed-by: Vishak G Reviewed-by: Namjae Jeon --- Documentation/scsi/00-INDEX |2 + Documentation/scsi/ufs.txt | 133 +

[PATCH v3 3/5] [SCSI] ufshcd: UFSHCI error handling

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi UFSHCI error handling includes support for: - UFS host controller errors - System bus errors - Unipro errors Signed-off-by: Santosh Yaraganavi Signed-off-by: Vinayak Holikatti Reviewed-by: Arnd Bergmann Reviewed-by: Vishak G Reviewed-by: Girish K S Reviewed-by: N

[PATCH v3 4/5] [SCSI] ufshcd: SCSI error handling

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi UFSHCD SCSI error handling includes following implementations, - Abort task - Device reset - Host reset Signed-off-by: Santosh Yaraganavi Signed-off-by: Vinayak Holikatti Reviewed-by: Arnd Bergmann Reviewed-by: Vishak G Reviewed-by: Girish K S Reviewed-by: Namjae

[PATCH v3 1/5] [SCSI] ufshcd: UFS Host controller driver

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi This patch adds support for Universal Flash Storage(UFS) host controllers. The UFS host controller driver includes host controller initialization method. The Initialization process involves following steps: - Initiate UFS Host Controller initialization process by writin

[PATCH v3 0/5] [SCSI] ufshcd: UFS Host Controller Driver

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi UFS: Universal Flash Storage is a storage specification for flash devices. It is aimed to provide a universal storage interface for both embedded and removable flash memory based storage in mobile devices such as smart phones and tablet computers. The specification is def

Re: [PATCH v2 4/5] [SCSI] ufshcd: SCSI error handling

2012-02-26 Thread Santosh Y
On Sun, Feb 26, 2012 at 10:16 AM, Hillf Danton wrote: > On Fri, Feb 24, 2012 at 3:19 PM, Santosh Y wrote: >> +/** >> + * ufshcd_is_tmq_full - checks if the task management slots are full >> + * @hba: per adapter instance >> + * >> + * Returns maximum number of

Re: [PATCH v2 2/5] [SCSI] ufshcd: UFS UTP Transfer requests handling

2012-02-26 Thread Santosh Y
>>  #include "ufs.h" >> @@ -75,6 +76,8 @@ enum { >>       UFSHCD_MAX_CHANNEL      = 0, >>       UFSHCD_MAX_ID           = 1, >>       UFSHCD_MAX_LUNS         = 8, >> +     UFSHCD_CMD_PER_LUN      = 32, >> +     UFSHCD_CAN_QUEUE        = 32, > > > Is the can queue right, or are you working around a

[PATCH v2 3/5] [SCSI] ufshcd: UFSHCI error handling

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi UFSHCI error handling includes support for: - UFS host controller errors - System bus errors - Unipro errors Signed-off-by: Santosh Yaraganavi Signed-off-by: Vinayak Holikatti Reviewed-by: Arnd Bergmann Reviewed-by: Vishak G Reviewed-by: Girish K S --- v1 -> v2:

[PATCH v2 5/5] Documentation: UFS Host Controller Driver

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi The document provides Universal Flash Storage(UFS) and UFS host controller driver overview. Signed-off-by: Santosh Yaraganavi Reviewed-by: Vishak G --- Documentation/scsi/00-INDEX |2 + Documentation/scsi/ufs.txt | 89 +++

[PATCH v2 4/5] [SCSI] ufshcd: SCSI error handling

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi UFSHCD SCSI error handling includes following implementations, - Abort task - Device reset - Host reset Signed-off-by: Santosh Yaraganavi Signed-off-by: Vinayak Holikatti Reviewed-by: Arnd Bergmann Reviewed-by: Vishak G Reviewed-by: Girish K S --- v1 -> v2:

[PATCH v2 2/5] [SCSI] ufshcd: UFS UTP Transfer requests handling

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi This patch adds support for Transfer request handling. ufshcd includes following implementations: - SCSI queuecommand - Compose UPIU(UFS Protocol information unit) - Issue commands to UFS host controller - Handle completed commands Signed-off-by: Santosh Yaraganavi

[PATCH v2 1/5] [SCSI] ufshcd: UFS Host controller driver

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi This patch adds support for Universal Flash Storage(UFS) host controllers. The UFS host controller driver includes host controller initialization method. The Initialization process involves following steps: - Initiate UFS Host Controller initialization process by writin

[PATCH v2 0/5] [SCSI] ufshcd: UFS Host Controller Driver

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi UFS: Universal Flash Storage is a storage specification for flash devices. It is aimed to provide a universal storage interface for both embedded and removable flash memory based storage in mobile devices such as smart phones and tablet computers. The specification is def

Re: [PATCH 0/4] [SCSI] ufshcd: UFS Host Controller Driver

2012-02-08 Thread Santosh Y
On Thu, Feb 9, 2012 at 10:04 AM, Namjae Jeon wrote: > 2012/2/6 Santosh Y : >> On Mon, Feb 6, 2012 at 4:15 AM, Namjae Jeon wrote: >>> 2012/2/5 Namjae Jeon : >>>> 2012/2/2 Vinayak Holikatti : >>>>> From: Santosh Yaraganavi >>>>> >

Re: [PATCH 1/4] [SCSI] ufshcd: UFS Host controller driver

2012-02-07 Thread Santosh Y
On Tue, Feb 7, 2012 at 12:46 PM, Felipe Balbi wrote: > Hi, > > On Thu, Feb 02, 2012 at 10:27:26AM +0530, Vinayak Holikatti wrote: >> +/** >> + * ufshcd_uic_cc_handler - handle UIC command completion >> + * @work: pointer to a work queue structure >> + * >> + * Returns 0 on success, non-zero value

Re: [PATCH 4/4] [SCSI] ufshcd: SCSI error handling

2012-02-06 Thread Santosh Y
On Mon, Feb 6, 2012 at 12:46 PM, Amit Sahrawat wrote: > Hi, > > In function: > +static int ufshcd_abort(struct scsi_cmnd *cmd) > +{... > -       int err; > +       int err = -1; > ... > +       spin_lock_irqsave(host->host_lock, flags); > +       pos = (1 << tag); > + > +       /* check if command

Re: [PATCH 0/4] [SCSI] ufshcd: UFS Host Controller Driver

2012-02-05 Thread Santosh Y
On Mon, Feb 6, 2012 at 4:15 AM, Namjae Jeon wrote: > 2012/2/5 Namjae Jeon : >> 2012/2/2 Vinayak Holikatti : >>> From: Santosh Yaraganavi >>> >>> UFS is designed to be the most advanced specification for >>> both embedded and removable flash memory-based storage in mobile devices >>> such as smart

Re: [PATCH 2/4] [SCSI] ufshcd: UFS UTP Transfer requests handling

2012-02-05 Thread Santosh Y
On Sun, Feb 5, 2012 at 6:21 PM, Namjae Jeon wrote: > 2012/2/2 Vinayak Holikatti : >> From: Santosh Yaraganavi >> >> This patch adds support for Transfer request handling. >> >> ufshcd includes following implementations: >>  - SCSI queuecommand >>  - Compose UPIU(UFS Protocol information unit) >>

Re: [PATCH 4/4] [SCSI] ufshcd: SCSI error handling

2012-02-05 Thread Santosh Y
On Sun, Feb 5, 2012 at 1:07 PM, Namjae Jeon wrote: >> + >> +/** >> + * ufshcd_abort - abort a specific command >> + * @cmd: SCSI command pointer >> + * >> + * Returns 0 on success, non-zero value on failure >> + */ >> +static int ufshcd_abort(struct scsi_cmnd *cmd) >> +{ >> +       struct Scsi_Hos

Re: [PATCH 1/4] [SCSI] ufshcd: UFS Host controller driver

2012-02-03 Thread Santosh Y
On Fri, Feb 3, 2012 at 8:49 PM, Arnd Bergmann wrote: > On Thursday 02 February 2012, Vinayak Holikatti wrote: >> From: Santosh Yaraganavi >> >> This patch adds support for Universal Flash Storage(UFS) >> host controllers. The UFS host controller driver >> includes host controller initialization m