Re: [PATCH v2] thermal: ti-soc-thermal: dra7: Implement Workaround for Errata i814 - Bandgap Temperature read Dtemp can be corrupted

2015-04-16 Thread Keerthy
On Friday 10 April 2015 12:06 PM, Keerthy wrote: Bandgap Temperature read Dtemp can be corrupted DESCRIPTION Read accesses to registers listed below can be corrupted due to incorrect resynchronization between clock domains. Read access to registers below can be

[PATCH 2/6] phy: twl4030-usb: remove pointless 'suspended' test in 'suspend' callback.

2015-04-16 Thread NeilBrown
When the runtime_suspend callback is running, 'runtime_status' is always RPM_SUSPENDING, so pm_runtime_suspended() will always fail. Similarly while the runtime_resume callback is running 'runtime_status' is RPM_RESUMING, so pm_runtime_active() will always fail. So remove these two pointless

[PATCH 3/6] phy: twl4030-usb: remove incorrect pm_runtime_get_sync() in probe function.

2015-04-16 Thread NeilBrown
The USB phy should initialize with power-off, and will be powered on by the USB system when a cable connection is detected. Having this pm_runtime_get_sync() during probe causes the phy to *always* be powered on. Removing it returns to sensible power management. Fixes:

[PATCH 1/6] phy: twl4030-usb: make runtime pm more reliable.

2015-04-16 Thread NeilBrown
From: NeilBrown ne...@suse.de A construct like: if (pm_runtime_suspended(twl-dev)) pm_runtime_get_sync(twl-dev); is against the spirit of the runtime_pm interface as it makes the internal refcounting useless. In this case it is also racy, particularly as

[PATCH 5/6] phy: twl4030-usb: add support for reading resistor on ID pin.

2015-04-16 Thread NeilBrown
From: NeilBrown ne...@suse.de The twl4030 phy can measure, with low precision, the resistance-to-ground of the ID pin. Add a function to read the value, and export the result via sysfs. If the read fails, which it does sometimes, try again in 50msec. Acked-by: Pavel Machek pa...@ucw.cz

[PATCH 6/6] phy: twl4030-usb: add extcon to report cable connections.

2015-04-16 Thread NeilBrown
From: NeilBrown ne...@suse.de Signed-off-by: NeilBrown ne...@suse.de --- drivers/phy/phy-twl4030-usb.c | 67 + 1 file changed, 67 insertions(+) diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c index 1d6f3e70193e..c42153d43ec2

Re: [PATCH v8 0/4] hwspinlock core omap dt support

2015-04-16 Thread Mark Rutland
Hi, Apologies for the delay on this. Gentle reminder. Can you please provide your ack on the bindings in this series (Patches 1 3) for Ohad to queue up the series for 4.1. Ping again, if you can provide your ack on these bindings and the qcom hwmutex bindings, then Ohad can pick up

n900 in 4.1-rc0

2015-04-16 Thread Pavel Machek
Hi! Just tried booting 4.1-rc0 on n900 (commit 34c9a0ffc75ad25b6a60f61e27c4a4b1189b8085) and it is broken. Any ideas? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures)

[PATCH 0/6] Enhancements to twl4030 phy to support better charging.

2015-04-16 Thread NeilBrown
Hi Kishon, this is a slightly modified version of the series I sent earlier. I've removed that patches which use the old 'notifier chain' and will solve the issue of communicating current available separately. I've added a couple of patches which fix some pm_runtime issues. In particular:

[PATCH 4/6] phy: twl4030-usb: add ABI documentation

2015-04-16 Thread NeilBrown
From: NeilBrown ne...@suse.de This driver device one local attribute: vbus. Describe that in Documentation/ABI/testing/sysfs-platform/twl4030-usb. Signed-off-by: NeilBrown n...@brown.name --- .../ABI/testing/sysfs-platform-twl4030-usb |8 1 file changed, 8 insertions(+)

Re: n900 in 4.1-rc0

2015-04-16 Thread Marc Zyngier
On 16/04/15 10:32, Pavel Machek wrote: Hi! Just tried booting 4.1-rc0 on n900 (commit 34c9a0ffc75ad25b6a60f61e27c4a4b1189b8085) and it is broken. Any ideas? To such a question, the only answer I have is Yes. For a more useful reply, I'm afraid you'll have to ask a better question.

[PATCH] thermal: ti-soc-thermal: dra7: Implement Workaround for Errata i813

2015-04-16 Thread Keerthy
DESCRIPTION Spurious Thermal Alert: Talert can happen randomly while the device remains under the temperature limit defined for this event to trig. This spurious event is caused by a incorrect re-synchronization between clock domains. The comparison between configured threshold and current

