Re: [PATCH v4 2/2] arch: arm: Show the serial number from devicetree in cpuinfo

2015-06-07 Thread Grant Likely
On Tue, 28 Apr 2015 09:29:56 +0200 , Paul Kocialkowski cont...@paulk.fr wrote: This grabs the serial number shown in cpuinfo from the serial-number devicetree property in priority. When booting with ATAGs (and without device-tree), the provided number is still shown instead.

[PATCH v3 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread Yaniv Gardi
It does so by adding the following changes: 1. Introducing SCSI_UFS_QCOM as a platform device. Its probe function registers a set of vops to its driver_data. 2. Adding an optional device tree sub-node, under SCSI_UFSHCD_PLATFORM. Now, the probe function of SCSI_UFSHCD_PLATFORM invokes the

Re: [PATCH 2/2] drivercore: Fix unregistration path of platform devices

2015-06-07 Thread Ricardo Ribalda Delgado
Hello Grant I would ask you to go through all the discussion related to this bug. Here is a summary (please anyone involved correct me if I am wrong) 1) I send a patch to fix the oops if release resource is executed with a resource without parent 2) Bjorn says that we should fix the issue of the

Re: [PATCH v5 2/2] ARM: dts: add property for maximum ADC clock frequencies

2015-06-07 Thread Stefan Agner
On 2015-06-07 18:56, Jonathan Cameron wrote: On 27/05/15 13:47, Stefan Agner wrote: The ADC clock frequency is limited depending on modes used. Add device tree property which allow to set the mode used and the maximum frequency ratings for the instance. These allows to set the ADC clock to a

Re: [PATCH v5 1/2] iio: adc: vf610: implement configurable conversion modes

2015-06-07 Thread Jonathan Cameron
On 27/05/15 13:47, Stefan Agner wrote: Support configurable conversion mode through sysfs. So far, the mode used was low-power, which is enabled by default now. Beside that, the modes normal and high-speed are selectable as well. Use the new device tree property which specifies the maximum

Re: [PATCH v5 2/2] ARM: dts: add property for maximum ADC clock frequencies

2015-06-07 Thread Jonathan Cameron
On 27/05/15 13:47, Stefan Agner wrote: The ADC clock frequency is limited depending on modes used. Add device tree property which allow to set the mode used and the maximum frequency ratings for the instance. These allows to set the ADC clock to a frequency which is within specification

[PATCH 2/2] drivercore: Fix unregistration path of platform devices

2015-06-07 Thread Grant Likely
The unregister path of platform_device is broken. On registration, it will register all resources with either a parent already set, or type==IORESOURCE_{IO,MEM}. However, on unregister it will release everything with type==IORESOURCE_{IO,MEM}, but ignore the others. There are also cases where

[PATCH 0/2] Fix oops in platform_device resource unregister

2015-06-07 Thread Grant Likely
The register and unregister paths for platform_devices use different tests to chose which resources to process. Register uses the value of both parent type, but unregister relies solely on type, which can result in some resources not being unregistered, and an oops when an unregistered resource

[PATCH 1/2] of/unittest: Show broken behaviour in the platform bus

2015-06-07 Thread Grant Likely
Add a single resource to the test bus device to exercise the platform bus code a little more. This isn't strictly a devicetree test, but it is a corner case that the devicetree runs into. Until we've got platform device unittests, it can live here. It doesn't need to be an explicit text because

Re: [PATCH v2 2/2] iio: adc: xilinx-xadc: Add label as an optional argument for aux channels

2015-06-07 Thread Jonathan Cameron
On 20/05/15 16:22, Xander Huff wrote: To better facilitate user-mode access to optional aux channels, allow device trees to specify a custom label for defined channels. Signed-off-by: Xander Huff xander.h...@ni.com Reviewed-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Josh

Re: [PATCH v4 1/4] base/platform: Only insert MEM and IO resources

2015-06-07 Thread Grant Likely
On Thu, 23 Apr 2015 15:58:11 +0200 , Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: platform_device_del only checks the type of the resource in order to call release_resource. On the other hand, platform_device_add calls insert_resource for any resource that has a parent. Make

Re: [PATCH v2] drivers: of/base: move of_init to driver_init

