[PATCH v3] OMAP2+: UART: Add mechanism to probe uart pins and configure rx wakeup

2012-05-11 Thread Govindraj.R
From: "Govindraj.R" The commit (bce492c0 ARM: OMAP2+: UART: Fix incorrect population of default uart pads) removed default uart pads that where getting populated and which was making rx pin wakeup capable. If uart pads were used in different mode by any other module then it would fail

[PATCH v2] OMAP2+: UART: Add mechanism to probe uart pins and configure rx wakeup

2012-05-10 Thread Govindraj.R
From: "Govindraj.R" The commit (bce492c0 ARM: OMAP2+: UART: Fix incorrect population of default uart pads) removed default uart pads that where getting populated and which was making rx pin wakeup capable. If uart pads was used in different mode by any other module then it would fail

[PATCH v4 1/2] ARM: OMAP2/3: omap_hwmod: Add api to enable/disable module level wakeup events

2012-05-08 Thread Govindraj.R
From: "Govindraj.R" On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add soc specific api to control the module level wakeup mechanism in hwmod layer. omap_hwmod_enable/disable_wakeup is used from serial.c which should configu

[PATCH v4 2/2] ARM: omap3: pm: Remove uart module level wakeup configurations

2012-05-08 Thread Govindraj.R
From: "Govindraj.R" The uart module level wakeups enabling and disabling are now handled from uart driver itself remove the uart module level configurations from pm code. Cc: Paul Walmsley Cc: Kevin Hilman Cc: Benoit Cousson Cc: Tony Lindgren Cc: Tero Kristo Cc: Rajendra Nayak C

[PATCH v4 0/2] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-05-08 Thread Govindraj.R
From: "Govindraj.R" On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Patch series based on: git://git.pwsan.com/linux-2.6 hwmod_soc_conditional_cleanup_3.5 Tested on Beagle-xm by en

[PATCH 1/2 v4] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-25 Thread Govindraj.R
From: "Govindraj.R" On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. omap_hwmod_enable/disable_wakeup is used from serial.c which should

[PATCH v3 0/2] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-04-24 Thread Govindraj.R
From: "Govindraj.R" On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Tested on Beagle-xm by enabling and disabling uart wakeups from sysfs Series depends on following patches for tes

[PATCH v3 2/2] ARM: omap3: pm: Remove uart module level wakeup configurations

2012-04-24 Thread Govindraj.R
From: "Govindraj.R" The uart module level wakeups enabling and disabling are now handled from uart driver itself remove the uart module level configurations from pm code. Cc: Paul Walmsley Cc: Kevin Hilman Cc: Benoit Cousson Cc: Tony Lindgren Cc: Tero Kristo Cc: Rajendra Nayak C

[PATCH v3 1/2] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-24 Thread Govindraj.R
From: "Govindraj.R" On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. omap_hwmod_enable/disable_wakeup is used from serial.c which should

[PATCH v2] tty: omap-serial: configure wakeup mechanism based on port usage.

2012-04-24 Thread Govindraj.R
From: "Govindraj.R" With set_wakeup port ops availability from serial_core layer which will be called when port is opened with state as true indicating the wakeups can be enabled for this port and state as false while port shutdown where we can disable the wakeups. But wakeup c

[PATCH] tty: omap-serial: configure wakeup mechanism based on port usage.

2012-04-23 Thread Govindraj.R
From: "Govindraj.R" With set_wakeup port ops availability from serial_core layer which will be called when port is opened with state as true indicating the wakeups can be enabled for this port and state as false while port shutdown where we can disable the wakeups. But wakeup c

[PATCH] tty: serial_core: Utilise/Enable the set_wake uart ops

2012-04-23 Thread Govindraj.R
From: "Govindraj.R" Currently all low level uart driver register to serial_core layer this core layer exposes various serial uart ops. Whenever port is opened the low level platform specific wakeup capability can be enabled use the already available set_wakeup uart ops to config

[PATCH v2 3/3] ARM: omap3: pm: Remove uart module level wakeup configurations

2012-04-20 Thread Govindraj.R
From: "Govindraj.R" The uart module level wakeups enabling and disabling are now handled from uart driver itself remove the uart module level configurations from pm code. Cc: Paul Walmsley Cc: Kevin Hilman Cc: Benoit Cousson Cc: Tero Kristo Signed-off-by: Govindraj.R --- arc

[PATCH v2 2/3] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-20 Thread Govindraj.R
From: "Govindraj.R" On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. If module level wakeups are available from hwmod data then they have to

