[PATCHv2 2/5] rtc: s3c: Remove warning message when checking coding style with checkpatch script

2014-08-11 Thread y
From: Chanwoo Choi This patch remove warning message when checking codeing style with checkpatch script and reduce un-necessary i2c read operation on s3c_rtc_enable. WARNING: line over 80 characters #406: FILE: drivers/rtc/rtc-s3c.c:406: + if ((readw(info->b

[PATCHv2 1/5] rtc: s3c: Define s3c_rtc structure to remove global variables.

2014-08-11 Thread y
From: Chanwoo Choi This patch define s3c_rtc structure including necessary variables for S3C RTC device instead of global variables. This patch improves the readability by removing global variables. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- drivers/rtc/rtc-s3c.c | 448 ++

[PATCHv2 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC

2014-08-11 Thread y
From: Chanwoo Choi This patch add support for RTC of Exynos3250 SoC. The Exynos3250 needs source clock(32.768KHz) for RTC block. If source clock of RTC is registerd on clock list of common clk framework, Exynos RTC drvier have to control this clock. Clock list for s3c-rtc device: - rtc : CLK_RTC

[PATCHv2 5/5] ARM: dts: Fix wrong compatible string of Exynos3250 RTC dt node

2014-08-11 Thread y
From: Chanwoo Choi This patch fix wrong compatible string of Exynos3250 RTC (Real-Time Clock) dt node. The RTC of Exynos3250 must need additional source clock (XrtcXTI). Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- arch/arm/boot/dts/exynos3250.dtsi | 2 +- 1 file changed, 1 inserti

[PATCHv2 3/5] rtc: s3c: Add s3c_rtc_data structure to use variant data instead of s3c_cpu_type

2014-08-11 Thread y
From: Chanwoo Choi This patch add s3c_rtc_data structure to variant data according to SoC type. The s3c_rtc_data structure includes some functions to control RTC operation and specific data dependent on SoC type. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- drivers/rtc/rtc-s3c.c |

[PATCHv2 0/5] rtc: s3c: Refactoring s3c-rtc driver and support Exynos3250 RTC

2014-08-11 Thread y
From: Chanwoo Choi This patchset clean up codes to improve readability as following and support the RTC of Exynos3250 SoC. - Remove global variables and then use new s3c_rtc structure - Remove warn message with checking checkpatch script - Use variant structure according to SoC type instead of le

[PATCH v3 3/6] ARM: EXYNOS: Remove soc_is_exynos4/5 from exynos.c

2014-05-10 Thread y
From: Pankaj Dubey This patch removes usage of soc_is_exynos4/5 from exynos.c. For this we need to separate machine descriptors for exynos4 and exynos5. While doing this patch does some consolidation also. CC: Russell King CC: Thomas Abraham Signed-off-by: Pankaj Dubey --- arch/arm/mach-exyn

[PATCH v3 2/6] ARM: EXYNOS: Remove i2c sys configuration related code

2014-05-10 Thread y
From: Pankaj Dubey Since all these code has been moved into i2c driver, now we can safely remove them from machine files. CC: Russell King Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/exynos.c | 38 +-- arch/arm/mach-exynos/include/mach/map.h |

[PATCH v3 1/6] i2c: s3c2410: Handle i2c sys_cfg register in i2c driver

2014-05-10 Thread y
From: Pankaj Dubey Let's handle i2c interrupt re-configuration in i2c driver. This will help us in removing some soc specific checks from machine files. Since only Exynos5250, and Exynos5420 need to do this, added syscon based phandle to i2c device nodes of respective SoC DT files. Also handle sa

[PATCH v3 5/6] soc: samsung: exynos-chipid: Add Exynos Chipid driver support

2014-05-10 Thread y
SAMSUNG Soc drivers +# +config EXYNOS_CHIPID + tristate "Support Exynos CHIPID" + default y + select SOC_BUS + depends on ARCH_EXYNOS || ARM64 + help + If you say Y here you get support for the Exynos CHIP id. diff --git a/drivers/soc/samsung/Makefile b/drivers/s

[PATCH v3 6/6] ARM: EXYNOS: Refactoring to remove soc_is_exynos macros from exynos

2014-05-10 Thread y
From: Pankaj Dubey This patch enables chipid driver for ARCH_EXYNOS and refactors machine code as well as exynos cpufreq driver code for using chipid driver for identification of SoC ID and SoC rev. This patch also updates DT binding information in exynos4 and exynos5 dtsi file. As to differenti

[PATCH v3 4/6] ARM: EXYNOS: Remove unused header inclusion from hotplug.c

2014-05-10 Thread y
From: Pankaj Dubey This patch removed "plat/cpu.h" inclusion from hotplug.c as it is not required. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/hotplug.c |2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c index 0243ef

[PATCH v3 0/6] Introducing Exynos ChipId driver

2014-05-10 Thread y
From: Pankaj Dubey This patch series attempts to get rid of soc_is_exynos macros and eventually with the help of this series we can probably get rid of CONFIG_SOC_EXYNOS in near future. Each Exynos SoC has ChipID block which can give information about SoC's product Id and revision number.

[PATCH] cpufreq: exynos: Fix build error of no type of module_init

2014-01-22 Thread y
From: Krzysztof Kozlowski Add missing include to fix build error: drivers/cpufreq/exynos-cpufreq.c:292:1: warning: data definition has no type or storage class [enabled by default] drivers/cpufreq/exynos-cpufreq.c:292:1: error: type defaults to ‘int’ in declaration of ‘module_init’ [-Werror=imp

[PATCH v2] drivers: i2c: silence a compile warning in i2c-s3c2410.c

2014-01-14 Thread y
From: Pankaj Dubey If used 64 bit compiler GCC warns that: drivers/i2c/busses/i2c-s3c2410.c: In function ‘s3c24xx_get_device_quirks’: drivers/i2c/busses/i2c-s3c2410.c:168:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This patch fixes this by converting "uns

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