[PATCH 3/3 v4] musb: AM35x: Workaround for fifo read issue

2010-09-29 Thread Ajay Kumar Gupta
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- No change from v3. drivers/usb/musb/am35x.c | 30 ++ drivers/usb/musb/musb_core.c |2 ++ 2

[PATCH 1/3 v4] AM35x: Add musb support

2010-09-29 Thread Ajay Kumar Gupta
AM35x has musb interface (version 1.8) and uses CPPI41 DMA engine. It has USB phy built inside the IP itself. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch set created against latest linus's tree + Felipe's 14 patch set for v2.6.37. Changes from v3, - Removed the new config

[PATCH 2/3 v4] musb: add musb support for AM35x

2010-09-29 Thread Ajay Kumar Gupta
musb issues. one such workaround is for bytewise read issue on AM35x. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v3, (Mostly based on Sergei's review comment) - Cleaned up the clock related coding. - Removed the setting of musb-a_wait_vcon

[PATCH 1/3 v5] AM35x: Add musb support

2010-09-29 Thread Ajay Kumar Gupta
AM35x has musb interface (version 1.8) and uses CPPI41 DMA engine. It has USB phy built inside the IP itself. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch set created against latest linus's tree + Felipe's 14 patch set for v2.6.37. No change from v4. arch/arm/mach-omap2/board

[PATCH 3/3 v5] musb: AM35x: Workaround for fifo read issue

2010-09-29 Thread Ajay Kumar Gupta
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- No logical change from v4. drivers/usb/musb/am35x.c | 30 ++ drivers/usb/musb/musb_core.c |2

[PATCH 2/3 v5] musb: add musb support for AM35x

2010-09-29 Thread Ajay Kumar Gupta
musb issues. one such workaround is for bytewise read issue on AM35x. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v4: - Added musb-phy_clock which is required to cleanup the clock related stuff. - Renamed few macros - Modified

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

2010-11-22 Thread Ajay Kumar Gupta
Fixes compilation error as control.h APIs are not available to drivers/usb/musb/am35x.c file. Earlier it was getting included from plat/control.h but now moved to new location by another pacth. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against latest Linus's tree

[PATCH 2/2] musb_gadget: fix compilation warning

2010-11-22 Thread Ajay Kumar Gupta
Fixes below compilation warning when musb driver is compiled for PIO mode. drivers/usb/musb/musb_gadget.c: In function 'musb_g_rx': drivers/usb/musb/musb_gadget.c:840: warning: label 'exit' defined but not used Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created

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

2010-12-03 Thread Ajay Kumar Gupta
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. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against today's linus tree. arch/arm/mach

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

2010-12-06 Thread Ajay Kumar Gupta
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. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against recent Linus's tree. Changes from v1

[PATCH 1/2] AM35x: Add missing GPIO mux config for EHCI port

2010-02-22 Thread Ajay Kumar Gupta
Adding GPIO mux config used for PHY reset of EHCI port on base board. We get below failure message without this patch, hub 1-0:1.0: unable to enumerate USB device on port 1 Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/board-am3517evm.c |3 +++ 1 files changed, 3

[PATCH 2/2] AM35x: Enable OMAP_MUX in defconfig

2010-02-22 Thread Ajay Kumar Gupta
Enabling OMAP_MUX in defconfig as it is required for EHCI to work. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/configs/am3517_evm_defconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/configs/am3517_evm_defconfig b/arch/arm/configs

[PATCH] musb: fix power field to hold all possible values

2010-02-23 Thread Ajay Kumar Gupta
MUSB can supply upto 500mA such as, AM3517 and OMAP3EVM Rev =E and thus the 'power' field has to hold values above 255. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/plat-omap/include/plat/usb.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm

[PATCH] musb: Add extvbus in musb_board_data

2010-02-23 Thread Ajay Kumar Gupta
EXTVBUS programming is required by OMAP3EVM REV =E to supply 500mA power so adding a flag which can be used by musb driver to program EXTVBUS. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Created against l-o master branch and on top of below patch. [PATCH] musb: fix power field to hold

[PATCH] AM35x: Add musb support

2010-02-24 Thread Ajay Kumar Gupta
AM35x has musb interface (version 1.8) and uses CPPI41 DMA engine. It supports upto 500mA of power in host mode. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Created against latest l-o master branch and below patches. [1] AM35xx: Add clock support for new modules on AM35xx [2] OMAP2/3

[PATCH 1/2] musb: add musb support for AM35x

2010-02-24 Thread Ajay Kumar Gupta
AM35x has musb interface and uses CPPI4.1 DMA engine. Current patch supports only PIO mode and there are on-going discussions on location of CPPI4.1 DMA. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/Kconfig |4 +- drivers/usb/musb/Makefile|4 + drivers

[PATCH 2/2] AM35x: musb: Workaround for fifo read issue

2010-02-24 Thread Ajay Kumar Gupta
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/am3517.c| 30 ++ drivers/usb/musb/musb_core.c |2 ++ 2 files changed, 32

[PATCH] musb: Add workqueue for URB giveback

2010-02-26 Thread Ajay Kumar Gupta
and further processing in giveback context. The patch tries to defer the giveback part to a workqueue and continues with the start of new request in completion path. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against latest linus's tree and all musb patches in Greg's queue

[PATCH] omap3evm: Add board revision function

2009-10-28 Thread Ajay Kumar Gupta
Added function to differentiate between the OMAP3EVM revisions. The chip-id of the ethernet PHY is being used for this purpose. Rev A to D : 0x0115 Rev = E : 0x9220 Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com Signed-off-by: Sanjeev

[PATCH 1/3] omap3evm: ehci: Add EHCI padconfig for board Rev = E

2009-10-28 Thread Ajay Kumar Gupta
purpose on EHCI interface. - GPIO21 - EHCI phy reset - GPIO22 - EHCI VBUS enable - GPIO61 - Selects EHCI port either on main board or on Mistral Daughter Card (MDC). Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/mux.c |7

[PATCH 2/3] omap3evm: ehci: Update EHCI support on OMAP3EVM (Rev = E)

2009-10-28 Thread Ajay Kumar Gupta
GPIO61 to select EHCI port either on main board or on Mistral Daughter Card (MDC). OMAP3EVM Rev E doesn't have EHCI port on main board. - Currently GPIO61 it programmed to enable EHCI port on main board only. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com

[PATCH 3/3] omap3evm: musb: Update power capability for OMAP3EVM (Rev = E)

2009-10-28 Thread Ajay Kumar Gupta
Updated the MUSB power sourcing capability for OMAP3EVM (Rev =E). MUSB interface can source 500mA on OMAP3EVM Rev = E while Rev E supports only 100mA.MUSB PHY is programmed to use external Vbus for this. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- This patch is dependent on below

[PATCH 1/2] musb: Inform user when gadget cable is disconnected

2009-11-02 Thread Ajay Kumar Gupta
Currently we don't see any message to inform user that gadget cable is successfully disconnected leading to suspicion if everything is fine at driver therefore adding an informative print message in gadget disconnect path. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb

[PATCH 2/2] musb: Remove unwanted message in boot log

2009-11-02 Thread Ajay Kumar Gupta
Removes below unnecessary log of almost 28 lines during boot. musb_hdrc: hw_ep 0shared, max 64 musb_hdrc: hw_ep 1tx, max 512 musb_hdrc: hw_ep 1rx, max 512 ... ... musb_hdrc: hw_ep 13shared, max 4096 musb_hdrc: hw_ep 14shared, max 1024 musb_hdrc: hw_ep 15shared, max 1024 Signed-off-by: Ajay Kumar

[PATCH 1/2] AM35xx: Add USB EHCI support

2009-11-04 Thread Ajay Kumar Gupta
AM3517 EVM has one EHCI interface on baseboard using port1 and another EHCI interface on UI card using port2. GPIO57 is used as port1 PHY reset system reset line is used as port2 PHY reset. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Both the patches are created against linux-omap

[PATCH 2/2] AM35xx: Enable EHCI in defconfig

2009-11-04 Thread Ajay Kumar Gupta
Enabling USB EHCI in am3517_evm_defconfig. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/configs/am3517_evm_defconfig | 153 - 1 files changed, 151 insertions(+), 2 deletions(-) diff --git a/arch/arm/configs/am3517_evm_defconfig b/arch/arm

[PATCH] omap3: ehci: Add regulator framework

2009-11-15 Thread Ajay Kumar Gupta
regulators. Regulator supply names has to be mapped in board files as 'hsusbN' where 'N' is port number and can be {0, 1 ,2}. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/host/ehci-omap.c | 36 1 files changed, 36 insertions(+), 0 deletions

[PATCH 3/7] musb: Update musb_init() call for all OMAP3 boards

2009-11-15 Thread Ajay Kumar Gupta
musb_init() has been modified to pass board specific data so updating this function call from all OMAP3 boards. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c |7 ++- arch/arm/mach-omap2/board-3430sdp.c |7 ++- arch/arm/mach

[PATCH 6/7] musb: set 'extvbus' default value to zero

2009-11-15 Thread Ajay Kumar Gupta
Default value of 'extvbus' is being set as '0' to maintain the current programming state of all the musb boards. This flag should be set to '1' for boards using external vbus supply such as, OMAP3EVM Rev =E. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-davinci/board-dm355

[PATCH 4/7] musb: Update setup_usb() call for all Davinci boards

2009-11-15 Thread Ajay Kumar Gupta
setup_usb() has been modified to pass board specific data so updating this function call from all Davinci based boards. Added struct device; to fix below compilation warning for Davinci boards. musb.h: struct device, defined within parameter list Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com

[PATCH 5/7] musb: Add 'extvbus' in musb_hdrc_board_data

2009-11-15 Thread Ajay Kumar Gupta
Some of the board might use external Vbus power supply on musb interface which would require to program ULPI_BUSCONTROL register. Adding 'extvbus' flag which can be set from such boards which will be checked at musb driver files before programming ULPI_BUSCONTROL. Signed-off-by: Ajay Kumar Gupta

[PATCH 2/7] musb: Get power (mA) from board data

2009-11-15 Thread Ajay Kumar Gupta
Different board may have different power sourcing capability and now with 'struct musb_hdrc_board_data' in place; pass this data from board files and also modify musb_core.c to get 'power' data from 'plat-board_data'. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/usb

[PATCH 1/7] musb: Add structure to get board specific data

2009-11-15 Thread Ajay Kumar Gupta
can be added to this structure later. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- include/linux/usb/musb.h | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/linux/usb/musb.h b/include/linux/usb/musb.h index d437556..6e1426c 100644

[PATCH 7/7] musb: set 'extvbus' for OMAP3EVM Rev =E

2009-11-15 Thread Ajay Kumar Gupta
MUSB interface can source 500mA on OMAP3EVM Rev = E while Rev E supports only 100mA so setting 'extvbus' flag to '1' for OMAP3EVM Rev = E. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

[PATCH 0/8] musb: Add structure 'musb_hdrc_board_data'

2009-11-17 Thread Ajay Kumar Gupta
the OMAP, Davinci and Blackfin platform based boards. [patches created against linus's tree and tested on OMAP3EVM] Regards, Ajay Ajay Kumar Gupta (8): musb: Add structure to get board specific data musb: Get power (mA) from board data musb: Update musb_init() call for all OMAP3 boards

[PATCH 5/8] musb: Add 'extvbus' in musb_hdrc_board_data

2009-11-17 Thread Ajay Kumar Gupta
Some of the board might use external Vbus power supply on musb interface which would require to program ULPI_BUSCONTROL register. Adding 'extvbus' flag which can be set from such boards which will be checked at musb driver files before programming ULPI_BUSCONTROL. Signed-off-by: Ajay Kumar Gupta

[PATCH 6/8] musb: set 'extvbus = 0' for OMAP3 boards

2009-11-17 Thread Ajay Kumar Gupta
Default value of 'extvbus' is being set as '0' to maintain the current programming state of all OMAP3 musb boards. This flag should be set to '1' for boards using external vbus supply such as, OMAP3EVM Rev =E. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/board

[PATCH 4/8] musb: Update setup_usb() call for all Davinci boards

2009-11-17 Thread Ajay Kumar Gupta
setup_usb() has been modified to pass board specific data so updating this function call from all Davinci based boards. Added struct device; to fix below compilation warning for Davinci boards. musb.h: struct device, defined within parameter list Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com

[PATCH 8/8] musb: set 'extvbus = 0' for Blackfin boards

2009-11-17 Thread Ajay Kumar Gupta
Default value of 'extvbus' is being set as '0' to maintain the current programming state of all Blackfin musb boards. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/blackfin/mach-bf527/boards/cm_bf527.c |6 ++ arch/blackfin/mach-bf527/boards/ezbrd.c|6 ++ arch

[PATCH 7/8] musb: set 'extvbus = 0' for Davinci boards

2009-11-17 Thread Ajay Kumar Gupta
Default value of 'extvbus' is being set as '0' to maintain the current programming state of all Davinci musb boards. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-davinci/board-dm355-evm.c |1 + arch/arm/mach-davinci/board-dm355-leopard.c |1 + arch/arm/mach

[PATCH 1/8] musb: Add structure to get board specific data

2009-11-17 Thread Ajay Kumar Gupta
can be added to this structure later. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- include/linux/usb/musb.h | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/linux/usb/musb.h b/include/linux/usb/musb.h index d437556..6e1426c 100644

[PATCH 2/8] musb: Get power (mA) from board data

2009-11-17 Thread Ajay Kumar Gupta
Different board may have different power sourcing capability and now with 'struct musb_hdrc_board_data' in place; pass this data from board files and also modify musb_core.c to get 'power' data from 'plat-board_data'. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb

[PATCH 3/8] musb: Update musb_init() call for all OMAP3 boards

2009-11-17 Thread Ajay Kumar Gupta
musb_init() has been modified to pass board specific data so updating this function call from all OMAP3 boards. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c |7 ++- arch/arm/mach-omap2/board-3430sdp.c |8 +++- arch/arm/mach

[PATCH 1/2 v2] musb: Add context save and restore support

2009-11-25 Thread Ajay Kumar Gupta
compatibility by adding read/write functions for registers which are not available in BlackFin Tested system suspend and resume on OMAP3EVM board. Signed-off-by: Anand Gadiyar gadi...@ti.com Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from previous version

[PATCH 1/3] musb: save dynfifo in musb struct

2009-12-14 Thread Ajay Kumar Gupta
Save dynamic FIFO read only information for later uses such as, during musb_save/restore_context functions. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_core.c |4 +++- drivers/usb/musb/musb_core.h |1 + 2 files changed, 4 insertions(+), 1 deletions

[PATCH 3/3] musb: Add 'extvbus' in musb_hdrc_platform_data

2009-12-14 Thread Ajay Kumar Gupta
Some of the board might use external Vbus power supply on musb interface which would require to program ULPI_BUSCONTROL register. Adding 'extvbus' flag which can be set from such boards which will be checked at musb driver files before programming ULPI_BUSCONTROL. Signed-off-by: Ajay Kumar Gupta

[PATCH 2/3 v3] musb: Add context save and restore support

2009-12-14 Thread Ajay Kumar Gupta
compatibility by adding read/write functions for registers which are not available in BlackFin Tested system suspend and resume on OMAP3EVM board. Signed-off-by: Anand Gadiyar gadi...@ti.com Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v2: - Saving/Restoring

[PATCH 4/4] musb: Add 'extvbus' in musb_hdrc_platform_data

2009-12-15 Thread Ajay Kumar Gupta
Some of the board might use external Vbus power supply on musb interface which would require to program ULPI_BUSCONTROL register. Adding 'extvbus' flag which can be set from such boards which will be checked at musb driver files before programming ULPI_BUSCONTROL. Signed-off-by: Ajay Kumar Gupta

[PATCH 3/4 v4] musb: Add context save and restore support

2009-12-15 Thread Ajay Kumar Gupta
compatibility by adding read/write functions for registers which are not available in BlackFin Tested system suspend and resume on OMAP3EVM board. Signed-off-by: Anand Gadiyar gadi...@ti.com Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v3: - Removed force

[PATCH 2/4] musb: save dynfifo in musb struct

2009-12-15 Thread Ajay Kumar Gupta
Save dynamic FIFO read only information for later uses during musb_save/restore_context functions. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_core.c |4 +++- drivers/usb/musb/musb_core.h |1 + 2 files changed, 4 insertions(+), 1 deletions(-) diff --git

[PATCH 1/4] musb: get rid of unneeded musb-config-dyn_fifo

2009-12-15 Thread Ajay Kumar Gupta
We can get dynamic FIFO information from CONFIGDATA register and thus there is no need for any user defiend dyn_fifo. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_core.c | 19 --- include/linux/usb/musb.h |1 - 2 files changed, 4

[PATCH] ehci: fix missing kfree in remove path also

2009-12-16 Thread Ajay Kumar Gupta
Added missing kfree() in ehci_hcd_omap_remove(). Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/host/ehci-omap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 74d07f4..2460f0d 100644

[PATCH] musb: Add new fifo table for a OMAP3 errata

2009-12-21 Thread Ajay Kumar Gupta
. As a workaround to it, adding a new FIFO config (5) fitting well within first 8K which can be used for such use cases. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_core.c | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff

[PATCH 1/3] usb: musb: fix bug in musb_free() w.r.t free_irq()

2009-01-07 Thread Ajay Kumar Gupta
Fixes insert module failure as free_irq() was not done in previous rmmod. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_core.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c

[PATCH] usb: musb: adding nop usb transceiver

2009-01-08 Thread Ajay Kumar Gupta
() will return a valid ransceiver. NOP transceiver device is required to be registered using platform_device_register() in platform files. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/otg/Kconfig |8 ++ drivers/usb/otg/Makefile|1 + drivers/usb/otg/nop-usb

[PATCH] usb: musb: fix bug in musbhsdma programming

2009-01-08 Thread Ajay Kumar Gupta
Mode bit should be set based on function parameter mode of configure_channel() function. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musbhsdma.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb

[PATCH v2] usb: musb: fix bug in musbhsdma programming

2009-01-08 Thread Ajay Kumar Gupta
Mode bit should be set based on function parameter mode of configure_channel() function. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Original version of this patch is at, http://marc.info/?l=linux-usbm=123141793611158w=2 drivers/usb/musb/musbhsdma.c |2 +- 1 files changed, 1

[PATCH v2] usb: otg: adding nop usb transceiver

2009-02-06 Thread Ajay Kumar Gupta
() will return a valid transceiver. NOP transceiver device should be registered by calling usb_nop_xceiv_register() from platform files. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/otg/Kconfig |8 ++ drivers/usb/otg/Makefile|1 + drivers/usb/otg/nop-usb-xceiv.c

[PATCH 3/3] usb: musb: NAK timeout scheme on bulk reserved ep

2009-02-06 Thread Ajay Kumar Gupta
timeout interrupt at musb controller from such devices. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_host.c | 63 -- 1 files changed, 60 insertions(+), 3 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb

[PATCH 1/3] usb: musb: adding high bandwidth support

2009-02-06 Thread Ajay Kumar Gupta
Tested with Creative (Live! Cam Optia) USB camera which uses high bandwidth isochronous interface.FIFO table has been updated for Rx high bandwidth case. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_core.c | 18 drivers/usb/musb/musb_host.c

[PATCH 2/3] usb: musb: fix bug in musb_start_urb

2009-02-06 Thread Ajay Kumar Gupta
urb-transfer_buffer_length and urb-transfer_buffer should be updated based on urb-actual_length.For a fresh and first time urb, actual_length will be zero but for urbs which has been stopped and restarted (as bulk nak scheme does) actual_length may not be zero. Signed-off-by: Ajay Kumar Gupta

[PATCH] MUSB: Removes compilation warning in gadget mode

2008-09-04 Thread Ajay Kumar Gupta
Fixes compilation warning when musb is configured in gadget mode. Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- drivers/usb/musb/omap2430.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 472c304

[PATCH] MUSB: Fix for isochronous IN transfer

2008-09-07 Thread Ajay Kumar Gupta
Fixes blurred capture images in dma mode. Isochronous error field in urb and source data buffer pointer were not updated properly in dma mode. Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 08e421f..a481d54

[PATCH] MUSB: Support for high bandwidth isochronous transfer

2008-09-07 Thread Ajay Kumar Gupta
Enables support for camera (as creative) requiring high bandwidth isochronous transfer. Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- drivers/usb/musb/musb_core.c | 18 +- drivers/usb/musb/musb_host.c | 32 +--- 2 files changed, 30

[PATCH] MUSB: Fix for kernel panic with multiple bulk transfer

2008-10-01 Thread Ajay Kumar Gupta
which are multiplexed on one hardware endpoint. musb_advance_schedule() has been removed from musb_cleanup_urb() and added to musb_urb_dequeue(). musb_h_disable() has been modified to take care of multiple qh on same hw_ep scenario. Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] CC: Romit Dasgupta

[PATCH] MUSB: BULK request on different available endpoints

2008-10-06 Thread Ajay Kumar Gupta
of an endpoint. Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- drivers/usb/musb/musb_host.c | 94 -- drivers/usb/musb/musb_host.h |1 + 2 files changed, 55 insertions(+), 40 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb

[PATCH] MUSB: Fixes endpoint allocation logic

2008-10-07 Thread Ajay Kumar Gupta
musb-periodic[] flag was getting set for an endpoint even when only rx or tx is used.This patch adds two field musb-in[16] and musb-out[16] in place of musb-periodic[32] which will enable endpoint allocation flag setting on rx/tx basis of an endpoint. Signed-off-by: Ajay Kumar Gupta [EMAIL

[PATCH v2] MUSB: BULK request on different available endpoints

2008-10-07 Thread Ajay Kumar Gupta
as currently done. Switch statement case is reordered in musb_giveback() to take care of bulk request both in multiplex scenario and otherwise. NAK limit scheme has to be added for multiplexed BULK request scenario to avoid endpoint starvation due to usb/net devices. Signed-off-by: Ajay Kumar

[PATCH 2/3] musb: adding qh in_list and out_list in struct hw_ep

2008-10-30 Thread Ajay Kumar Gupta
] Signed-off-by: Swaminathan S [EMAIL PROTECTED] Signed-off-by: Thomas Abraham [EMAIL PROTECTED] Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- drivers/usb/musb/musb_core.c |6 +++--- drivers/usb/musb/musb_core.h |7 --- drivers/usb/musb/musb_host.c | 36

[PATCH 3/3] musb: fixes vbus off issue after disconnect

2008-10-30 Thread Ajay Kumar Gupta
. This patch puts is_otg_enabled() check before scheduling a switch-off timer in disconnect path. Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- drivers/usb/musb/musb_core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb

[PATCHv2 2/2] musb: adding qh in_list and out_list in struct hw_ep

2008-11-04 Thread Ajay Kumar Gupta
] Signed-off-by: Swaminathan S [EMAIL PROTECTED] Signed-off-by: Thomas Abraham [EMAIL PROTECTED] Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- drivers/usb/musb/musb_core.c |6 +++--- drivers/usb/musb/musb_core.h |9 ++--- drivers/usb/musb/musb_host.c | 36