[PATCH v2 1/3] ARM: OMAP2+: omap_hwmod: Add interface to incorporate module level wakeup

2012-04-20 Thread Govindraj.R
From: "Govindraj.R" On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. The module level wakeups are enabled by default, by PRM soft reset default value of PM_WKEN reg is all one's which means all module level wakeups are enable

[PATCH v2 0/3] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-04-20 Thread Govindraj.R
From: "Govindraj.R" On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Tested on Beagle-xm by enabling and disabling uart wakeups from sysfs Series depends on following patch for tes

[PATCH] tty: serial_core: Add mechanism to identify port closure.

2012-04-20 Thread Govindraj.R
From: "Govindraj.R" Currently all low level uart driver register to serial_core layer this core layer exposes various serial uart ops. Currently the core layer provides startup and shutdown hooks to low level driver, but in port suspend case the shutdown gets called from uart_suspend

[PATCH 1/2] ARM: OMAP2+: omap_hwmod: Add interface to incorporate module level wakeup

2012-04-16 Thread Govindraj.R
From: "Govindraj.R" On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. The module level wakeups are enabled by default from bootloader, however the wakeups can be enabled/disabled using sysfs entry example for uart: echo disab

[PATCH 0/2] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-04-16 Thread Govindraj.R
From: "Govindraj.R" On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Tested on Beagle-xm by enabling and disabling uart wakeups from sysfs Series depends on following patch for tes

[PATCH 2/2] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-16 Thread Govindraj.R
From: "Govindraj.R" On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. If module level wakeups are available from hwmod data then they have to

[PATCH] tty: omap-serial: Keep the wakeup mechanism enabled by default

2012-04-16 Thread Govindraj.R
From: "Govindraj.R" The wakeups can be left enabled by default and should be disabled only when disabled from sysfs and while entering suspend. Thanks to Kevin Hilman for suggesting this. Discussion References: http://www.spinics.net/lists/linux-omap/msg67764.html http://www.spinics

[PATCH 2/2] OMAP2+: UART: Add mechanism to probe uart pins and configure rx wakeup

2012-04-10 Thread Govindraj.R
From: "Govindraj.R" Default pad populating procedure should first probe whether the uart pins are available as uart tx/rx pins if yes then we can configure them and use rx pin for wakeup capability. Utilise the mux api available to probe the availability of mux pins in uart mode.

[PATCH 0/2] OMAP2+: UART: Fix usage of default mux pads

2012-04-10 Thread Govindraj.R
From: "Govindraj.R" We populating default uart mux pins if no mux data is provided by board files. But were not probing the availability of uart pins in tx/rx mode i.e. mux mode0. If particular pin is used for any other purpose then default pads were breaking those peripherals e.g. uar

[PATCH 1/2] OMAP2+: UART: Fix incorrect population of default uart pads

2012-04-10 Thread Govindraj.R
From: "Govindraj.R" The following commit: (7496ba3 ARM: OMAP2+: UART: Add default mux for all uarts) added default pads for all uarts. But not all boards tend to use all uarts and most of unused uart pins are muxed for other purpose. This commit breaks the modules which where try

[GIT PULL]: omap-serial updates for 3.4-rc

2012-04-10 Thread Govindraj.R
, Govindraj.R The following changes since commit 0034102808e0dbbf3a2394b82b1bb40b5778de9e: Linux 3.4-rc2 (2012-04-07 18:30:41 -0700) are available in the git repository at: git://gitorious.org/linux-3-x/omap-serial.git for_3.4/uart_fixes for you to fetch changes up to

[PATCH v3] OMAP2+: UART: Remove cpu checks for populating errata flags

2012-04-03 Thread Govindraj.R
From: "Govindraj.R" Currently the errata is populated based on cpu checks this can be removed and replaced with module version check of uart ip block. MVR reg is provided within the uart reg map use the same to populate the errata and thus now errata population and handling can be mana

[PATCH v2] OMAP2+: UART: Remove cpu checks for populating errata flags

2012-04-02 Thread Govindraj.R
From: "Govindraj.R" Currently the errata is populated based on cpu checks this can be removed and replaced with module version check of uart ip block. MVR reg is provided within the uart reg map use the same to populate the errata and thus now errata population and handling can be mana

[PATCH] omap2+: pm: fix compilation break.

