Re: [PATCH] ARM: Thumb-2: Make CONFIG_THUMB2_KERNEL depend on !CPU_V6

2010-12-07 Thread David Brownell
--- On Tue, 12/7/10, Dave Martin wrote: > From: Dave Martin > Subject: [PATCH] ARM: Thumb-2: Make CONFIG_THUMB2_KERNEL depend on !CPU_V6... > This makes sense, because Thumb-2 > code can't execute on anything > prior to ARMv7. WRONG ... but you may be overlooking the fact that there are at le

[PATCH v2 resend] OMAP4: Pandaboard: Add omap_reserve functionality

2010-12-07 Thread Raghuveer Murthy
This patch adds omap_reserve functionality to board-omap4panda.c. Helps in the reserving boot time memory in SDRAM, used here for framebuffer allocation. This patch is in similar lines to commit id 71ee7dad9b6991, from Russell king Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Signed

[PATCH v2] OMAP4: Pandaboard: Add omap_reserve functionality

2010-12-07 Thread Raghuveer Murthy
This patch adds omap_reserve functionality to board-omap4panda.c. Helps in the reserving boot time memory in SDRAM, used here for framebuffer allocation. This patch is in similar lines to commit id 71ee7dad9b6991, from Russell king Cc: Russell King Cc: linux-...@lists.arm.linux.org.uk Signed-off

Re: [PATCH 11/14] OMAP4: PRCM: reorganize existing OMAP4 PRCM header files

2010-12-07 Thread Paul Walmsley
Salut Benoît, On Tue, 7 Dec 2010, Cousson, Benoit wrote: > Salut Paul, > > On 12/7/2010 2:25 AM, Paul Walmsley wrote: > > Split the existing cm44xx.h file into cm1_44xx.h and cm2_44xx.h files > > so they match their underlying OMAP hardware modules. Add clockdomain > > offset information. > >

RE: [PATCH v6 8/8] Input: omap4 - pm runtime

2010-12-07 Thread Basak, Partha
> -Original Message- > From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap- > ow...@vger.kernel.org] On Behalf Of Datta, Shubhrajyoti > Sent: Monday, December 06, 2010 6:30 PM > To: Kevin Hilman; Arce, Abraham > Cc: linux-in...@vger.kernel.org; linux-omap@vger.kernel.org > Subject:

Re: [PATCH 11/14] OMAP4: PRCM: reorganize existing OMAP4 PRCM header files

2010-12-07 Thread Paul Walmsley
On Tue, 7 Dec 2010, Cousson, Benoit wrote: > On 12/7/2010 2:25 AM, Paul Walmsley wrote: > > [...] > > > + * > > + * XXX This file needs to be updated to align on one of "OMAP4", > > "OMAP44XX", > > + * or "OMAP4430". > > Yep, I was thinking to change that as well. My first thought was OMAP4

Re: [PATCH 00/14] OMAP: PRCM/powerdomain/clockdomain patches for 2.6.38, part one

2010-12-07 Thread Paul Walmsley
On Tue, 7 Dec 2010, Kevin Hilman wrote: > Paul Walmsley writes: > > > This patch series, intended for 2.6.38: > > [...] > > > Kevin, I'd appreciate review and acks, if appropriate, on the patches > > that touch code that you maintain. > > Reviewed-by: Kevin Hilman > Tested-by: Kevin Hilman

[PATCH 08/11] OMAP2/3: clockdomain: remove unneeded .clkstctrl_reg, remove some direct CM register accesses

2010-12-07 Thread Paul Walmsley
Reverse some of the effects of commit 84c0c39aec31a09571fc08a752a2f4da0fe9fcf2 ("ARM: OMAP4: PM: Make OMAP3 Clock-domain framework compatible for OMAP4"). On OMAP2/3, the CM_CLKSTCTRL register is at a constant offset from the powerdomain's CM instance. Also, remove some of the direct CM register

[PATCH 07/11] OMAP4: clockdomains: add OMAP4 PRCM data and OMAP4 support

2010-12-07 Thread Paul Walmsley
Add PRCM partition, CM instance register address offset, and clockdomain register address offset to each OMAP4 struct clockdomain record. Add OMAP4 clockdomain code to use this new data to access registers properly. While here, clean up some nearby clockdomain code to allocate auto variables in m

[PATCH 05/11] OMAP2+: clockdomains: split the clkdm hwsup enable/disable function

2010-12-07 Thread Paul Walmsley
Split _omap2_clkdm_set_hwsup() into _disable_hwsup() and _enable_hwsup(). While here, also document that the autodeps are deprecated and that they should be removed at the earliest opportunity. Signed-off-by: Paul Walmsley --- arch/arm/mach-omap2/clockdomain.c | 67 +++

[PATCH 11/11] OMAP3: control/PM: move padconf save code to mach-omap2/control.c

2010-12-07 Thread Paul Walmsley
Move the padconf save code from pm34xx.c to the System Control Module code in mach-omap2/control.c. This is part of the general push to move direct register access from middle-layer core code to low-level core code, so the middle-layer code can be abstracted to work on multiple platforms and clean

[PATCH 10/11] OMAP2+: powerdomain: move header file from plat-omap to mach-omap2

2010-12-07 Thread Paul Walmsley
The OMAP powerdomain code and data is all OMAP2+-specific. This seems unlikely to change any time soon. Move plat-omap/include/plat/powerdomain.h to mach-omap2/powerdomain.h. The primary point of doing this is to remove the temptation for unrelated upper-layer code to access powerdomain code and

[PATCH 09/11] OMAP2+: clockdomain: move header file from plat-omap to mach-omap2

