Re: The old omapfb support

2011-04-20 Thread Tomi Valkeinen
On Tue, 2011-04-19 at 14:45 +0200, Michael Büsch wrote: > On Tue, 2011-04-19 at 15:41 +0300, Tomi Valkeinen wrote: > > On Tue, 2011-04-19 at 14:34 +0200, Michael Büsch wrote: > > > On Tue, 2011-04-19 at 15:30 +0300, Tony Lindgren wrote: > > > > > But this again reminded me of the mess of having t

Re: [PATCH v3] ARM: omap2: mtd split nand_scan in ident and tail

2011-04-20 Thread Artem Bityutskiy
On Tue, 2011-04-19 at 16:15 +0200, Jan Weitzel wrote: > nand_scan calls nand_scan_tail and here we got a ecc.layout and calculate > oobavail for this layout. After calling nand_scan, we change the layout > pointer > if OMAP_ECC_HAMMING_CODE_HW_ROMCODE is set. This results in not calcluated > oobav

[PATCH] OMAP: Added recalculation of clock rate in 'clk_set_rate'

2011-04-20 Thread Shweta Gulati
From: Gulati, Shweta Core Clk Tree shows incorrect Clk rates at OPP50, as in commit e07f469d284ca3d1f5dcf5438c22982be98bc071 calling of 'recalc' in API clk_set_rate is unintentionally removed, because of which clock's tree rates get goofed up when DVFS happens. This Patch adds recalc API back. T

[PATCH 0/4] crypto: omap-sham driver fixes

2011-04-20 Thread Dmitry Kasatkin
Hi, Here is few patches with couple of important fixes... Regards, Dmitry Dmitry Kasatkin (3): crypto: omap-sham - remove debug print crypto: omap-sham - enable driver for EMU chips crypto: omap-sham - hmac calculation bug fix for sha1 base hash Markku Kylanpaa (1): crypto: omap-sham -

[PATCH 3/4] crypto: omap-sham - enable driver for EMU chips

2011-04-20 Thread Dmitry Kasatkin
EMU chips also have crypto HW as HS chips. Signed-off-by: Dmitry Kasatkin --- drivers/crypto/omap-sham.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 50aca41..f5c01dc 100644 --- a/drivers/crypto/omap-sham

[PATCH 4/4] crypto: omap-sham - hmac calculation bug fix for sha1 base hash

2011-04-20 Thread Dmitry Kasatkin
This patch fixes 2 hmac inter-dependent bugs. 1. "omap-sham: hash-in-progress is stored in hw format" commit introduced optimization where temporary hash had been stored in OMAP specific format (big endian). For SHA1 it is different to real hash format, which is little endian. Final HMAC value was

[PATCH 2/4] crypto: omap-sham - remove debug print

2011-04-20 Thread Dmitry Kasatkin
Signed-off-by: Dmitry Kasatkin --- drivers/crypto/omap-sham.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index e36032b..50aca41 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -890,8

[PATCH 1/4] crypto: omap-sham - fix concurrent sha1 calculations

2011-04-20 Thread Dmitry Kasatkin
From: Markku Kylanpaa SHA1 accelerator can also be busy. Add -EBUSY status return option and return busy status from omap_sham_finup(). Signed-off-by: Markku Kylanpaa --- drivers/crypto/omap-sham.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/crypto/omap-sh

RE: [PATCH v3 2/2] RX-51: Enable isp1704 power on/off

2011-04-20 Thread kalle.jokiniemi
Thanks for the ack. Now can we get this patch set in? Anton are you reading this? If you need refreshed set, I can do that. - Kalle > -Original Message- > From: ext Tony Lindgren [mailto:t...@atomide.com] > Sent: 13. huhtikuuta 2011 9:29 > To: Krogerus Heikki (Nokia-SD/Helsinki) >

RE: [PATCH v3 2/2] RX-51: Enable isp1704 power on/off

2011-04-20 Thread kalle.jokiniemi
> -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of ext kalle.jokini...@nokia.com > Sent: 20. huhtikuuta 2011 13:38 > To: t...@atomide.com; Krogerus Heikki (Nokia-SD/Helsinki); > cbouatmai...@gmail.com > Cc: linux-...

Re: The old omapfb support

