Re: [PATCH v9 1/2] regulator: Add driver for max77802 PMIC PMIC regulators

2014-08-21 Thread Yuvaraj Cd
On Mon, Aug 18, 2014 at 2:02 PM, Javier Martinez Canillas wrote: > The MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout > (LDO) regulators. This patch adds support for all these regulators > found on the MAX77802 PMIC and is based on a driver added by Simon > Glass to the Chrome OS ker

[PATCH V2] vb2: fix plane index sanity check in vb2_plane_cookie()

2014-08-21 Thread Zhaowei Yuan
It's also invalid that plane_no equals to vb->num_planes Signed-off-by: Zhaowei Yuan --- drivers/media/v4l2-core/videobuf2-core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index c359

Re: [PATCH v7 04/11] arm: Support restart through restart handler call chain

2014-08-21 Thread Guenter Roeck
On Fri, Aug 22, 2014 at 03:32:42AM +0200, Andreas Färber wrote: > Hi, > > Am 20.08.2014 02:45, schrieb Guenter Roeck: > > The kernel core now supports a restart handler call chain for system > > restart functions. > > > > With this change, the arm_pm_restart callback is now optional, so > > drop

Re: [PATCH v7 04/11] arm: Support restart through restart handler call chain

2014-08-21 Thread Andreas Färber
Hi, Am 20.08.2014 02:45, schrieb Guenter Roeck: > The kernel core now supports a restart handler call chain for system > restart functions. > > With this change, the arm_pm_restart callback is now optional, so > drop its initialization and check if it is set before calling it. > Only call the ker

Re: [PATCH v7 02/11] power/restart: Call machine_restart instead of arm_pm_restart

2014-08-21 Thread Sebastian Reichel
Hi, On Tue, Aug 19, 2014 at 05:45:29PM -0700, Guenter Roeck wrote: > machine_restart is supported on non-ARM platforms, and and ultimately calls > arm_pm_restart, so dont call arm_pm_restart directly but use the more > generic function. > > Cc: Russell King > Signed-off-by: Guenter Roeck > Acke

Re: [PATCH v7 02/11] power/restart: Call machine_restart instead of arm_pm_restart

2014-08-21 Thread Guenter Roeck
On Thu, Aug 21, 2014 at 12:30:44PM -0700, Doug Anderson wrote: > Guenter, > > On Wed, Aug 20, 2014 at 9:42 PM, Guenter Roeck wrote: > > On Wed, Aug 20, 2014 at 09:10:31PM -0700, Doug Anderson wrote: > >> Guenter, > >> > >> On Tue, Aug 19, 2014 at 5:45 PM, Guenter Roeck wrote: > >> > machine_rest

Re: [PATCH 04/29] drivers: base: add notifier for failed driver bind

2014-08-21 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Tuesday 05 August 2014 12:47:32 Marek Szyprowski wrote: > This patch adds support for getting a notify for failed device driver > bind, so all the items done in BUS_NOTIFY_BIND_DRIVER event can be > cleaned if the driver fails to bind. > > Signed-off-by: Mar

Re: [PATCH v7 02/11] power/restart: Call machine_restart instead of arm_pm_restart

2014-08-21 Thread Doug Anderson
Guenter, On Wed, Aug 20, 2014 at 9:42 PM, Guenter Roeck wrote: > On Wed, Aug 20, 2014 at 09:10:31PM -0700, Doug Anderson wrote: >> Guenter, >> >> On Tue, Aug 19, 2014 at 5:45 PM, Guenter Roeck wrote: >> > machine_restart is supported on non-ARM platforms, and and ultimately calls >> > arm_pm_res

Re: [PATCHv3] thermal: exynos: Add support for TRIM_RELOAD feature at Exynos3250

2014-08-21 Thread Chanwoo Choi
Dear Andreas, On Thu, Aug 21, 2014 at 7:32 PM, Andreas Färber wrote: > Hello, > > Am 21.08.2014 03:38, schrieb Chanwoo Choi: >> On 08/20/2014 10:38 PM, edubez...@gmail.com wrote: >>> On Tue, Aug 19, 2014 at 7:52 PM, Chanwoo Choi wrote: diff --git a/drivers/thermal/samsung/exynos_tmu_data.c

