[PATCH v3 00/12] staging: tidspbridge: various cleanups

2010-11-21 Thread Ionut Nicu
This set of patches replaces some of the redundant components of the tidspbridge driver, such as: * wrapper functions for kmalloc/kfree * custom bitmap implementation * custom linked list implementation (list_head wrapper) with the standard linux kernel interfaces. The patches also do some code

[PATCH v3 01/12] staging: tidspbridge: remove gs memory allocator

2010-11-21 Thread Ionut Nicu
Remove unnecessary wrappers for linux kernel memory allocation primitives. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/Makefile |2 +- drivers/staging/tidspbridge/gen/gb.c | 11 +-- drivers/staging/tidspbridge/gen/gh.c

[PATCH v3 02/12] staging: tidspbridge: remove utildefs

2010-11-21 Thread Ionut Nicu
Remove a header file that was not very useful to the dspbridge driver. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- .../tidspbridge/include/dspbridge/utildefs.h | 39 drivers/staging/tidspbridge/pmgr/cmm.c |9 + 2 files changed, 1

[PATCH v3 03/12] staging: tidspbridge: switch to linux bitmap API

2010-11-21 Thread Ionut Nicu
Replace the tidspbridge generic bitmap operations with the linux standard bitmap implementation. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/rmgr/node.c | 166 ++- 1 files changed, 74 insertions(+), 92 deletions(-) diff --git

[PATCH v3 04/12] staging: tidspbridge: remove gb bitmap implementation

2010-11-21 Thread Ionut Nicu
Now that all users of gb have been converted to the standard linux bitmap API, we can remove it from the gen library. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/Makefile |2 +- drivers/staging/tidspbridge/gen/gb.c | 165

[PATCH v3 05/12] staging: tidspbridge: rmgr/node.c code cleanup

2010-11-21 Thread Ionut Nicu
Reorganized some code in rmgr/node.c to increase its readability. Most of the changes reduce the code indentation level and simplifiy the code. No functional changes were done. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/rmgr/node.c | 607

[PATCH v3 06/12] staging: tidspbridge: convert core to list_head

2010-11-21 Thread Ionut Nicu
Convert the core module of the tidspbridge driver to use struct list_head instead of struct lst_list. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/core/_msg_sm.h | 12 +- drivers/staging/tidspbridge/core/chnl_sm.c | 243 ---

[PATCH v3 07/12] staging: tidspbridge: convert pmgr to list_head

2010-11-21 Thread Ionut Nicu
Convert the pmgr module of the tidspbridge driver to use struct list_head instead of struct lst_list. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/pmgr/cmm.c | 237 ++-- drivers/staging/tidspbridge/pmgr/dev.c | 59 +++- 2

[PATCH v3 08/12] staging: tidspbridge: convert rmgr to list_head

2010-11-21 Thread Ionut Nicu
Convert the rmgr module of the tidspbridge driver to use struct list_head instead of struct lst_list. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/rmgr/drv.c | 115 -- drivers/staging/tidspbridge/rmgr/node.c | 53 --

[PATCH v3 09/12] staging: tidspbridge: remove custom linked list

2010-11-21 Thread Ionut Nicu
Now that all users of lst_list have been converted to the standard linux list_head API, we can remove the associated header file. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/TODO |1 - .../staging/tidspbridge/include/dspbridge/list.h |

[PATCH v3 10/12] staging: tidspbridge: core code cleanup

2010-11-21 Thread Ionut Nicu
Reorganized some code in the core module to increase its readability. Most of the changes reduce the code indentation level and simplifiy the code. No functional changes were done. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/core/chnl_sm.c | 449

[PATCH v3 11/12] staging: tidspbridge: pmgr code cleanup

2010-11-21 Thread Ionut Nicu
Reorganized some code in the pmgr module to increase its readability. No functional changes were done. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/pmgr/cmm.c | 357 ++- drivers/staging/tidspbridge/pmgr/dev.c | 20 +-- 2 files

[PATCH v3 12/12] staging: tidspbridge: rmgr code cleanup

2010-11-21 Thread Ionut Nicu
Reorganized some code in the rmgr module to increase its readability. No functional changes were done. Signed-off-by: Ionut Nicu ionut.n...@mindbit.ro --- drivers/staging/tidspbridge/rmgr/drv.c | 171 +--- drivers/staging/tidspbridge/rmgr/node.c | 81 +-

Re: [PATCH 1/1] serial: omap-serial: Add support for kernel debugger

