[PATCH v3 0/6] Introducing Exynos ChipId driver

2014-05-10 Thread y
From: Pankaj Dubey pankaj.du...@samsung.com 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

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

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

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

2014-05-10 Thread y
From: Pankaj Dubey pankaj.du...@samsung.com 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

[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

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

2014-05-10 Thread y
From: Pankaj Dubey pankaj.du...@samsung.com 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

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

2014-05-10 Thread y
From: Pankaj Dubey pankaj.du...@samsung.com Since all these code has been moved into i2c driver, now we can safely remove them from machine files. CC: Russell King li...@arm.linux.org.uk Signed-off-by: Pankaj Dubey pankaj.du...@samsung.com --- arch/arm/mach-exynos/exynos.c | 38

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

2014-05-10 Thread y
From: Pankaj Dubey pankaj.du...@samsung.com 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 li...@arm.linux.org.uk CC: Thomas Abraham

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

2014-01-14 Thread y
From: Pankaj Dubey pankaj.du...@samsung.com 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

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

2014-01-22 Thread y
From: Krzysztof Kozlowski k.kozlow...@samsung.com 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

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

2014-08-11 Thread y
From: Chanwoo Choi cw00.c...@samsung.com 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

[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 cw00.c...@samsung.com 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 cw00.c...@samsung.com Acked-by:

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

2014-08-11 Thread y
From: Chanwoo Choi cw00.c...@samsung.com 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

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

2014-08-11 Thread y
From: Chanwoo Choi cw00.c...@samsung.com 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 cw00.c...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com ---

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

2014-08-11 Thread y
From: Chanwoo Choi cw00.c...@samsung.com 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 cw00.c...@samsung.com Acked-by: Kyungmin Park

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

2014-08-11 Thread y
From: Chanwoo Choi cw00.c...@samsung.com 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: +

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 a...@arndb.de wrote: On Thursday 02 February 2012, Vinayak Holikatti wrote: From: Santosh Yaraganavi santos...@gmail.com This patch adds support for Universal Flash Storage(UFS) host controllers. The UFS host controller driver includes host

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 linkinj...@gmail.com 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

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 linkinj...@gmail.com wrote: 2012/2/2 Vinayak Holikatti vinholika...@gmail.com: From: Santosh Yaraganavi santos...@gmail.com This patch adds support for Transfer request handling. ufshcd includes following implementations:  - SCSI queuecommand  -

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 linkinj...@gmail.com wrote: 2012/2/5 Namjae Jeon linkinj...@gmail.com: 2012/2/2 Vinayak Holikatti vinholika...@gmail.com: From: Santosh Yaraganavi santos...@gmail.com UFS is designed to be the most advanced specification for both embedded and

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 amit.sahrawa...@gmail.com 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

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 linkinj...@gmail.com wrote: 2012/2/6 Santosh Y santos...@gmail.com: On Mon, Feb 6, 2012 at 4:15 AM, Namjae Jeon linkinj...@gmail.com wrote: 2012/2/5 Namjae Jeon linkinj...@gmail.com: 2012/2/2 Vinayak Holikatti vinholika...@gmail.com: From: Santosh

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

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com 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

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

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com 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

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

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com 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:

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

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com UFSHCD SCSI error handling includes following implementations, - Abort task - Device reset - Host reset Signed-off-by: Santosh Yaraganavi santos...@gmail.com Signed-off-by: Vinayak Holikatti vinholika...@gmail.com Reviewed-by: Arnd Bergmann

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

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

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

2012-02-23 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com UFSHCI error handling includes support for: - UFS host controller errors - System bus errors - Unipro errors Signed-off-by: Santosh Yaraganavi santos...@gmail.com Signed-off-by: Vinayak Holikatti vinholika...@gmail.com Reviewed-by: Arnd Bergmann

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 issue in the

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 dhi...@gmail.com wrote: On Fri, Feb 24, 2012 at 3:19 PM, Santosh Y santos...@gmail.com wrote: +/** + * ufshcd_is_tmq_full - checks if the task management slots are full + * @hba: per adapter instance + * + * Returns maximum number of task

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

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com 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

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

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com 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

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

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com UFSHCD SCSI error handling includes following implementations, - Abort task - Device reset - Host reset Signed-off-by: Santosh Yaraganavi santos...@gmail.com Signed-off-by: Vinayak Holikatti vinholika...@gmail.com Reviewed-by: Arnd Bergmann

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

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com UFSHCI error handling includes support for: - UFS host controller errors - System bus errors - Unipro errors Signed-off-by: Santosh Yaraganavi santos...@gmail.com Signed-off-by: Vinayak Holikatti vinholika...@gmail.com Reviewed-by: Arnd Bergmann

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

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com 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:

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

2012-02-28 Thread Santosh Y
From: Santosh Yaraganavi santos...@gmail.com The document provides Universal Flash Storage(UFS) and UFS host controller driver overview. Signed-off-by: Santosh Yaraganavi santos...@gmail.com Reviewed-by: Vishak G visha...@samsung.com Reviewed-by: Namjae Jeon linkinj...@gmail.com ---

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 dsax...@linaro.org wrote: On 23 February 2012 23:19, Santosh Y santos...@gmail.com wrote: From: Santosh Yaraganavi santos...@gmail.com UFS: Universal Flash Storage is a storage specification for flash devices. It is aimed to provide a universal

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 yoshitake.kobaya...@toshiba.co.jp wrote: Santosh Y wrote: +        ucd_cmd_ptr-exp_data_transfer_len = +            cpu_to_be32(lrbp-cmd-transfersize); + +        memcpy(ucd_cmd_ptr-cdb, +               lrbp-cmd-cmnd

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 yoshitake.kobaya...@toshiba.co.jp wrote: Santosh Y wrote: +        ucd_cmd_ptr-exp_data_transfer_len = +            cpu_to_be32(lrbp-cmd-transfersize); + +        memcpy(ucd_cmd_ptr-cdb, +               lrbp-cmd-cmnd