Re: [PATCH v7 3/4] ARM: EXYNOS: Add platform driver support for Exynos PMU

2014-08-21 Thread Tomasz Figa
On 21.08.2014 16:07, Pankaj Dubey wrote: > +Arnd, Lee Jones > > Hi Tomasz, > > On Tuesday, August 19, 2014 Tomasz Figa wrote: > >> >> Hi Bart, >> >> On 18.08.2014 19:42, Bartlomiej Zolnierkiewicz wrote: >>> >>> Hi, >>> >>> On Monday, July 28, 2014 08:40:52 AM Pankaj Dubey wrote: Hi Tomasz,

[PATCH v5 0/4] Fine tune USB 3.0 PHY on exynos5420

2014-08-21 Thread Vivek Gautam
This series is based on Heikki's patches for simpliefied phy lookup table: [PATCHv3 0/6] phy: simplified phy lookup [1], applied against 'usb-next' branch alongwith Sergei's patch for adding generic phy support to usb hcd [2]. Changes since v4: - Rebased on latest patches by Heikki. - Took care

[PATCH v5 1/4] phy: Add provision for calibrating phy.

2014-08-21 Thread Vivek Gautam
Some PHY controllers may need to calibrate certain PHY settings after initialization of the controller and sometimes even after initializing the PHY-consumer too. Add support for the same in order to let consumers do so in need. Signed-off-by: vivek Gautam --- drivers/phy/phy-core.c | 36

[PATCH v5 2/4] usb: host: xhci-plat: Get PHYs for xhci's hcds

2014-08-21 Thread Vivek Gautam
The host controller by itself may sometimes need to handle PHY and/or calibrate some of the PHY settings to get full support out of the PHY controller. The PHY core provides a calibration funtionality now to do so. Therefore, facilitate getting the two possible PHYs, viz. USB 2.0 type (UTMI+) and U

[PATCH v5 3/4] usb: hcd: Caibrate PHY post hcd reset

2014-08-21 Thread Vivek Gautam
Some quirky PHYs may require to be calibrated post the hcd initialization. The USB 3.0 DRD PHY on Exynos5420/5800 systems, coming along with Synopsys's DWC3 controller, is one such PHY which needs to be calibrated post xhci's reset at initialization time and at resume time, to get the controller wo

[PATCH v5 4/4] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800

2014-08-21 Thread Vivek Gautam
Adding phy calibrate callback, which facilitates setting certain PHY settings post initialization of the PHY controller. Exynos5420 and Exynos5800 have 28nm USB 3.0 DRD PHY for which the Loss-of-Signal (LOS) Detector Threshold Level as well as Tx-Vboost-Level should be controlled for Super-Speed op

Re: [RESEND PATCH 5/7] mfd: cros_ec: wait for completion of commands that return IN_PROGRESS

2014-08-21 Thread Lee Jones
On Wed, 20 Aug 2014, Javier Martinez Canillas wrote: > From: Andrew Bresticker > > When an EC command returns EC_RES_IN_PROGRESS, we need to query > the state of the EC until it indicates that it is no longer busy. > Do this in cros_ec_cmd_xfer() under the EC's mutex so that other > commands (e.

Re: [RESEND PATCH 6/7] mfd: cros_ec: Instantiate sub-devices from device tree

2014-08-21 Thread Lee Jones
On Wed, 20 Aug 2014, Javier Martinez Canillas wrote: > From: Todd Broch > > If the EC device tree node has sub-nodes, try to instantiate them as > MFD sub-devices. We can configure the EC features provided by the board. > > Signed-off-by: Todd Broch > Signed-off-by: Javier Martinez Canillas

Re: [RESEND PATCH 4/7] mfd: cros_ec: move locking into cros_ec_cmd_xfer