2010-11-21 Thread Ionut Nicu
Hi Cosmin, On Sat, 2010-11-20 at 21:51 +0100, Cosmin Cojocar wrote: The kgdb invokes the poll_put_char and poll_get_char when communicating with the host. This patch also changes the initialization order because the kgdb will check at the very beginning, if there is a valid serial driver.

newbie: can I ask a question about linux-omap-pm on this mailing list?

2010-11-21 Thread Gabi Voiculescu
Hi. I want to ask a newbie questions regarding linux-omap-pm repositories(http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-pm.git;a=summary). I know this mailing list is for the linux-omap repository. I have searched the web for a mailing list specific for linux-omap-pm without

Re: [PATCH 1/1] serial: omap-serial: Add support for kernel debugger

2010-11-21 Thread Cosmin Cojocar
Hi Ionut, Ionut Nicu wrote: Hi Cosmin, On Sat, 2010-11-20 at 21:51 +0100, Cosmin Cojocar wrote: The kgdb invokes the poll_put_char and poll_get_char when communicating with the host. This patch also changes the initialization order because the kgdb will check at the very beginning, if

Re: [PATCH v3 00/12] staging: tidspbridge: various cleanups

2010-11-21 Thread Greg KH
On Sun, Nov 21, 2010 at 12:46:18PM +0200, Ionut Nicu wrote: This set of patches replaces some of the redundant components of the tidspbridge driver, such as: snip As mentioned before, I need to take these from Omar as I don't trust anyone not to send me stuff that breaks the driver anymore :)

[PATCH 04/11] omap: clock: add clkdev aliases for EHCI clocks

2010-11-21 Thread Anand Gadiyar
Add clkdev aliases for the USBHOST and USBTLL clocks on OMAP3 and OMAP4, so that the driver can refer to the clocks using a common alias. This will disappear when the driver is converted to use the hwmod database, but until then this patch is needed. Signed-off-by: Anand Gadiyar gadi...@ti.com

[PATCH 02/11] usb: ehci-omap: don't hard-code TLL channel count

2010-11-21 Thread Anand Gadiyar
From: Keshava Munegowda keshava_mgo...@ti.com Make the TLL channel count a parameter instead of a hardcoded value. This allows us to be flexible with future OMAP revisions which could have a different number of channels. Signed-off-by: Keshava Munegowda keshava_mgo...@ti.com Signed-off-by: Anand

[PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP

2010-11-21 Thread Anand Gadiyar
From: Keshava Munegowda keshava_mgo...@ti.com Signed-off-by: Keshava Munegowda keshava_mgo...@ti.com Signed-off-by: Anand Gadiyar gadi...@ti.com Cc: Tony Lindgren t...@atomide.com --- Depends on the series I just sent out for adding OMAP4 ehci support, but can be applied independently of that.

[PATCH 08/11] usb: omap4: add platform init code for EHCI driver

2010-11-21 Thread Anand Gadiyar
- Add platform init code for EHCI on OMAP4 - Add pad configuration for PHY and TLL modes Signed-off-by: Anand Gadiyar gadi...@ti.com --- arch/arm/mach-omap2/usb-ehci.c | 144 +-- 1 files changed, 136 insertions(+), 8 deletions(-) diff --git

[PATCH 01/11] usb: ehci-omap: update clock names to be more generic

2010-11-21 Thread Anand Gadiyar
From: Keshava Munegowda keshava_mgo...@ti.com Rename usbhost2_120m_fck to usbhost_hs_fck and usbhost1_48m_fck to usbhost_fs_fck, to better reflect the clocks' functionalities. In OMAP4, the frequencies for the corresponding clocks are not necessarily the same as with OMAP3, however the

[PATCH 11/11] arm: omap4: select USB_ARCH_HAS_EHCI

2010-11-21 Thread Anand Gadiyar
The OMAP4 has an on-chip EHCI controller. Select USB_ARCH_HAS_EHCI to allow the EHCI driver to be built on OMAP4. Signed-off-by: Anand Gadiyar gadi...@ti.com --- arch/arm/mach-omap2/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig

[PATCH 06/11] usb: ehci-omap: add helpers for checking port mode

2010-11-21 Thread Anand Gadiyar
Introduce helper functions to test port mode. These checks are performed in several places in the driver, and these helpers improve readability. Signed-off-by: Anand Gadiyar gadi...@ti.com --- drivers/usb/host/ehci-omap.c | 21 - 1 files changed, 12 insertions(+), 9

[PATCH 07/11] arm: omap4: add USBHOST and related base addresses

2010-11-21 Thread Anand Gadiyar
Add base addresses for USBHOST, USBTLL, EHCI and OHCI to the header file. This will disappear when the drivers are converted to use the hwmod database, however this patch is needed until then. Signed-off-by: Anand Gadiyar gadi...@ti.com --- arch/arm/plat-omap/include/plat/omap44xx.h |5

[PATCH 00/12] usb: ehci-omap: add OMAP4 support

2010-11-21 Thread Anand Gadiyar
This series adds support for the EHCI controller on OMAP4 chips. (This enables the ethernet controller on the Pandaboard - finally!). I'm sorry for the really long delay - I know this has been in the works for a while. I've tested the series on an OMAP4 SDP and a Pandaboard. I'll be testing

[PATCH 10/11] usb: ehci-omap: Add OMAP4 support

2010-11-21 Thread Anand Gadiyar
Signed-off-by: Keshava Munegowda keshava_mgo...@ti.com Signed-off-by: Anand Gadiyar gadi...@ti.com --- drivers/usb/host/ehci-omap.c | 258 ++--- 1 files changed, 214 insertions(+), 44 deletions(-) diff --git a/drivers/usb/host/ehci-omap.c

[PATCH 03/11] usb: ehci: introduce CONFIG_USB_EHCI_HCD_OMAP

2010-11-21 Thread Anand Gadiyar
From: Keshava Munegowda keshava_mgo...@ti.com Introduce the CONFIG_USB_EHCI_HCD_OMAP option to select EHCI support on OMAP3 and later chips. This scales better than having a long line of dependencies for each new OMAP with EHCI support. Signed-off-by: Keshava Munegowda keshava_mgo...@ti.com

[PATCH 09/11] omap: usb: ehci: introduce HSIC mode

2010-11-21 Thread Anand Gadiyar
The EHCI controller in OMAP4 supports a new interface mode - HSIC. Add this to the list of modes supported on OMAP3. Signed-off-by: Anand Gadiyar gadi...@ti.com --- arch/arm/plat-omap/include/plat/usb.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [PATCH v3 5/5] OMAP: mailbox: add notification support for multiple readers

2010-11-21 Thread Jacek Burghardt
Felipe Balbi m...@felipebalbi.com wrote: Hi Hari, On Fri, 2010-11-19 at 22:01 -0600, Kanigeri, Hari wrote: Of course :), profiling was done before releasing this code and no difference observed with or without blocking notifier. All the OMAP4 would you share some numbers ? use cases are

Re: No more software ECC in omap2.c NAND driver. Why?

2010-11-21 Thread Charles Manning
On Friday 19 November 2010 03:33:24 Ghorai, Sukumar wrote: -Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap- ow...@vger.kernel.org] On Behalf Of Charles Manning Sent: Thursday, November 18, 2010 6:36 AM To: linux-omap@vger.kernel.org Subject: No more

Re: [PATCH ver. 2] PM: add synchronous runtime interface for interrupt handlers

2010-11-21 Thread Rafael J. Wysocki
On Saturday, November 20, 2010, Alan Stern wrote: On Sat, 20 Nov 2010, Rafael J. Wysocki wrote: On Friday, November 19, 2010, Alan Stern wrote: This patch (as1431b) makes the synchronous runtime-PM interface suitable for use in interrupt handlers. Subsystems can call the new

Re: [linux-pm] [PATCH ver. 2] PM: add synchronous runtime interface for interrupt handlers

2010-11-21 Thread Rafael J. Wysocki
On Saturday, November 20, 2010, Alan Stern wrote: On Sat, 20 Nov 2010, Alan Stern wrote: On Sat, 20 Nov 2010, Rafael J. Wysocki wrote: On Friday, November 19, 2010, Alan Stern wrote: ... I don't think Linus will object to this. What he doesn't like is when some code drops a

Re: [PATCHv4 6/14] OMAP4: dmtimer: add hwmod database

2010-11-21 Thread Varadarajan, Charulatha
These comments are from other hwmod reviews. On Sat, Nov 20, 2010 at 08:09, Tarun Kanti DebBarma tarun.ka...@ti.com wrote: From: Cousson, Benoit b-cous...@ti.com Subject should be something like: ( See [1] ) OMAP4: hwmod data: add dmtimer Same is applicable to other hwmod DB patches for

Re: No more software ECC in omap2.c NAND driver. Why?

2010-11-21 Thread Grant Erickson
On 11/21/10 1:01 PM, Charles Manning wrote: Just recompiling with the CONFIG_MTD_NAND_OMAP_HWECC define commented out did not result in a working system. I suspect there is more tto the problem than this. FWIW, I had the exact same issues with my Mistral AM37x EVM board. I not only had to