2012-03-29 Thread Govindraj.R
From: "Govindraj.R" Fix the compilation break observed on latest mainline. Fixes below compilation break: arch/arm/mach-omap2/pm.c: In function 'omap_pm_begin': arch/arm/mach-omap2/pm.c:239: error: implicit declaration of function 'disable_hlt' arch/ar

[PATCH 2/3] OMAP2+: UART: enable tx wakeup bit for wer reg

2012-03-21 Thread Govindraj.R
From: "Govindraj.R" >From omap36xx onwards the module wakeup enable reg wer has TX wakeup bit available enable the same by populating the necessary tx wakeup flag for the applicable module ip blocks and use the same while configuaring wer reg. Also wer is not context restored, res

[PATCH 3/3] OMAP2+: UART: replace omap34xx/omap4xx cpu checks with not omap24xx

2012-03-21 Thread Govindraj.R
From: "Govindraj.R" Minor cleanup, replace all omap34xx/omap44xx cpu checks with cpu is not omap24xx check. Cc: Paul Walmsley Cc: Felipe Balbi Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH 1/3] OMAP2+: UART: Remove cpu checks for populating errata flags

2012-03-21 Thread Govindraj.R
From: "Govindraj.R" Currently the errata is populated based on cpu checks this can be removed and replaced with module version check of uart ip block. MVR reg is provided within the uart reg map use the same to populate the errata and thus now errata population and handling can be mana

[PATCH 0/3] OMAP2+: UART: Enable tx wakeup + remove cpu checks

2012-03-21 Thread Govindraj.R
From: "Govindraj.R" Based on Linux-OMAP tree uart branch. (git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git remotes/origin/uart) * Removes the cpu checks wherever possible and use version reg for populating features and errata's * enable tx wakeup available

[RESEND PATCH] ARM :OMAP2+: UART: Remove some of uart default pads

2012-03-21 Thread Govindraj.R
From: "Govindraj.R" The following commit: (7496ba3 ARM: OMAP2+: UART: Add default mux for all uarts) added default pads for all uarts. But not all boards tend to use all uarts and most of unused uart pins are muxed for other purpose. This commit breaks the modules which where try

[PATCH] omap_hwmod: Allow io_ring wakeup configuration for all modules.

2012-03-07 Thread Govindraj.R
From: "Govindraj.R" Some modules doesn't have SYSC_HAS_ENAWAKEUP bit available (ex: usb host uhh module) in absence of this flag omap_hwmod_enable/disable_wakeup avoids configuring pad mux wakeup capability. Configure sysc if SYSC_HAS_ENAWAKEUP is available and for other cas

[PATCH] omap3_beagle: init uart2 for beagle rev AX/BX only

