There is some registers defined in da8xx.c though they are not used.
These registers are also defined and used in musb_cppi41.c
Remove these defines from da8xx.c.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 3 ---
1 file changed, 3 deletions(-)
The way to configure the DMA mode on DA8xx is different from DSPS.
Add a new function to configure DMA mode on DA8xx and use a callback
to call the right function based on the platform.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.
the number of channels to 4 for DA8xx
- Remove duplicated defines
Changes in v3:
- Fix a stupid type (two NULL check reversed)
Alexandre Bailon (4):
usb: musb: musb_cppi41: Fix the address of teardown and autoreq
registers
usb: musb: musb_cppi41: Fix cppi41_set_dma_mode() for DA8xx
usb: musb
Currently, the number of channels is set to 15 but in the case of DA8xx,
the number of channels is 4.
Update the driver to configure the number of channels at runtime.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.
The DA8xx and DSPS platforms don't use the same address for few registers.
On Da8xx, this is causing some issues (e.g. teardown that doesn't work).
Configure the address of the register during the init and use them instead
of constants.
Reported-by: nsek...@ti.com
Signed-off-by: Alexandre Bailon
On 09/20/2017 11:21 AM, Sergei Shtylyov wrote:
> Hello!
>
> On 9/20/2017 10:35 AM, Alexandre Bailon wrote:
>
>> Currently, the number of channels is set to 15 but in the case of DA8xx,
>> the number of channels is 4.
>> Update the driver to configure the
The way to configure the DMA mode on DA8xx is different from DSPS.
Add a new function to configure DMA mode on DA8xx and use a callback
to call the right function based on the platform.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.
There is some registers defined in da8xx.c though they are not used.
These registers are also defined and used in musb_cppi41.c
Remove these defines from da8xx.c.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 3 ---
1 file changed, 3 deletions(-)
Currently, the number of channels is set to 15 but in the case of DA8xx,
the number of channels is 4.
Update the driver to configure the number of channels at runtime.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.
The DA8xx and DSPS platforms don't use the same address for few registers.
On Da8xx, this is causing some issues (e.g. teardown that doesn't work).
Configure the address of the register during the init and use them instead
of constants.
Reported-by: nsek...@ti.com
Signed-off-by: Alexandre Bailon
the number of channels to 4 for DA8xx
- Remove duplicated defines
Alexandre Bailon (4):
usb: musb: musb_cppi41: Fix the address of teardown and autoreq
registers
usb: musb: musb_cppi41: Fix cppi41_set_dma_mode() for DA8xx
usb: musb: musb_cppi41: Configure the number of channels for DA8xx
usb
On 08/15/2017 12:12 PM, Sergei Shtylyov wrote:
> Hello!
>
> On 8/13/2017 3:04 PM, Alexandre Bailon wrote:
>
>> The DA8xx and DSPS platforms don't use the same address for few
>> registers.
>> On Da8xx, this is causing some issues (e.g. teardown that doesn't w
Hi Bin, Sekhar
On 09/07/2017 07:16 PM, Bin Liu wrote:
> On Mon, Sep 04, 2017 at 06:32:11PM +0530, Sekhar Nori wrote:
>> On Monday 14 August 2017 07:06 PM, Sekhar Nori wrote:
>>> On Monday 14 August 2017 07:01 PM, Sekhar Nori wrote:
>>>> Hi,
>>>>
>>
The DA8xx and DSPS platforms don't use the same address for few registers.
On Da8xx, this is causing some issues (e.g. teardown that doesn't work).
Configure the address of the register during the init and use them instead
of constants.
Reported-by: nsek...@ti.com
Signed-off-by: Alexandre Bailon
The way to configure the DMA mode on DA8xx is different from DSPS.
Add a new function to configure DMA mode on DA8xx and use a callback
to call the right function based on the platform.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.
intends to fix the teardown and to correctly program
the DMA mode.
This series has been roughly tested.
I have only tried it on the DA580 LCK and the BeagleBone Black.
Only the device mode (msc and ecm) have been tested.
Alexandre Bailon (2):
usb: musb: musb_cppi41: Fix the address of teardown
Hi Sekhar,
On 07/21/2017 05:18 PM, Alexandre Bailon wrote:
> Hi Sekhar,
>
> On 07/10/2017 01:00 PM, Sekhar Nori wrote:
> > On Thursday 06 July 2017 10:43 PM, Alexandre Bailon wrote:
> >> On 06/29/2017 03:50 PM, Sekhar Nori wrote:
> >>> Hi Alexandre, Bin,
>
Hi Sekhar,
On 07/10/2017 01:00 PM, Sekhar Nori wrote:
> On Thursday 06 July 2017 10:43 PM, Alexandre Bailon wrote:
>> On 06/29/2017 03:50 PM, Sekhar Nori wrote:
>>> Hi Alexandre, Bin,
>>>
>>> With latest linux-next, I see a warning dump when I remove g_zero[1
On 06/29/2017 03:50 PM, Sekhar Nori wrote:
> Hi Alexandre, Bin,
>
> With latest linux-next, I see a warning dump when I remove g_zero[1] on
> OMAP-L138 LCDK board. I am building the kernel with davinci_all_defconfig.
>
> It is not present in latest mainline because the warnings are introduced
>
If dma_request_slave_channel() failed to return a channel,
then the driver will print an error and request to defer probe,
regardless of the cause of the failure.
Defer if the DMA is not ready yet otherwise print an error.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
Reviewed-by:
This adds the CPPI 4.1 DMA controller to the USB OTG controller.
Changes since v2:
- Fixed the the property reg-names (had glue register defined)
- Removed few useless property
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
arch/arm/boot/dts/da850.dts
If dma_request_slave_channel() failed to return a channel,
then the driver will print an error and request to defer probe,
regardless of the cause of the failure.
Defer if the DMA is not ready yet otherwise print an error.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drive
If dma_request_slave_channel() failed to return a channel,
then the driver will print an error and request to defer probe,
regardless of the cause of the failure.
Only defer if the DMA is not ready yet and print an error to explain
that we are deferring probe.
Signed-off-by: Alexandre Bailon
On 05/01/2017 04:47 PM, Bin Liu wrote:
Hi,
On Fri, Apr 28, 2017 at 06:04:54PM +0200, Alexandre Bailon wrote:
If dma_request_slave_channel() failed to return a channel,
then the driver will print an error and request to defer probe.
Update the error message to explain we are defrering probe
If dma_request_slave_channel() failed to return a channel,
then the driver will print an error and request to defer probe.
Update the error message to explain we are defrering probe.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.c | 1 +
1 file c
On 04/07/2017 06:15 PM, Alexandre Bailon wrote:
On 04/07/2017 04:36 PM, Sekhar Nori wrote:
On Wednesday 05 April 2017 10:47 PM, Alexandre Bailon wrote:
The CPPI 4.1 DMA is sharing its clock with the USB OTG,
and most of the time, the clock will be enabled by USB.
But during the init
On 04/07/2017 04:36 PM, Sekhar Nori wrote:
On Wednesday 05 April 2017 10:47 PM, Alexandre Bailon wrote:
The CPPI 4.1 DMA is sharing its clock with the USB OTG,
and most of the time, the clock will be enabled by USB.
But during the init of the DMA, USB is not enabled (waiting for DMA
-by: Alexandre Bailon <abai...@baylibre.com>
---
arch/arm/mach-davinci/da830.c | 6 ++
arch/arm/mach-davinci/da850.c | 6 ++
2 files changed, 12 insertions(+)
diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c
index 073c458..bd88470 100644
--- a/arch/arm/mach-d
On 04/04/2017 08:16 AM, Sekhar Nori wrote:
On Wednesday 29 March 2017 09:39 PM, Alexandre Bailon wrote:
The CPPI 4.1 DMA is sharing its clock with the USB OTG,
and most of the time, the clock will be enabled by USB.
But during the init of the DMA, USB is not enabled (waiting for DMA
devm_*()")
Reported-by: Tony Lindgren <t...@atomide.com>
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
index 0be56c9..f7e965f 10
On 04/03/2017 04:59 PM, Bin Liu wrote:
On Wed, Mar 29, 2017 at 06:24:31PM +0200, Alexandre Bailon wrote:
Currently, only the PIO mode is supported.
This add support of CPPI 4.1 to DA8xx.
As the In DA8xx the CPPI 4.1 DMA is a part of the USB.
Create the CPPI 4.1 device as a child of USB.
Signed
The DMA may hang up if a teardown is initiated while an endpoint is still
active (Advisory 2.3.27 of DA8xx errata).
To workaround this issue, add a delay before to initiate the teardown.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 2 +-
drive
In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line.
Update the driver to request a shared irq.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_
Currently, only the PIO mode is supported.
This add support of CPPI 4.1 to DA8xx.
As the In DA8xx the CPPI 4.1 DMA is a part of the USB.
Create the CPPI 4.1 device as a child of USB.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/Kconfig | 4 ++--
drivers/us
Hello Serge,
On 03/29/2017 06:16 PM, Sergei Shtylyov wrote:
Hello!
On 03/29/2017 07:09 PM, Alexandre Bailon wrote:
The CPPI 4.1 DMA is sharing its clock with the USB OTG,
and most of the time, the clock will be enabled by USB.
But during the init of the DMA, USB is not enabled (waiting
k and IRQ management has been moved to MUSB DA8xx glue
(was in CPPI 4.1 driver)
- I have added a partial support PM runtime. The goal was to use PM
runtime to manage clock of MUSB and CPPI 4.1 (they use the same clock).
- CPPI 4.1 is now achild of MUSB DA8xx glue.
Alexandre Bailon (3):
usb:
:
This patch is to apply instead of:
"ARM: davinci: Make the usb20 clock available to PM runtime"
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
arch/arm/mach-davinci/da830.c| 1 +
arch/arm/mach-davinci/da850.c| 1 +
arch/arm/mach-davinci/da8xx-dt.c | 2 ++
3 files chang
On 03/27/2017 07:38 PM, Grygorii Strashko wrote:
On 03/27/2017 11:39 AM, Alexandre Bailon wrote:
Hello Grygorii,
On 03/24/2017 06:26 PM, Grygorii Strashko wrote:
On 03/24/2017 09:36 AM, Alexandre Bailon wrote:
Currently, MUSB DA8xx glue driver doesn't have PM runtime support.
Because
Hello Grygorii,
On 03/24/2017 06:26 PM, Grygorii Strashko wrote:
On 03/24/2017 09:36 AM, Alexandre Bailon wrote:
> Currently, MUSB DA8xx glue driver doesn't have PM runtime support.
> Because the CPPI 4.1 is using the same clock as MUSB DA8xx and
> CPPI 4.1 is a child of MUSB DA8xx
In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line.
Update the driver to request a shared irq.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_
.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 27 ---
1 file changed, 8 insertions(+), 19 deletions(-)
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index ed28afd..89e12f6 100644
--- a/drivers/usb/musb/da8xx.c
Currently, only the PIO mode is supported.
This add support of CPPI 4.1 to DA8xx.
As the In DA8xx the CPPI 4.1 DMA is a part of the USB.
Create the CPPI 4.1 device as a child of USB.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/Kconfig | 4 ++--
drivers/us
The DMA may hang up if a teardown is initiated while an endpoint is still
active (Advisory 2.3.27 of DA8xx errata).
To workaround this issue, add a delay before to initiate the teardown.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 2 +-
drive
ock of MUSB and CPPI 4.1 (they use the same clock).
- CPPI 4.1 is now achild of MUSB DA8xx glue.
Alexandre Bailon (4):
usb: musb: Use shared irq
usb: musb: Add support of CPPI 4.1 DMA controller to DA8xx
usb: musb: musb_cppi41: Workaround DMA stall issue during teardown
usb: musb: da8xx: A
> time the next transfer is scheduled. So skip this polling workaround for
> Isoch transfer.
>
> Fixes: a655f481d83d6 ("usb: musb: musb_cppi41: handle pre-mature TX complete
> interrupt")
> Cc: <sta...@vger.kernel.org> #4.1+
> Reported-by: Alexandre Bailon <abai.
ock of MUSB and CPPI 4.1 (they use the same clock).
- CPPI 4.1 is now achild of MUSB DA8xx glue.
Alexandre Bailon (4):
usb: musb: Use shared irq
usb: musb: Add support of CPPI 4.1 DMA controller to DA8xx
usb: musb: musb_cppi41: Workaround DMA stall issue during teardown
usb: musb: da8xx: A
.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 27 ---
1 file changed, 8 insertions(+), 19 deletions(-)
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index ed28afd..89e12f6 100644
--- a/drivers/usb/musb/da8xx.c
The DMA may hang up if a teardown is initiated while an endpoint is still
active (Advisory 2.3.27 of DA8xx errata).
To workaround this issue, add a delay before to initiate the teardown.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 2 +-
drive
In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line.
Update the driver to request a shared irq.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_
Currently, only the PIO mode is supported.
This add support of CPPI 4.1 to DA8xx.
As the In DA8xx the CPPI 4.1 DMA is a part of the USB.
Create the CPPI 4.1 device as a child of USB.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/Kconfig | 4 ++--
drivers/us
Some constants are defined and use by the driver whereas they are
specifics to AM335x.
Add new variables to the glue layer, initialize them with the constants,
and use them in the driver.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 20 ++---
-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
index 34a8156..d1b5569 100644
--- a/drivers/dma/cppi41.c
+++ b/drivers/dma/cppi41.c
@@ -149,7
Despite the driver is already using DT to get the number of channels,
init_sched() is using an hardcoded value to get it.
Use DT to get the number of channels.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 20
1 file changed, 12 inse
.
Alexandre Bailon (5):
dmaengine: cppi41: Remove usbss_mem
dmaengine: cppi41: rename platform variables
dmaengine: cppi41: Move some constants to glue layer
dmaengine: cppi41: init_sched(): Get number of channels from DT
dmaengine: cppi41: Remove isr callback from glue layer
drivers/dma
All the platform code to manage IRQ has been moved to MUSB,
and now the interrupt handler is completely generic.
Remove the isr callback that is not useful anymore.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 4 +---
1 file changed, 1 insertion
ed because they were no required
anymore because CPPI 4.1 driver has been made more generic.
- In v1, the driver were managing the clock for DA8xx paltform.
This is not needed as CPPI 4.1 will be a child of MUSB DA8xx glue,
we can use PM runtime and let the DA8xx glue driver manage it.
Alexan
The DA8xx has a CPPI 4.1 DMA controller.
This is add the glue layer required to make it work on DA8xx.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/Kconfig | 6 +++---
drivers/dma/cppi41.c | 23 +++
2 files changed, 26 insertions(+), 3 del
get some when I run some corner case.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
index 5c501da..9fdd824 100644
--- a/drivers/dma/cppi41.c
This adds the CPPI 4.1 DMA controller to the USB OTG controller.
Changes since v4:
- Fix the overlaping address between usb and cppi41 nodes.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
arch/arm/boot/dts/da850.dtsi | 27 ++-
1 file changed, 26 inse
DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx CPPI 4.1 DMA controller.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
Acked-by: Rob Herring <r...@kernel.org>
---
.../devicetree/bindings/usb/da8xx-usb.txt | 41 +-
1 file changed, 40 inse
Since USB20 subsystem uses just one clock, there is no need of a con_id,
so we are using NULL.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
Suggested-by: Sekhar Nori <nsek...@ti.com>
---
arch/arm/mach-davinci/da830.c | 2 +-
arch/arm/mach-davinci/da850.c | 2 +-
a
I 4.1 (they use the same clock).
- CPPI 4.1 is now achild of MUSB DA8xx glue.
Alexandre Bailon (5):
usb: musb: da8xx: Remove CPPI 3.0 quirk and methods
usb: musb: Use shared irq
usb: musb: Add support of CPPI 4.1 DMA controller to DA8xx
usb: musb: musb_cppi41: Workaround DMA stall issue duri
or DMA")
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
Acked-by: Sergei Shtylyov <sergei.shtyl...@cogentembedded.com>
Acked-by: Tony Lindgren <t...@atomide.com>
---
drivers/usb/musb/da8xx.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drive
In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line.
Update the driver to request a shared irq.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_
The DMA may hang up if a teardown is initiated while an endpoint is still
active (Advisory 2.3.27 of DA8xx errata).
To workaround this issue, add a delay before to initiate the teardown.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 2 +-
drive
Currently, only the PIO mode is supported.
This add support of CPPI 4.1 to DA8xx.
As the In DA8xx the CPPI 4.1 DMA is a part of the USB.
Create the CPPI 4.1 device as a child of USB.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/Kconfig | 4 ++--
drivers/us
.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 23 ++-
1 file changed, 6 insertions(+), 17 deletions(-)
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index d87fb9b..bebc9ed 100644
--- a/drivers/usb/musb/da8xx.c
driver
perform some action such as acknowledge the interrupt that may be fired
during a teardown.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/musb/musb_cppi
Currently, the CPPI 4.1 driver is not completely generic and
only works on DSPS. This is because of IRQ management.
Add a callback to dma_controller that could be invoked on DMA completion
to acknowledge the IRQ.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/us
A pointer to musb is now present in the dma_controller structure.
Remove the one present in cppi41_dma_controller structure.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_cppi41.c | 29 +
1 file changed, 13 insertions(
A pointer to musb is now present in the dma_controller structure.
Remove the one present in tusb_omap_dma structure.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/tusb6010_omap.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drive
A pointer to musb is now present in the dma_controller structure.
Remove the one present in cppi structure.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/cppi_dma.c | 26 +-
drivers/usb/musb/cppi_dma.h | 1 -
2 files changed, 13 inse
nd the DMA function introduced in musb_dsps with #ifdef / #endif.
Changes in v2:
- Fix some typo in commit messages
- Add more explanation about some changes made by patch 2 in commit message
Alexandre Bailon (6):
usb: musb: dma: Add a DMA completion platform callback
usb: musb: cppi41: Dete
the interrupt management to DSPS driver.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 28 ---
drivers/usb/musb/musb_dsps.c | 81 ++--
2 files changed, 86 insertions(+), 23 deletions(-)
diff
Add usb20 to the list of clock supported by PM runtime.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
Suggested-by: Sekhar Nori <nsek...@ti.com>
---
arch/arm/mach-davinci/da830.c | 2 +-
arch/arm/mach-davinci/da850.c | 2 +-
arch/arm/mach-davinci/usb-da8xx.c | 2
This adds the CPPI 4.1 DMA controller to the USB OTG controller.
Changes since v3:
- Don't use a wildcard for compatible property.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
arch/arm/boot/dts/da850.dtsi | 25 +
1 file changed, 25 insertions(+)
diff
or DMA")
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
Acked-by: Sergei Shtylyov <sergei.shtyl...@cogentembedded.com>
Acked-by: Tony Lindgren <t...@atomide.com>
---
drivers/usb/musb/da8xx.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drive
The DMA may hung up if a teardown is initiated while an endpoint is still
active (Advisory 2.3.27 of DA8xx errata).
To workaround this issue, add a delay before to initiate the teardown.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 2 +-
drive
use PM runtime sync operation.
Changes in v2:
- Clock and IRQ management has been moved to MUSB DA8xx glue
(was in CPPI 4.1 driver)
- I have added a partial support PM runtime. The goal was to use PM
runtime to manage clock of MUSB and CPPI 4.1 (they use the same clock).
- CPPI 4.1 is now achild
In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line.
Update the driver to request a shared irq.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_
Currently, only the PIO mode is supported.
This add support of CPPI 4.1 to DA8xx.
As the In DA8xx the CPPI 4.1 DMA is a part of the USB.
Create the CPPI 4.1 device as a child of USB.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/Kconfig | 4 ++--
drivers/us
.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 23 ++-
1 file changed, 6 insertions(+), 17 deletions(-)
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index d87fb9b..bebc9ed 100644
--- a/drivers/usb/musb/da8xx.c
get some when I run some corner case.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/cppi41.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
index 5c501da..9fdd824 100644
--- a/drivers/dma/cppi41.c
The DA8xx has a CPPI 4.1 DMA controller.
This is add the glue layer required to make it work on DA8xx.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/dma/Kconfig | 6 +++---
drivers/dma/cppi41.c | 23 +++
2 files changed, 26 insertions(+), 3 del
DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx CPPI 4.1 DMA controller.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
.../devicetree/bindings/usb/da8xx-usb.txt | 39 ++
1 file changed, 39 insertions(+)
diff --git a/Documentation/devicetree/bi
ore generic.
- In v1, the driver were managing the clock for DA8xx paltform.
This is not needed as CPPI 4.1 will be a child of MUSB DA8xx glue,
we can use PM runtime and let the DA8xx glue driver manage it.
Alexandre Bailon (3):
dt/bindings: da8xx-usb: Add binding for the CPPI 4.1 DMA co
On 01/23/2017 10:26 PM, Bin Liu wrote:
> On Mon, Jan 23, 2017 at 05:48:02PM +0100, Alexandre Bailon wrote:
> > This series was "dmaengine: cppi41: Make the driver more generic".
> > I have tried to separate as munch I could CPPI 4.1 MUSB driver changes.
> >
&
On 01/19/2017 07:15 PM, Sergei Shtylyov wrote:
> On 01/19/2017 02:13 PM, Alexandre Bailon wrote:
>
> > The DA8xx has a CPPI 4.1 DMA controller.
> > This is add the glue layer required to make it work on DA8xx.
> >
> > Signed-off-by: Alexandre Bailon <abai...@bayli
On 01/20/2017 09:00 PM, Bin Liu wrote:
> On Thu, Jan 19, 2017 at 11:06:57AM +0100, Alexandre Bailon wrote:
>> Currently, the CPPI 4.1 driver is not completely generic and
>> only work on dsps. This is because of IRQ management.
>> Add a callback to dma_controller that co
On 01/20/2017 09:17 PM, Bin Liu wrote:
> On Thu, Jan 19, 2017 at 11:06:59AM +0100, Alexandre Bailon wrote:
>> Despite the CPPI 4.1 is a generic DMA, it is tied to USB.
>> On the dsps, CPPI 4.1 interrupt's registers are in USBSS (the MUSB glue).
>> Currently, to enabl
On 01/19/2017 05:56 PM, Tony Lindgren wrote:
> * Alexandre Bailon <abai...@baylibre.com> [170119 06:09]:
>> The DMA may hung up if a teardown is initiated while an endpoint is still
>> active (Advisory 2.3.27 of DA8xx errata).
>> To workaround this issue, add
On 01/20/2017 10:24 AM, Sekhar Nori wrote:
> On Thursday 19 January 2017 11:01 PM, Alexandre Bailon wrote:
>> On 01/19/2017 05:49 PM, Grygorii Strashko wrote:
>>> On 01/19/2017 09:08 AM, Alexandre Bailon wrote:
>>>> On 01/19/2017 03:48 PM, Sekhar Nori wrote:
>>&
On 01/19/2017 05:49 PM, Grygorii Strashko wrote:
> On 01/19/2017 09:08 AM, Alexandre Bailon wrote:
>> On 01/19/2017 03:48 PM, Sekhar Nori wrote:
>>> On Thursday 19 January 2017 07:39 PM, Alexandre Bailon wrote:
>>>> Add usb20 to the list of clock supported by PM
On 01/19/2017 03:08 PM, Alexandre Bailon wrote:
> Currently, only the PIO mode is supported.
> This add support of CPPI 4.1 to DA8xx.
> As the In DA8xx the CPPI 4.1 DMA is a part of the USB.
> Create the CPPI 4.1 device as a child of USB.
>
> Signed-off-by: Alexandre Bailon <
On 01/19/2017 03:48 PM, Sekhar Nori wrote:
> On Thursday 19 January 2017 07:39 PM, Alexandre Bailon wrote:
>> Add usb20 to the list of clock supported by PM runtime.
>>
>> Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
>> ---
>> arch/arm/mach-davinc
This adds the CPPI 4.1 DMA controller to the USB OTG controller.
Changes since v2:
- Fixed the the property reg-names (had glue register defined)
- Removed few useless property
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
arch/arm/boot/dts/da850.dts
to enable / disable the clock by using PM runtime.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 23 ++-
1 file changed, 6 insertions(+), 17 deletions(-)
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index 8
Add usb20 to the list of clock supported by PM runtime.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
arch/arm/mach-davinci/pm_domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-davinci/pm_domain.c
b/arch/arm/mach-davinci/pm_domain.c
The DMA may hung up if a teardown is initiated while an endpoint is still
active (Advisory 2.3.27 of DA8xx errata).
To workaround this issue, add a delay before to initiate the teardown.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/da8xx.c | 2 +-
drive
In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line.
Update the driver to request a shared irq.
Signed-off-by: Alexandre Bailon <abai...@baylibre.com>
---
drivers/usb/musb/musb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_
1 - 100 of 235 matches
Mail list logo