[PATCHv6 1/3] OMAP: I2C: Reset support

2011-08-05 Thread Shubhrajyoti D
Under some error conditions the i2c driver may do a reset. Adding a reset field and support in the device-specific code. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- arch/arm/plat-omap/i2c.c | 18 ++ include/linux/i2c-omap.h |1 + 2 files changed, 19 insertions(+),

[PATCHv6 2/3] OMAP: I2C: Remove the reset in the init path

2011-08-05 Thread Shubhrajyoti D
- The reset in the driver at init is not needed anymore as the hwmod framework takes care of reseting it. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time out and error handling. device_reset were added in those places to effect the

[PATCHv6 3/3] OMAP: I2C: Remove the SYSC register definition

2011-08-05 Thread Shubhrajyoti D
The SYSC register should not accessed in the driver removing the define from the driver. Also clean up the syscstate from the omap_i2c_dev struct. Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |5 -

Re: [PATCH 6/6] OMAP: McBSP: use existing macros for converting between devices

2011-08-05 Thread Jarkko Nikula
Hi Kevin On Thu, 4 Aug 2011 08:45:10 -0700 Kevin Hilman khil...@ti.com wrote: For converting from struct device to platform_device, and from platform_device to struct omap_device, there are existing macros. Use them instead of manual use of container_of(). Signed-off-by: Kevin Hilman

Re: [PATCH] ARM: OMAP2+ Add Primview dispalys to panel-generic

2011-08-05 Thread Tomi Valkeinen
Hi, On Fri, 2011-07-08 at 12:47 +0200, Jan Weitzel wrote: Add displays to panel-generic-dpi.c Prime View PD035VL1 (640 x 480) Prime View PD050VL1 (640 x 480) Prime View PD104SLF (800 x 600) Prime View PM070WL4 (800 x 480) Did you copy the acb and power_on/off_delay values from the sharp

Re: [PATCH] OMAP: DSS2: DSI: Support non-dcs long read

2011-08-05 Thread Tomi Valkeinen
On Thu, 2011-08-04 at 18:15 -0700, Arve Hjønnevåg wrote: 2011/8/4 Tomi Valkeinen tomi.valkei...@ti.com: Hi, On Wed, 2011-06-29 at 20:44 -0700, Arve Hjønnevåg wrote: Change-Id: I18168c887e1384c07dc033a1ffc57abdacb26073 Signed-off-by: Arve Hjønnevåg a...@android.com ---

[PATCH] [media] OMAP_VOUT: Fix build break caused by update_mode removal in DSS2

2011-08-05 Thread Archit Taneja
The DSS2 driver does not support the configuration of the update_mode of a panel anymore. Remove the setting of update_mode done in omap_vout_probe(). Ignore configuration of TE since omap_vout driver doesn't support manual update displays anyway. Signed-off-by: Archit Taneja arc...@ti.com ---

Re: [PATCH] OMAP: DSS2: DSI: Support non-dcs long read

2011-08-05 Thread Arve Hjønnevåg
2011/8/5 Tomi Valkeinen tomi.valkei...@ti.com: On Thu, 2011-08-04 at 18:15 -0700, Arve Hjønnevåg wrote: 2011/8/4 Tomi Valkeinen tomi.valkei...@ti.com: Hi, On Wed, 2011-06-29 at 20:44 -0700, Arve Hjønnevåg wrote: Change-Id: I18168c887e1384c07dc033a1ffc57abdacb26073 Signed-off-by: Arve

RE: [RFC 1/2] OMAP3+: voltage / oscillator parameter segregation

2011-08-05 Thread Tero Kristo
On Thu, 2011-08-04 at 15:57 +0200, Sripathy, Vishwanath wrote: Texas Instruments Oy, Tekniikantie 12, 02150 Espoo. Y-tunnus: 0115040-6. Kotipaikka: Helsinki -Original Message- From: Tero Kristo [mailto:t-kri...@ti.com] Sent: Wednesday, August 03, 2011 8:59 PM To:

[PATCH 0/5] OMAP: DSS2: Miscellaneous DISPC Patches

2011-08-05 Thread Archit Taneja
Reduce the size of the large functions dispc_dump_regs(), dispc_save_context() and dispc_restore_context() and _dispc_setup_color_conv_coef(). Add support for VIDEO3 pipeline on OMAP4. Applies over master branch of: git://gitorious.org/linux-omap-dss2/linux.git Archit Taneja (5): OMAP: DSS2:

[PATCH 1/5] OMAP: DSS2: DISPC: Prepare dispc_dump_regs() for shortening

2011-08-05 Thread Archit Taneja
Prepare dispc_dump_regs() to iterate over manager and overlay id's. Doing this requires modifications of the macro DUMPREG which currently needs us to specify the manager/overlay name to get the correct result. For example, in order to print the register DISPC_TIMING_H(OMAP_DSS_CHANNEL_LCD), we

[PATCH 2/5] OMAP: DSS2: DISPC: Shorten dispc_dump_regs()

2011-08-05 Thread Archit Taneja
Iterate over manager and overlay id's to shorten dispc_dump_regs(). Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dispc.c | 326 --- 1 files changed, 98 insertions(+), 228 deletions(-) diff --git a/drivers/video/omap2/dss/dispc.c

[PATCH 3/5] OMAP: DSS2: DISPC: dispc_save_context() and dispc_restore_context() cleanup

2011-08-05 Thread Archit Taneja
Iterate over manager and overlay id's to shorten dispc_save_context() and dispc_restore_context(). Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dispc.c | 408 --- 1 files changed, 128 insertions(+), 280 deletions(-) diff --git

[PATCH 4/5] OMAP: DSS2: DISPC: Shorten _dispc_set_color_conv_coef()

2011-08-05 Thread Archit Taneja
Iterate over overlay id's to shorten _dispc_set_color_conv_coef() Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dispc.c | 42 ++ 1 files changed, 16 insertions(+), 26 deletions(-) diff --git a/drivers/video/omap2/dss/dispc.c

[PATCH 5/5] OMAP4: DSS2: VIDEO3 pipeline support

2011-08-05 Thread Archit Taneja
Add support for VIDEO3 pipeline on OMAP4: - Add VIDEO3 pipeline information in dss_features and omapdss.h - Add VIDEO3 pipeline register coefficients in dispc.h - Create a new overlay structure corresponding to VIDEO3. Signed-off-by: Archit Taneja arc...@ti.com ---

Re: [PATCH] OMAP: DSS2: DSI: Support non-dcs long read

2011-08-05 Thread Tomi Valkeinen
Hi, On Fri, 2011-08-05 at 00:17 -0700, Arve Hjønnevåg wrote: 2011/8/5 Tomi Valkeinen tomi.valkei...@ti.com: On Thu, 2011-08-04 at 18:15 -0700, Arve Hjønnevåg wrote: 2011/8/4 Tomi Valkeinen tomi.valkei...@ti.com: Hi, On Wed, 2011-06-29 at 20:44 -0700, Arve Hjønnevåg wrote:

Re: [PATCH 5/5] OMAP4: DSS2: VIDEO3 pipeline support

2011-08-05 Thread Semwal, Sumit
On Fri, Aug 5, 2011 at 8:42 AM, Archit Taneja arc...@ti.com wrote: Add support for VIDEO3 pipeline on OMAP4: - Add VIDEO3 pipeline information in dss_features and omapdss.h - Add VIDEO3 pipeline register coefficients in dispc.h - Create a new overlay structure corresponding to VIDEO3.

Re: [PATCH 5/5] OMAP4: DSS2: VIDEO3 pipeline support

2011-08-05 Thread Archit Taneja
Hi, On Friday 05 August 2011 02:13 PM, Semwal, Sumit wrote: On Fri, Aug 5, 2011 at 8:42 AM, Archit Tanejaarc...@ti.com wrote: Add support for VIDEO3 pipeline on OMAP4: - Add VIDEO3 pipeline information in dss_features and omapdss.h - Add VIDEO3 pipeline register coefficients in dispc.h -

Re: [PATCH 5/5] OMAP4: DSS2: VIDEO3 pipeline support

2011-08-05 Thread Tomi Valkeinen
On Fri, 2011-08-05 at 14:51 +0530, Archit Taneja wrote: Hi, On Friday 05 August 2011 02:13 PM, Semwal, Sumit wrote: On Fri, Aug 5, 2011 at 8:42 AM, Archit Tanejaarc...@ti.com wrote: Add support for VIDEO3 pipeline on OMAP4: - Add VIDEO3 pipeline information in dss_features and