2011-04-20 Thread Michael Büsch
On Wed, 2011-04-20 at 11:06 +0300, Tomi Valkeinen wrote: > > So if you first port the stuff and then add the depends-on OMAP1, I'm > > fine with it. > > Does the display even work on N8x0 with mainline kernel? I don't see any > code for it in the board file. It needs some additional glue code, w

Re: The old omapfb support

2011-04-20 Thread Tomi Valkeinen
On Wed, 2011-04-20 at 13:18 +0200, Michael Büsch wrote: > On Wed, 2011-04-20 at 11:06 +0300, Tomi Valkeinen wrote: > > > So if you first port the stuff and then add the depends-on OMAP1, I'm > > > fine with it. > > > > Does the display even work on N8x0 with mainline kernel? I don't see any > > c

Re: The old omapfb support

2011-04-20 Thread Michael Büsch
On Wed, 2011-04-20 at 14:31 +0300, Tomi Valkeinen wrote: > On Wed, 2011-04-20 at 13:18 +0200, Michael Büsch wrote: > > On Wed, 2011-04-20 at 11:06 +0300, Tomi Valkeinen wrote: > > > > So if you first port the stuff and then add the depends-on OMAP1, I'm > > > > fine with it. > > > > > > Does the

Monitoring uevents at the user space

2011-04-20 Thread J, KEERTHY
Hello All, I am writing a driver for OMAP4460 thermal sensor. I have a requirement to send events to the user space from the driver on some condition. I am using kobject_uevent(&temp_sensor->dev->kobj, KOBJ_ADD) as part of initialization. On the occurrence of the event i am notifying via kobject

RE: [PATCH] OMAP: Added recalculation of clock rate in 'clk_set_rate'

2011-04-20 Thread Janorkar, Mayuresh
> -Original Message- > From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap- > ow...@vger.kernel.org] On Behalf Of Gulati, Shweta > Sent: Wednesday, April 20, 2011 2:55 PM > To: linux-omap@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org; Gulati, Shweta; Nayak, Rajendra; >

copy_to_user speed from dma_alloc_coherent vs. kmalloc buffer

2011-04-20 Thread Orjan Friberg
Hi, I have a driver where I do memory to memory DMA between GPMC and SDRAM. Adding a read function, I found that copy_to_user from a dma_alloc_coherent buffer is significantly slower than from a kmalloc'd one. Looking at arch/arm/include/asm/pgtable.h I suspect this difference in speed is d

Re: RX-51: Platform support for lp5523

2011-04-20 Thread Tony Lindgren
* Felipe Balbi [110405 06:00]: > > But the fact that Russell has already stated the next merge window is > strictly for code consolidation already puts a stop sign in front of > this patch :-) Still, Tony is the final judge. Yes this would be for the next merge window. It is still unclear what i

Re: [PATCH v2] arm: omap2: enable smc instruction for sleep34xx

2011-04-20 Thread Tony Lindgren
* oskar.and...@sonyericsson.com [110419 07:39]: > This fixes broken build when using binutils 2.21. Thanks will queue for the -rc cycle. Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at htt

Re: [PATCH] OMAP: Added recalculation of clock rate in 'clk_set_rate'

2011-04-20 Thread Sergei Shtylyov
Hello. On 20-04-2011 13:25, Shweta Gulati wrote: From: Gulati, Shweta Core Clk Tree shows incorrect Clk rates at OPP50, as in commit e07f469d284ca3d1f5dcf5438c22982be98bc071 Please also specify that commit's summary -- for human readers. calling of 'recalc' in API clk_set_rate is unin

Re: Monitoring uevents at the user space

2011-04-20 Thread Menon, Nishanth
On Wed, Apr 20, 2011 at 07:04, J, KEERTHY wrote: > Hello All, > > I am writing a driver for OMAP4460 thermal sensor. I have a requirement > to send events to the user space from the driver on some condition. > > I am using kobject_uevent(&temp_sensor->dev->kobj, KOBJ_ADD) as > part of initializati

Re: copy_to_user speed from dma_alloc_coherent vs. kmalloc buffer

2011-04-20 Thread Orjan Friberg
On 2011-04-20 17:12, Orjan Friberg wrote: What are my options (besides using mmap)? It looks like kmalloc + dma_map_single for the DMA destination buffer and then dma_sync_single_for_{cpu,device} around the call to copy_to_user pretty much does the trick. At least the %sys load measured wit