2012-03-06 Thread Govindraj.R
From: "Govindraj.R" All beagle boards rev > AX/BX have external usb hubs connected to ehci interface, external hub/peripheral uses a nreset sequence for which uart2_rx.gpio_147 pin in mux mode4(USB2HS_nRST) is used on all beagle boards expect rev Ax/BX. (Reference to all beag

[PATCH] omap3_beagle: Init only uart3 used for console

2012-03-05 Thread Govindraj.R
From: "Govindraj.R" On beagle some of uart mux lines are used for other purpose so init only uart3. Uart2 rx line clashes with gpio_147 used for usb ehci phy reset. Initializing uart2 pad_mux lines can break ehci module on beagle xm. (gpio_147 is available on uart2_rx in mode4

[PATCH 2/2] mfd: omap-usb-host: Move usbhs init before allocing child dev

2012-02-15 Thread Govindraj.R
From: "Govindraj.R" There could be possible race condition where the host dev's are alloced and added to platform dev just before usbhs_init. Just move usbhs_init before adding child dev. CC: Felipe Balbi CC: Alan Stern Signed-off-by: Govindraj.R --- drivers/mfd/omap-us

[PATCH 1/2] mfd: omap-usb-host: Remove magic numbers for dev dma mask

2012-02-15 Thread Govindraj.R
From: "Govindraj.R" Remove the hardcoded magic values for dma mask and use the dma mask macros available. CC: Felipe Balbi CC: Alan Stern Signed-off-by: Govindraj.R --- drivers/mfd/omap-usb-host.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH 0/2] mfd: omap-usb-host: Minor omap-usb host fixes

2012-02-15 Thread Govindraj.R
From: "Govindraj.R" Minor fixes, boot tested on panda with ehci enabled. Patches based on 3.3-rc3 Govindraj.R (2): mfd: omap-usb-host: Remove magic numbers for dev dma mask mfd: omap-usb-host: Move usbhs init before allocing child dev drivers/mfd/omap-usb-host.c |7 +++---

[RFC PATCH] OMAP: UART: Enable tx wakeup bit in wer

2012-01-24 Thread Govindraj.R
From: "Govindraj.R" On omap3630 onwards uart wer reg has bit 7 for tx wakeup enable. Without this bit set some uart sluggishness might be seen while printing data on console, response is better when enabling this bit. Tested with Beagle XM (OMAP3630) Cc: Kevin Hilman Cc: Paul Walmsl

[PATCH v8 20/20] OMAP2+: UART: Remove omap_uart_can_sleep and add pm_qos

2011-11-11 Thread Govindraj.R
d complete any pending qos jobs in work queue while suspending. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/cpuidle34xx.c |5 --- arch/arm/mach-omap2/pm24xx.c |2 - arch/arm/mach-omap2/pm34xx.c | 10 --- arch/arm/mach-omap

[PATCH v8 18/20] OMAP2+: UART: Avoid uart idling on suspend for no_console_suspend usecase

2011-11-11 Thread Govindraj.R
spend. omap_device_disable_idle_on_suspend API was used on all uarts since the uart driver was not runtime adapted, now with runtime adaptation we can re-use this API only for no_console_suspend use cases. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |8 +++- 1 files changed, 7 inser

[PATCH v8 19/20] OMAP2+: UART: Do not gate uart clocks if used for debug_prints

2011-11-11 Thread Govindraj.R
abled either by adding debug word in bootarg or by setting loglevel=10 Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 5d910ef..a5d9c9c

[PATCH v8 15/20] OMAP2+: UART: Make the RX_TIMEOUT for DMA configurable for each UART

2011-11-11 Thread Govindraj.R
value can be optimised for power savings. Acked-by: Kevin Hilman Signed-off-by: Jon Hunter Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |5 - arch/arm/plat-omap/include/plat/omap-serial.h |3 ++- drivers/tty/serial/omap-serial.c | 15

[PATCH v8 17/20] OMAP2+: UART: Use custom activate func for console uart.

2011-11-11 Thread Govindraj.R
bootup and then enable them back and reset pm_latency ops to default ops. Thanks to Kevin Hilman for suggesting this approach. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 86 + 1 files changed, 61 insertions(+), 25 deletions(-) diff

[PATCH v8 16/20] OMAP2+: UART: remove temporary variable used to count uart instance

2011-11-11 Thread Govindraj.R
Reuse the num_uarts variable itself to count number of uarts. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 5c6c48f..4d65d00 100644

[PATCH v8 14/20] OMAP2+: UART: Allow UART parameters to be configured from board file.

2011-11-11 Thread Govindraj.R
ff-by: Jon Hunter Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/board-n8x0.c |6 +- arch/arm/mach-omap2/serial.c | 56 - arch/arm/plat-omap/include/plat/omap-serial.h |7 ++- arch/arm/plat-omap/include/plat/serial.h |5 ++

[PATCH v8 13/20] OMAP2+: UART: Remove old and unused clocks handling funcs

2011-11-11 Thread Govindraj.R
With runtime adaptation done remove clock_enable/disbale API's Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 36 1 files changed, 0 insertions(+), 36 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/ser

[PATCH v8 12/20] OMAP2+: UART: Add wakeup mechanism for omap-uarts

2011-11-11 Thread Govindraj.R
in serial.c which was handling PM_WKST reg. Irq_chaing(PRM_DRIVER) is used to wakeup uart after uart clocks are gated using pad wakeup mechanism. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 96 +++- arch/arm/plat-omap/include/plat/o

[PATCH v8 11/20] OMAP2+: UART: Move errata handling from serial.c to omap-serial

2011-11-11 Thread Govindraj.R
. Corrected errata id from chapter reference 2.15 to errata id i291. Removed errata and dma_enabled fields from omap_uart_state struct as they are no more needed with errata handling done within omap-serial. Acked-by: Alan Cox Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c

[PATCH v8 10/20] OMAP2+: UART: Get context loss count to context restore

2011-11-11 Thread Govindraj.R
Avoid unconditional context restore every time we gate uart clocks. Check whether context loss happened based on which we can context restore uart regs from uart_port structure. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |2 ++ arch/arm/plat-omap/include

[PATCH v8 01/20] OMAP2+: UART: cleanup + remove uart pm specific API

2011-11-11 Thread Govindraj.R
emove is_suspending check used to acquire console_lock. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/pm24xx.c | 18 arch/arm/mach-omap2/pm34xx.c | 32 --- arch/arm/mach-omap2/serial.c | 65 -- arch/arm

[PATCH v8 06/20] OMAP2+: UART: Add runtime pm support for omap-serial driver

2011-11-11 Thread Govindraj.R
runtime. Acked-by: Alan Cox Signed-off-by: Govindraj.R --- drivers/tty/serial/omap-serial.c | 122 ++ 1 files changed, 109 insertions(+), 13 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 31f0cbf..f16ef

[PATCH v8 04/20] OMAP2+: UART: Add default mux for all uarts.

2011-11-11 Thread Govindraj.R
e and use the default pads from serial.c file. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/board-3430sdp.c| 100 + arch/arm/mach-omap2/board-4430sdp.c| 68 +-- arch/arm/mach-omap2/board-omap4panda.c | 68 +-- arch/arm/mach-omap2/ser

[PATCH v8 07/20] OMAP2+: UART: Remove context_save and move context restore to driver

2011-11-11 Thread Govindraj.R
serial.c and had no info on uart state thus we needed context save and restore in serial.c With runtime conversion and clock gating done within uart driver context restore can be done from regs value available from uart_omap_port structure. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c

[PATCH v8 09/20] OMAP2+: UART: Remove uart reset function.

2011-11-11 Thread Govindraj.R
Remove the uart reset function which is configuring the TX empty irq which can now be handled within omap-serial driver. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 14 -- arch/arm/plat-omap/include/plat/omap-serial.h |2 ++ drivers/tty

[PATCH v8 03/20] OMAP2+: UART: Cleanup part of clock gating mechanism for uart

2011-11-11 Thread Govindraj.R
locks. Removes the following: * timer related info from local uart_state struct * the code used to set timeout value from sysfs. * irqflags used to set shared irq handler. * un-used function omap_uart_check_wakeup. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |

[PATCH v8 08/20] OMAP2+: UART: Ensure all reg values configured are available from port structure

2011-11-11 Thread Govindraj.R
Add missing uart regs to uart_port structure which can be used in context restore. Store dll, dlh, mdr1, scr, efr, lcr, mcr reg values into uart_port structure while configuring individual port in termios function. Signed-off-by: Govindraj.R --- arch/arm/plat-omap/include/plat/omap-serial.h

[PATCH v8 02/20] OMAP2+: UART: cleanup 8250 console driver support

2011-11-11 Thread Govindraj.R
needed for 8250 autoconf. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 97 -- 1 files changed, 0 insertions(+), 97 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 8254067..8499f06 100644 --- a/arch

[PATCH v8 05/20] OMAP2+: UART: Remove mapbase/membase fields from pdata.

2011-11-11 Thread Govindraj.R
The mapbase (start_address), membase(io_remap cookie) part of pdata struct omap_uart_port_info are removed as this should be derived within driver. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |2 -- arch/arm/plat-omap/include/plat/omap-serial.h |2

[PATCH v8 00/20] OMAP2+: UART: Runtime adaptation + cleanup

2011-11-11 Thread Govindraj.R
-uart3 [Also tested with uart3 as console uart and pm-ret checked] BeagleBoard XM Rev C(3630): retention, off_mode, system_wide suspend is tested. Deepak K (1): OMAP2+: UART: Allow UART parameters to be configured from board file. Govindraj.R (18): OMAP2+: UART: cleanup + remove uart pm specific

[PATCH] OMAP2+: Fix compilation break when cpuidle pm is selected

2011-11-10 Thread Govindraj.R
When cpuidle pm is selected the following compilation break is seen fix the same. arch/arm/mach-omap2/cpuidle34xx.c:312: error: 'THIS_MODULE' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/cpuidle34xx.o] Error 1 Signed-off-by: Govindraj.R --- arch/arm/

