RE: [RFC 5/8] remoteproc: add davinci implementation

2011-06-24 Thread Nori, Sekhar
Hi Mark, On Fri, Jun 24, 2011 at 20:43:50, Sergei Shtylyov wrote: + rproc-priv = dsp_clk; + + psc_base = ioremap(soc_info-psc_bases[0], SZ_4K); + + /* insure local reset is asserted before writing start address */ + __raw_writel(NEXT_ENABLED, psc_base + MDCTL + 4 *

Re: [PATCHv3 1/6] omap: prcm: switch to a chained IRQ handler mechanism

2011-06-24 Thread Kevin Hilman
Tony Lindgren t...@atomide.com writes: * Tero Kristo t-kri...@ti.com [110622 09:38]: [...] +struct omap_prcm_irq __initdata omap_prcm_3xxx_irqs[] = { +OMAP_PRCM_IRQ(wkup, 0, + CHIP_IS_OMAP3430 | CHIP_GE_OMAP3630ES1_1), +OMAP_PRCM_IRQ(evgenon,

[PATCH] omap3: beagle: Use GPTIMERi 1 for clockevents

2011-06-24 Thread Sanjeev Premi
The current selection of the GPTIMER on was result of a hardware issue in early versions of the Beagleboards (Ax and B1 thru B4). [1] [2] Its been long since the hardware issue has been fixed. This patch uses GPTIMER 1 for all newer board revisions incl. Beagleboard XM. [1]

Re: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Russell King - ARM Linux
Right, thanks for the file. Here's the patch. --- omap2plus-cpufreq.c~2011-06-24 15:50:32.0 +0100 +++ omap2plus-cpufreq.c 2011-06-24 16:00:08.0 +0100 @@ -44,6 +44,16 @@ static char *mpu_clk_name; static struct device *mpu_dev; +#ifdef CONFIG_SMP +struct lpj_info { +

Re: [PATCH] OMAP4: PANDA, SDP: Fix EHCI regulator supply

2011-06-24 Thread Jaswinder Singh
[CC'ing Liam and Mark as well] On 24 June 2011 20:07, Jassi Brar jaswinder.si...@linaro.org wrote: VUSB is a fixed level line and hence have no set_voltage callback in regulator ops, but has apply_uV set to true. As a result it fails to register with the regulator core. Remove setting

RE: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Premi, Sanjeev
-Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, June 24, 2011 8:42 PM To: Premi, Sanjeev Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

Re: [linux-pm] Runtime PM discussion notes

2011-06-24 Thread Paul Walmsley
Hi Alan, On Thu, 23 Jun 2011, Alan Stern wrote: On Thu, 23 Jun 2011, Paul Walmsley wrote: On Wed, 15 Jun 2011, Rafael J. Wysocki wrote: At the moment, isn't it possible for the userspace ioctl PM interface to freeze processes without going all the way through to a system sleep?

Re: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Santosh Shilimkar
Russell, On 6/24/2011 8:12 AM, Russell King - ARM Linux wrote: Right, thanks for the file. Here's the patch. [.] Notice how we adjust _both_ the per-cpu loops_per_jiffy, and that we adjust them with reference to the initial values. If you adjust lpj with reference to the last, then

Re: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Russell King - ARM Linux
On Fri, Jun 24, 2011 at 11:20:44PM +0530, Premi, Sanjeev wrote: I was able to test BogoMIPS calculations via /proc/cpuinfo for both with without CONFIG_SMP selected. For most part things work fine - but I do notice occassional Oops and segmentation faults while doing cat /proc/cpuinfo

[PATCH v2 0/1] Add mmc5 and WLAN chip wl1283 chip support on blaze

2011-06-24 Thread Vishal Mahaveer
Vishal Mahaveer (1): omap: blaze: add mmc5/wl1283 device support arch/arm/mach-omap2/board-4430sdp.c | 81 +++ 1 files changed, 81 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message

[PATCH v2 1/1] omap: blaze: add mmc5/wl1283 device support

2011-06-24 Thread Vishal Mahaveer
Add MMC5 support on BLAZE, which has the wl1283 device hardwired to. The wl1283 is a 4-wire, 1.8V, embedded SDIO WLAN device with an external IRQ line, and power-controlled by a GPIO-based fixed regulator. Based on the patch for zoom by Ohad Ben-Cohen o...@wizery.com Signed-off-by: Vishal

Re: [linux-pm] Runtime PM discussion notes

2011-06-24 Thread Paul Walmsley
(Arve cc'ed, also adding Magnus and Kevin back to cc) Hi Rafael, On Thu, 23 Jun 2011, Rafael J. Wysocki wrote: On Thursday, June 23, 2011, Alan Stern wrote: On Thu, 23 Jun 2011, Paul Walmsley wrote: On Wed, 15 Jun 2011, Rafael J. Wysocki wrote: Well, the freezing of user space by

Re: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Kevin Hilman
Russell King - ARM Linux li...@arm.linux.org.uk writes: On Fri, Jun 24, 2011 at 11:20:44PM +0530, Premi, Sanjeev wrote: I was able to test BogoMIPS calculations via /proc/cpuinfo for both with without CONFIG_SMP selected. For most part things work fine - but I do notice occassional Oops

Re: [RFC 0/8] Introducing a generic AMP/IPC framework

2011-06-24 Thread Stephen Boyd
On 06/21/2011 12:18 AM, Ohad Ben-Cohen wrote: * Rpmsg: a virtio-based messaging bus that allows kernel drivers to communicate with remote processors available on the system. In turn, drivers could then expose appropriate user space interfaces, if needed (tasks running on remote processors

Re: [PATCHv3 1/6] omap: prcm: switch to a chained IRQ handler mechanism

2011-06-24 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: Introduce a chained interrupt handler mechanism for the PRCM interrupt, so that individual PRCM event can cleanly be handled by handlers in separate drivers. We do this by introducing PRCM event names, which are then matched to the particular PRCM interrupt

Re: [PATCHv3 2/6] PRCM: Add support for PAD wakeup interrupts

2011-06-24 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: PRCM interrupt handler will now parse registered pads to see whether there is an active wakeup event. If this is the case, the corresponding interrupt will be triggered. This can be used for example with UART driver to register PAD wakeup event for the UART

Re: [PATCHv3 2/6] PRCM: Add support for PAD wakeup interrupts

2011-06-24 Thread Kevin Hilman
Govindraj govindraj...@gmail.com writes: On Wed, Jun 22, 2011 at 10:12 PM, Tero Kristo t-kri...@ti.com wrote: PRCM interrupt handler will now parse registered pads to see whether there is an active wakeup event. If this is the case, the corresponding interrupt will be triggered. This can be

Re: [PATCHv3 4/6] OMAP3: PM: Use PRCM chain handler

2011-06-24 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: PRCM interrupts are now handled with the chained handler mechanism. This patch also changes the PRCM interrupts to be of one-shot type, Not sure I understand the change to one-shot. But since I don't think you need the handlers anymore, I don't think this

Re: [PATCHv3 3/6] OMAP: PRCM: Added an api to get id for a PRCM event

2011-06-24 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: This is required by OMAP3 as it needs to dynamically unmask events during idle cycle. This shouldn't be needed if you move the clearing etc. back into the PRCM IRQ handler (more on this in [4/6]) Kevin -- To unsubscribe from this list: send the line

Re: [PATCHv3 5/6] OMAP3: Serial: Made serial to work properly with PRCM chain handler

2011-06-24 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: Signed-off-by: Tero Kristo t-kri...@ti.com You should put 'TEMP' or something similar in the subject of 5/6 and 6/6 since those are only needed without the full conversion from Govindraj. If Govindraj is able to validate the rest of this series with his

Re: [linux-pm] Runtime PM discussion notes

2011-06-24 Thread Arve Hjønnevåg
On Fri, Jun 24, 2011 at 12:53 PM, Paul Walmsley p...@pwsan.com wrote: ... As I understand it, in the original Android implementation, the hardware that they were using didn't have fine-grained power management.  So system-wide suspend made more sense in that context.  But that shouldn't be

Re: [PATCH v3 02/12] OMAP2+: UART: Remove uart clock handling code from serial.c

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: Cleanup serial.c file in preparation to addition of runtime api's in omap-serial file. Remove all clock handling mechanism as this will be taken care with pm runtime api's in omap-serial.c file itself. 1.) Remove omap-device enable and disable. We

Re: [PATCH v3 09/12] OMAP3: Serial: Remove uart pads from 3430 board file.

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: The pad values here are same as the default pad values updated in serial.c file. Avoid structure duplication and use default pads. Signed-off-by: Govindraj.R govindraj.r...@ti.com This should be folded in with [03/12] Kevin -- To unsubscribe from

Re: [PATCH v3 04/12] Serial: OMAP: Add runtime pm support for omap-serial driver

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: Adapts omap-serial driver to use pm_runtime api's. 1.) Populate reg values to uart port which can be used for context restore. Please make this part a separate patch. 2.) Moving context_restore func to driver from serial.c 3.) Adding

Re: [PATCH v3 05/12] OMAP: Serial: Hold console lock for console usage.

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: Acquire console lock before enabling and writing to console-uart to avoid any recursive prints from console write. for ex: -- printk -- uart_console_write -- get_sync -- printk from omap_device enable

Re: [PATCH v3 07/12] OMAP: Serial: Allow UART parameters to be configured from board file.

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: The following UART parameters are defined within the UART driver: 1). Whether the UART uses DMA (dma_enabled), by default set to 0 2). The size of dma buffer (set to 4096 bytes) 3). The time after which the dma should stop if no more data is

Re: [PATCH v3 08/12] Serial: OMAP2+: Make the RX_TIMEOUT for DMA configurable for each UART

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: From: Jon Hunter jon-hun...@ti.com When using DMA there are two timeouts defined. The first timeout, rx_timeout, is really a polling rate in which software polls the DMA status to see if the DMA has finished. This is necessary for the RX side

Re: [PATCH v3 10/12] OMAP: Serial: Use resume call from prcm to enable uart

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: Use resume idle call from prcm_irq to enable uart_port from low power states. Comment is valid for OMAP3 but not for OMAP2. Maybe [01/12] should just leave this call in for OMAP2 instead of having to add it back here? Add api to check pad wakeup

Re: [PATCH v3 11/12] OMAP2: Serial: Add has_async_wake flag.

2011-06-24 Thread Kevin Hilman
Govindraj.R govindraj.r...@ti.com writes: Prior to this patch the uart_clock was cut using prepare/resume calls since these funcs are no more available with runtime changes use has_async_wake flag to keep clock active during bootup otherwise uart port will disabled during boot-up and cannot

[RFC PATCH 0/7] OMAP: mailbox: removing static declarations

2011-06-24 Thread Omar Ramirez Luna
Hi, This is the first attempt in making the omap mailbox framework generic enough to support other mailbox drivers, in this series the way the mailbox are defined and registered is changed to support requests of mailboxes through an id. So far, the mailbox static declarations have been removed

[RFC PATCH 1/7] OMAP2+: hwmod_data: define number of mailboxes

2011-06-24 Thread Omar Ramirez Luna
Define number of mailboxes available to a specific chip. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c |6 ++ arch/arm/mach-omap2/omap_hwmod_2430_data.c |6 ++ arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |6 ++

[RFC PATCH 2/7] OMAP2+: devices: get the number of supported mailboxes

2011-06-24 Thread Omar Ramirez Luna
Use hwmod data attributes to get the defined number of mailboxes on our current chip, and pass it through platform data. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap2/devices.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git

[RFC PATCH 3/7] OMAP: mailbox: use OMAP's naming convention for devices

2011-06-24 Thread Omar Ramirez Luna
Use omap_XXX as the OMAP device naming convention. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap1/mailbox.c |2 +- arch/arm/mach-omap2/devices.c |2 +- arch/arm/mach-omap2/mailbox.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git

[RFC PATCH 4/7] OMAP: mailbox: move framework functions under header file

2011-06-24 Thread Omar Ramirez Luna
Move API functions to common framework like save/restore_ctx, enable/disable_irq instead of being under a header file. While at it dropping their static inline declarations. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/plat/mailbox.h | 35

[RFC PATCH 5/7] OMAP: mailbox: implement dynamic mailbox configuration

2011-06-24 Thread Omar Ramirez Luna
So far, mailbox architecture dependent implementations have contained static declarations for its supported mailbox and users, this has affected the framework by extending the requests to match the hardcoded names and only support the known users. These changes try to provide a more generic

[RFC PATCH 6/7] OMAP1: mailbox: adapt to dynamic mailbox requests

2011-06-24 Thread Omar Ramirez Luna
Remove mailbox static declarations, while at it, simplify the macros to be reused in a cleaner way. New approach configures available mailboxes per request. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/mach-omap1/mailbox.c | 92 - 1

[RFC PATCH 7/7] OMAP2+: mailbox: remove mailbox static declarations

2011-06-24 Thread Omar Ramirez Luna
Remove mailbox static declarations which limit the driver to either work with 1 or 2 predefined mailboxes, even if there are more mailboxes in hardware. New approach configures available mailboxes per request. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com ---

Re: [linux-pm] Runtime PM discussion notes

2011-06-24 Thread Magnus Damm
2011/6/25 Arve Hjønnevåg a...@android.com: On Fri, Jun 24, 2011 at 12:53 PM, Paul Walmsley p...@pwsan.com wrote: ... As I understand it, in the original Android implementation, the hardware that they were using didn't have fine-grained power management.  So system-wide suspend made more

Re: [PATCH] mfd: omap: Restore TLL initialization

2011-06-24 Thread Munegowda, Keshava
On Fri, Jun 24, 2011 at 2:31 AM, Jassi Brar jassisinghb...@gmail.com wrote: The commit  7e6502d577106fb5b202bbaac64c5f1b065 'mfd: Add omap-usbhs runtime PM support' besides moving to RPM, removes necessary TLL initialization as well. Restore the TLL initialization, without which device

RE: [PATCH 14/25] ARM: pm: plat-s3c24xx: cleanup s3c_cpu_save

2011-06-24 Thread Kukjin Kim
Russell King - ARM Linux wrote: s3c_cpu_save does not need to save any registers with the new cpu_suspend calling convention. Remove these redundant instructions. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk Tested-by: Kukjin Kim kgene@samsung.com It works fine on Samsung

Re: [PATCH] mfd: omap: Restore TLL initialization

2011-06-24 Thread Jaswinder Singh
On 24 June 2011 11:52, Munegowda, Keshava keshava_mgo...@ti.com wrote: On Fri, Jun 24, 2011 at 2:31 AM, Jassi Brar jassisinghb...@gmail.com wrote: The commit  7e6502d577106fb5b202bbaac64c5f1b065 'mfd: Add omap-usbhs runtime PM support' besides moving to RPM, removes necessary TLL

Re: [PATCH 23/25] ARM: pm: omap34xx: convert to generic suspend/resume support

2011-06-24 Thread Jean Pihet
Russell, Just a minor remark: On Thu, Jun 23, 2011 at 9:16 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Convert sa11x0 to use the generic CPU suspend/resume support, rather ^^^ should be 'OMAP3' than implementing its own version.  Tested on 3430 LDP.

Re: [PATCH 23/25] ARM: pm: omap34xx: convert to generic suspend/resume support

2011-06-24 Thread Russell King - ARM Linux
On Fri, Jun 24, 2011 at 09:37:03AM +0200, Jean Pihet wrote: Russell, Just a minor remark: On Thu, Jun 23, 2011 at 9:16 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Convert sa11x0 to use the generic CPU suspend/resume support, rather ^^^ should be 'OMAP3'

Re: [PATCH 00/25] Re-jig cpu_suspend for a saner calling convention

2011-06-24 Thread Jean Pihet
Hi Russell, On Thu, Jun 23, 2011 at 9:09 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Version 3. Currently cpu_suspend is not like a normal C function - when it's called it returns normally to a bunch of code which is not expected to return. The return path is via code pointed

Re: [PATCH] OMAP3: PM: remove get_*_restore_pointer functions, directly use entry points

2011-06-24 Thread Russell King - ARM Linux
On Thu, Jun 23, 2011 at 05:16:14PM -0700, Kevin Hilman wrote: Applies on top of Russell's suspend cleanup/rejig, and available (along with Russell's series) in my pm-wip/idle-suspend branch. Russell, since it depends on your series, feel free to add it to your series if you like. Or if you

Re: [PATCH] OMAP3: PM: remove get_*_restore_pointer functions, directly use entry points

2011-06-24 Thread Jean Pihet
Kevin, On Fri, Jun 24, 2011 at 2:16 AM, Kevin Hilman khil...@ti.com wrote: Upon return from off-mode, the ROM code jumps to a restore function saved in the scratchpad.  Based on SoC revision or errata, this restore entry point is different.  Current code uses some helper functions in

Re: [PATCH] OMAP3: run the ASM sleep code from DDR

2011-06-24 Thread Jean Pihet
Hi Kevin, On Fri, Jun 24, 2011 at 2:17 AM, Kevin Hilman khil...@ti.com wrote: Hi Jean, Can you rebase/retest this on top of my pm-wip/idle-suspend branch, which now contains Russell's major cleanup to use the common code as well as an additional patch from me to remove the unncessary

[PATCH 0/2] omap2+: pm: Fix code syntax and BogoMIPS

2011-06-24 Thread Sanjeev Premi
Current implementation was using goto to get to a basic if..else structure - but wasn't too obvious on first few reads. Once the code was restructured, the relation between the calls to cpufreq_scale() and cpufreq_notify_transition() became obvious. And small trip to drivers/cpufreq/cpufreq.c

Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Russell King - ARM Linux
On Fri, Jun 24, 2011 at 04:05:42PM +0530, Sanjeev Premi wrote: Currently, loops_per_jiffy is being calculated before calling cpufreq_notify_transition(). However, generic cpufreq driver adjusts the jiffies as well. Double adjustment leads to incorrect value being assigned to

RE: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Premi, Sanjeev
-Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, June 24, 2011 4:14 PM To: Premi, Sanjeev Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy

Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Russell King - ARM Linux
On Fri, Jun 24, 2011 at 04:18:31PM +0530, Premi, Sanjeev wrote: -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, June 24, 2011 4:14 PM To: Premi, Sanjeev Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org

[PATCH 00/13] OMAP4: Add modulemode support to hwmod framework

2011-06-24 Thread Benoit Cousson
Hi Paul, Here is the series that finally add the management of the modulemode directly from hwmod fmwk instead of using a fake clock node to represent the IP. A second series will clean most of the remaining data from the clock data file. Before that I have to rebase Rajendra's series to control

[PATCH 02/14] OMAP2+: hwmod: Init clkdm field at boot time

2011-06-24 Thread Benoit Cousson
At boot time, lookup the clkdm_name to get the clkdm structure pointer for further usage. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 34 +-

[PATCH 01/14] OMAP4: hwmod: Add clock domain attribute

2011-06-24 Thread Benoit Cousson
In OMAP PRCM terminology, the clock domain is defined as a group of IPs that share some clocks and most of the time an interface clock. Every IP does belong to a clockdomain. For the moment the clock domain attribute is affected to a clock node. The issue with that approach, is that a clock might

[PATCH 03/14] OMAP4: hwmod: Replace CLKCTRL absolute address with offset macros

2011-06-24 Thread Benoit Cousson
The CLKCTRL register was accessed using an absolute address. The usage of hardcoded macros to calculate virtual address from physical one should be avoided as much as possible. The usage of a offset will allow future improvement like migration from the current architecture code toward a module

[PATCH 05/14] OMAP2+: hwmod: Replace clkdm access from main_clk using hwmod attribute

2011-06-24 Thread Benoit Cousson
Since the clkdm is now part of the omap_hwmod structure, there is no need to retrieve it from the main_clock or interface clock. The code can be simplified a little bit with a direct access. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Rajendra Nayak

[PATCH 04/14] OMAP: hwmod: Wait the idle status to be disabled

2011-06-24 Thread Benoit Cousson
It is mandatory to wait for a module to be in disabled state before potentially disabling source clock or re-asserting a reset. omap_hwmod_idle and omap_hwmod_shutdown does not wait for the module to be fully idle. Add a cm_xxx accessor to wait the clkctrl idle status to be disabled. Fix

[PATCH 06/14] OMAP4: hwmod: Replace RSTCTRL absolute address with offset macros

2011-06-24 Thread Benoit Cousson
The RSTCTRL register was accessed using an absolute address. The usage of hardcoded macros to calculate virtual address from physical one should be avoided as much as possible. The usage of an offset will allow future improvement like migration from the current architecture code toward a module

[PATCH 08/14] OMAP4: prm: Remove deprecated functions

2011-06-24 Thread Benoit Cousson
The new prminst_xxx accessors based on partition and offset is now used, so removed all the previous prcm_xxx accessors. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/prm44xx.c | 37

[PATCH 07/14] OMAP4: prm: Replace warm reset API with the offset based version

2011-06-24 Thread Benoit Cousson
The warm reset function was still using the obsolete API. Replace it by the new one and move the file to the proper c file. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/prm44xx.c | 15

[PATCH 09/14] OMAP4: hwmod data: Align interconnect format with regular modules

2011-06-24 Thread Benoit Cousson
The interconnect modules were using a slightly different layout than the regular modules. Align the layout for better consitency. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 48

[PATCH 10/14] OMAP4: hwmod data: Add PRM context register offset

2011-06-24 Thread Benoit Cousson
Add a 'context_offs' entry in the prcm.omap4 structure to all IPs when applicable. The offset will be used to retrieve the per module context lost information now available on OMAP4. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Rajendra Nayak rna...@ti.com

[PATCH 12/14] OMAP4: cm: Add two new APIs for modulemode control

2011-06-24 Thread Benoit Cousson
In OMAP4, a new programming model based on module control instead of clock control was introduced. Expose two APIs to allow the upper layer (omap_hwmod) to control the module mode independently of the parent clocks management. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley

[PATCH 13/14] OMAP4: hwmod: Introduce the module control in hwmod control

2011-06-24 Thread Benoit Cousson
Take advantage of the explicit modulemode control to fix the way parents clocks are managed. A module must be disabled before any parents are disabled. That programming model was not possible with the previous implementation that was considering a modulemode as a leaf clock node managed by the

[PATCH 14/14] OMAP2+: clockdomain: Add an api to read idle mode

2011-06-24 Thread Benoit Cousson
From: Nayak, Rajendra rna...@ti.com Add a clockdomain api to check if hardware supervised idle transitions are enabled on a clockdomain. Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/clockdomain.c | 21 + arch/arm/mach-omap2/clockdomain.h |3 +++

RE: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Premi, Sanjeev
-Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, June 24, 2011 4:22 PM To: Premi, Sanjeev Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy

Re: [PATCH] regulator: twl: Add 'fixed' set_voltage callback

2011-06-24 Thread Mark Brown
On Fri, Jun 24, 2011 at 02:16:54AM +0530, Jassi Brar wrote: Define dummy set_voltage callback for fixed lines, without which voltage constraints fail to apply. Signed-off-by: Jassi Brar jaswinder.si...@linaro.org No, this isn't sensible - fixed voltage regulators aren't an unusual property

[PATCH v2 0/7] Fix module-mode enable sequence on OMAP4

2011-06-24 Thread Benoit Cousson
Hi Paul Rajendra, Here is an updated version of the series started by Rajendra. I had to update it because this series is mandatory for the hwmod modulemodule control series. I rebased it on top of the various fixes done on hwmod framework and to take advantage of the new clkdm attribute in

[PATCH v2 1/7] OMAP2+: clockdomain: Add an api to read idle mode

2011-06-24 Thread Benoit Cousson
From: Nayak, Rajendra rna...@ti.com Add a clockdomain api to check if hardware supervised idle transitions are enabled on a clockdomain. Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/clockdomain.c | 21 + arch/arm/mach-omap2/clockdomain.h |3 +++

[PATCH v2 2/7] OMAP2+: clockdomain: Add SoC support for clkdm_is_idle

2011-06-24 Thread Benoit Cousson
From: Nayak, Rajendra rna...@ti.com Add the SoC specific implemenation for clkdm_is_idle for OMAP2/3 and OMAP4. Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/clockdomain2xxx_3xxx.c | 12 arch/arm/mach-omap2/clockdomain44xx.c |7 +++ 2 files

[PATCH v2 4/7] OMAP2+: PM: idle clkdms only if already in idle

2011-06-24 Thread Benoit Cousson
From: Nayak, Rajendra rna...@ti.com The omap_set_pwrdm_state function forces clockdomains to idle, without checking the existing idle state programmed, instead based solely on the HW capability of the clockdomain to support idle. This is wrong and the clockdomains should be idled post a

[PATCH v2 5/7] OMAP4: PM: TEMP: Prevent l3init from idling/force sleep

2011-06-24 Thread Benoit Cousson
From: Nayak, Rajendra rna...@ti.com Since MMC driver is yet to be adapted to runtime PM and still uses direct clock calls to enable/disable module, its needed that the clockdomain (for MMC) is always kept force enabled since the next few patches move the clockdomain handling from clock framework

[PATCH v2 6/7] OMAP2+: clockdomain: Add 2 APIs to control clockdomain from hwmod framework

2011-06-24 Thread Benoit Cousson
Duplicate the existing API for clockdomain enable from clock to enable a clock domain from hwmod framework. This will be needed when the hwmod framework will move from the current clock centric approach to the module based approach. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Paul Walmsley

[PATCH v2 7/7] OMAP2+: hwmod: Follow the recommended PRCM module enable sequence

2011-06-24 Thread Benoit Cousson
From: Nayak, Rajendra rna...@ti.com On OMAP4, the PRCM recommended sequence for enabling a module after power-on-reset is: -1- Force clkdm to SW_WKUP -2- Enabling the clocks -3- Configure desired module mode to enable or auto -4- Wait for the desired module idle status to be FUNC -5- Program

[PATCH v2 3/7] OMAP2+: PM: Initialise sleep_switch to a non-valid value

2011-06-24 Thread Benoit Cousson
From: Nayak, Rajendra rna...@ti.com sleep_switch which is initialised to 0 in omap_set_pwrdm_state happens to be a valid sleep_switch type (FORCEWAKEUP_SWITCH) which are defined as #define FORCEWAKEUP_SWITCH 0 #define LOWPOWERSTATE_SWITCH1 This causes the function to wrongly program

Re: [PATCH 00/13] OMAP4: Add modulemode support to hwmod framework

2011-06-24 Thread Cousson, Benoit
Grrr, one patch escaped from the next series and ended up here... Nayak, Rajendra (1): OMAP2+: clockdomain: Add an api to read idle mode That one was re-sent in the proper series: [PATCH v2 0/7] Fix module-mode enable sequence on OMAP4 The GIT trees are correct. Benoit -- To

Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Santosh Shilimkar
Sanjeev, On 6/24/2011 4:21 PM, Russell King - ARM Linux wrote: On Fri, Jun 24, 2011 at 04:18:31PM +0530, Premi, Sanjeev wrote: -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, June 24, 2011 4:14 PM To: Premi, Sanjeev Cc:

Re: [PATCH 1/2] omap2+: pm: Use if...else instead of goto

2011-06-24 Thread Santosh Shilimkar
On 6/24/2011 4:05 PM, Sanjeev Premi wrote: This patch replaces the use of goto with simple if...else syntax. No change in functionality. This also means that the comment describing the dependency between CONFIG_SMP and calculation of loops_per_jiffy can be unified. Signed-off-by: Sanjeev

RE: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Premi, Sanjeev
-Original Message- From: Shilimkar, Santosh Sent: Friday, June 24, 2011 6:16 PM To: Russell King - ARM Linux Cc: Premi, Sanjeev; linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

RE: [PATCH 1/2] omap2+: pm: Use if...else instead of goto

2011-06-24 Thread Premi, Sanjeev
-Original Message- From: Shilimkar, Santosh Sent: Friday, June 24, 2011 6:18 PM To: Premi, Sanjeev Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH 1/2] omap2+: pm: Use if...else instead of goto On 6/24/2011 4:05 PM, Sanjeev Premi wrote:

Re: [PATCH 1/2] omap2+: pm: Use if...else instead of goto

2011-06-24 Thread Santosh Shilimkar
On 6/24/2011 6:24 PM, Premi, Sanjeev wrote: -Original Message- From: Shilimkar, Santosh Sent: Friday, June 24, 2011 6:18 PM To: Premi, Sanjeev Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH 1/2] omap2+: pm: Use if...else instead of goto On

Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Santosh Shilimkar
On 6/24/2011 6:22 PM, Premi, Sanjeev wrote: -Original Message- From: Shilimkar, Santosh Sent: Friday, June 24, 2011 6:16 PM To: Russell King - ARM Linux Cc: Premi, Sanjeev; linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH 2/2] omap2+: pm: cpufreq: Fix

RE: [PATCH 1/2] omap2+: pm: Use if...else instead of goto

2011-06-24 Thread Premi, Sanjeev
-Original Message- From: Shilimkar, Santosh Sent: Friday, June 24, 2011 6:29 PM To: Premi, Sanjeev Cc: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: Re: [PATCH 1/2] omap2+: pm: Use if...else instead of goto On 6/24/2011 6:24 PM, Premi, Sanjeev wrote:

Re: [PATCH] regulator: twl: Add 'fixed' set_voltage callback

2011-06-24 Thread Jaswinder Singh
On 24 June 2011 16:49, Mark Brown broo...@opensource.wolfsonmicro.com wrote: On Fri, Jun 24, 2011 at 02:16:54AM +0530, Jassi Brar wrote: Define dummy set_voltage callback for fixed lines, without which voltage constraints fail to apply. Signed-off-by: Jassi Brar jaswinder.si...@linaro.org