Re: [RFC][PATCH v2 02/13] usb: otg-fsm: support multiple instances

2015-04-16 Thread Roger Quadros
On 16/04/15 14:36, Peter Chen wrote: On Tue, Apr 14, 2015 at 01:41:49PM +0300, Roger Quadros wrote: Move the state_changed variable into struct otg_fsm so that we can support multiple instances. OTG device has only one port. See 3.1.1. If you go to pass OTG Certification, the lab requires

Re: [RFC][PATCH v2 05/13] usb: otg: add OTG core

2015-04-16 Thread Peter Chen
On Tue, Apr 14, 2015 at 01:41:52PM +0300, Roger Quadros wrote: The OTG core instantiates the OTG Finite State Machine per OTG controller and manages starting/stopping the host and gadget controllers based on the bus state. It provides APIs for the following tasks - Registering an OTG

Re: [RFC][PATCH v2 04/13] usb: gadget: add usb_gadget_start/stop()

2015-04-16 Thread Peter Chen
On Tue, Apr 14, 2015 at 01:41:51PM +0300, Roger Quadros wrote: The OTG state machine needs a mechanism to start and stop the gadget controller. Add usb_gadget_start() and usb_gadget_stop(). Signed-off-by: Roger Quadros rog...@ti.com --- drivers/usb/gadget/udc/udc-core.c | 74

Re: [RFC][PATCH v2 05/13] usb: otg: add OTG core

2015-04-16 Thread Roger Quadros
On 16/04/15 15:02, Peter Chen wrote: On Tue, Apr 14, 2015 at 01:41:52PM +0300, Roger Quadros wrote: The OTG core instantiates the OTG Finite State Machine per OTG controller and manages starting/stopping the host and gadget controllers based on the bus state. It provides APIs for the

Re: [RFC][PATCH v2 02/13] usb: otg-fsm: support multiple instances

2015-04-16 Thread Peter Chen
On Tue, Apr 14, 2015 at 01:41:49PM +0300, Roger Quadros wrote: Move the state_changed variable into struct otg_fsm so that we can support multiple instances. OTG device has only one port. See 3.1.1. If you go to pass OTG Certification, the lab requires that there is only one port at your board.

Re: [PATCH v8 0/4] hwspinlock core omap dt support

2015-04-16 Thread Ohad Ben-Cohen
On Thu, Apr 16, 2015 at 12:31 PM, Mark Rutland mark.rutl...@arm.com wrote: Hi, Apologies for the delay on this. Gentle reminder. Can you please provide your ack on the bindings in this series (Patches 1 3) for Ohad to queue up the series for 4.1. Ping again, if you can provide your

Re: [RFC][PATCH v2 03/13] usb: otg-fsm: Prevent build warning VDBG redefined

2015-04-16 Thread Roger Quadros
On 16/04/15 14:41, Peter Chen wrote: On Tue, Apr 14, 2015 at 01:41:50PM +0300, Roger Quadros wrote: If usb/otg-fsm.h and usb/composite.h are included together then it results in the build warning [1]. Prevent that by moving the VDBG defination into the usb-otg-fsm.c file where it is used.

Re: [RFC][PATCH v2 04/13] usb: gadget: add usb_gadget_start/stop()

2015-04-16 Thread Peter Chen
On Thu, Apr 16, 2015 at 03:07:41PM +0300, Roger Quadros wrote: On 16/04/15 14:48, Peter Chen wrote: On Tue, Apr 14, 2015 at 01:41:51PM +0300, Roger Quadros wrote: The OTG state machine needs a mechanism to start and stop the gadget controller. Add usb_gadget_start() and usb_gadget_stop().

Re: [RFC][PATCH v2 03/13] usb: otg-fsm: Prevent build warning VDBG redefined

2015-04-16 Thread Peter Chen
On Tue, Apr 14, 2015 at 01:41:50PM +0300, Roger Quadros wrote: If usb/otg-fsm.h and usb/composite.h are included together then it results in the build warning [1]. Prevent that by moving the VDBG defination into the usb-otg-fsm.c file where it is used. Also get rid of MPC_LOC which

Re: [RFC][PATCH v2 01/13] usb: otg-fsm: Add documentation for struct otg_fsm

2015-04-16 Thread Peter Chen
On Tue, Apr 14, 2015 at 01:41:48PM +0300, Roger Quadros wrote: struct otg_fsm is the interface to the OTG state machine. Document the input, output and internal state variables. Definations are taken from Table 7-2 and Table 7-4 of the USB OTG EH Specification Rev.2.0 Re-arrange some of

Re: [RFC][PATCH v2 02/13] usb: otg-fsm: support multiple instances