[PATCH] OMAP2+: Fix Compilation error when omap_l3_noc built as module

2011-11-09 Thread Govindraj.R
Fix below compilation failure on mainline kernel 3.2-rc1 when omap_l3_noc.c is built as module. arch/arm/mach-omap2/omap_l3_noc.c:240: error: expected ',' or ';' before 'MODULE_DEVICE_TABLE' Signed-off-by: Govindraj.R Acked-by: Santosh Shilimkar --- arch/arm/m

[PATCH] OMAP2+: Fix Compilation error on current mainline

2011-11-07 Thread Govindraj.R
Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/omap_l3_noc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_l3_noc.c b/arch/arm/mach-omap2/omap_l3_noc.c index c8b1bef..c2cc196 100644 --- a/arch/arm/mach-omap2/omap_l3_noc.c +++ b/arch/arm/

[PATCH] OMAP2+: Fix Compilation break on current mainline

2011-11-07 Thread Govindraj.R
'...' before string constant arch/arm/plat-omap/dmtimer.c:749: warning: data definition has no type or storage class arch/arm/plat-omap/dmtimer.c:749: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' arch/arm/plat-omap/dmtimer.c:749: warning: function

[PATCH v7 15/21] OMAP2+: UART: Make the RX_TIMEOUT for DMA configurable for each UART