[PATCHv2 1/2] musb: NAK timeout scheme on bulk reserved ep

2008-11-04 Thread Ajay Kumar Gupta
timeout interrupt at musb controller from such devices. Signed-off-by: Ravi Babu [EMAIL PROTECTED] Signed-off-by: Swaminathan S [EMAIL PROTECTED] Signed-off-by: Thomas Abraham [EMAIL PROTECTED] Signed-off-by: Ajay Kumar Gupta [EMAIL PROTECTED] --- These patches have been created against latest omap

[PATCH] ehci: omap: fix kernel panic with rmmod

2010-03-18 Thread Ajay Kumar Gupta
Sets the regulator values to NULL if they are not defined. This is required to fix the kernel panic in exit path when EHCI module is removed on the platforms where EHCI regulator are not set. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/host/ehci-omap.c |6 -- 1

[PATCH 2/2] usb: ehci-omap: fix Si version related programming

2010-05-04 Thread Ajay Kumar Gupta
AM3517 is based on ES3.1 thus ES2.x related programming is invalid for it so updating ES2.x programming. Also fixed below checkpatch warning: WARNING: unnecessary whitespace before a quoted newline Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/host/ehci-omap.c |4 ++-- 1

[PATCH 1/2] usb: ehci-omap: fix compilation warning