[PATCH] arm: omap2plus: add wl12xx support in omap4plus_defconfig

2011-04-20 Thread Luciano Coelho
Many omap2plus-based boards include wireless chips supported by the wl12xx driver (eg. WL1271 on Blaze and Panda) or can get an extension that includes such chips (eg. the WLAN daugther card for Beagle). To get out-of-the-box support for the wl12xx-based chips on such boards, this patch adds the w

Re: [PATCH v3 2/2] RX-51: Enable isp1704 power on/off

2011-04-20 Thread Anton Vorontsov
On Wed, Apr 20, 2011 at 10:56:51AM +, kalle.jokini...@nokia.com wrote: > > Thanks for the ack. Now can we get this patch set in? Anton are you reading > > this? > > Let's try another mail address for Anton... Sorry for the delay, folks. The two patches are now applied. Much thanks for your

Re: [linux-pm] [RFC PATCH V3 1/4] cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state

2011-04-20 Thread Kevin Hilman
Trinabh Gupta writes: > Cpuidle subsystem only suggests the state to enter and does not > guarantee if the suggested state is entered. The actual entered state > may be different because of software or hardware demotion. Software > demotion is done by the back-end cpuidle driver and can be accoun

Re: [linux-pm] [RFC PATCH V3 4/4] cpuidle: Single/Global registration of idle states

2011-04-20 Thread Kevin Hilman
Trinabh Gupta writes: > With this patch there is single copy of cpuidle_states structure > instead of per-cpu. The statistics needed on per-cpu basis > by the governor are kept per-cpu. This simplifies the cpuidle > subsystem as state registration is done by single cpu only. > Having single copy

Re: [PATCH 2/2] OMAP2/3: hwmod: fix gpio-reset timeouts seen during bootup.

2011-04-20 Thread Paul Walmsley
Thanks, queued for 2.6.39-rc. - Paul -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/2] Couple of fixes regarding CM_AUTOIDLE_PLL register

2011-04-20 Thread Paul Walmsley
Thanks, queued both of these for 2.6.39-rc. - Paul -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCH 2/2] OMAP3: PM: Do not rely on ROM code to restore CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL

2011-04-20 Thread Paul Walmsley
Hi On Thu, 14 Apr 2011, Premi, Sanjeev wrote: > [sp] You seem to have missed this patch: > http://marc.info/?l=linux-arm-kernel&m=129735383925285&w=2 I asked Eduardo to post his patches because there was no response to http://marc.info/?l=linux-arm-kernel&m=129961775124912&w=2 and because he t

Re: [PATCH] OMAP4: clockdomain: Follow recommended enable sequence

2011-04-20 Thread Paul Walmsley
Hi Rajendra, Santosh, just FYI I just observed this happening without the clockdomain patch, and tracked this down. It seems that there is an intermittent problem with the OMAP L3 bus code. On the 35xx BeagleBoard here, it occasionally hangs after powerup: [0.810119] OMAP GPIO hardware

[PATCH 0/5] OMAP hwmod/PRCM/clock: patches for 2.6.39-rc

2011-04-20 Thread Paul Walmsley
Hello, This series contains OMAP hwmod/PRCM/clock fixes for the 2.6.39-rc merge period. Of particular note is the DSS clock alias patch, without which OMAP4 will crash on boot. Boot-tested on N800, OMAP35xx Beagle, OMAP37xx Beagle, and OMAP4430 ES2 Panda. - Paul --- for_tony_a_2.6.39rc te

[PATCH 2/5] OMAP4: clock data: Change DSS clock aliases

2011-04-20 Thread Paul Walmsley
From: Tomi Valkeinen DSS driver has used fck and ick clocks on OMAP2/3 to get DSS HW up and running, and also to get the pixel clock's source clock rate from the fck. On OMAP4 the clock data is set up in a different way, as there's no ick, dss_fck points to a fake clock which just affects DSS's

[PATCH 3/5] OMAP2+: PM: Fix the saving of CM_AUTOIDLE_PLL register on scratchpad area