2011-10-18 Thread Govindraj.R
value can be optimised for power savings. Acked-by: Kevin Hilman Signed-off-by: Jon Hunter Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |5 - arch/arm/plat-omap/include/plat/omap-serial.h |3 ++- drivers/tty/serial/omap-serial.c | 15

[PATCH v7 16/21] OMAP2+: UART: Remove custom activate funcs and use generic funcs.

2011-10-18 Thread Govindraj.R
The custom hwmod activate and deactivate funcs does hwmod_enable and idle same can be done with omap_device generic API's. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 18 ++ 1 files changed, 2 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-

[PATCH v7 20/21] OMAP2+: UART: Avoid uart idling on suspend for no_console_suspend usecase

2011-10-18 Thread Govindraj.R
spend. omap_device_disable_idle_on_suspend API was used on all uarts since the uart driver was not runtime adapted, now with runtime adaptation we can re-use this API only for no_console_suspend use cases. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |9 - 1 files changed, 8 inser

[PATCH v7 21/21] OMAP2+: UART: Do not gate uart clocks if used for debug_prints

2011-10-18 Thread Govindraj.R
igned-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 5e3bbce..e83951a 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@

[PATCH v7 19/21] OMAP2+: UART: Use custom activate func for console uart.

2011-10-18 Thread Govindraj.R
bootup and then enable them back and reset pm_latency ops to default ops. Thanks to Kevin Hilman for suggesting this approach. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 79 - 1 files changed, 54 insertions(+), 25 deletions(-) diff

[PATCH v7 18/21] OMAP2+: UART: remove temporary variable used to count uart instance

2011-10-18 Thread Govindraj.R
Reuse the num_uarts variable itself to count number of uarts. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 55ce950..e1eba7f 100644

[PATCH v7 17/21] OMAP2+: UART: Remove omap_uart_can_sleep and add pm_qos

2011-10-18 Thread Govindraj.R
queue to avoid warn on slow path warning while using qos API's from runtime callbacks. Flush_sync any pending qos jobs in work queue while suspending. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/cpuidle34xx.c |5 --- arch/arm/mach-omap2/pm24xx.c |

[PATCH v7 14/21] OMAP2+: UART: Allow UART parameters to be configured from board file.

2011-10-18 Thread Govindraj.R
ff-by: Jon Hunter Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/board-n8x0.c |6 +- arch/arm/mach-omap2/serial.c | 56 - arch/arm/plat-omap/include/plat/omap-serial.h |7 ++- arch/arm/plat-omap/include/plat/serial.h |5 ++

[PATCH v7 08/21] OMAP2+: UART: Ensure all reg values configured are available from port structure

2011-10-18 Thread Govindraj.R
Add missing uart regs to uart_port structure which can be used in context restore. Store dll, dlh, mdr1, scr, efr, lcr, mcr reg values into uart_port structure while configuring individual port in termios function. Signed-off-by: Govindraj.R --- arch/arm/plat-omap/include/plat/omap-serial.h

[PATCH v7 13/21] OMAP2+: UART: Remove old and unused clocks handling funcs

2011-10-18 Thread Govindraj.R
With runtime adaptation done remove clock_enable/disbale API's Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 36 1 files changed, 0 insertions(+), 36 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/ser

[PATCH v7 12/21] OMAP2+: UART: Add wakeup mechanism for omap-uarts

2011-10-18 Thread Govindraj.R
in serial.c which was handling PM_WKST reg. Irq_chaing(PRM_DRIVER) is used to wakeup uart after uart clocks are gated using pad wakeup mechanism. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 96 +++- arch/arm/plat-omap/include/plat/o

[PATCH v7 11/21] OMAP2+: UART: Move errata handling from serial.c to omap-serial