Re: [Q] SW-ECC to HW-ECC (OMAP3)

2011-08-05 Thread Grazvydas Ignotas
On Thu, Aug 4, 2011 at 1:55 PM, Arno Steffen arno.stef...@googlemail.com wrote: While migrating from .33 to .37 kernel I found, that HW-ECC is used by default. I found that this is set in omap2.c:        pdata-ecc_opt          = OMAP_ECC_HAMMING_CODE_HW; Unfortunatly setting it back to      

Re: [PATCH 5/5] OMAP4: DSS2: VIDEO3 pipeline support

2011-08-05 Thread Archit Taneja
Hi, On Friday 05 August 2011 02:56 PM, Valkeinen, Tomi wrote: On Fri, 2011-08-05 at 14:51 +0530, Archit Taneja wrote: Hi, On Friday 05 August 2011 02:13 PM, Semwal, Sumit wrote: On Fri, Aug 5, 2011 at 8:42 AM, Archit Tanejaarc...@ti.com wrote: Add support for VIDEO3 pipeline on OMAP4: -

Re: Shouldn't DT preserve pdev name and id to allow platform_match to work?

2011-08-05 Thread Barry Song
auxdata passes platform_data and overrides the device name when there is no way easy way to make the driver work without it.  It handles the the current implementation of clocks and regulators which aren't yet populated from the device tree.  It will go away when clock regulator bindings are

[PATCH] AM3517: NAND: Adding NAND support and specifying NAND partitions.

2011-08-05 Thread Hrishikesh Bhandiwad
This patch adds the NAND support on AM3517 platform and creates the partitions. Referred to file: arch/arm/mach-omap2/board-omap3beagle.c Signed-off-by: Hrishikesh Bhandiwad hrishikes...@ti.com --- arch/arm/mach-omap2/board-am3517evm.c | 38 + 1 files changed,

Re: timing in driver function

2011-08-05 Thread Michael Jones
Hi Paul, On 08/02/2011 03:41 AM, Paul Walmsley wrote: Hi, On Mon, 1 Aug 2011, Michael Jones wrote: I have a function in a driver which takes ~50ms to execute, which I've measured by reading jiffies at the beginning and end. But jiffies only counts at 128Hz on my system, so this was a

Re: Shouldn't DT preserve pdev name and id to allow platform_match to work?

2011-08-05 Thread Cousson, Benoit
On 8/3/2011 6:43 PM, Grant Likely wrote: On Wed, Aug 3, 2011 at 4:04 PM, Cousson, Benoitb-cous...@ti.com wrote: Hi Grant, Going further with the usage of OF_DEV_AUXDATA_ID, I realized that this is is not doing what I was expecting. My expectation might be silly, but in order to make

Re: Shouldn't DT preserve pdev name and id to allow platform_match to work?

2011-08-05 Thread Cousson, Benoit
On 8/5/2011 12:02 PM, Barry Song wrote: auxdata passes platform_data and overrides the device name when there is no way easy way to make the driver work without it. It handles the the current implementation of clocks and regulators which aren't yet populated from the device tree. It will go

[PATCH] OMAP2: PM debug: remove leftover debug code

2011-08-05 Thread Michael Jones
commit 20d5d5514981f9a68832bffb27a698545ecba77a left some code lying around which doesn't do anything. Clean it up. Signed-off-by: Michael Jones michael.jo...@matrix-vision.de --- It looks to me like if you remove the register dump, the debug if's don't do anything at all.

[RFCv2 2/2] TEMP: OMAP3: beagle: added dummy clock setup times

2011-08-05 Thread Tero Kristo
This patch provided just as an example, actual time should be checked from the datasheet. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/board-omap3beagle.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c

[RFCv2 1/2] OMAP3+: voltage / oscillator parameter segregation

2011-08-05 Thread Tero Kristo
This patch separates board specific voltage and oscillator ramp / setup times from the core code. Things changed: - on/sleep/ret/off voltage setup moved from common twl code to VC / VP data (opp_data.c files) - added board support for oscillator setup time declaration - removed

[PATCH v2 0/5] OMAP: DSS2: Miscellaneous DISPC Patches