2011-04-20 Thread Paul Walmsley
From: Eduardo Valentin The saving of CCR.CM_AUTOIDLE_PLL is done in scratchpad area. However, in current code, the saving is done for CM_AUTOIDLE2_PLL (offset 0x34) instead of CM_AUTOIDLE_PLL (offset 0x30). This patch changes the code to save the correct register. Signed-off-by: Eduardo Valent

[PATCH 4/5] OMAP3: PM: Do not rely on ROM code to restore CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL

2011-04-20 Thread Paul Walmsley
From: Eduardo Valentin As per OMAP3 erratum (i671), ROM code adds extra latencies while restoring CM_AUTOIDLE_PLL register, if AUTO_PERIPH_DPLL is equal to 1. This patch stores 0's in scratchpad content area corresponding to AUTO_PERIPH_DPLL, to prevent ROM code to try to lock per DPLL, since it

[PATCH 5/5] OMAP2/3: hwmod: fix gpio-reset timeouts seen during bootup.

2011-04-20 Thread Paul Walmsley
From: Avinash.H.M GPIO module expects the debounce clocks to be enabled during reset. It doesn't reset properly and timeouts are seen, if this clock isn't enabled during reset. Add the HWMOD_CONTROL_OPT_CLKS_IN_RESET flags to the GPIO HWMODs, with which the debounce clocks are enabled during rese

Re: [PATCH] cbus: tahvo: Remove dead code from tahvo-usb.c

2011-04-20 Thread Tony Lindgren
* Felipe Balbi [110419 03:02]: > On Tue, Apr 19, 2011 at 11:19:53AM +0300, Jarkko Nikula wrote: > > Looks like this code was ever used. It was added by commit > > fe3702054f6412aea04373ceb9d27a4a417ff3f0 "OMAP: Fix USB on Nokia 770" > > that can be found from linux-omap history if needed. > > > >

Re: [PATCH] OMAP: Added recalculation of clock rate in 'clk_set_rate'

2011-04-20 Thread Paul Walmsley
Hi On Wed, 20 Apr 2011, Shweta Gulati wrote: > From: Gulati, Shweta > > Core Clk Tree shows incorrect Clk rates at OPP50, as > in commit e07f469d284ca3d1f5dcf5438c22982be98bc071 > calling of 'recalc' in API clk_set_rate is unintentionally > removed, That's intentional. struct clk.set_rate fun

[GIT PULL] OMAP hwmod/PRCM/clock: patches for 2.6.39-rc

2011-04-20 Thread Paul Walmsley
Hi Tony The following changes since commit f0e615c3cb72b42191b558c130409335812621d8: Linux 2.6.39-rc4 (2011-04-18 21:26:00 -0700) are available in the git repository at: git://git.pwsan.com/linux-2.6 for_tony_a_2.6.39rc Avinash.H.M (1): OMAP2/3: hwmod: fix gpio-reset timeouts seen du

Re: [v2 0/7] OMAP: GPIO: Use PM runtime framework

2011-04-20 Thread Kevin Hilman
Hi Tony, Tony Lindgren writes: > * Varadarajan, Charulatha [110418 18:00]: >> From: Charulatha V >> >> Use PM runtime framework in OMAP GPIO driver. > ... > >> arch/arm/mach-omap2/gpio.c |6 + >> arch/arm/mach-omap2/pm34xx.c | 22 +- >> arch/arm/plat-omap/gpio.c

[PATCH 0/2] OMAP: GPIO: cleanup: first pass at ifdef removal

2011-04-20 Thread Kevin Hilman
This series is a first pass at the #ifdef removal cleanup. To demonstrate the type of changes needed for the cleanup, the direction and data input/output functions are handled first. Register offset fields are added to platform_data so #ifdefs can be removed. Similar needs to be done for the r

[PATCH 1/2] OMAP: GPIO: move register offset defines into gpio.h

2011-04-20 Thread Kevin Hilman
Register offset defines are moved to so they can be used by SoC-specific device init code to fill out platform_data register offsets. Signed-off-by: Kevin Hilman --- arch/arm/plat-omap/gpio.c | 103 arch/arm/plat-omap/include/plat/gpio.h | 103 +++

[PATCH 2/2] OMAP: GPIO: consolidate direction, input, output, remove #ifdefs