2015-06-07 Thread Grant Likely
On Tue, 19 May 2015 10:17:32 -0700 , Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, May 19, 2015 at 01:29:16PM +0100, Sudeep Holla wrote: Hi Rob/Greg, On 14/05/15 15:28, Sudeep Holla wrote: Commit 5590f3196b29 (drivers/core/of: Add symlink to device-tree from devices

Re: [PATCH] TESTCASE: of: OOPS when disabling node via OF_DYNAMIC

2015-06-07 Thread Grant Likely
On Wed, 22 Apr 2015 15:30:28 +0300 , Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Hi Wolfram, On Apr 14, 2015, at 16:27 , Wolfram Sang w...@the-dreams.de wrote: Hi Pantelis, thanks for your prompt reply. Unfortunately, I had to wait until I could access the test system

Re: [PATCH v4 4/4] base/platform: Remove code duplication

2015-06-07 Thread Grant Likely
On Wed, 13 May 2015 09:03:31 -0500 , Rob Herring robherri...@gmail.com wrote: On Thu, Apr 23, 2015 at 8:58 AM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: Failure path of platform_device_add was almost the same as platform_device_del. Refactor same code in a function.

Re: [PATCH v4 19/21] drivers/of: Support adding sub-tree

2015-06-07 Thread Grant Likely
Sorry for not weighing in earlier, I've had other work keeping me away. My short answer: don't use overlays. They're not what you need. Generic CONFIG_OF_DYNAMIC should be all that is required to make changes in your use case. Overlays are a specific api for being able to apply a set of changes

Re: [PATCH 2/2] of/platform: Mark all device tree resources as SHARED

2015-06-07 Thread Grant Likely
On Fri, 5 Jun 2015 18:51:36 +0200 , Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: Hello Rob, Thanks for your feedback! On Fri, Jun 5, 2015 at 6:45 PM, Rob Herring robherri...@gmail.com wrote: On Fri, Jun 5, 2015 at 5:51 AM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com

[RESEND] ARM: dts: odroidxu3: Enable USB3 regulators

2015-06-07 Thread Anand Moon
Enable regulator for usbdrd3_0 and usbdrd3_1. Looking at the schematic pin diagram for MAX77802 USB3_0 and USB3_1 is regulated by LDO9 and LD011. Fix the boot message of failed. [3.503539] exynos-dwc3 usb@1200: Looking up vdd33-supply from device tree [3.503556] exynos-dwc3

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread ygardi
Thanks Paul for the review and comments. please see inline. On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c EXPORT_SYMBOL(ufs_hba_qcom_vops); Nothing uses this export. It's still a (static) symbol that is not

[RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-07 Thread Anand Moon
Facilitate getting required 3.3V and 1.0V VDD supply for EHCI controller on Exynos. With the patches for regulators' nodes merged in 3.15: c8c253f ARM: dts: Add regulator entries to smdk5420 275dcd2 ARM: dts: add max77686 pmic node for smdk5250, the exynos systems turn on only minimal number of

[RESEND 2/2] usb: ohci-exynos: Make provision for vdd regulators

2015-06-07 Thread Anand Moon
Facilitate getting required 3.3V and 1.0V VDD supply for OHCI controller on Exynos. With patches for regulators' nodes merged in 3.15: c8c253f ARM: dts: Add regulator entries to smdk5420 275dcd2 ARM: dts: add max77686 pmic node for smdk5250, the exynos systems turn on only minimal number of

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread ygardi
2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto out; } - hba-vops = get_variant_ops(pdev-dev); +

Re: [PATCH 3/3] dt: Document Holt descrete ADC bindings

2015-06-07 Thread Jonathan Cameron
On 01/06/15 13:20, Vladimir Barinov wrote: These bindings can be used to register Holt HI-8435/8436/8437 descrete ADC Signed-off-by: Vladimir Barinov vladimir.bari...@cogentembedded.com --- .../devicetree/bindings/iio/adc/hi-843x.txt| 27 ++ 1 file changed, 27

Re: [PATCH 1/3] iio: adc: hi-843x: Holt HI-8435/8436/8437 descrete ADC

2015-06-07 Thread Jonathan Cameron
On 01/06/15 13:20, Vladimir Barinov wrote: Add Holt descrete ADC driver for HI-8435/8436/8437 chips Signed-off-by: Vladimir Barinov vladimir.bari...@cogentembedded.com Hmm. The main issue here is one man's discrete ADC is another man's configurable general purpose input device. Anyhow, from

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-07 Thread Anand Moon
Hi Krzysztof , On 8 June 2015 at 07:40, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: On 07.06.2015 22:20, Anand Moon wrote: Facilitate getting required 3.3V and 1.0V VDD supply for EHCI controller on Exynos. With the patches for regulators' nodes merged in 3.15: c8c253f ARM: dts: Add

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-07 Thread Krzysztof Kozlowski
2015-06-08 13:21 GMT+09:00 Anand Moon linux.am...@gmail.com: Hi Krzysztof , On 8 June 2015 at 07:40, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: On 07.06.2015 22:20, Anand Moon wrote: Facilitate getting required 3.3V and 1.0V VDD supply for EHCI controller on Exynos. With the

Re: [PATCH v0] gpio_keys: fix gpio key driver to proper support GIC interrupt

2015-06-07 Thread Y Vo
On Fri, Jun 5, 2015 at 7:50 PM, Arnd Bergmann a...@arndb.de wrote: On Thursday 04 June 2015 14:25:12 Y Vo wrote: GIC is designed to support two of trigger mechanisms - active level high or edge rising. But in the gpio_keys driver, it tries to use both edge rising and edge falling trigger. This

[PATCH v1 2/2] ARM: dts: vfxxx: Add property for minimum sample time

2015-06-07 Thread Sanchayan Maity
Add a device tree property which allows to specify the minimum sample time which can be used to calculate the actual ADC cycles required depending on the hardware. Signed-off-by: Sanchayan Maity maitysancha...@gmail.com --- arch/arm/boot/dts/vfxxx.dtsi | 2 ++ 1 file changed, 2 insertions(+)

[PATCH v1 1/2] iio: adc: Determine sampling frequencies by using minimum sample time

2015-06-07 Thread Sanchayan Maity
The driver currently does not take into account the minimum sample time as per the Figure 6-8 Chapter 9.1.1 12-bit ADC electrical characteristics. We set a static amount of cycles instead of considering the sample time as a given value, which depends on hardware characteristics. Determine

[PATCH v1 0/2] Implement sample time consideration

2015-06-07 Thread Sanchayan Maity
Hello, This patchset adds a dt binding for specifying sample time for the vybrid adc driver and takes this into account for sampling frequency calculation and related configuration in the driver. The patchset is based on top of Stefan's patches here

Re: [PATCH V2 0/3] Add RS-485 support and fix RTS/CTS implementation

2015-06-07 Thread Bhuvanchandra DV
Hello, Ping! On 06/01/2015 10:51 AM, Bhuvanchandra DV wrote: Changes since V1: Use common get/set mctrl control methods for both lpuart, lpuart32 and fix indention. Bhuvanchandra DV (3): ARM: dts: colibri-vf: Add pinmux for UART_0 aka UART_A RTS/CTS pins tty: serial: fsl_lpuart: remove

Re: [PATCH v5 1/2] ARM: dts: vfxxx: Add OCOTP and OCROM nodes

2015-06-07 Thread maitysanchayan
Hello Maxime, On 15-06-06 13:58:33, Maxime Ripard wrote: Hi, On Fri, Jun 05, 2015 at 02:52:37PM +0530, Sanchayan Maity wrote: Add a device tree node for the On-Chip One Time Programmable Controller (OCOTP) and the On-Chip ROM. Signed-off-by: Sanchayan Maity maitysancha...@gmail.com

Re: [PATCH v5 2/2] soc: Add driver for Freescale Vybrid Platform

2015-06-07 Thread maitysanchayan
Hello Paul, On 15-06-06 12:26:07, Paul Bolle wrote: On Fri, 2015-06-05 at 14:52 +0530, Sanchayan Maity wrote: --- /dev/null +++ b/drivers/soc/fsl/Kconfig +config SOC_BUS_VF610 + tristate SoC bus device for the Freescale Vybrid platform + depends on SOC_VF610 + select

Re: [PATCH v2] drivers: of/base: move of_init to driver_init

2015-06-07 Thread Rob Herring
On Sun, Jun 7, 2015 at 2:05 AM, Grant Likely grant.lik...@linaro.org wrote: On Tue, 19 May 2015 10:17:32 -0700 , Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, May 19, 2015 at 01:29:16PM +0100, Sudeep Holla wrote: Hi Rob/Greg, On 14/05/15 15:28, Sudeep Holla wrote:

[PATCH 1/2] power_supply: max17042: Add OF support for setting thresholds

2015-06-07 Thread Krzysztof Kozlowski
The commit edd4ab055931 (power: max17042_battery: add HEALTH and TEMP_* properties support) added support for setting voltage and temperature thresholds with platform data. For DeviceTree default of 0 was always used. This caused reporting battery health always as over voltage or over heated.

[PATCH 2/2] ARM: dts: Set max17047 over heat and over voltage thresholds

2015-06-07 Thread Krzysztof Kozlowski
Add some safe values for over head and over voltage. The Trats2 uses 3.8 V battery and during testing it operated properly under 4.48 V. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- arch/arm/boot/dts/exynos4412-trats2.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-07 Thread Krzysztof Kozlowski
On 07.06.2015 22:20, Anand Moon wrote: Facilitate getting required 3.3V and 1.0V VDD supply for EHCI controller on Exynos. With the patches for regulators' nodes merged in 3.15: c8c253f ARM: dts: Add regulator entries to smdk5420 275dcd2 ARM: dts: add max77686 pmic node for smdk5250, the