2011-08-05 Thread Archit Taneja
Reduce the size of the large functions dispc_dump_regs(), dispc_save_context() and dispc_restore_context() and _dispc_setup_color_conv_coef(). Make fifo_size array length in dispc.c generic. Applies over master branch of: git://gitorious.org/linux-omap-dss2/linux.git changes in v2: - Remove

[PATCH v2 2/5] OMAP: DSS2: DISPC: Shorten dispc_dump_regs()

2011-08-05 Thread Archit Taneja
Iterate over manager and overlay id's to shorten dispc_dump_regs(). Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dispc.c | 326 --- 1 files changed, 98 insertions(+), 228 deletions(-) diff --git a/drivers/video/omap2/dss/dispc.c

[PATCH v2 1/5] OMAP: DSS2: DISPC: Prepare dispc_dump_regs() for shortening

2011-08-05 Thread Archit Taneja
Prepare dispc_dump_regs() to iterate over manager and overlay id's. Doing this requires modifications of the macro DUMPREG which currently needs us to specify the manager/overlay name to get the correct result. For example, in order to print the register DISPC_TIMING_H(OMAP_DSS_CHANNEL_LCD), we

[PATCH v2 3/5] OMAP: DSS2: DISPC: dispc_save_context() and dispc_restore_context() cleanup

2011-08-05 Thread Archit Taneja
Iterate over manager and overlay id's to shorten dispc_save_context() and dispc_restore_context(). Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dispc.c | 408 --- 1 files changed, 128 insertions(+), 280 deletions(-) diff --git

[PATCH v2 4/5] OMAP: DSS2: DISPC: Shorten _dispc_set_color_conv_coef()

2011-08-05 Thread Archit Taneja
Iterate over overlay id's to shorten _dispc_set_color_conv_coef() Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dispc.c | 42 ++ 1 files changed, 16 insertions(+), 26 deletions(-) diff --git a/drivers/video/omap2/dss/dispc.c

[PATCH v2 5/5] OMAP: DSS2: Use a macro to declare size of the fifo_size array in dispc.c

2011-08-05 Thread Archit Taneja
The array size of fifo_size array in the global dispc struct is currently hardcoded to 3. Replace this with the MAX_DSS_OVERLAYS macro in dss_features.h, use dss_features function to get the number of overlays instead of the ARRAY_SIZE macro in dispc_read_plane_fifo_sizes(). Signed-off-by: Archit

Re: [PATCH v2 0/5] OMAP: DSS2: Miscellaneous DISPC Patches

2011-08-05 Thread Tomi Valkeinen
On Fri, 2011-08-05 at 19:05 +0530, Archit Taneja wrote: Reduce the size of the large functions dispc_dump_regs(), dispc_save_context() and dispc_restore_context() and _dispc_setup_color_conv_coef(). Make fifo_size array length in dispc.c generic. Applies over master branch of:

Re: [Q] SW-ECC to HW-ECC (OMAP3)

2011-08-05 Thread Arno Steffen
2011/8/5 Grazvydas Ignotas nota...@gmail.com: On Thu, Aug 4, 2011 at 1:55 PM, Arno Steffen arno.stef...@googlemail.com wrote: While migrating from .33 to .37 kernel I found, that HW-ECC is used by default. I found that this is set in omap2.c:        pdata-ecc_opt          =

Re: [PATCH] OMAP: omap_device: make latency autoadjust messages debug

2011-08-05 Thread Kevin Hilman
Grazvydas Ignotas nota...@gmail.com writes: During normal system operation warning messages similar to this are appearing quite often: omap_device: omap4-keypad.-1: new worst case activate latency 0: 61035 This doesn't seem to be reporting a problem, nor is it very useful for

Re: [PATCH 4/4] OMAP4: HWMOD: fix DSS reset

2011-08-05 Thread Cousson, Benoit
Hi Tomi, On 8/2/2011 12:33 PM, Valkeinen, Tomi wrote: The HWMOD code currently fails to reset dispc and rfbi modules. This patch adds all DSS clocks as opt clocks for dispc, and sets HWMOD_CONTROL_OPT_CLKS_IN_RESET. This seems to fix the issue, although this feels like a hack. Enabling the

Re: [PATCH 6/6] OMAP: McBSP: use existing macros for converting between devices