2011-10-18 Thread Govindraj.R
. Corrected errata id from chapter reference 2.15 to errata id i291. Removed errata and dma_enabled feilds from omap_uart_state struct as they are no more needed with errata handling done within omap-serial. Acked-by: Alan Cox Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c

[PATCH v7 06/21] OMAP2+: UART: Add runtime pm support for omap-serial driver

2011-10-18 Thread Govindraj.R
n be autoidled by setting autosuspendi delay from sysfs. echo 3000 > /sys/devices/platform/omap/omap_uart.X/power/autosuspend_delay_ms X=0,1,2,3 for UART1/2/3/4. Number of uarts available may vary across omap_soc. Acked-by: Alan Cox Signed-off-by: Govindraj.R --- drivers/tty

[PATCH v7 10/21] OMAP2+: UART: Get context loss count to context restore

2011-10-18 Thread Govindraj.R
Avoid unconditional context restore every time we gate uart clocks. Check whether context loss happened based on which we can context restore uart regs from uart_port structure. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |2 ++ arch/arm/plat-omap/include

[PATCH v7 09/21] OMAP2+: UART: Remove uart reset function.

2011-10-18 Thread Govindraj.R
Remove the uart reset function which is configuring the TX empty irq which can now be handled within omap-serial driver. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 14 -- arch/arm/plat-omap/include/plat/omap-serial.h |2 ++ drivers/tty

[PATCH v7 07/21] OMAP2+: UART: Remove context_save and move context restore to driver

2011-10-18 Thread Govindraj.R
serial.c and had no info on uart state thus we needed context save and restore in serial.c With runtime conversion and clock gating done within uart driver context restore can be done from regs value available from uart_omap_port structure. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c

[PATCH v7 04/21] OMAP2+: UART: Add default mux for all uarts.

2011-10-18 Thread Govindraj.R
e and use the default pads from serial.c file. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/board-3430sdp.c| 100 + arch/arm/mach-omap2/board-4430sdp.c| 68 +-- arch/arm/mach-omap2/board-omap4panda.c | 68 +-- arch/arm/mach-omap2/ser

[PATCH v7 02/21] OMAP2+: UART: cleanup 8250 console driver support

2011-10-18 Thread Govindraj.R
needed for 8250 autoconf. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 97 -- 1 files changed, 0 insertions(+), 97 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 62d15ad..61b260a 100644 --- a/arch

[PATCH v7 01/21] OMAP2+: UART: cleanup + remove uart pm specific API

2011-10-18 Thread Govindraj.R
d-off-by: Govindraj.R --- arch/arm/mach-omap2/pm24xx.c | 18 arch/arm/mach-omap2/pm34xx.c | 23 -- arch/arm/mach-omap2/serial.c | 65 -- arch/arm/plat-omap/include/plat/serial.h |4 -- 4 files changed, 0 inser

[PATCH v7 05/21] OMAP2+: UART: Remove mapbase/membase fields from pdata.

2011-10-18 Thread Govindraj.R
The mapbase (start_address), membase(io_remap cookie) part of pdata struct omap_uart_port_info are removed as this should be derived within driver. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |2 -- arch/arm/plat-omap/include/plat/omap-serial.h |2

[PATCH v7 03/21] OMAP2+: UART: Cleanup part of clock gating mechanism for uart

2011-10-18 Thread Govindraj.R
locks. Removes the following: * timer related info from local uart_state struct * the code used to set timeout value from sysfs. * irqflags used to set shared irq handler. * un-used function omap_uart_check_wakeup. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c |

[PATCH v7 00/21] OMAP2+: UART: Runtime adaptation + cleanup

2011-10-18 Thread Govindraj.R
checked with quart/omap-uart3 [Also tested with uart3 as console uart and pm-ret checked] BeagleBoard XM Rev C(3630): retention, off_mode, system_wide suspend is tested. Deepak K (1): OMAP2+: UART: Allow UART parameters to be configured from board file. Govindraj.R (19): OMAP2+: UART: cleanup +

[PATCH v6 12/16] OMAP2+: UART: Allow UART parameters to be configured from board file.

2011-09-30 Thread Govindraj.R
ff-by: Jon Hunter Signed-off-by: Govindraj.R --- This patch is derived and reworked from a custom 2.6.35 kernel Available here: http://git.omapzoom.org/?p=kernel/omap.git; a=commitdiff;h=584ef316542f77312be7ba96a0f3013c8f64852b; hp=7233a76cb362c0fc603f773274159adff91d3513 arch/arm/mach-omap2/bo