2010-05-04 Thread Ajay Kumar Gupta
Fixes below compilation warning: drivers/usb/host/ehci-hcd.c:425: warning: 'ehci_port_power' defined but not used Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/host/ehci-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host

[PATCH] AM35x: fix UI card EHCI port and LCD dependency

2010-05-04 Thread Ajay Kumar Gupta
EHCI port on UI card and LCD share two pins (GPIO 181 and 182) thus they have to be mutually exclusive. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch adding config (CONFIG_PANEL_SHARP_LQ043T1DG01) in AM3517 defconfig is already accepted and available in linux-omap/dss2 branch

[PATCH] usb: musb: Update FIFO mode_5_cfg to accomodate 4K

2010-05-04 Thread Ajay Kumar Gupta
cameras. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_core.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 705cc4a..4e327f5 100644 --- a/drivers/usb/musb

[PATCH] OMAP3: PM: fix AM35x musb issue with AUTOIDLE bit in CONTROL_SYSCONFIG

2010-05-04 Thread Ajay Kumar Gupta
MUSB interface on AM35x stops working when we set AUTOIDLE bit (D0) in CONTROL_SYSCONFIG(0x48002010) register. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/mach-omap2/pm34xx.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 2/5] musb: use system DMA to fix Inventra DMA issue on RTL-1.4

