[PATCH REPOST 1/2] mmc: davinci: Eliminate spurious interrupts

2012-03-11 Thread Ido Yariv
to serve these needlessly. In order to avoid these spurious interrupts, keep interrupts masked while filling the fifo. Signed-off-by: Ido Yariv i...@wizery.com Tested-by: Rajashekhara, Sudhakar sudhakar@ti.com --- drivers/mmc/host/davinci_mmc.c | 33 +++-- 1 files

[PATCH REPOST 2/2] mmc: davinci: Poll status for small size transfers

2012-03-11 Thread Ido Yariv
. Signed-off-by: Ido Yariv i...@wizery.com Tested-by: Rajashekhara, Sudhakar sudhakar@ti.com --- drivers/mmc/host/davinci_mmc.c | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index

Re: [RFC 1/2] mmc: davinci: Eliminate spurious interrupts

2012-01-29 Thread Ido Yariv
Hello Sudhakar, On Fri, Jan 27, 2012 at 08:11:55AM +, Rajashekhara, Sudhakar wrote: I tested both these patches and they work fine on the OMAP-L138 EVM. I observed that with these patches the number of interrupts during a transfer are less compared to earlier. For a 100 MB transfer, I

[RFC 1/2] mmc: davinci: Eliminate spurious interrupts

2012-01-24 Thread Ido Yariv
to serve these needlessly. In order to avoid these spurious interrupts, keep interrupts masked while filling the fifo. Signed-off-by: Ido Yariv i...@wizery.com --- drivers/mmc/host/davinci_mmc.c | 33 +++-- 1 files changed, 27 insertions(+), 6 deletions(-) diff --git

[RFC 2/2] mmc: davinci: Poll status for small size transfers

2012-01-24 Thread Ido Yariv
. Signed-off-by: Ido Yariv i...@wizery.com --- drivers/mmc/host/davinci_mmc.c | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 9cea66f..fb1368a 100644 --- a/drivers/mmc/host

[PATCH v4] ARM: davinci: AM18x: Add wl1271/wlan support

2011-08-04 Thread Ido Yariv
. Add support for the WLAN capabilities of this expansion board. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/Kconfig | 10 +++ arch/arm/mach-davinci/board-da850-evm.c | 114 +++ 2 files changed, 124 insertions(+), 0 deletions(-) diff

Re: [PATCH v4] ARM: davinci: AM18x: Add wl1271/wlan support

2011-08-04 Thread Ido Yariv
Hi Jaya, On Thu, Aug 04, 2011 at 04:40:01PM +0800, Jaya Kumar wrote: Hi Ido, A quick question for my own understanding. What's the mechanism by which wl12xx is bound with above. I see above wl12xx_set_platform_data but I didn't see something like .name = wl1271 or dev_name that comes in

Re: [PATCH v2 6/6] arm: davinci: DA850: Add wl1271/wlan support

2011-07-28 Thread Ido Yariv
Hi Sekhar, On Mon, Jul 25, 2011 at 11:10:55PM +0530, Nori, Sekhar wrote: Adding a new kernel parameter requires update to Documentation/kernel-parameters.txt as well. I am Ccing a couple of folks in case they have ideas on whether there is a better way to pass this information to the

[PATCH REPOST v2] mmc: davinci: Add support for set_power callback

2011-07-28 Thread Ido Yariv
powering down/up. Signed-off-by: Ido Yariv i...@wizery.com CC: Chris Ball c...@laptop.org --- arch/arm/mach-davinci/include/mach/mmc.h |3 +++ drivers/mmc/host/davinci_mmc.c | 13 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci

[PATCH v3] davinci: Add wl1271/wlan support for AM18x

2011-07-28 Thread Ido Yariv
. Add support for the WLAN capabilities of this expansion board. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/Kconfig | 10 +++ arch/arm/mach-davinci/board-da850-evm.c | 114 +++ 2 files changed, 124 insertions(+), 0 deletions(-) diff