2011-08-05 Thread Kevin Hilman
Jarkko Nikula jhnik...@gmail.com writes: Hi Kevin On Thu, 4 Aug 2011 08:45:10 -0700 Kevin Hilman khil...@ti.com wrote: For converting from struct device to platform_device, and from platform_device to struct omap_device, there are existing macros. Use them instead of manual use of

[PATCH] OMAP: DSS2: DSI: fix warning unused variable 'dsidev'

2011-08-05 Thread Michael Jones
CC drivers/video/omap2/dss/dsi.o drivers/video/omap2/dss/dsi.c: In function ‘omap_dsi_prepare_update’: drivers/video/omap2/dss/dsi.c:3936: warning: unused variable ‘dsidev’ Signed-off-by: Michael Jones michael.jo...@matrix-vision.de --- drivers/video/omap2/dss/dsi.c |2 ++ 1 files

Re: [PATCH 3/4] OMAP4: HWMOD: fix DSS opt clocks

2011-08-05 Thread Cousson, Benoit
On 8/2/2011 12:33 PM, Valkeinen, Tomi wrote: Remove the opt clocks for dss and dispc, as they are not needed. Change the main_clk for hdmi and venc to dss_48mhz_clk and dss_tv_clk, respectively. Cc: Benoit Coussonb-cous...@ti.com Signed-off-by: Tomi Valkeinentomi.valkei...@ti.com That one

Re: [linux-pm] [PATCH 02/11] PM: extend PM QoS with per-device wake-up constraints

2011-08-05 Thread mark gross
On Thu, Aug 04, 2011 at 09:15:30PM +0200, Rafael J. Wysocki wrote: On Thursday, August 04, 2011, Mark Brown wrote: On Wed, Aug 03, 2011 at 12:16:17AM +0200, Rafael J. Wysocki wrote: On Tuesday, August 02, 2011, Kevin Hilman wrote: I disagree and think that both are quite realistic

Re: [PATCH 4/4] OMAP4: HWMOD: fix DSS reset

2011-08-05 Thread Tomi Valkeinen
On Fri, 2011-08-05 at 16:56 +0200, Cousson, Benoit wrote: Hi Tomi, On 8/2/2011 12:33 PM, Valkeinen, Tomi wrote: The HWMOD code currently fails to reset dispc and rfbi modules. This patch adds all DSS clocks as opt clocks for dispc, and sets HWMOD_CONTROL_OPT_CLKS_IN_RESET. This seems

Re: [linux-pm] [PATCH 02/11] PM: extend PM QoS with per-device wake-up constraints

2011-08-05 Thread Mark Brown
On Thu, Aug 04, 2011 at 09:15:30PM +0200, Rafael J. Wysocki wrote: On Thursday, August 04, 2011, Mark Brown wrote: On the one hand that's true. On the other hand that just seems like going down a bad road where we have drivers that only work when run with a magic userspace that may or may

Re: [PATCH 4/4] OMAP4: HWMOD: fix DSS reset

2011-08-05 Thread Cousson, Benoit
On 8/5/2011 5:48 PM, Valkeinen, Tomi wrote: On Fri, 2011-08-05 at 16:56 +0200, Cousson, Benoit wrote: Hi Tomi, On 8/2/2011 12:33 PM, Valkeinen, Tomi wrote: The HWMOD code currently fails to reset dispc and rfbi modules. This patch adds all DSS clocks as opt clocks for dispc, and sets

Re: [PATCH] [media] OMAP_VOUT: Fix build break caused by update_mode removal in DSS2

2011-08-05 Thread Koen Kooi
Op 5 aug 2011, om 09:19 heeft Archit Taneja het volgende geschreven: The DSS2 driver does not support the configuration of the update_mode of a panel anymore. Remove the setting of update_mode done in omap_vout_probe(). Ignore configuration of TE since omap_vout driver doesn't support

Re: [linux-pm] [RFC/PATCH v2] PM / Runtime: allow _put_sync() from interrupts-disabled context

2011-08-05 Thread Rafael J. Wysocki
On Friday, August 05, 2011, Kevin Hilman wrote: Rafael J. Wysocki r...@sisk.pl writes: On Friday, July 22, 2011, Kevin Hilman wrote: Currently the use of pm_runtime_put_sync() is not safe from interrupts-disabled context because rpm_idle() will release the spinlock and enable interrupts

Re: [PATCHv4 2/4] regulator: omap smps regulator driver