2010-05-12 Thread Ajay Kumar Gupta
on OMAP34x/35x platforms. Another approach to use PIO mode in opposite direction would increase the cpu loading and thus using system DMA is preferred workaround. Signed-off-by: Anand Gadiyar gadi...@ti.com Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Original version of this patch can

[PATCH 5/5] musb: dma: use optimal transfer element for sdma

2010-05-12 Thread Ajay Kumar Gupta
Use optimal values of transfer element based on buffer address in system DMA programming. This would improve the performance. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musbhsdma.c | 39 +-- 1 files changed, 33 insertions(+), 6

[PATCH 4/5] musb: use system DMA for unaligned buffers on RTL = 1.8

2010-05-12 Thread Ajay Kumar Gupta
it by updating it based on 'request-actual' length. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/Kconfig |6 +++ drivers/usb/musb/musb_gadget.c | 21 +++- drivers/usb/musb/musbhsdma.c | 75 ++-- 3 files changed

[PATCH 1/3 v2] AM35x: Add musb support

2010-05-14 Thread Ajay Kumar Gupta
AM35x has musb interface (version 1.8) and uses CPPI41 DMA engine. It supports upto 500mA of power in host mode. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v1: - Added PHY clock and OTGMODE settings in board files arch/arm/mach-omap2/board-am3517evm.c | 42