Re: [PATCH v2 0/7] Fix module-mode enable sequence on OMAP4

2011-06-24 Thread Rajendra Nayak
On 6/24/2011 5:06 AM, Benoit Cousson wrote: Hi Paul Rajendra, Here is an updated version of the series started by Rajendra. I had to update it because this series is mandatory for the hwmod modulemodule control series. I rebased it on top of the various fixes done on hwmod framework and to

Re: [PATCH v2 0/7] Fix module-mode enable sequence on OMAP4

2011-06-24 Thread Cousson, Benoit
On 6/24/2011 3:23 PM, Nayak, Rajendra wrote: On 6/24/2011 5:06 AM, Benoit Cousson wrote: Hi Paul Rajendra, Here is an updated version of the series started by Rajendra. I had to update it because this series is mandatory for the hwmod modulemodule control series. I rebased it on top of the

[PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Sanjeev Premi
Currently, loops_per_jiffy is being calculated twice for non-SMP processors. - Before calling cpufreq_notify_transition() - From within cpufreq_notify_transition() Double adjustment leads to incorrect value being assigned to loops_per_jiffy. This manifests as incorrect BogoMIPS in cat

RE: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Premi, Sanjeev
-Original Message- From: Premi, Sanjeev Sent: Friday, June 24, 2011 7:24 PM To: linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org Cc: Premi, Sanjeev Subject: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation Currently, loops_per_jiffy is being

Re: [PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Santosh Shilimkar
On 6/24/2011 7:23 PM, Sanjeev Premi wrote: Currently, loops_per_jiffy is being calculated twice for non-SMP processors. - Before calling cpufreq_notify_transition() - From within cpufreq_notify_transition() Double adjustment leads to incorrect value being assigned to loops_per_jiffy. This

[PATCH] OMAP4: PANDA, SDP: Fix EHCI regulator supply

2011-06-24 Thread Jassi Brar
VUSB is a fixed level line and hence have no set_voltage callback in regulator ops, but has apply_uV set to true. As a result it fails to register with the regulator core. Remove setting apply_uV. Also, assign name to VUSB supply, without which regulator core fails to find it and assigns the

[RFC/PATCH 0/9] PM QoS: add a per-device wake-up latency constraint class

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com This patch set is in an RFC state, for review and comments. In order to implement the new class in PM QoS the following changes have been made: 1. Add a new PM QoS class for device wake-up constraints (PM_QOS_DEV_WAKEUP_LATENCY). Due to the per-device nature of

[RFC/PATCH 1/9] PM: add a per-device wake-up latency constraints plist

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com Add the field wakeup_lat_plist_head in the struct dev_pm_info and the initialization of the plist in device_pm_init. This enables the implementation of per-device constraints in PM QoS. Signed-off-by: Jean Pihet j-pi...@ti.com --- drivers/base/power/main.c |

[RFC/PATCH 2/9] PM: extend PM QoS with per-device wake-up constraints

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com - add a new PM QoS class PM_QOS_DEV_WAKEUP_LATENCY for device wake-up constraints. Due to the per-device nature of the new class the constraints list is stored inside the device dev_pm_info struct instead of the internal per-class constraints lists. The new class

[RFC/PATCH 3/9] OMAP PM: create a PM layer plugin for per-device constraints

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com Created arch/arm/plat-omap/omap-pm-constraints.c file from arch/arm/plat-omap/omap-pm-noop.c and the associated Kconfig option OMAP_PM_CONSTRAINTS. Signed-off-by: Jean Pihet j-pi...@ti.com --- arch/arm/plat-omap/Kconfig |7 +

[RFC/PATCH 5/9] OMAP3: powerdomain data: add wake-up latency figures

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com Figures are added to the power domains structs. Note: the figures are preliminary figures. More accurate measurements are needed. Also the conditions of measurements shall be investigated and described. Tested on OMAP3 Beagleboard in RET/OFF using wake-up latency

[RFC/PATCH 6/9] OMAP4: powerdomain data: add wake-up latency figures

2011-06-24 Thread jean . pihet
From: Vishwanath BS vishwanath...@ti.com This patch adds wake up latency numbers for OMAP4. Note that these are preliminary numbers and need to be relooked. Signed-off-by: Vishwanath BS vishwanath...@ti.com The INACTIVE state is added as unsupported. Tested on OMAP4 Pandaboard in RET/OFF using

[RFC/PATCH 7/9] OMAP2+: omap_hwmod: manage the wake-up latency constraints

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com Hwmod is queried from the OMAP_PM layer to manage the power domains wake-up latency constraints. Hwmod retrieves the correct power domain and if it exists it calls the corresponding power domain function. Tested on OMAP3 Beagleboard and OMAP4 Pandaboard in RET/OFF

[RFC/PATCH 8/9] OMAP: PM CONSTRAINTS: implement the devices wake-up latency constraints

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com Implement the devices wake-up latency constraints using a PM QoS notification handler which applies the constraints to the underlying layer by calling the corresponding function at hwmod level. Note: the bus throughput function is implemented but currently is a

[RFC/PATCH 4/9] OMAP2+: powerdomain: control power domains next state

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com When a wake-up latency constraint is requested or removed the PM QoS layer notifies the underlying layer with the updated strongest constraint value. The constraint is stored in the powerdomain constraints list and then applied to the corresponding power domain.

[RFC/PATCH 9/9] OMAP2+: cpuidle only influences the MPU state

2011-06-24 Thread jean . pihet
From: Jean Pihet j-pi...@ti.com Since cpuidle is a CPU centric framework it decides the MPU next power state based on the MPU exit_latency and target_residency figures. The rest of the power domains get their next power state programmed from the PM_QOS_DEV_WAKEUP_LATENCY class of the PM QoS

  1   2   >