2011-08-05 Thread Kevin Hilman
Mark Brown broo...@opensource.wolfsonmicro.com writes: On Thu, Jul 28, 2011 at 02:48:57PM +0300, Tero Kristo wrote: OMAP SMPS regulator driver provides access to OMAP voltage processor controlled regulators. These include VDD_MPU and VDD_CORE for OMAP3 and additionally VDD_IVA for OMAP4. SMPS

Re: [PATCHv4 1/4] omap: voltage: add a stub header file

2011-08-05 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: Needed as some of the voltage layer functionality is accessed from the SMPS regulator driver. Signed-off-by: Tero Kristo t-kri...@ti.com Looks good, I'll add this to my pm-wip/voltdm branch. Kevin -- To unsubscribe from this list: send the line

Re: [linux-pm] [PATCH 02/11] PM: extend PM QoS with per-device wake-up constraints

2011-08-05 Thread Rafael J. Wysocki
On Friday, August 05, 2011, Mark Brown wrote: On Thu, Aug 04, 2011 at 09:15:30PM +0200, Rafael J. Wysocki wrote: On Thursday, August 04, 2011, Mark Brown wrote: On the one hand that's true. On the other hand that just seems like going down a bad road where we have drivers that only

Re: [PATCHv4 4/4] TEMP: OMAP3: beagle rev-c4: enable OPP6

2011-08-05 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: Beagleboard rev-c4 has a speed sorted OMAP3530 chip which can run at 720MHz. Signed-off-by: Tero Kristo t-kri...@ti.com FYI... this needs an update similar to the patch I just posted for v3.1-rc so it's not directly using omap_device:

Re: [PATCHv4 3/4] omap: smps: add smps regulator init to voltage.c

2011-08-05 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: All voltagedomains that have support for vc and vp are now automatically registered with SMPS regulator driver. Voltage.c builds a platform device structure for this purpose during late init. Signed-off-by: Tero Kristo t-kri...@ti.com ---

Re: [PATCHv4 3/4] omap: smps: add smps regulator init to voltage.c

2011-08-05 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: All voltagedomains that have support for vc and vp are now automatically registered with SMPS regulator driver. Voltage.c builds a platform device structure for this purpose during late init. Signed-off-by: Tero Kristo t-kri...@ti.com [...] +static void

Re: [PATCH] OMAP: DSS2: DSI: Support non-dcs long read

2011-08-05 Thread Arve Hjønnevåg
2011/8/5 Tomi Valkeinen tomi.valkei...@ti.com: Hi, On Fri, 2011-08-05 at 00:17 -0700, Arve Hjønnevåg wrote: 2011/8/5 Tomi Valkeinen tomi.valkei...@ti.com: On Thu, 2011-08-04 at 18:15 -0700, Arve Hjønnevåg wrote: 2011/8/4 Tomi Valkeinen tomi.valkei...@ti.com: Hi, On Wed, 2011-06-29

Re: [PATCHv4 3/4] omap: smps: add smps regulator init to voltage.c

2011-08-05 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: All voltagedomains that have support for vc and vp are now automatically registered with SMPS regulator driver. Voltage.c builds a platform device structure for this purpose during late init. Signed-off-by: Tero Kristo t-kri...@ti.com With the creation of

Re: [linux-pm] [RFC/PATCH v2] PM / Runtime: allow _put_sync() from interrupts-disabled context

2011-08-05 Thread Kevin Hilman
Rafael J. Wysocki r...@sisk.pl writes: On Friday, August 05, 2011, Kevin Hilman wrote: Rafael J. Wysocki r...@sisk.pl writes: On Friday, July 22, 2011, Kevin Hilman wrote: Currently the use of pm_runtime_put_sync() is not safe from interrupts-disabled context because rpm_idle() will

Re: [PATCHv4 2/4] regulator: omap smps regulator driver

2011-08-05 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: OMAP SMPS regulator driver provides access to OMAP voltage processor controlled regulators. These include VDD_MPU and VDD_CORE for OMAP3 and additionally VDD_IVA for OMAP4. SMPS regulators use the OMAP voltage layer for the actual voltage regulation

[PATCH 0/9] OMAP: omap_device cleanups, decouple platform_device for v3.2