[PATCH 3/3 v2] musb: AM35x: Workaround for fifo read issue

2010-05-14 Thread Ajay Kumar Gupta
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/am3517.c| 30 ++ drivers/usb/musb/musb_core.c |2 ++ 2 files changed, 32

[PATCH 2/3 v2] musb: add musb support for AM35x

2010-05-14 Thread Ajay Kumar Gupta
AM35x is based on OMAP35x but has an updated musb interface which uses CPPI4.1 DMA engine. Current patch supports only PIO mode transfers. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v1: (Based on Sergei's comment) - Moved PHY clock and OTGMODE settings to board

[PATCH] musb: host: release dma channels if no active io

2010-05-14 Thread Ajay Kumar Gupta
Currently DMA channels are allocated and they remain allocated even if there is no active data transfer. Added channel_release() whenever there is no pending request. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- This patch is against today's linus's tree. drivers/usb/musb/musb_host.c

[PATCH] OMAP3: musb: remove unneeded inits in musb_plat

2010-05-14 Thread Ajay Kumar Gupta
Removed unneeded 'power' and 'mode' field from musb_config as they are now getting updated by the values provided from board files at usb_musb_init(). Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against today's linux-omap/master. arch/arm/mach-omap2/usb-musb.c | 13

[PATCH] OMAP3: musb: remove unneeded include files

2010-05-15 Thread Ajay Kumar Gupta
Removed include files from usb-musb.c which were not required. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against latest linux-omap/master. arch/arm/mach-omap2/usb-musb.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 3/3] musb: AM35x: Workaround for fifo read issue