2015-04-16 Thread Peter Chen
On Thu, Apr 16, 2015 at 02:58:20PM +0300, Roger Quadros wrote: On 16/04/15 14:36, Peter Chen wrote: On Tue, Apr 14, 2015 at 01:41:49PM +0300, Roger Quadros wrote: Move the state_changed variable into struct otg_fsm so that we can support multiple instances. OTG device has only one

Re: [RFC][PATCH v2 04/13] usb: gadget: add usb_gadget_start/stop()

2015-04-16 Thread Roger Quadros
On 16/04/15 14:48, Peter Chen wrote: On Tue, Apr 14, 2015 at 01:41:51PM +0300, Roger Quadros wrote: The OTG state machine needs a mechanism to start and stop the gadget controller. Add usb_gadget_start() and usb_gadget_stop(). Signed-off-by: Roger Quadros rog...@ti.com ---

Re: [PATCH] thermal: ti-soc-thermal: dra7: Implement Workaround for Errata i813

2015-04-16 Thread Grazvydas Ignotas
On Thu, Apr 16, 2015 at 1:18 PM, Keerthy j-keer...@ti.com wrote: DESCRIPTION Spurious Thermal Alert: Talert can happen randomly while the device remains under the temperature limit defined for this event to trig. This spurious event is caused by a incorrect re-synchronization between

Re: [RFC][PATCH v2 03/13] usb: otg-fsm: Prevent build warning VDBG redefined

2015-04-16 Thread Peter Chen
On Thu, Apr 16, 2015 at 02:59:12PM +0300, Roger Quadros wrote: On 16/04/15 14:41, Peter Chen wrote: On Tue, Apr 14, 2015 at 01:41:50PM +0300, Roger Quadros wrote: If usb/otg-fsm.h and usb/composite.h are included together then it results in the build warning [1]. Prevent that by moving

Re: [PATCH v3] ARM: AM43xx: hwmod: add VPFE hwmod entries

2015-04-16 Thread Lad, Prabhakar
Hi Paul, On Sat, Apr 11, 2015 at 10:19 AM, Lad, Prabhakar prabhakar.cse...@gmail.com wrote: On Sat, Apr 11, 2015 at 12:03 AM, Paul Walmsley p...@pwsan.com wrote: On Fri, 10 Apr 2015, Lad, Prabhakar wrote: On Fri, Apr 10, 2015 at 11:51 PM, Paul Walmsley p...@pwsan.com wrote: Hi Prabhakar

Re: ARM errata 430973 on multi platform kernels

2015-04-16 Thread Tony Lindgren
* Sebastian Reichel s...@kernel.org [150415 09:32]: Hi, On Thu, Apr 09, 2015 at 02:48:43PM +0100, Russell King - ARM Linux wrote: On Thu, Apr 09, 2015 at 12:06:58AM +0100, Russell King - ARM Linux wrote: On Tue, Apr 07, 2015 at 08:22:08AM -0700, Tony Lindgren wrote: Works for me. The

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-16 Thread Michael Welling
On Thu, Apr 16, 2015 at 07:32:32AM +0300, Tero Kristo wrote: On 04/15/2015 11:51 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 01:45:53PM -0700, Mike Turquette wrote: On Wed, Apr 15, 2015 at 12:47 PM, Michael Welling mwell...@ieee.org wrote: On Wed, Apr 15, 2015 at 09:43:30PM +0300, Tero

Re: ARM errata 430973 on multi platform kernels

2015-04-16 Thread Matthijs van Duin
On 10 April 2015 at 00:37, Grazvydas Ignotas nota...@gmail.com wrote: May I ask how do you perform the smc call? A point worth mentioning is that TI advises that r1-r4 may be clobbered in general, and at least on GP dm814x and am335x devices r4 is in fact clobbered, even though it is normally a

[PATCH] omap: i2c: Add calls for pinctrl state select

2015-04-16 Thread pascal . huerst
From: Pascal Huerst pascal.hue...@gmail.com This adds calls to pinctrl subsystem in order to switch pin states on suspend/resume if you provide a sleep state in DT. --- drivers/i2c/busses/i2c-omap.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-omap.c

Re: [RFC/RFT PATCH 2/2] gpio: omap: ensure that runtime pm will disable unused gpio banks

2015-04-16 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [150319 16:08]: * Tony Lindgren t...@atomide.com [150307 00:08]: * grygorii.stras...@linaro.org grygorii.stras...@linaro.org [150306 11:27]: From: Grygorii Strashko grygorii.stras...@linaro.org Now there are two points related to Runtime PM usage:

Re: n900 in 4.1-rc0