2010-12-07 Thread Paul Walmsley
The OMAP clockdomain code and data is all OMAP2+-specific. This seems unlikely to change any time soon. Move plat-omap/include/plat/clockdomain.h to mach-omap2/clockdomain.h. The primary point of doing this is to remove the temptation for unrelated upper-layer code to access clockdomain code and

[PATCH 04/11] OMAP4: powerdomains: add PRCM partition data; use OMAP4 PRM functions

2010-12-07 Thread Paul Walmsley
OMAP4 powerdomain control registers are split between the PRM hardware module and the PRCM_MPU local PRCM. Add this PRCM partition information to each OMAP4 powerdomain record, and convert the OMAP4 powerdomain function implementations to use the OMAP4 PRM instance functions. Also fixes a potenti

[PATCH 06/11] OMAP4: CM instances: add clockdomain register offsets

2010-12-07 Thread Paul Walmsley
In OMAP4 CM instances, some registers (CM_CLKSTCTRL, CM_STATICDEP, CM_DYNAMICDEP, and the module-specific registers underneath) are organized by clockdomain. Add the clockdomain offset macros to the appropriate PRCM module header files. This data was almost completely autogenerated from the TI ha

[PATCH 02/11] OMAP4: PRCM: move global reset function for OMAP4 to an OMAP4-specific file

2010-12-07 Thread Paul Walmsley
Move the OMAP4 global software reset function to the OMAP4-specific prm44xx.c file, where it belongs. Part of the long-term process of moving all of the direct PRCM register writes into lower-layer code. Also add OCP barriers on OMAP2/3/4 to reduce the chance that the MPU will continue executing

[PATCH 01/11] OMAP4: PRCM: add OMAP4-specific accessor/mutator functions

2010-12-07 Thread Paul Walmsley
In some ways, the OMAP4 PRCM register layout is quite different than the OMAP2/3 PRCM register layout. For example, on OMAP2/3, from a register layout point of view, all CM instances were located in the CM subsystem, and all PRM instances were located in the PRM subsystem. OMAP4 changes this. Now

[PATCH 00/11] OMAP: PRCM/powerdomain/clockdomain patches for 2.6.38, part two

2010-12-07 Thread Paul Walmsley
This patch series, intended for 2.6.38: - adds OMAP4-specific PRM and CM instance functions, which are capable of writing to PRM/CM instances, no matter what PRCM partition they appear in; - renames the old OMAP2/3 PRM and CM functions to prefix them with 'omap2_'; - adds OMAP4 clockdomain

Re: [PATCH 0/7] usb: otg: TWL6030: OMAP4430: musb & transceiver driver support for OMAP4

2010-12-07 Thread Kalliguddi, Hema
Please ignore this series of patches. I sent the older version the patches by mistake. I will send new versions again. Sorry for cluttering .. Regards, Hema On Wed, Dec 8, 2010 at 5:39 AM, Hema HK wrote: > This patch series has the support for TWL6030-usb > transceiver driver and changes i

RE: [PATCH v2 2/3] ARM: omap4: Correct definition of do_wfi() forCONFIG_THUMB2_KERNEL