2010-05-17 Thread Ajay Kumar Gupta
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue Changes from v2: - fixed multipline comment style drivers

[PATCH 1/3 v3] AM35x: Add musb support

2010-05-17 Thread Ajay Kumar Gupta
AM35x has musb interface (version 1.8) and uses CPPI41 DMA engine. It supports upto 500mA of power in host mode. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue and patches available in linux-omap/for-next branch. arch

[PATCH 2/3 v3] musb: add musb support for AM35x

2010-05-17 Thread Ajay Kumar Gupta
AM35x has musb interface and uses CPPI4.1 DMA engine. Current patch supports only PIO mode and there are on-going discussions on location of CPPI4.1 DMA. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue Changes from v2

[PATCH 6/6] musb: dma: use optimal transfer element for sdma

2010-05-17 Thread Ajay Kumar Gupta
Use optimal values of transfer element based on buffer address in system DMA programming. This would improve the performance. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musbhsdma.c | 29 ++--- 1 files changed, 26 insertions(+), 3 deletions

[PATCH 5/6] musb: gadget: fix tx transfer path for mode0 operation

2010-05-17 Thread Ajay Kumar Gupta
fail the io if Tx transfer is done in mode-0. Fixed it by updating it based on 'request-actual' length. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_gadget.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/drivers/usb/musb