2014-08-21 Thread Lee Jones
On Wed, 20 Aug 2014, Javier Martinez Canillas wrote: > From: Andrew Bresticker > > Now that there's a central cros_ec_cmd_xfer(), move the locking > out of the SPI and LPC drivers. > > Signed-off-by: Andrew Bresticker > Reviewed-by: Simon Glass > Signed-off-by: Javier Martinez Canillas > ---

Re: [RESEND PATCH 3/7] mfd: cros_ec: stop calling ->cmd_xfer() directly

2014-08-21 Thread Lee Jones
On Wed, 20 Aug 2014, Javier Martinez Canillas wrote: > From: Andrew Bresticker > > Instead of having users of the ChromeOS EC call the interface-specific > cmd_xfer() callback directly, introduce a central cros_ec_cmd_xfer() > to use instead. This will allow us to put all the locking and retry

RE: [PATCH v7 3/4] ARM: EXYNOS: Add platform driver support for Exynos PMU

2014-08-21 Thread Pankaj Dubey
+Arnd, Lee Jones Hi Tomasz, On Tuesday, August 19, 2014 Tomasz Figa wrote: > > Hi Bart, > > On 18.08.2014 19:42, Bartlomiej Zolnierkiewicz wrote: > > > > Hi, > > > > On Monday, July 28, 2014 08:40:52 AM Pankaj Dubey wrote: > >> Hi Tomasz, > >> > >> On Friday, July 25, 2014 Tomasz Figa wrote: >

Re: [RESEND PATCH 1/7] mfd: cros_ec: Delay for 50ms when we see EC_CMD_REBOOT_EC

2014-08-21 Thread Javier Martinez Canillas
Hello Lee, On 08/21/2014 03:37 PM, Lee Jones wrote: > On Wed, 20 Aug 2014, Javier Martinez Canillas wrote: >> From: Doug Anderson >> >> If someone sends a EC_CMD_REBOOT_EC to the EC, the EC will likely be >> unresponsive for quite a while. Add a delay to the end of the command >> to prevent ran

Re: [RESEND PATCH 1/7] mfd: cros_ec: Delay for 50ms when we see EC_CMD_REBOOT_EC

2014-08-21 Thread Lee Jones
On Wed, 20 Aug 2014, Javier Martinez Canillas wrote: > From: Doug Anderson > > If someone sends a EC_CMD_REBOOT_EC to the EC, the EC will likely be > unresponsive for quite a while. Add a delay to the end of the command > to prevent random failures of future commands. > > NOTES: > * This could

[PATCH v2 2/3] ARM: exynos: Add exynos5800-pmu compatible entry

2014-08-21 Thread Vikas Sajjan
Adds exynos5800-pmu compatible string entry in the pmu table. Signed-off-by: Vikas Sajjan --- arch/arm/mach-exynos/exynos.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 6a24e11..90377c9 100644 --- a/arch/arm/mach-exyno

[PATCH v2 3/3] ARM: exynos: Add PMU and S2R support for exynos5800 SoC

2014-08-21 Thread Vikas Sajjan
Adds PMU and S2R support for exynos5800 SoC. Signed-off-by: Vikas Sajjan --- arch/arm/mach-exynos/pm.c |3 +++ arch/arm/mach-exynos/pmu.c | 22 ++ arch/arm/mach-exynos/regs-pmu.h |3 ++- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/

[PATCH v2 1/3] ARM: dts: Add pmu node for exynos5800 SoC

2014-08-21 Thread Vikas Sajjan
Adds pmu node for exynos5800 SoC. Signed-off-by: Vikas Sajjan --- .../devicetree/bindings/arm/samsung/pmu.txt|1 + arch/arm/boot/dts/exynos5800.dtsi |4 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.txt b/D

[PATCH v2 0/3] Adds PMU and S2R support for exynos5800