RE: [PATCHv4 6/14] OMAP4: dmtimer: add hwmod database

2010-11-21 Thread DebBarma, Tarun Kanti
-Original Message- From: Varadarajan, Charulatha Sent: Monday, November 22, 2010 11:32 AM To: DebBarma, Tarun Kanti Cc: linux-omap@vger.kernel.org; Cousson, Benoit Subject: Re: [PATCHv4 6/14] OMAP4: dmtimer: add hwmod database These comments are from other hwmod reviews. On

RE: [PATCH 2/6] OMAP: powerdomain: Infrastructure to put arch specific code

2010-11-21 Thread Rajendra Nayak
Hi Thomas, -Original Message- From: Thomas Petazzoni [mailto:thomas.petazz...@free-electrons.com] Sent: Tuesday, November 16, 2010 9:41 PM To: Rajendra Nayak Cc: linux-omap@vger.kernel.org; p...@pwsan.com; b-cous...@ti.com; khil...@deeprootsystems.com Subject: Re: [PATCH 2/6] OMAP:

RE: No more software ECC in omap2.c NAND driver. Why?

2010-11-21 Thread Ghorai, Sukumar
-Original Message- From: Grant Erickson [mailto:maratho...@gmail.com] Sent: Monday, November 22, 2010 11:39 AM To: Charles Manning Cc: linux-omap@vger.kernel.org; Grazvydas Ignotas; Ghorai, Sukumar Subject: Re: No more software ECC in omap2.c NAND driver. Why? On 11/21/10 1:01

Re: [PATCHv4 11/14] OMAP2+: dmtimer: convert to platform devices

2010-11-21 Thread Varadarajan, Charulatha
On Sat, Nov 20, 2010 at 08:09, Tarun Kanti DebBarma tarun.ka...@ti.com wrote: From: Thara Gopinath th...@ti.com Add routines to converts dmtimers to platform devices. The device data is obtained from hwmod database of respective platform and is registered to device model after successful

Re: No more software ECC in omap2.c NAND driver. Why?

2010-11-21 Thread Grant Erickson
On 11/21/10 10:27 PM, Ghorai, Sukumar wrote: -Original Message- From: Grant Erickson [mailto:maratho...@gmail.com] Sent: Monday, November 22, 2010 11:39 AM To: Charles Manning Cc: linux-omap@vger.kernel.org; Grazvydas Ignotas; Ghorai, Sukumar Subject: Re: No more software ECC in

Re: [PATCHv4 12/14] OMAP: dmtimer: switch-over to platform device driver