[PATCH 1/6] musb: save OTG base physical address

2010-05-17 Thread Ajay Kumar Gupta
OTG base physical address is required in calculating physical address of endpoint FIFO which is needed by system dma. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue drivers/usb/musb/musb_core.c |6 -- drivers/usb

[PATCH 3/6] musb: add function to check if Inventra DMA used

2010-05-17 Thread Ajay Kumar Gupta
Added is_inventra_dma_enabled() funtion which would be required for adding workaround for Inventra DMA issues. It can also be used at other places instead of #ifdefs. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_dma.h |6 ++ 1 files changed, 6 insertions

[PATCH 2/6 v2] musb: use system DMA to fix Inventra DMA issue on RTL-1.4

2010-05-17 Thread Ajay Kumar Gupta
Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue Changes from v1: - Added wrapper function to make it compilable for BlackFins drivers/usb/musb/Kconfig |9 +++ drivers/usb/musb/musbhsdma.c | 132

[PATCH 4/6] musb: use system DMA for unaligned buffers on RTL = 1.8

2010-05-17 Thread Ajay Kumar Gupta
device side CDC/RNDIS. Host side would require change in Tx programming path for mode-0 operation when transfer length is more than packet size. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue Changes from v1: - Added

[PATCH 6/6 v2] musb: dma: use optimal transfer element for sdma

2010-05-18 Thread Ajay Kumar Gupta
Use optimal values of transfer element based on buffer address in system DMA programming. This would improve the performance. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue Changes from v1: - fixed extra identation

[PATCH 3/3 v2] musb: AM35x: Workaround for fifo read issue

2010-05-18 Thread Ajay Kumar Gupta
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Patch created against linus'tree + all musb patches in Greg's queue Changes from v1: - removed unnecessary parens

[PATCH 1/3 v3] AM35x: Add musb support

2010-05-25 Thread Ajay Kumar Gupta
read issue on AM35x. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v2: - Added CONFIG_ARCH_AMx arch/arm/mach-omap2/Kconfig |1 + arch/arm/mach-omap2/board-am3517evm.c | 43 + arch/arm/mach-omap2/usb-musb.c|4

[PATCH 3/3 v3] musb: AM35x: Workaround for fifo read issue

2010-05-25 Thread Ajay Kumar Gupta
AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- Changes from v2: - Added CONFIG_ARCH_AMx drivers/usb/musb/am3517.c| 30 ++ drivers/usb/musb

  1   2   3   >