[PATCH v6 11/16] OMAP2+: UART: Move errata handling from serial.c to omap-serial

2011-09-30 Thread Govindraj.R
. Corrected errata id from chapter reference 2.15 to errata id i291. Acked-by: Alan Cox Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 78 + arch/arm/plat-omap/include/plat/omap-serial.h |5 ++ drivers/tty/serial/omap-serial.c

[PATCH v6 13/16] OMAP2+: UART: Make the RX_TIMEOUT for DMA configurable for each UART

2011-09-30 Thread Govindraj.R
value can be optimised for power savings. Acked-by: Kevin Hilman Signed-off-by: Jon Hunter Signed-off-by: Govindraj.R --- This patch is derived from a custom 2.6.35 kernel Available here: http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff; h=b47839fb84e68333ea29a327cf5aa694b71be7d6; hp

[PATCH v6 16/16] OMAP2+: UART: Do not gate uart clocks if used for debug_prints

2011-09-30 Thread Govindraj.R
igned-off-by: Govindraj.R --- More details on this topic and experiments done listed here: http://www.spinics.net/lists/linux-serial/msg04128.html arch/arm/mach-omap2/serial.c | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/a

[PATCH v6 15/16] OMAP2+: UART: Enable back uart clocks with runtime API for early console

2011-09-30 Thread Govindraj.R
UART. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 26 arch/arm/plat-omap/include/plat/omap-serial.h |1 + drivers/tty/serial/omap-serial.c |1 + 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/arch/arm

[PATCH v6 14/16] OMAP2+: UART: Take console_lock in suspend path if not taken

2011-09-30 Thread Govindraj.R
if omap console is defined. omap-serial can be built as module without console support. Signed-off-by: Govindraj.R --- arch/arm/plat-omap/include/plat/omap-serial.h |1 + drivers/tty/serial/omap-serial.c | 20 ++-- 2 files changed, 19 insertions(+), 2 deletions

[PATCH v6 10/16] OMAP2+: UART: Modify omap_uart_can_sleep function

2011-09-30 Thread Govindraj.R
can be auto gated this can make response on uart slower. This behaviour was observed only on some of OMAP3 boards(beagleboard xm rev c). Reported-by: Tero Kristo Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 21 + 1 files changed, 9 insertions(+), 12

[PATCH v6 05/16] OMAP2+: UART: Cleanup part of clock gating mechanism for uart

2011-09-30 Thread Govindraj.R
e the code used to set timeout value from sysfs. Remove un-used function omap_uart_check_wakeup. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 116 + arch/arm/plat-omap/include/plat/omap-serial.h |1 - arch/arm/plat-omap/include/plat/ser

[PATCH v6 04/16] OMAP2+: UART: cleanup 8250 console driver support

2011-09-30 Thread Govindraj.R
necessary to support 8250 support and remove all config bindings done to keep 8250 backward compatibility while adding omap-serial driver. Remove omap_uart_reset needed for 8250 autoconf. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 111

[PATCH v6 09/16] OMAP2+: UART: Add runtime pm support for omap-serial driver

2011-09-30 Thread Govindraj.R
p_soc. Acked-by: Alan Cox Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 206 ++-- arch/arm/plat-omap/include/plat/omap-serial.h |5 + drivers/tty/serial/omap-serial.c | 169 +++-- 3 files changed, 179 inserti

[PATCH v6 07/16] OMAP2+: UART: Add default mux for all uarts.

2011-09-30 Thread Govindraj.R
board file are same as the default pad values populated in serial.c. Remove pad values from 3430sdp/4430sdp/omap4panda board file and use the default pads from serial.c file. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/board-3430sdp.c| 100 + arch/arm/mach-omap2/board-4430

[PATCH v6 06/16] OMAP2+: UART: Remove certain feilds from omap_uart_state struct

2011-09-30 Thread Govindraj.R
are removed as this is handled within driver. Errata field is also moved to pdata. These changes are done to cleanup serial.c file and prepare for runtime changes. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/serial.c | 132 +--- arch/arm/plat-omap

[PATCH v6 03/16] OMAP2+: UART: cleanup + remove uart pm specific API

2011-09-30 Thread Govindraj.R
d-off-by: Govindraj.R --- arch/arm/mach-omap2/pm24xx.c | 18 arch/arm/mach-omap2/pm34xx.c | 23 -- arch/arm/mach-omap2/serial.c | 65 -- arch/arm/plat-omap/include/plat/serial.h |4 -- 4 files changed, 0 inser

  1   2   3   4   >