2014-08-21 Thread Vikas Sajjan
Rebased on 1] Kukjin Kim's tree, master branch http://git.kernel.org/cgit/linux/kernel/git/kgene/linux-samsung.git/log/ 2] My 5420 PMU Series : http://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg35699.html Tested on Exynos5800 based chromebook (peach-pi board) with help of http://www

[PATCH v7 1/2] ARM: exynos5: Add PMU support for 5420

2014-08-21 Thread Vikas Sajjan
From: Abhilash Kesavan Add intial PMU settings for exynos5420. This is required for future S2R and Switching support. Signed-off-by: Thomas Abraham Signed-off-by: Abhilash Kesavan Signed-off-by: Vikas Sajjan --- arch/arm/mach-exynos/pmu.c | 288 +++

[PATCH v7 2/2] ARM: exynos5: Add Suspend-to-RAM support for 5420

2014-08-21 Thread Vikas Sajjan
From: Abhilash Kesavan Adds Suspend-to-RAM support for EXYNOS5420 Signed-off-by: Vikas Sajjan Signed-off-by: Abhilash Kesavan --- arch/arm/mach-exynos/pm.c | 149 - 1 file changed, 148 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos

[PATCH v7 0/2] Adds PMU and S2R support for exynos5420

2014-08-21 Thread Vikas Sajjan
Rebased on 1] Kukjin Kim's tree, master branch http://git.kernel.org/cgit/linux/kernel/git/kgene/linux-samsung.git/log/ 2] Pankaj Dubey's v7 PMU patchset https://lkml.org/lkml/2014/7/9/2 http://lists.infradead.org/pipermail/linux-arm-kernel/2014-July/270655.html 3] My pm.c refactoring patchset http

[PATCH] drm: exynos: Make of_device_id array const

2014-08-21 Thread Kiran Padwal
Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Kiran Padwal --- drivers/gpu/drm/exynos/exynos_drm_dsi.c |2 +- drivers/gpu/drm/exynos/exynos_hdmi.c|2 +- drivers/gpu/drm/exynos/exynos_mixer.c |2 +- 3 files changed, 3 insertions(+), 3

Re: [PATCH 1/1] pinctrl: exynos: Lock GPIOs as interrupts when used as EINTs

2014-08-21 Thread Linus Walleij
On Fri, Aug 8, 2014 at 6:48 PM, Javier Martinez Canillas wrote: > From: Tomasz Figa > > Currently after configuring a GPIO pin as an interrupt related pinmux > registers are changed, but there is no protection from calling > gpio_direction_*() in a badly written driver, which would cause the sam

[PATCH v2 2/2] usb: host: ohci-exynos: Remove unnecessary usb-phy support

2014-08-21 Thread Vivek Gautam
Now that we have completely moved from older USB-PHY drivers to newer GENERIC-PHY drivers for PHYs available with USB controllers on Exynos series of SoCs, we can remove the support for the same in our host drivers too. This should fix the issue on ohci-exynos, wherein in the absence of SAMSUNG_USB

[PATCH v2 1/2] usb: host: ehci-exynos: Remove unnecessary usb-phy support

2014-08-21 Thread Vivek Gautam
Now that we have completely moved from older USB-PHY drivers to newer GENERIC-PHY drivers for PHYs available with USB controllers on Exynos series of SoCs, we can remove the support for the same in our host drivers too. This should fix the issue on ehci-exynos, wherein in the absence of SAMSUNG_USB

Re: [PATCHv3] thermal: exynos: Add support for TRIM_RELOAD feature at Exynos3250

2014-08-21 Thread Andreas Färber
Hello, Am 21.08.2014 03:38, schrieb Chanwoo Choi: > On 08/20/2014 10:38 PM, edubez...@gmail.com wrote: >> On Tue, Aug 19, 2014 at 7:52 PM, Chanwoo Choi wrote: >>> diff --git a/drivers/thermal/samsung/exynos_tmu_data.c >>> b/drivers/thermal/samsung/exynos_tmu_data.c >>> index aa8e0de..8cd609c 100

Re: [RESEND PATCH 4/7] mfd: cros_ec: move locking into cros_ec_cmd_xfer