Re: [PATCH v3] davinci: Add wl1271/wlan support for AM18x

2011-07-28 Thread Ido Yariv
Hi Troy, On Thu, Jul 28, 2011 at 02:15:41PM -0700, Troy Kisky wrote: + if (power_on) { + /* Power up sequence required for wl127x devices */ + gpio_set_value(DA850_WLAN_EN, 1); + usleep_range(15000, 15000); + gpio_set_value(DA850_WLAN_EN, 0);

Re: [PATCH v3 1/6] arm: davinci: Fix low level gpio irq handlers' argument

2011-07-12 Thread Ido Yariv
Hi Sekhar, On Tue, Jul 12, 2011 at 02:52:17PM +0530, Nori, Sekhar wrote: - g = (__force struct davinci_gpio_regs __iomem *) irq_desc_get_handler_data(desc); + ctl = (struct davinci_gpio_controller *)irq_desc_get_handler_data(desc); + g = (struct davinci_gpio_regs __iomem

Re: [PATCH v2 1/6] arm: davinci: Fix low level gpio irq handlers' argument

2011-07-11 Thread Ido Yariv
Hi Sekhar, On Mon, Jul 11, 2011 at 05:28:44PM +0530, Nori, Sekhar wrote: Thanks for the bug fix. How about setting the handler data for bank IRQ in davinci_gpio_irq_setup() to chips[bank]? chips[bank].regs should give you the register base address (g) and chips[bank].irq_base should give

[PATCH v3 1/6] arm: davinci: Fix low level gpio irq handlers' argument

2011-07-11 Thread Ido Yariv
handler data to be a pointer to the corresponding gpio controller. The chained irq handler can then use it to extract both the irq base number and the gpio registers structure. Signed-off-by: Ido Yariv i...@wizery.com CC: Thomas Gleixner t...@linutronix.de --- arch/arm/mach-davinci/gpio.c | 14

[PATCH v2 0/6] arm: davinci: DA850: wl12xx expansion card

2011-07-10 Thread Ido Yariv
to set DA850's default queue to an invalid value and then fix it, merge the two patches * Move pinmux configurations to separate patches * Remove FREF Kconfig entry, use a default value of 38MHz instead * Use msleep for long delays, usleep_range for shorter ones * Minor cleanups Ido. Ido Yariv

[PATCH v2 1/6] arm: davinci: Fix low level gpio irq handlers' argument

2011-07-10 Thread Ido Yariv
this by converting gpio_irq_handler's bank_irq argument to the corresponding irq base number. Signed-off-by: Ido Yariv i...@wizery.com CC: Thomas Gleixner t...@linutronix.de --- arch/arm/mach-davinci/gpio.c | 32 1 files changed, 28 insertions(+), 4 deletions(-) diff

[PATCH v2 2/6] arm: davinci: Explicitly set channel controllers' default queues

2011-07-10 Thread Ido Yariv
for all channel controllers on all Davinci platforms to EVENTQ_1, and don't overwrite it in the EDMA probe function. One exception is the DA850 board, for which EVENTQ_1 is not a valid option for its second channel controller. Use EVENTQ_0 instead for that channel controller. Signed-off-by: Ido Yariv i

[PATCH v2 3/6] arm: davinci: mmc: Add support for set_power callback

2011-07-10 Thread Ido Yariv
powering down/up. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/include/mach/mmc.h |3 +++ drivers/mmc/host/davinci_mmc.c | 13 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/include/mach/mmc.h b/arch/arm/mach

[PATCH v2 4/6] arm: davinci: DA850: Add MMC/SD1 pinmux configuration

2011-07-10 Thread Ido Yariv
AM18x has two MMC slots. Add the required pinmux configuration for the second slot. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/da850.c|7 +++ arch/arm/mach-davinci/include/mach/mux.h |8 2 files changed, 15 insertions(+), 0 deletions

[PATCH v2 5/6] arm: davinci: DA850: Add GPIO pinmux configuration for wl1271

2011-07-10 Thread Ido Yariv
The wl1271 daughter board makes use of a few GPIOs: GPIO6_9 is used for powering down/up the WLAN functionality. GPIO6_10 is used as an input IRQ line from the WLAN chip. Add the required pinmux configuration for these GPIOs. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci

[PATCH v2 6/6] arm: davinci: DA850: Add wl1271/wlan support

2011-07-10 Thread Ido Yariv
. This patch adds support for the WLAN capabilities of this expansion board. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/Kconfig | 10 +++ arch/arm/mach-davinci/board-da850-evm.c | 127 +++ 2 files changed, 137 insertions(+), 0 deletions

Re: [PATCH 2/5] arm: davinci: Allow EVENTQ_0 as a default queue

2011-07-08 Thread Ido Yariv
Hi, On Fri, Jul 08, 2011 at 02:25:23PM +0400, Sergei Shtylyov wrote: On 08-07-2011 1:33, Ido Yariv wrote: Davinci platforms may define a default queue for each channel controller. If one is not defined, the default queue is set to EVENTQ_1. However, there's no way to distinguish between

Re: [PATCH 5/5] arm: davinci: DA850: Add wl12xx expansion board support

2011-07-08 Thread Ido Yariv
Hi, On Fri, Jul 08, 2011 at 02:39:32PM +0400, Sergei Shtylyov wrote: Hello. On 08-07-2011 1:33, Ido Yariv wrote: The DA850 supports an optional wl12xx based expansion board, adding WLAN BT capabilities. The wl12xx is a 4-wire, 1.8V, embedded SDIO WLAN device with an external IRQ line

[PATCH 0/5] arm: davinci: DA850: wl12xx expansion board

2011-07-07 Thread Ido Yariv
expansion board support, and could influence other Davinci platforms. Only the Wi-Fi functionality of the expansion board is supported. Bluetooth functionality is not yet supported. The patches are based on v3.0-rc6. Ido. Ido Yariv (5): arm: davinci: Fix low level gpio irq handlers' argument

[PATCH 1/5] arm: davinci: Fix low level gpio irq handlers' argument

2011-07-07 Thread Ido Yariv
this by converting gpio_irq_handler's bank_irq argument to the corresponding irq base number. Signed-off-by: Ido Yariv i...@wizery.com CC: Thomas Gleixner t...@linutronix.de --- arch/arm/mach-davinci/gpio.c | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm

[PATCH 2/5] arm: davinci: Allow EVENTQ_0 as a default queue

2011-07-07 Thread Ido Yariv
on platforms which don't specify a default_queue member, the default_queue member was modified to be a pointer to enum dma_event_q. A NULL value means that this member was not specified. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/dm365.c |4 +++- arch/arm/mach

[PATCH 3/5] arm: davinci: DA850: Set a default queue for CC1

2011-07-07 Thread Ido Yariv
If a default queue is not set for a channel controller, EVENTQ_1 is used. The second channel controller has only one event queue, and so, EVENTQ_1 is an invalid option. Fix this by explicitly setting the default queue for CC1 to be EVENTQ_0. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm

[PATCH 4/5] arm: davinci: mmc: Add support for set_power callback

2011-07-07 Thread Ido Yariv
powering down/up. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/include/mach/mmc.h |3 +++ drivers/mmc/host/davinci_mmc.c | 13 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/include/mach/mmc.h b/arch/arm/mach

[PATCH 5/5] arm: davinci: DA850: Add wl12xx expansion board support

2011-07-07 Thread Ido Yariv
board. Signed-off-by: Ido Yariv i...@wizery.com --- arch/arm/mach-davinci/Kconfig| 31 +++ arch/arm/mach-davinci/board-da850-evm.c | 128 ++ arch/arm/mach-davinci/da850.c|9 ++ arch/arm/mach-davinci/include/mach/mux.h | 10 +++ 4