2010-11-21 Thread Varadarajan, Charulatha
snip -/* - * Reads timer registers in posted and non-posted mode. The posted mode bit - * is encoded in reg. Note that in posted mode write pending bit must be - * checked. Otherwise a read of a non completed write will produce an error. +/** + * omap_dm_timer_read_reg - read timer

Re: [PATCHv4 14/14] OMAP: dmtimer: pm_runtime support

2010-11-21 Thread Varadarajan, Charulatha
On Sat, Nov 20, 2010 at 08:09, Tarun Kanti DebBarma tarun.ka...@ti.com wrote: Add pm_runtime support to dmtimer. Since dmtimer is used during early boot before pm_runtime is initialized completely there are provisions to enable/disable clocks directly in the code during early boot.

RE: [PATCHv4 14/14] OMAP: dmtimer: pm_runtime support

2010-11-21 Thread DebBarma, Tarun Kanti
-Original Message- From: Varadarajan, Charulatha [mailto:ch...@ti.com] Sent: Monday, November 22, 2010 12:34 PM To: DebBarma, Tarun Kanti Cc: linux-omap@vger.kernel.org; Basak, Partha Subject: Re: [PATCHv4 14/14] OMAP: dmtimer: pm_runtime support On Sat, Nov 20, 2010 at 08:09,

Re: [PATCHv4 8/14] OMAP: dmtimer: platform driver

2010-11-21 Thread Varadarajan, Charulatha
snip +static struct platform_driver omap_dmtimer_driver = { +       .probe  = omap_dm_timer_probe, +       .remove = omap_dm_timer_remove, +       .driver = { +               .name   = omap-timer, Comment from Benoit on omap devices name ( see [1] ): If possible, it will be better to use

[PATCH v5 1/7] OMAP: DSS2: Add dss_features for omap4 and overlay manager related features

2010-11-21 Thread Archit Taneja
Add support for LCD2 manager through introducing a new has_feature, Initialize a dss_features struct for omap4. Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dss_features.c | 43 ++- drivers/video/omap2/dss/dss_features.h |7 - 2

[PATCH v5 2/7] OMAP: DSS2: Represent DISPC register defines with channel as parameter

2010-11-21 Thread Archit Taneja
From: Sumit Semwal sumit.sem...@ti.com Introduce new enum members for LCD2 Channel and corresponding Overlay Manager. Represent some of the DISPC register defines with channel as a parameter to differentiate between LCD, DIGIT and LCD2 channels. Replace the existing reads/writes to these

[PATCH v5 3/7] OMAP: DSS2: Introduce omap_channel as a omap_dss_device parameter

2010-11-21 Thread Archit Taneja
From: Sumit Semwal sumit.sem...@ti.com A new member 'channel' is introduced in omap_dss_device structure to determine which channel the panel uses. The dss_recheck_connections() called in dss_driver_probe() to set the correct manager to the corresponding omap_dss_device. The interface drivers

[PATCH v5 4/7] OMAP: DSS2: Change remaining Dispc functions for new 'channel' argument

2010-11-21 Thread Archit Taneja
From: Sumit Semwal sumit.sem...@ti.com The following dispc functions are changed to incorporate channel as an argument: -dispc_lclk_rate() -dispc_pclk_rate() -dispc_set_pol_freq() -dispc_set_clock_div() -dispc_get_clock_div() Signed-off-by: Sumit Semwal

[PATCH v5 5/7] OMAP: DSS2: LCD2 Channel Changes for DISPC

2010-11-21 Thread Archit Taneja
From: Sumit Semwal sumit.sem...@ti.com Modify DISPC functions to work with LCD2 as the DISPC Channel. Signed-off-by: Sumit Semwal sumit.sem...@ti.com Signed-off-by: Mukund Mittal mmit...@ti.com Signed-off-by: Samreen samr...@ti.com Signed-off-by: Archit Taneja arc...@ti.com ---

[PATCH v5 6/7] OMAP: DSS2: Use dss_features to handle DISPC bits removed on OMAP4

2010-11-21 Thread Archit Taneja
DISPC_CONFIG bits LCDENABLEPOL, LCDENABLESIGNAL, PCKFREEENABLE and FUNCGATED have been removed from OMAP4, use dss_features to handle them correctly. Signed-off-by: Archit Taneja arc...@ti.com --- drivers/video/omap2/dss/dispc.c | 12 +++- 1 files changed, 11 insertions(+), 1

[PATCH v5 7/7] OMAP: DSS2: Add new Overlay Manager

2010-11-21 Thread Archit Taneja
From: Sumit Semwal sumit.sem...@ti.com Add new Overlay Manager in manager.c, make changes needed for LCD2 channel. Signed-off-by: Sumit Semwal sumit.sem...@ti.com Signed-off-by: Mukund Mittal mmit...@ti.com Signed-off-by: Samreen samr...@ti.com --- drivers/video/omap2/dss/dispc.c | 21

RE: [PATCHv4 11/14] OMAP2+: dmtimer: convert to platform devices

2010-11-21 Thread DebBarma, Tarun Kanti
-Original Message- From: Varadarajan, Charulatha Sent: Monday, November 22, 2010 12:04 PM To: DebBarma, Tarun Kanti Cc: linux-omap@vger.kernel.org; Gopinath, Thara; Basak, Partha Subject: Re: [PATCHv4 11/14] OMAP2+: dmtimer: convert to platform devices On Sat, Nov 20, 2010 at

RE: [PATCHv4 8/14] OMAP: dmtimer: platform driver

2010-11-21 Thread DebBarma, Tarun Kanti
-Original Message- From: Varadarajan, Charulatha [mailto:ch...@ti.com] Sent: Monday, November 22, 2010 12:43 PM To: DebBarma, Tarun Kanti Cc: linux-omap@vger.kernel.org; Gopinath, Thara Subject: Re: [PATCHv4 8/14] OMAP: dmtimer: platform driver snip +static struct

RE: No more software ECC in omap2.c NAND driver. Why?

2010-11-21 Thread Ghorai, Sukumar
[..snip..] The board (Mistral AM37x) NAND (Micron 256 MiB) was originally bootstrapped over SD/MMC from u-boot using the following script: [Ghorai] let me know the nand details - x8/x16, small/big page? [..snip..] nandecc sw [..snip..] fatload mmc 0 ${loadaddr} root.jff