2014-08-21 Thread Javier Martinez Canillas
Hello Doug, On 08/21/2014 12:36 AM, Doug Anderson wrote: > Javier, > > On Wed, Aug 20, 2014 at 5:13 AM, Javier Martinez Canillas > wrote: >> From: Andrew Bresticker >> >> Now that there's a central cros_ec_cmd_xfer(), move the locking >> out of the SPI and LPC drivers. > > Slight nit that the

Re: [PATCH V2 4/9] drm/exynos: add exynos_dp_panel driver registration to drm driver

2014-08-21 Thread Thierry Reding
On Thu, Aug 21, 2014 at 02:57:21PM +0530, Ajay kumar wrote: > On Thu, Aug 21, 2014 at 1:55 PM, Stéphane Marchesin > wrote: > > On Thu, Aug 21, 2014 at 12:36 AM, Thierry Reding > > wrote: > >> On Tue, Aug 19, 2014 at 09:02:39PM -0700, Stéphane Marchesin wrote: > >>> On Tue, Apr 22, 2014 at 8:26 AM

Re: [PATCH V2 4/9] drm/exynos: add exynos_dp_panel driver registration to drm driver

2014-08-21 Thread Thierry Reding
Adding Boris and Ludovic since this topic came up in a different thread as well. On Thu, Aug 21, 2014 at 01:25:07AM -0700, Stéphane Marchesin wrote: > On Thu, Aug 21, 2014 at 12:36 AM, Thierry Reding > wrote: > > On Tue, Aug 19, 2014 at 09:02:39PM -0700, Stéphane Marchesin wrote: > >> On Tue, Apr

Re: [PATCH V2 4/9] drm/exynos: add exynos_dp_panel driver registration to drm driver

2014-08-21 Thread Ajay kumar
On Thu, Aug 21, 2014 at 1:55 PM, Stéphane Marchesin wrote: > On Thu, Aug 21, 2014 at 12:36 AM, Thierry Reding > wrote: >> On Tue, Aug 19, 2014 at 09:02:39PM -0700, Stéphane Marchesin wrote: >>> On Tue, Apr 22, 2014 at 8:26 AM, Thierry Reding >>> wrote: >>> > On Tue, Apr 22, 2014 at 08:33:23PM +0

Re: [PATCH V2 4/9] drm/exynos: add exynos_dp_panel driver registration to drm driver

2014-08-21 Thread Stéphane Marchesin
On Thu, Aug 21, 2014 at 12:36 AM, Thierry Reding wrote: > On Tue, Aug 19, 2014 at 09:02:39PM -0700, Stéphane Marchesin wrote: >> On Tue, Apr 22, 2014 at 8:26 AM, Thierry Reding >> wrote: >> > On Tue, Apr 22, 2014 at 08:33:23PM +0530, Ajay kumar wrote: >> >> Hi Thierry, >> >> >> >> On Tue, Apr 22,

Re: [PATCH v7 11/11] clk: rockchip: add restart handler

2014-08-21 Thread Heiko Stübner
Am Mittwoch, 20. August 2014, 21:15:10 schrieb Doug Anderson: > Guenter / Heiko, > > On Tue, Aug 19, 2014 at 5:45 PM, Guenter Roeck wrote: > > From: Heiko Stübner > > > > Add infrastructure to write the correct value to the restart register and > > register the restart notifier for both rk3188

Re: [PATCH V2 4/9] drm/exynos: add exynos_dp_panel driver registration to drm driver

2014-08-21 Thread Thierry Reding
On Tue, Aug 19, 2014 at 09:02:39PM -0700, Stéphane Marchesin wrote: > On Tue, Apr 22, 2014 at 8:26 AM, Thierry Reding > wrote: > > On Tue, Apr 22, 2014 at 08:33:23PM +0530, Ajay kumar wrote: > >> Hi Thierry, > >> > >> On Tue, Apr 22, 2014 at 2:03 PM, Thierry Reding > >> wrote: > >> > On Tue, Apr