2015-04-16 Thread Tony Lindgren
* Marc Zyngier marc.zyng...@arm.com [150416 02:38]: On 16/04/15 10:32, Pavel Machek wrote: Hi! Just tried booting 4.1-rc0 on n900 (commit 34c9a0ffc75ad25b6a60f61e27c4a4b1189b8085) and it is broken. Any ideas? To such a question, the only answer I have is Yes. For a more useful

Re: n900 in 4.1-rc0

2015-04-16 Thread Tyler Baker
On 16 April 2015 at 02:32, Pavel Machek pa...@ucw.cz wrote: Hi! Just tried booting 4.1-rc0 on n900 (commit 34c9a0ffc75ad25b6a60f61e27c4a4b1189b8085) and it is broken. Any ideas? Looks like DT and legacy booting are working fine in our labs. [0][1]

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-16 Thread Sebastian Hesselbarth
On 16.04.2015 18:17, Michael Welling wrote: On Thu, Apr 16, 2015 at 07:32:32AM +0300, Tero Kristo wrote: On 04/15/2015 11:51 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 01:45:53PM -0700, Mike Turquette wrote: On Wed, Apr 15, 2015 at 12:47 PM, Michael Welling mwell...@ieee.org wrote:

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-16 Thread Michael Welling
On Thu, Apr 16, 2015 at 10:37:19PM +0200, Sebastian Hesselbarth wrote: On 16.04.2015 18:17, Michael Welling wrote: On Thu, Apr 16, 2015 at 07:32:32AM +0300, Tero Kristo wrote: On 04/15/2015 11:51 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at 01:45:53PM -0700, Mike Turquette wrote: On

[PATCH] ARM: dts: dra7: Fix efuse register size for ABB

2015-04-16 Thread Nishanth Menon
Fix a typo in DRA7 dtsi where 12 bytes are needed for register description of ABB efuse registers, however only 8 bytes are provided to map. For some weird reason, this does not generate abort at offset 0x8, probably due to default maps already provided in io.c for the bus register ranges.

Re: am335x crypto module clocks

2015-04-16 Thread Matthijs van Duin
On 13 April 2015 at 12:27, Tero Kristo t-kri...@ti.com wrote: pka/rng/des is using l4ls_gclk. Does any instance of subarctic actually have a working DES accelerator? Looking at the L4LS memory map, the only plausible location for it would be 0x48315000 (sec context) / 0x48316000 (pub context),

Re: [RFC][PATCH v2 08/13] usb: otg: hub: Notify OTG fsm when A device sets b_hnp_enable

2015-04-16 Thread Peter Chen
On Tue, Apr 14, 2015 at 01:41:55PM +0300, Roger Quadros wrote: This is the a_set_b_hnp_enable flag in the OTG state machine diagram and must be set when the A-Host has successfully set the b_hnp_enable feature of the OTG-B-Peripheral attached to it. When this bit changes we kick our OTG FSM

[PATCH] bus: omap_l3_noc: Fix offset for DRA7 CLK1_HOST_CLK1_2 instance

2015-04-16 Thread Nishanth Menon
From: Illia Smyrnov illia.smyr...@globallogic.com The base address for DRA7 CLK1_HOST_CLK1_2 host instance is 0x4480, so correct offset is 0x80. DRA7 TRM rev X(fewb 2015) has updates for this information. With wrong offset these errors are not correctly cleared by the L3 IRQ handler and

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-16 Thread Michael Welling
On Fri, Apr 17, 2015 at 01:23:50AM +0200, Sebastian Hesselbarth wrote: On 17.04.2015 00:09, Michael Welling wrote: On Thu, Apr 16, 2015 at 10:37:19PM +0200, Sebastian Hesselbarth wrote: On 16.04.2015 18:17, Michael Welling wrote: On Thu, Apr 16, 2015 at 07:32:32AM +0300, Tero Kristo wrote: On

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-16 Thread Sebastian Hesselbarth
On 17.04.2015 00:09, Michael Welling wrote: On Thu, Apr 16, 2015 at 10:37:19PM +0200, Sebastian Hesselbarth wrote: On 16.04.2015 18:17, Michael Welling wrote: On Thu, Apr 16, 2015 at 07:32:32AM +0300, Tero Kristo wrote: On 04/15/2015 11:51 PM, Michael Welling wrote: On Wed, Apr 15, 2015 at

Re: [RFC][PATCH v2 06/13] usb: hcd: Add hcd add/remove functions for OTG use

2015-04-16 Thread Peter Chen
On Tue, Apr 14, 2015 at 01:41:53PM +0300, Roger Quadros wrote: The existing usb_add/remove_hcd() functionality remains unchanged for non-OTG devices. For OTG devices they only register the HCD with the OTG core. Introduce _usb_add/remove_hcd() for use by OTG core. These functions actually