2011-04-20 Thread Kevin Hilman
Add register offset fields to GPIO platform_data for registers that control direction, input and output data. Using these register offsets in the common driver allows removal of #ifdefs and greatly improves readability. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap1/gpio15xx.c |

[PATCH] OMAP2+: powerdomain: fix typo: lose context --> loose context

2011-04-20 Thread Kevin Hilman
Before we get any users of this function, fix the name (and comments) to use loose instead of lose. Signed-off-by: Kevin Hilman --- Applies to v2.6.39-rc4 arch/arm/mach-omap2/powerdomain.c |6 +++--- arch/arm/mach-omap2/powerdomain.h |2 +- 2 files changed, 4 insertions(+), 4 deletions(

Re: [PATCH 3/7] OMAP4: GPIO: Save/restore context

2011-04-20 Thread Kevin Hilman
"Varadarajan, Charulatha" writes: > From: Charulatha V > > Modify the omap_gpio_save/restore_context to support OMAP4 > architecture so that the OMAP GPIO driver need not be modified > when OMAP4 off mode support is available. > > Signed-off-by: Charulatha V > --- > arch/arm/plat-omap/gpio.c |

[PATCH] OMAP: DSS2: DSI: enable interface for omap4

2011-04-20 Thread Vikram Pandita
From: Vikram Pandita By default, the DSI is not getting enabled for omap4. OMAP2PLUS does not catch this issue since it has ARCH_OMAP3. The issue is only seen when using defconfig with ARCH_OMAP4 only. Signed-off-by: Vikram Pandita Cc: Archit Taneja Cc: Tomi Valkeinen --- drivers/video/omap

Re: [linux-pm] [RFC PATCH V3 1/4] cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state

2011-04-20 Thread Trinabh Gupta
On 04/20/2011 10:57 PM, Kevin Hilman wrote: Trinabh Gupta writes: Cpuidle subsystem only suggests the state to enter and does not guarantee if the suggested state is entered. The actual entered state may be different because of software or hardware demotion. Software demotion is done by the

Re: [PATCH] OMAP4: clockdomain: Follow recommended enable sequence

2011-04-20 Thread Santosh Shilimkar
On 4/21/2011 1:12 AM, Paul Walmsley wrote: Hi Rajendra, Santosh, just FYI I just observed this happening without the clockdomain patch, and tracked this down. It seems that there is an intermittent problem with the OMAP L3 bus code. On the 35xx BeagleBoard here, it occasionally hangs after po

Re: [linux-pm] [RFC PATCH V3 4/4] cpuidle: Single/Global registration of idle states

2011-04-20 Thread Trinabh Gupta
On 04/20/2011 11:03 PM, Kevin Hilman wrote: Trinabh Gupta writes: With this patch there is single copy of cpuidle_states structure instead of per-cpu. The statistics needed on per-cpu basis by the governor are kept per-cpu. This simplifies the cpuidle subsystem as state registration is done

Re: [v2 0/7] OMAP: GPIO: Use PM runtime framework

2011-04-20 Thread Tony Lindgren
* Kevin Hilman [110421 02:56]: > Hi Tony, > > Tony Lindgren writes: > > > * Varadarajan, Charulatha [110418 18:00]: > >> From: Charulatha V > >> > >> Use PM runtime framework in OMAP GPIO driver. > > ... > > > >> arch/arm/mach-omap2/gpio.c |6 + > >> arch/arm/mach-omap2/pm

Re: [PATCH 2/2] OMAP2/3: hwmod: fix gpio-reset timeouts seen during bootup.

2011-04-20 Thread Avinash.H.M.
On Wed, Apr 20, 2011 at 01:32:00PM -0600, Paul Walmsley wrote: > > Thanks, queued for 2.6.39-rc. Thanks Paul. - Avinash > > > - Paul -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http:/

[PATCH] omap: Run make savedefconfig on omap2plus_defconfig to shrink it

2011-04-20 Thread Tony Lindgren
This shrinks it down a bit more and makes it easier to patch later on. Signed-off-by: Tony Lindgren --- a/arch/arm/configs/omap2plus_defconfig +++ b/arch/arm/configs/omap2plus_defconfig @@ -21,58 +21,22 @@ CONFIG_MODVERSIONS=y CONFIG_MODULE_SRCVERSION_ALL=y # CONFIG_BLK_DEV_BSG is not set CON