2010-12-07 Thread Santosh Shilimkar
Dave, > -Original Message- > From: Santosh Shilimkar [mailto:santosh.shilim...@ti.com] > Sent: Wednesday, December 08, 2010 11:27 AM > To: Dave Martin > Cc: linux-arm-ker...@lists.infradead.org; Tony Lindgren; linux- > o...@vger.kernel.org; linaro-...@lists.linaro.org > Subject: RE: [PATCH

RE: [PATCH v2 2/3] ARM: omap4: Correct definition of do_wfi() forCONFIG_THUMB2_KERNEL

2010-12-07 Thread Santosh Shilimkar
> -Original Message- > From: Dave Martin [mailto:dave.mar...@linaro.org] > Sent: Tuesday, December 07, 2010 10:21 PM > To: Santosh Shilimkar > Cc: linux-arm-ker...@lists.infradead.org; Tony Lindgren; linux- > o...@vger.kernel.org; linaro-...@lists.linaro.org > Subject: Re: [PATCH v2 2/3] AR

[PATCH 7/7] arm: OMAP4430: musb: Enable musb device initialization for OMAP4430

2010-12-07 Thread Hema HK
musb device registration during board initialization of OMAP4430SDP and OMAP4430 PANDA.Enable the musb OTG mode. Signed-off-by: Hema HK Cc: Felipe Balbi Cc: Tony Lindgren --- arch/arm/mach-omap2/board-4430sdp.c|6 ++ arch/arm/mach-omap2/board-omap4panda.c |2 +- 2 files changed

[PATCH 6/7] usb: musb: Adding musb support for OMAP4430

2010-12-07 Thread Hema HK
OMAP4430 supports UTMI and ULPI types of transceiver interface. In UTMI mode: The PHY is embedded within OMAP4430. The transceiver functionality is split between the twl6030 PMIC chip and OMAP4430. The VBUS, ID pin sensing and OTG SRP generation part is integrated in TWL6030 and UTMI PHY function

[PATCH 5/7] usb: musb: TWL6030: Selecting TWL6030_USB transceiver

2010-12-07 Thread Hema HK
Selecting the twl6030-usb for OMAP4430SDP and OMAP4 PANDA board and adding OMAP4 internal phy code for compilation Signed-off-by: Hema HK Cc: Felipe Balbi Cc: Tony Lindgren --- arch/arm/mach-omap2/Makefile |1 + drivers/usb/musb/Kconfig |1 + 2 files changed, 2 insertions(+) Index

[PATCH 4/7] mfd: TWL6030: OMAP4: Registering the TWL6030-usb device

2010-12-07 Thread Hema HK
Registering the twl6030-usb transceiver device as a child to twl6030 core. Removed the NOP transceiver init call from board file. Populated twl4030_usb_data platform data structure with the function pointers for OMAP4430 internal PHY operation to be used twl630-usb driver. Signed-off-by: Hema HK

[PATCH 3/7] usb: otg: Kconfig: Add Kconfig option for TWL6030 transceiver.

2010-12-07 Thread Hema HK
Added the TWL6030-usb transceiver option in the Kconfig Signed-off-by: Hema HK Cc: Felipe Balbi Cc: David Brownell --- drivers/usb/otg/Kconfig | 12 1 file changed, 12 insertions(+) Index: linux-2.6/drivers/usb/otg/Kconfig ===

[PATCH 2/7] usb: otg: Adding twl6030-usb transceiver driver for

2010-12-07 Thread Hema HK
Adding the twl6030-usb transceiver support for OMAP4 musb driver. OMAP4 supports 2 types of transceiver interface. 1. UTMI: The PHY is embedded within OMAP4. The transceiver functionality is split between the twl6030 PMIC chip and OMAP4430. The VBUS, ID pin sensing and OTG SRP generation part is

[PATCH 0/7] usb: otg: TWL6030: OMAP4430: musb & transceiver driver support for OMAP4

2010-12-07 Thread Hema HK
This patch series has the support for TWL6030-usb transceiver driver and changes in the musb driver to make it functional with OMAP4430. OMAP4 musb support UTMI and ULPI transceiver interfaces. In UTMI mode, the transceiver functionality is split between the TWL6030 PMIC chip and OMAP4 embedded P

[PATCH 1/7] mfd: TWL6030: USBOTG VBUS event generation on

2010-12-07 Thread Hema HK
With TWL6030-usb, VBUS SESS_VLD and SESS_END events are not generated as expected. When these interrupts are enabled, charger VBUS detection interrupt does not get generated. So USBOTG has to be dependent on charger VBUS interrupts. So added one bit for USBOTG and changed the handler to call the U

Re: [PATCH 12/11] omap1: Fix gpio mpuio bank to work for multi-omap for 7xx/15xx/16xx

2010-12-07 Thread Varadarajan, Charulatha
Tony, On Wed, Dec 8, 2010 at 04:53, Tony Lindgren wrote: > * Tony Lindgren [101204 13:16]: >> * Varadarajan, Charulatha [101202 06:08]: >> > On Thu, Dec 2, 2010 at 15:28, Kevin Hilman >> > wrote: >> > >> > > >> > > Tony, you can also add >> > > >> > > Acked-by: Kevin Hilman >> >> OK, updated

Re: [PATCH 1/4] omap: Disable omap_read/write functions for omap2+

2010-12-07 Thread Tony Lindgren
* Tony Lindgren [101207 17:32]: > * Tony Lindgren [101204 13:27]: > > These should be now long gone and break multi-omap support for omap1 > > as the cpu_class_is_omap1() won't work until the SOC is detected. > > > > So just disable and warn for omap2+ in case somebody still attampts > > to use

Re: State of LDP3430 platform

2010-12-07 Thread Paul Walmsley
On Tue, 7 Dec 2010, Paul Walmsley wrote: > I do have a LDP3430 here though. It doesn't boot past: > > [0.00] Linux version 2.6.37-rc5 (p...@twilight) (gcc version 4.3.2 > (Sourcery G++ Lite 2008q3-72) ) #68 SMP Tue Dec 7 17:42:20 > [0.00] CPU: ARMv7 Processor [411fc083] revision

[PATCH] MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c

2010-12-07 Thread Bryan Wu
Fix the following section mismatch warning when building omap2plus_defconfig: WARNING: vmlinux.o(.data+0x47d7c): Section mismatch in reference from the variable twl_driver to the function .init.text:twl_probe() Signed-off-by: Bryan Wu Signed-off-by: Paul Walmsley --- drivers/mfd/twl-core.c |

[PATCH] OMAP: kill all section mismatch warning for omap2plus_defconfig

2010-12-07 Thread Bryan Wu
This patch will kill following section mismatch warnings: WARNING: vmlinux.o(.text+0x24a00): Section mismatch in reference from the function zoom_twl_gpio_setup() to the (unknown reference) .init.data:(unknown) The function zoom_twl_gpio_setup() references the (unknown reference) __initdata (unkn

Re: [PATCH 2/7] usb: otg: Adding twl6030-usb transceiver driver for

2010-12-07 Thread Hari Kanigeri
Hema, On Tue, Dec 7, 2010 at 6:11 PM, Hema HK wrote: > Adding the twl6030-usb transceiver support for OMAP4 musb driver. > > OMAP4 supports 2 types of transceiver interface. > +} > + > +int omap4430_phy_set_clk(struct device *dev, int on) > +{ > +       static int state; probably good to initia

Re: [PATCH 3/4] omap1: Add omap1_defconfig

2010-12-07 Thread Tony Lindgren
* Felipe Contreras [101207 04:28]: > On Sat, Dec 4, 2010 at 11:36 PM, Tony Lindgren wrote: > > The omap1_defconfig this should be eventually usable for booting > > all omap1 machines. Generated based on: > > > > $ grep ARCH_OMAP1=y arch/arm/configs/* | cut -d: -f1 | xargs cat | \ > >     sort | u

[PATCH 3/3] omap2+: Initialize omap_irq_base for entry-macro.S from platform code

2010-12-07 Thread Tony Lindgren
This way we can use the generic omap SoC detection code instead. Signed-off-by: Tony Lindgren diff --git a/arch/arm/mach-omap2/include/mach/entry-macro.S b/arch/arm/mach-omap2/include/mach/entry-macro.S index 06e64e1..6032941 100644 --- a/arch/arm/mach-omap2/include/mach/entry-macro.S +++ b/arc

Re: [PATCH 0/4] Patches to make multi-soc handling in entry-armv.S easier

2010-12-07 Thread Tony Lindgren
* Tony Lindgren [101204 19:00]: > * Nicolas Pitre [101204 18:26]: > > On Sat, 4 Dec 2010, Tony Lindgren wrote: > > > > My only problem with your approach is the global addition of > > asm_irq_base and asm_irq_flags in generic code which might not be useful > > and/or appropriate for all target

[PATCH 2/3] omap1: Use get_irqnr_preamble

2010-12-07 Thread Tony Lindgren
This saves some cycles for multiple interrupts case. Signed-off-by: Tony Lindgren diff --git a/arch/arm/mach-omap1/include/mach/entry-macro.S b/arch/arm/mach-omap1/include/mach/entry-macro.S index c9be6d4..584bf7b 100644 --- a/arch/arm/mach-omap1/include/mach/entry-macro.S +++ b/arch/arm/mach-o

[PATCH 1/3] omap1: Use asm_irq_flags for entry-macro.S

2010-12-07 Thread Tony Lindgren
Initialize asm_irq_flags in omap_init_irq and use it in get_irqnr_and_base to detect between omap7xx and omap15xx/16xx. Note that both INT_1510_IH2_IRQ and INT_1510_IH2_IRQ are defined as 0, so use INT_1510_IH2_IRQ for both of them. Signed-off-by: Tony Lindgren diff --git a/arch/arm/mach-omap1/

Re: [PATCH 1/4] omap: Disable omap_read/write functions for omap2+

2010-12-07 Thread Tony Lindgren
* Tony Lindgren [101204 13:27]: > These should be now long gone and break multi-omap support for omap1 > as the cpu_class_is_omap1() won't work until the SOC is detected. > > So just disable and warn for omap2+ in case somebody still attampts > to use these. Heh this was totally not working and

Re: [PATCH] MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c

2010-12-07 Thread Bryan Wu
On Wed, Dec 8, 2010 at 12:12 AM, Paul Walmsley wrote: > Hello Samuel, > > On Tue, 7 Dec 2010, Samuel Ortiz wrote: > >> On Mon, Dec 06, 2010 at 06:40:38PM -0700, Paul Walmsley wrote: >> > >> > That's fine with me.  Samuel et al, Bryan's already done a patch >> > for this stuff: >> > >> > https://pa

[PATCH] OMAP1: SRAM: fix size for OMAP1611 SoCs

2010-12-07 Thread Kevin Hilman
Kernel was failing to boot on omap1611 based OSK boards due to mis-configured SRAM size. Existing code was using a hard-coded value for 250k, which was then rounded down by PAGE_SIZE. Increasing this to 256k allows kernel to boot on omap1611 SoCs. Problem reported by and initial fix suggested by

Re: [PATCH] OMAP3: disable idle early in the suspend sequence

2010-12-07 Thread Kevin Hilman
Hi Jean, Jean Pihet writes: > Some bad interaction between the idle and the suspend paths has been > noticed: the idle code is called during the suspend enter and exit > sequences. This could cause corruption or lock-up of resources. > > The solution is to move the call to disable_hlt at the ver

Re: [PATCH 12/11] omap1: Fix gpio mpuio bank to work for multi-omap for 7xx/15xx/16xx

2010-12-07 Thread Tony Lindgren
* Tony Lindgren [101207 15:13]: > > Note that this will cause omap-keypad.c driver to not work on 7xx. > However, the right fix there is to move over to gpio-keys instead as > suggested by Cory Maccarrone and > Janusz Krzysztofik . Updated that to say matrix-keypad instead of gpio-keys as point

Re: [PATCH v8 00/11] OMAP: GPIO: Implement GPIO as platform device

2010-12-07 Thread Tony Lindgren
* Varadarajan, Charulatha [101125 04:39]: > Implement OMAP GPIO module in platform device model. OMAP2+ specific GPIO > module uses hwmod FW. I'll add the following patch underneath this series as otherwise some gpio_request calls will fail after this series. Regards, Tony From: Tony Lindgren

Re: State of LDP3430 platform

2010-12-07 Thread Paul Walmsley
On Tue, 7 Dec 2010, Russell King - ARM Linux wrote: > So LDP will remain unusable until after the 2.6.38 merge window? I don't think that Tony or I realized that LDP3430 was broken until your E-mail. Usually I use a BeagleBoard 35xx for OMAP3430 testing, and I think Tony uses an Overo. The Be

Re: [PATCH 00/14] OMAP: PRCM/powerdomain/clockdomain patches for 2.6.38, part one

2010-12-07 Thread Kevin Hilman
Paul Walmsley writes: > This patch series, intended for 2.6.38: [...] > Kevin, I'd appreciate review and acks, if appropriate, on the patches > that touch code that you maintain. Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman I did some PM testing of this series on 34xx/n900 and 35xx/b

Re: UbiFS + HWECC(?) + BeagleBoard = fail

2010-12-07 Thread Charles Manning
On Tuesday 07 December 2010 23:29:59 Luca Ceresoli wrote: > Luca Ceresoli wrote: > > While I thank you for you proposed solution, I see it does not work here. > > In fact I commented the #define CONFIG_MTD_NAND_OMAP_HWECC and left > > MTD_NAND_OMAP_PREFETCH disabled as it previously was, and got co

Re: [RFC] add BUG_ON_MAPPABLE_NULL macro

2010-12-07 Thread Andrew Morton
On Sun, 5 Dec 2010 12:06:03 +0200 Ohad Ben-Cohen wrote: > Introduce BUG_ON_MAPPABLE_NULL in order to eliminate redundant BUG_ON > code, checking for NULL addresses, on architectures where the zero > address can never be mapped. > > Originally proposed by Russell King > > Signed-off-by: Ohad B

[PATCH v2] OMAP2+: PM/serial: fix console semaphore acquire during suspend

2010-12-07 Thread Kevin Hilman
commit 0d8e2d0dad98a693bad88aea6876ac8b94ad95c6 (OMAP2+: PM/serial: hold console semaphore while OMAP UARTs are disabled) added use of the console semaphore to protect UARTs from being accessed after disabled during idle, but this causes problems in suspend. During suspend, the console semaphore i

Re: OMAP HSMMC problems with off-mode

2010-12-07 Thread Paul Walmsley
Hi, > Looks like 0xfa09c014 is the MMC SYSSTATUS register... maybe there's > something wrong with the clock control. Just sent a patch for this one, it's relatively minor. After applying it and the 'brutal context save/restore test' patch, HSMMC off-mode indeed seems to work much better. Are

[PATCH] MMC: omap_hsmmc: enable interface clock before calling mmc_host_enable()

2010-12-07 Thread Paul Walmsley
In the OMAP HSMMC driver, the code path entered via mmc_host_enable() can include register accesses to the HSMMC IP block. For this to work, both the device interface clock and functional clock need to be enabled before mmc_host_enable() is called. However, omap_hsmmc_probe() calls mmc_host_

[PATCH 12/11] omap1: Fix gpio mpuio bank to work for multi-omap for 7xx/15xx/16xx

2010-12-07 Thread Tony Lindgren
* Tony Lindgren [101204 13:16]: > * Varadarajan, Charulatha [101202 06:08]: > > On Thu, Dec 2, 2010 at 15:28, Kevin Hilman > > wrote: > > > > > > > > Tony, you can also add > > > > > > Acked-by: Kevin Hilman > > OK, updated. Also made one more GPIO patch to allow us to deal > with the 7xx vs

Re: OMAP HSMMC problems with off-mode

2010-12-07 Thread Paul Walmsley
Hi, On Tue, 7 Dec 2010, Chikkature Rajashekar, Madhusudhan wrote: > On Tue, Dec 7, 2010 at 1:51 PM, Adrian Hunter wrote: > > > > It is at least because omap_pm_get_dev_context_loss_count() is not > > implemented.  Tero Kristo was looking at that recently. > > > > Yes. I agree that is the proble

Re: [PATCH] OMAP2+: PM/serial: fix console semaphore acquire during suspend

2010-12-07 Thread Paul Walmsley
Hi, Two comments: On Tue, 7 Dec 2010, Kevin Hilman wrote: > commit 0d8e2d0dad98a693bad88aea6876ac8b94ad95c6 (OMAP2+: PM/serial: > hold console semaphore while OMAP UARTs are disabled) added use of the > console semaphore to protect UARTs from being accessed after disabled > during idle, but this

Re: [PATCH] omap1: pm_bus: Fix compilation warning.

2010-12-07 Thread Kevin Hilman
Marek Belisko writes: > Fix following compilation warning: > arch/arm/mach-omap1/pm_bus.c: In function 'omap1_pm_runtime_resume': > arch/arm/mach-omap1/pm_bus.c:51: warning: unused variable 'ret' > > Signed-off-by: Marek Belisko Acked-by: Kevin Hilman > --- > arch/arm/mach-omap1/pm_bus.c |

Re: [PATCH 0/3] OMAP: I2C and UART device name cleanup

2010-12-07 Thread Kevin Hilman
Benoit Cousson writes: > Hi All, > > In order to enforce a little bit of consistency in the omap devices name, > the convention for omap devices name will be now omap_XXX. All the drivers > adapted to hwmod will be named like that during the on-going adaptations. > > The I2C and UART drivers are

Re: [PATCH v8 10/11] OMAP: GPIO: Implement GPIO as a platform device

2010-12-07 Thread Tony Lindgren
* Varadarajan, Charulatha [101206 22:58]: > On Tue, Dec 7, 2010 at 11:05, Varadarajan, Charulatha wrote: > > > > On Tue, Dec 7, 2010 at 10:49, Cory Maccarrone > > wrote: > >> > >>    omap_gpio omap_gpio.5: Could not get gpio dbck > >>    omap_gpio omap_gpio.6: Could not get gpio dbck > >> > >>

Re: [PATCH 0/8] OMAP2+: hwmod core upgrades for 2.6.38: first set

2010-12-07 Thread Kevin Hilman
Paul Walmsley writes: > On Mon, 22 Nov 2010, Kevin Hilman wrote: > >> Paul Walmsley writes: >> >> > On Tue, 16 Nov 2010, Paul Walmsley wrote: >> > >> >> This patch series contains upgrades for the OMAP2+ hwmod core >> >> code, intended for 2.6.38. Most of these patches were developed >> >> in

Re: Unbalanced IRQ wake disable during resume from static suspend

2010-12-07 Thread Kevin Hilman
Paul Walmsley writes: > Hi Kevin > > On Thu, 2 Dec 2010, Kevin Hilman wrote: > >> I guess this hasn't been seen before since we haven't tested the sysfs >> wakeup interface for the omap-serial driver. For on-chip OMAP UARTs, >> using the sysfs interface isn't needed as the serial core is already

Re: [PATCH] OMAP2+: PM/serial: fix console semaphore acquire during suspend

2010-12-07 Thread Paul Walmsley
On Tue, 7 Dec 2010, Kevin Hilman wrote: > commit 0d8e2d0dad98a693bad88aea6876ac8b94ad95c6 (OMAP2+: PM/serial: > hold console semaphore while OMAP UARTs are disabled) added use of the > console semaphore to protect UARTs from being accessed after disabled > during idle, but this causes problems in

Re: [PATCH] OMAP2+: PM/serial: fix console semaphore acquire during suspend

2010-12-07 Thread Jean Pihet
On Tue, Dec 7, 2010 at 9:50 PM, Kevin Hilman wrote: > commit 0d8e2d0dad98a693bad88aea6876ac8b94ad95c6 (OMAP2+: PM/serial: > hold console semaphore while OMAP UARTs are disabled) added use of the > console semaphore to protect UARTs from being accessed after disabled > during idle, but this causes

Re: [PATCH] arm: plat-omap: counter_32k: Fix build error due to IS_ERR

2010-12-07 Thread Kevin Hilman
Sourav Poddar writes: > Fix the following build error by including linux/err.h > arch/arm/plat-omap/counter_32k.c: In function 'omap_init_clocksource_32k': > arch/arm/plat-omap/counter_32k.c:167: error: implicit declaration of > function 'IS_ERR' > > The abov

How to change freq of mmc2_clk to 48Mhz for OMAP35xx

2010-12-07 Thread Elvis Dowson
Hi, What should I do to change the output frequency of mmc2_clk signal to 48Mhz for the OMAP35xx processor? Right now it is giving an output of 96MHz and the signal output looks more like a sine wave than a square wave clock output signal. Elvis Dowson -- To unsubscribe from this list

Re: OMAP2+: PM/serial: hold console semaphore while OMAP UARTs are disabled

2010-12-07 Thread Kevin Hilman
Tony Lindgren writes: > * Kevin Hilman [101124 16:32]: >> Paul Walmsley writes: > > > >> Acked-by: Kevin Hilman >> >> Very nice. I've been exploring various solutions to this problem as >> well, but this one is much cleaner. Also, I hadn't discovered the 'try' >> version of the console sem

Re: OMAP HSMMC problems with off-mode

2010-12-07 Thread Chikkature Rajashekar, Madhusudhan
On Tue, Dec 7, 2010 at 1:51 PM, Adrian Hunter wrote: > On 07/12/10 20:21, ext Paul Walmsley wrote: >> >> Madhusudhan, >> >> On my OMAP35xx BeagleBoard here, HSMMC is non-functional after returning >> from dynamic off-mode.  The MMC LED turns on and stays on, and the process >> hangs, although the

[PATCH] OMAP2+: PM/serial: fix console semaphore acquire during suspend

2010-12-07 Thread Kevin Hilman
commit 0d8e2d0dad98a693bad88aea6876ac8b94ad95c6 (OMAP2+: PM/serial: hold console semaphore while OMAP UARTs are disabled) added use of the console semaphore to protect UARTs from being accessed after disabled during idle, but this causes problems in suspend. During suspend, the console semaphore i

Re: [PATCH 11/14] OMAP4: PRCM: reorganize existing OMAP4 PRCM header files

2010-12-07 Thread Cousson, Benoit
On 12/7/2010 2:25 AM, Paul Walmsley wrote: [...] + * + * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX", + * or "OMAP4430". Yep, I was thinking to change that as well. My first thought was OMAP4 to get a shorter name, but when we will introduce OMAP4440, we migh

Re: [PATCH v5 0/3] OMAP2/3: DMA: FIFO drain errata fixes

2010-12-07 Thread Greg KH
On Fri, Nov 05, 2010 at 02:29:02PM -0700, Tony Lindgren wrote: > Hi Greg, > > Considering below.. > > * Peter Ujfalusi [101021 02:56]: > > Sorry, I did missed this mail... > > > > On Saturday 09 October 2010 01:17:46 ext Tony Lindgren wrote: > > > > > Guys, as we're so late into getting 2.6.36

Re: OMAP HSMMC problems with off-mode

2010-12-07 Thread Adrian Hunter
On 07/12/10 20:21, ext Paul Walmsley wrote: Madhusudhan, On my OMAP35xx BeagleBoard here, HSMMC is non-functional after returning from dynamic off-mode. The MMC LED turns on and stays on, and the process hangs, although the rest of the system still seems to run. Looks like you're listed as th

Re: [PATCH v2 2/3] ARM: omap4: Correct definition of do_wfi() forCONFIG_THUMB2_KERNEL

2010-12-07 Thread Russell King - ARM Linux
On Tue, Dec 07, 2010 at 04:50:50PM +, Dave Martin wrote: > I'll follow up shortly with a patch to the generic ARM Kconfig to make > this explicit, so that ARCH_OMAP2 and THUMB2_KERNEL can't accidentally > be configured together. That's a rubbish dependency. You may have an ARCH_OMAP2 platform

Re: [PATCH v2 1/3] ARM: omap: Enable low-level omap3 PM code to work withCONFIG_THUMB2_KERNEL

2010-12-07 Thread Nicolas Pitre
On Tue, 7 Dec 2010, Dave Martin wrote: > On Tue, Dec 7, 2010 at 2:53 PM, Dave Martin wrote: > [...] > > Note that converting to C doesn't mean that code which attempts to > > copy function bodies will work: you still need to handle the fact that > > if f() is a C function symbol, then the value o

Re: [RFC/PATCH v6 03/12] media: Entities, pads and links

2010-12-07 Thread Mark Brown
On Tue, Dec 07, 2010 at 07:11:39PM +0100, Hans Verkuil wrote: > Ah, now I understand what you mean. Would 'activated' be better than 'active'? Better, yes, though it still sounds a bit like something should be actively (IYSWIM) happening. In the absence of better ideas I could go with this. >

Re: OMAP HSMMC problems with off-mode

2010-12-07 Thread Paul Walmsley
Hello Madhusudhan, On Tue, 7 Dec 2010, Chikkature Rajashekar, Madhusudhan wrote: > Last I tested OFF mode was after Adrian's power saving series was merged. I > tested it on Kevin PM branch then and it was functional on my omap3 board. > > I need to check on the latest commit. > > Did you see th

Re: OMAP HSMMC problems with off-mode

2010-12-07 Thread Chikkature Rajashekar, Madhusudhan
Paul, Last I tested OFF mode was after Adrian's power saving series was merged. I tested it on Kevin PM branch then and it was functional on my omap3 board. I need to check on the latest commit. Did you see this problem in suspend/resume path or the cpuidle path? Regards, Madhu On Tue, Dec 7, 2

OMAP HSMMC problems with off-mode

2010-12-07 Thread Paul Walmsley
Madhusudhan, On my OMAP35xx BeagleBoard here, HSMMC is non-functional after returning from dynamic off-mode. The MMC LED turns on and stays on, and the process hangs, although the rest of the system still seems to run. Looks like you're listed as the maintainer for this code. Do you know wh

Re: [RFC/PATCH v6 03/12] media: Entities, pads and links

2010-12-07 Thread Hans Verkuil
On Tuesday, December 07, 2010 18:55:05 Mark Brown wrote: > On Tue, Dec 07, 2010 at 06:13:35PM +0100, Hans Verkuil wrote: > > > Personally I think this is perfectly clear. The original confusion came from > > the word 'active', which I understand means 'streaming' in alsa. By adding > > a 'streamin

Re: [RFC/PATCH v6 03/12] media: Entities, pads and links

2010-12-07 Thread Mark Brown
On Tue, Dec 07, 2010 at 06:13:35PM +0100, Hans Verkuil wrote: > Personally I think this is perfectly clear. The original confusion came from > the word 'active', which I understand means 'streaming' in alsa. By adding > a 'streaming' flag in addition to the active flag I think it will be clear > t

Re: [RFC/PATCH v6 03/12] media: Entities, pads and links

2010-12-07 Thread Hans Verkuil
On Friday, December 03, 2010 15:54:08 Mark Brown wrote: > On Fri, Dec 03, 2010 at 02:50:58PM +0100, Laurent Pinchart wrote: > > On Friday 03 December 2010 13:06:18 Hans Verkuil wrote: > > > > > Just to confirm thinks, Mark's proposal is to replace 'connected' by > > > > 'linked' and 'active' by 'c

[PATCH] ARM: Thumb-2: Make CONFIG_THUMB2_KERNEL depend on !CPU_V6

2010-12-07 Thread Dave Martin
This makes sense, because Thumb-2 code can't execute on anything prior to ARMv7. This will avoid accidentally configuring a broken kernel where the config otherwise would allow multiple architecture versions to coexist in the same kernel. Not adding !CPU_V5 etc., because the chance of anyone tryi

Re: [PATCH v2 2/3] ARM: omap4: Correct definition of do_wfi() forCONFIG_THUMB2_KERNEL

2010-12-07 Thread Dave Martin
Hi, On Tue, Dec 7, 2010 at 6:28 AM, Santosh Shilimkar wrote: > Dave, >> -Original Message- >> From: linaro-dev-boun...@lists.linaro.org [mailto:linaro-dev- >> boun...@lists.linaro.org] On Behalf Of Dave Martin >> Sent: Monday, December 06, 2010 11:06 PM >> To: linux-arm-ker...@lists.infra

Re: [PATCH 1/2] AM35x: musb: fix compilation error

2010-12-07 Thread Felipe Balbi
On Tue, Dec 07, 2010 at 07:25:12PM +0530, Gupta, Ajay Kumar wrote: Hi, >> Is AM35x that different ? Can't you just write to MUSB_INTRRX >> MUSB_INTRTX and MUSB_INTRUSB ?? >Writing to MUSB_INTRRX/TX/USB wouldn't help. We have to clear interrupt >Bit in control register INTR_LVL_CLR. I see, thank

Re: [PATCH] Correct definition of register of OMAP4_RM_RSTST and OMAP4_RM_RSTTIME

2010-12-07 Thread Cousson, Benoit
Hi Paul, On 12/7/2010 5:04 PM, Paul Walmsley wrote: Hello, On Tue, 7 Dec 2010, MING ZHOU wrote: Since we need to reconfigure Reset time for OMAP4, we found the OMAP4 register definition for reset time is wrong according to spec of OMAP4. And we verified this by reading default value of regist

Re: [PATCH] MFD: TWL/TPS: fix twl_probe section mismatch warning in mfd/twl-core.c

2010-12-07 Thread Paul Walmsley
Hello Samuel, On Tue, 7 Dec 2010, Samuel Ortiz wrote: > On Mon, Dec 06, 2010 at 06:40:38PM -0700, Paul Walmsley wrote: > > > > That's fine with me. Samuel et al, Bryan's already done a patch > > for this stuff: > > > > https://patchwork.kernel.org/patch/367011/ > > > > so we should use that

Re: [PATCH] Correct definition of register of OMAP4_RM_RSTST and OMAP4_RM_RSTTIME

2010-12-07 Thread Paul Walmsley
Hello, On Tue, 7 Dec 2010, MING ZHOU wrote: > Since we need to reconfigure Reset time for OMAP4, we found the OMAP4 > register definition for reset time is wrong according to spec of > OMAP4. And we verified this by reading default value of register. We > found the offset definition of Reset time

Re: [PATCH v2 1/3] ARM: omap: Enable low-level omap3 PM code to work withCONFIG_THUMB2_KERNEL

2010-12-07 Thread Dave Martin
On Tue, Dec 7, 2010 at 2:53 PM, Dave Martin wrote: [...] > Note that converting to C doesn't mean that code which attempts to > copy function bodies will work: you still need to handle the fact that > if f() is a C function symbol, then the value of the symbol f is > actually the function's base a

Re: [PATCH v2 1/3] ARM: omap: Enable low-level omap3 PM code to work withCONFIG_THUMB2_KERNEL

2010-12-07 Thread Dave Martin
Hi, On Tue, Dec 7, 2010 at 11:59 AM, Jean Pihet wrote: > Hi Dave, > > On Tue, Dec 7, 2010 at 11:16 AM, Dave Martin wrote: >> On Tue, Dec 7, 2010 at 6:31 AM, Santosh Shilimkar >> wrote: >>> Dave, -Original Message- From: linaro-dev-boun...@lists.linaro.org [mailto:linaro-dev- >

RE: [PATCH 1/2] AM35x: musb: fix compilation error

2010-12-07 Thread Gupta, Ajay Kumar
Hi, > >> Is AM35x that different ? Can't you just write to MUSB_INTRRX > >> MUSB_INTRTX and MUSB_INTRUSB ?? > >Writing to MUSB_INTRRX/TX/USB wouldn't help. We have to clear interrupt > >Bit in control register INTR_LVL_CLR. > > I see, thanks for the info :-) Felipe, I have recreated this patch (

Re: [PATCH] OMAP4: Pandaboad: Add omap_reserve functionality

2010-12-07 Thread Nishanth Menon
Raghuveer Murthy had written, on 12/07/2010 06:25 AM, the following: This patch adds omap_reserve functionality to board-omap4panda.c. Helps in the reserving boot time memory in SDRAM, used here for framebuffer allocation. Signed-off-by: Russell King Since Russell did not directly contribute to

[PATCH 7/7] arm: OMAP4430: musb: Enable musb device initialization for OMAP4430

2010-12-07 Thread Hema HK
musb device registration during board initialization of OMAP4430SDP and OMAP4430 PANDA.Enable the musb OTG mode. Signed-off-by: Hema HK Cc: Felipe Balbi Cc: Tony Lindgren --- arch/arm/mach-omap2/board-4430sdp.c|6 ++ arch/arm/mach-omap2/board-omap4panda.c |2 +- 2 files changed

[PATCH 6/7] usb: musb: Adding musb support for OMAP4430

2010-12-07 Thread Hema HK
OMAP4430 supports UTMI and ULPI types of transceiver interface. In UTMI mode: The PHY is embedded within OMAP4430. The transceiver functionality is split between the twl6030 PMIC chip and OMAP4430. The VBUS, ID pin sensing and OTG SRP generation part is integrated in TWL6030 and UTMI PHY function

[PATCH 5/7] usb: musb: TWL6030: Selecting TWL6030_USB transceiver

2010-12-07 Thread Hema HK
Selecting the twl6030-usb for OMAP4430SDP and OMAP4 PANDA board and adding OMAP4 internal phy code for compilation Signed-off-by: Hema HK Cc: Felipe Balbi Cc: Tony Lindgren --- arch/arm/mach-omap2/Makefile |1 + drivers/usb/musb/Kconfig |1 + 2 files changed, 2 insertions(+) Index

[PATCH 4/7] mfd: TWL6030: OMAP4: Registering the TWL6030-usb device

2010-12-07 Thread Hema HK
Registering the twl6030-usb transceiver device as a child to twl6030 core. Removed the NOP transceiver init call from board file. Populated twl4030_usb_data platform data structure with the function pointers for OMAP4430 internal PHY operation to be used twl630-usb driver. Signed-off-by: Hema HK

[PATCH 3/7] usb: otg: Kconfig: Add Kconfig option for TWL6030 transceiver.

2010-12-07 Thread Hema HK
Added the TWL6030-usb transceiver option in the Kconfig Signed-off-by: Hema HK Cc: Felipe Balbi Cc: David Brownell --- drivers/usb/otg/Kconfig | 12 1 file changed, 12 insertions(+) Index: linux-2.6/drivers/usb/otg/Kconfig ===

[PATCH 2/7] usb: otg: Adding twl6030-usb transceiver driver for

2010-12-07 Thread Hema HK
Adding the twl6030-usb transceiver support for OMAP4 musb driver. OMAP4 supports 2 types of transceiver interface. 1. UTMI: The PHY is embedded within OMAP4. The transceiver functionality is split between the twl6030 PMIC chip and OMAP4430. The VBUS, ID pin sensing and OTG SRP generation part is

[PATCH 1/7] mfd: TWL6030: USBOTG VBUS event generation on

2010-12-07 Thread Hema HK
With TWL6030-usb, VBUS SESS_VLD and SESS_END events are not generated as expected. When these interrupts are enabled, charger VBUS detection interrupt does not get generated. So USBOTG has to be dependent on charger VBUS interrupts. So added one bit for USBOTG and changed the handler to call the U

[PATCH 0/7] usb: otg: TWL6030: OMAP4430: musb & transceiver driver support for OMAP4

2010-12-07 Thread Hema HK
This patch series has the support for TWL6030-usb transceiver driver and changes in the musb driver to make it functional with OMAP4430. OMAP4 musb support UTMI and ULPI transceiver interfaces. In UTMI mode, the transceiver functionality is split between the TWL6030 PMIC chip and OMAP4 embedded P

Re: [PATCH 13/14] OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files

2010-12-07 Thread Mark Brown
On Mon, Dec 06, 2010 at 06:25:17PM -0700, Paul Walmsley wrote: > In preparation for adding OMAP4-specific PRCM accessor/mutator > functions, split the existing OMAP2/3 PRCM code into OMAP2/3-specific > files. Most of what was in mach-omap2/{cm,prm}.{c,h} has now been > moved into mach-omap2/{cm,pr

Re: [PATCH v2] musb: am35x: fix compile error due to control apis

2010-12-07 Thread Sergei Shtylyov
Hello. On 06-12-2010 20:54, Tony Lindgren wrote: As the control.h have been moved to new location and it's uses are not allowed to drivers directly so moving the phy control, interrupt clear and reset functionality to board files. I'm not fond of the whole approach. I'm not sure why acce

  1   2   >