2011-08-05 Thread Kevin Hilman
Here's a series of omap_device cleanups and updates targetted for v3.2. Most are just minor cleanups in preparation for the last one which attempts to decouple the platform_device from an omap_device. This version uses pdev_archdata instead of using devres as was proposed in the earlier RFC.

[PATCH 2/9] OMAP: omap_device: replace debug/warning/error prints with dev_* macros

2011-08-05 Thread Kevin Hilman
For consistency in kernel printk output for devices, use dev_dbg(), dev_warn(), dev_err() instead of pr_debug(), pr_warning() and pr_err(), some of which currently use direct access of name from platform_device and others of which use dev_name(). Using the dev_* versions uses the standard device

[PATCH 1/9] omap: mcbsp: Remove omap device API

2011-08-05 Thread Kevin Hilman
From: Jarkko Nikula jhnik...@gmail.com struct omap_device *od is only set with find_omap_device_by_dev but not used otherwise so remove them and references to omap device API. Acked-by: Kevin Hilman khil...@ti.com Signed-off-by: Jarkko Nikula jhnik...@gmail.com --- arch/arm/plat-omap/mcbsp.c |

[PATCH 4/9] OMAP: omap_device: remove internal functions from omap_device.h

2011-08-05 Thread Kevin Hilman
The *_device_register() functions and the count/fill resources functions are internal to omap_device and do not need to be in the header. Signed-off-by: Kevin Hilman khil...@ti.com --- arch/arm/plat-omap/include/plat/omap_device.h |6 -- arch/arm/plat-omap/omap_device.c |

[PATCH 3/9] OMAP: omap_device: make latency autoadjust messages debug

2011-08-05 Thread Kevin Hilman
From: Grazvydas Ignotas nota...@gmail.com During normal system operation warning messages similar to this are appearing quite often: omap_device: omap4-keypad.-1: new worst case activate latency 0: 61035 This doesn't seem to be reporting a problem, nor is it very useful for non-developers, so

[PATCH 6/9] OMAP: omap_device: device register functions now take platform_device pointer

2011-08-05 Thread Kevin Hilman
The internal device register functions do not need or use any omap_device internals, so pass in a platform_device pointer instead of an omap_device pointer. Signed-off-by: Kevin Hilman khil...@ti.com --- arch/arm/plat-omap/omap_device.c | 22 +++--- 1 files changed, 11

[PATCH 8/9] ARM: platform_device: pdev_archdata: add omap_device pointer

2011-08-05 Thread Kevin Hilman
Add omap_device pointer to the ARM-specific arch data in the platform_device. This will be used to attach OMAP-specific device-data to the platform device with device lifetime. Suggested-by: Russell King rmk+ker...@arm.linux.org.uk Cc: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Kevin

[PATCH 9/9] OMAP: omap_device: decouple platform_device from omap_device

2011-08-05 Thread Kevin Hilman
Rather than embedding a struct platform_device inside a struct omap_device, decouple them, leaving only a pointer to the platform_device inside the omap_device. Use the arch-specific data field of the platform_device (pdev_archdata) to add an omap_device pointer after the platform_device has been

[PATCH 7/9] OMAP: omap_device: _disable_idle_on_suspend() takes platform_device pointer

2011-08-05 Thread Kevin Hilman
Public omap_device functions need to take platform_device pointers, conversion to omap_device pointers is done internal to the omap_device layer. Signed-off-by: Kevin Hilman khil...@ti.com --- arch/arm/mach-omap2/gpio.c|2 +- arch/arm/mach-omap2/serial.c

[PATCH 5/9] OMAP: omap_device: when building return platform_device instead of omap_device

2011-08-05 Thread Kevin Hilman
All of the device init and device driver interaction with omap_device is done using platform_device pointers. To make this more explicit, have omap_device return a platform_device pointer instead of an omap_device pointer. All current users of the omap_device pointer were only using it to get at

Re: [linux-pm] [PATCH 02/11] PM: extend PM QoS with per-device wake-up constraints

2011-08-05 Thread Mark Brown
On Fri, Aug 05, 2011 at 09:37:36PM +0200, Rafael J. Wysocki wrote: On Friday, August 05, 2011, Mark Brown wrote: Do you have any examples of this that aren't better expressed in device specific terms? I'm not sure what you mean exactly, but if you take two PC-like systems with similar