Re: [PATCH v1 6/6] USB: MUSB: OMAP: get PHY by phandle for dt boot

2013-01-22 Thread Peter Ujfalusi
On 01/22/2013 04:21 PM, kishon wrote: > But it's better to check if deferred probing > takes place whenever a new driver is bound to a device as you just mentioned. Whenever you load (might be also when you unload) a driver the deferred modules will try to probe again. This is to check back if the

Re: [PATCH v5 5/6] usb: musb: cppi_dma: Clean up tusb_omap_dma structure

2017-02-06 Thread Peter Ujfalusi
On 01/25/2017 12:17 PM, Alexandre Bailon wrote: > A pointer to musb is now present in the dma_controller structure. > Remove the one present in tusb_omap_dma structure. the subject line should be: usb: musb: tusb6010_omap: ... > Signed-off-by: Alexandre Bailon > --- > drivers/usb/musb/tusb601

usb: musb: regression since 4.9 on omap4-panda-es (caused by d8e5f0eca1e8)

2017-04-04 Thread Peter Ujfalusi
Tony, since 4.9 (4.8 was fine) I can not boot omap4-panda-es if the musb is compiled in. The kernel will stuck printing: ** 206 printk messages dropped ** [8.926727] musb_bus_suspend 2584: trying to suspend as a_idle while active The bisect (log is [1]) points to: d8e5f0eca1e8 usb: musb

Re: usb: musb: regression since 4.9 on omap4-panda-es (caused by d8e5f0eca1e8)

2017-04-05 Thread Peter Ujfalusi
Tony, On 2017-04-05 03:36, Tony Lindgren wrote: * Tony Lindgren [170404 07:06]: * Bin Liu [170404 05:30]: On Tue, Apr 04, 2017 at 10:09:50AM +0300, Peter Ujfalusi wrote: Tony, since 4.9 (4.8 was fine) I can not boot omap4-panda-es if the musb is compiled in. The kernel will stuck printing

Re: usb: musb: regression since 4.9 on omap4-panda-es (caused by d8e5f0eca1e8)

2017-04-05 Thread Peter Ujfalusi
On 2017-04-05 10:13, Peter Ujfalusi wrote: I had similar hunch first, but did not worked. I have tested this patch and did not helped. To be precise this is what I have tried: - boot w/o cable connected - boot w/ board connected to PC (device mode) - boot w/ OTG-A cable with USB keyboard - boot

[PATCH] USB: musb: Correct Kconfig in order to avoid non compilable selection

2013-01-31 Thread Peter Ujfalusi
Currently it is possible to have: USB_MUSB_OMAP2PLUS=m TWL4030_USB=y which would result compile time error due to missing symbols. With this change USB_MUSB_OMAP2PLUS and TWL4030_USB will be in sync. Reported-by: Vincent Stehle Signed-off-by: Peter Ujfalusi --- Hi Felipe, I have also noticed

Re: [PATCH 1/8] usb: phy: nop: Add some parameters to platform data

2013-03-13 Thread Peter Ujfalusi
On 03/12/2013 04:20 PM, Roger Quadros wrote: > Adding Peter to the loop. I faintly remember him mentioning this issue before > for beagle. We really need the deferred probe mechanism or we need to resort > to device registering order. Yes, BeagleBoard is a good example. Long story short: we have e

[PATCH] usb: otg: twl4030: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by: Peter Ujfalusi --- drivers/usb/otg/twl4030-usb.c | 46 --- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg

Re: [PATCH] usb: otg: twl4030: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
Hi Felipe, On 11/13/2012 10:47 AM, Felipe Balbi wrote: > On Tue, Nov 13, 2012 at 10:43:38AM +0100, Peter Ujfalusi wrote: >> To facilitate upcoming cleanup in twl stack. >> No functional changes. >> >> Signed-off-by: Peter Ujfalusi > > I guess this one must

Re: [PATCH] usb: otg: twl4030: Change TWL4030_MODULE_* ids to TWL_MODULE_*

2012-11-13 Thread Peter Ujfalusi
On 11/13/2012 11:37 AM, Felipe Balbi wrote: > ok good. Unfortunately I have already sent this merge window's pull > request to Greg so I'd have to delay this until v3.9. If that's ok with > you, I can take it through my tree. I hoped that this can go with 3.8 since in 3.9 I'm planning to remove al

Re: [-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2018-01-10 Thread Peter Ujfalusi
go >>>> through all of these files in order to see what does it mean: >> >> Yeah, 644 is "clear", but _RW() is even more clear. Ideally I want to >> get rid of all of the "non-standard" users that set random modes of >> sysfs files, as we g

Re: usb: musb: regression since 4.9 on omap4-panda-es (caused by d8e5f0eca1e8)

2017-04-06 Thread Peter Ujfalusi
Tony, On 04/05/2017 06:29 PM, Tony Lindgren wrote: * Tony Lindgren [170405 06:53]: * Peter Ujfalusi [170405 00:15]: To be precise this is what I have tried: - boot w/o cable connected - boot w/ board connected to PC (device mode) - boot w/ OTG-A cable with USB keyboard - boot w/ OTG-A cable

Re: [PATCH] usb: musb: Fix trying to suspend while active for OTG configurations

2017-04-19 Thread Peter Ujfalusi
n this case just seems to completely confuse the musb state machine. Let's fix the issue by making musb_host_setup() attempt to force the mode only if port_mode is configured for host mode. Tested-by: Peter Ujfalusi Fixes: d8e5f0eca1e8 ("usb: musb: Fix hardirq-safe hardirq-unsafe

[PATCH 0/4] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-03 Thread Peter Ujfalusi
urn false; +// if (dma_addr & 0x2) +// return false; /* * Because of HW issue #10, it seems like mixing sync DMA and async Since this condition will almost all the time was true - effectively disabling the DMA use. Regards. Peter --- Peter Ujfalusi (4)

[PATCH 1/4] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-03 Thread Peter Ujfalusi
For the DMA we have ch (channel), dmareq and sync_dev parameters both within the tusb_omap_dma_ch and tusb_omap_dma_ch struct. By creating a common struct the code can be simplified when selecting between the shared or multichannel DMA parameters. Signed-off-by: Peter Ujfalusi --- drivers/usb

[PATCH 2/4] usb: musb: tusb6010_omap: Allocate DMA channels upfront

2017-05-03 Thread Peter Ujfalusi
to lock within the DMAengine API when requesting channel. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/tusb6010_omap.c | 184 +++ 1 file changed, 92 insertions(+), 92 deletions(-) diff --git a/drivers/usb/musb/tusb6010_omap.c b/drivers/usb/musb

[PATCH 4/4] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-03 Thread Peter Ujfalusi
With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/tusb6010_omap.c | 201 --- 1 file changed, 80 insertions(+), 121 deletions(-) diff --git a/drivers/usb

[PATCH 0/4] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-03 Thread Peter Ujfalusi
urn false; +// if (dma_addr & 0x2) +// return false; /* * Because of HW issue #10, it seems like mixing sync DMA and async Since this condition will almost all the time was true - effectively disabling the DMA use. Regards. Peter --- Peter Ujfalusi (4)

[PATCH 3/4] ARM: OMAP2+: DMA: Add slave map entries for 24xx external request lines

2017-05-03 Thread Peter Ujfalusi
yet supports DT boot. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/dma.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c index e58c13a9bea5..0b77a0176018 100644 --- a/arch/arm/mach-omap2/dma.c +++ b/arch

Re: [PATCH 0/4] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-03 Thread Peter Ujfalusi
Sorry, I have forgot to update the commit message for the last patch. On 2017-05-03 13:54, Peter Ujfalusi wrote: Hi, With port_window support implemented in DMAengine and the sDMA DMAengine driver, the tusb6010_omap driver can be converted away from the custom legacy omap-dma API to generic

Re: [PATCH 0/4] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-05 Thread Peter Ujfalusi
On 2017-05-04 17:31, Tony Lindgren wrote: * Peter Ujfalusi [170503 04:00]: Hi, With port_window support implemented in DMAengine and the sDMA DMAengine driver, the tusb6010_omap driver can be converted away from the custom legacy omap-dma API to generic DMAengine. The first two patch is to

Re: [PATCH 4/4] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-05 Thread Peter Ujfalusi
Tony, On 2017-05-05 00:05, Tony Lindgren wrote: * Tony Lindgren [170504 12:43]: Hi, * Peter Ujfalusi [170503 04:00]: With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Actually looks like this patch still has some issues.. Pinging the

Re: [PATCH 4/4] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-05 Thread Peter Ujfalusi
On 2017-05-05 16:37, Peter Ujfalusi wrote: Tony, On 2017-05-05 00:05, Tony Lindgren wrote: * Tony Lindgren [170504 12:43]: Hi, * Peter Ujfalusi [170503 04:00]: With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Actually looks like

Re: [PATCH 4/4] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-08 Thread Peter Ujfalusi
Tony, On 2017-05-06 01:55, Tony Lindgren wrote: OK I verified that with the current mainline kernel using dma and g_ether and your patches 1 to 3 I can run the variable size ping test loop for few minutes before it just stops working and I can see the legacy DMA interrupt increase depending on t

[PATCH v2 07/10] usb: musb: tusb6010_omap: Allocate DMA channels upfront

2017-05-10 Thread Peter Ujfalusi
to lock within the DMAengine API when requesting channel. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/tusb6010_omap.c | 184 +++ 1 file changed, 92 insertions(+), 92 deletions(-) diff --git a/drivers/usb/musb/tusb6010_omap.c b/drivers/usb/musb

[PATCH v2 04/10] usb: musb: tusb6010_omap: Use one musb_ep_select call in tusb_omap_dma_program

2017-05-10 Thread Peter Ujfalusi
Having one musb_ep_select() instead the two calls in if/else is the same thing, but makes the code a bit simpler to follow. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/tusb6010_omap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/musb/tusb6010_omap.c b

[PATCH v2 09/10] ARM: OMAP2+: DMA: Add slave map entries for 24xx external request lines

2017-05-10 Thread Peter Ujfalusi
yet supports DT boot. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/dma.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c index e58c13a9bea5..0b77a0176018 100644 --- a/arch/arm/mach-omap2/dma.c +++ b/arch

[PATCH v2 06/10] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-10 Thread Peter Ujfalusi
For the DMA we have ch (channel), dmareq and sync_dev parameters both within the tusb_omap_dma_ch and tusb_omap_dma_ch struct. By creating a common struct the code can be simplified when selecting between the shared or multichannel DMA parameters. Signed-off-by: Peter Ujfalusi --- drivers/usb

[PATCH v2 01/10] dmaengine: omap-dma: port_window support correction for both direction

2017-05-10 Thread Peter Ujfalusi
are settings for the slave port while the omap_sg members apply to the memory side of the sDMA setup. Fixes: 527a27591312 ("dmaengine: omap-dma: Fix the port_window support") Signed-off-by: Peter Ujfalusi Cc: Russell King Cc: dmaeng...@vger.kernel.org Cc: dan.j.willi...@intel.com C

[PATCH v2 08/10] usb: musb: tusb6010: Handle DMA TX completion in DMA callback as well

2017-05-10 Thread Peter Ujfalusi
Handle the DMA TX in a similar way as we do for the RX: in the DMA completion callback. Since we are no longer using DMA completion interrupt for the TX we can as wall keep these interrupts disabled, but keep the handler for debug purposes. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb

[PATCH v2 05/10] usb: musb: tusb6010_omap: Do not reset the other direction's packet size

2017-05-10 Thread Peter Ujfalusi
We have one register for each EP to set the maximum packet size for both TX and RX. If for example an RX programming would happen before the previous TX transfer finishes we would reset the TX packet side. To fix this issue, only modify the TX or RX part of the register. Signed-off-by: Peter

[PATCH v2 02/10] usb: musb: Add quirk to avoid skb reserve in gadget mode

2017-05-10 Thread Peter Ujfalusi
buffer. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/musb_core.c | 3 +++ drivers/usb/musb/musb_core.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 870da18f5077..87cbd56cc761 100644 --- a/drivers/usb/musb/musb_core.c

[PATCH v2 03/10] usb: musb: tusb6010: Add MUSB_G_NO_SKB_RESERVE to quirks

2017-05-10 Thread Peter Ujfalusi
When using the g_ncm for networking this flag will make sure that the buffer is alligned to 32bit so the DMA can be used to offload the data movement. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/tusb6010.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH v2 00/10] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-10 Thread Peter Ujfalusi
e" size=1 fi done echo "Test ran up to $size" Regards, Peter CC: dmaeng...@vger.kernel.org I only send the cover letter and the DMAengine patch for the dmaengine list, the rest can be checked - if there is interest - via lkml --- Peter Ujfalusi (10): dmaengine: omap

[PATCH v2 10/10] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-10 Thread Peter Ujfalusi
With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/tusb6010_omap.c | 201 --- 1 file changed, 80 insertions(+), 121 deletions(-) diff --git a/drivers/usb

Re: [PATCH v2 05/10] usb: musb: tusb6010_omap: Do not reset the other direction's packet size

2017-05-10 Thread Peter Ujfalusi
On 2017-05-11 02:16, Joe Perches wrote: On Wed, 2017-05-10 at 12:07 -0500, Bin Liu wrote: On Wed, May 10, 2017 at 11:42:27AM +0300, Peter Ujfalusi wrote: We have one register for each EP to set the maximum packet size for both TX and RX. If for example an RX programming would happen before

Re: [PATCH v2 05/10] usb: musb: tusb6010_omap: Do not reset the other direction's packet size

2017-05-11 Thread Peter Ujfalusi
Bin, On 2017-05-11 17:12, Bin Liu wrote: which is valid. So will you update the patch to move the declaration to the beginning of the function to avoid this WARNING. I would just fix it locally if you prefer. I was waiting for Vinod or someone from the DMAengine guys to say something for th

[PATCH] usb: musb: tusb6010_omap: Do not reset the other direction's packet size

2017-05-12 Thread Peter Ujfalusi
("USB: Add MUSB and TUSB support") Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- Bin, I have separated the patch from the tusb DMAengine conversion series and that will depend on this patch. Regards, Peter drivers/usb/musb/tusb6010_omap.c | 13 + 1 file

[PATCH v3 5/9] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-12 Thread Peter Ujfalusi
For the DMA we have ch (channel), dmareq and sync_dev parameters both within the tusb_omap_dma_ch and tusb_omap_dma_ch struct. By creating a common struct the code can be simplified when selecting between the shared or multichannel DMA parameters. Signed-off-by: Peter Ujfalusi Tested-by: Tony

[PATCH v3 1/9] dmaengine: omap-dma: port_window support correction for both direction

2017-05-12 Thread Peter Ujfalusi
are settings for the slave port while the omap_sg members apply to the memory side of the sDMA setup. Fixes: 527a27591312 ("dmaengine: omap-dma: Fix the port_window support") Signed-off-by: Peter Ujfalusi Cc: Russell King Cc: dmaeng...@vger.kernel.org Cc: dan.j.willi...@intel.com C

[PATCH v3 8/9] ARM: OMAP2+: DMA: Add slave map entries for 24xx external request lines

2017-05-12 Thread Peter Ujfalusi
yet supports DT boot. Signed-off-by: Peter Ujfalusi Acked-by: Tony Lindgren --- arch/arm/mach-omap2/dma.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c index e58c13a9bea5..0b77a0176018 100644 --- a/arch/arm/mach

[PATCH v3 2/9] usb: musb: Add quirk to avoid skb reserve in gadget mode

2017-05-12 Thread Peter Ujfalusi
buffer. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/musb_core.c | 3 +++ drivers/usb/musb/musb_core.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 870da18f5077..87cbd56cc761 100644 --- a

[PATCH v3 7/9] usb: musb: tusb6010: Handle DMA TX completion in DMA callback as well

2017-05-12 Thread Peter Ujfalusi
Handle the DMA TX in a similar way as we do for the RX: in the DMA completion callback. Since we are no longer using DMA completion interrupt for the TX we can as wall keep these interrupts disabled, but keep the handler for debug purposes. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren

[PATCH v3 9/9] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-12 Thread Peter Ujfalusi
With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 201 --- 1 file changed, 80 insertions(+), 121 deletions

[PATCH v3 0/9] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-12 Thread Peter Ujfalusi
only send the cover letter and the DMAengine patch for the dmaengine list, the rest can be checked - if there is interest - via lkml --- Peter Ujfalusi (9): dmaengine: omap-dma: port_window support correction for both direction usb: musb: Add quirk to avoid skb reserve in gadget mode usb:

[PATCH v3 6/9] usb: musb: tusb6010_omap: Allocate DMA channels upfront

2017-05-12 Thread Peter Ujfalusi
to lock within the DMAengine API when requesting channel. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 184 +++ 1 file changed, 92 insertions(+), 92 deletions(-) diff --git a/drivers/usb/musb/tusb6010_omap.c b

[PATCH v3 4/9] usb: musb: tusb6010_omap: Use one musb_ep_select call in tusb_omap_dma_program

2017-05-12 Thread Peter Ujfalusi
Having one musb_ep_select() instead the two calls in if/else is the same thing, but makes the code a bit simpler to follow. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH v3 3/9] usb: musb: tusb6010: Add MUSB_G_NO_SKB_RESERVE to quirks

2017-05-12 Thread Peter Ujfalusi
When using the g_ncm for networking this flag will make sure that the buffer is alligned to 32bit so the DMA can be used to offload the data movement. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v4 1/9] dmaengine: omap-dma: port_window support correction for both direction

2017-05-18 Thread Peter Ujfalusi
are settings for the slave port while the omap_sg members apply to the memory side of the sDMA setup. Fixes: 527a27591312 ("dmaengine: omap-dma: Fix the port_window support") Signed-off-by: Peter Ujfalusi Cc: Russell King Cc: dmaeng...@vger.kernel.org Cc: dan.j.willi...@intel.com C

[PATCH v4 9/9] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-18 Thread Peter Ujfalusi
With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 201 --- 1 file changed, 80 insertions(+), 121 deletions

[PATCH v4 0/9] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-18 Thread Peter Ujfalusi
list, the rest can be checked - if there is interest - via lkml --- Peter Ujfalusi (9): dmaengine: omap-dma: port_window support correction for both direction usb: musb: Add quirk to avoid skb reserve in gadget mode usb: musb: tusb6010: Add MUSB_G_NO_SKB_RESERVE to quirks usb

[PATCH v4 7/9] usb: musb: tusb6010: Handle DMA TX completion in DMA callback as well

2017-05-18 Thread Peter Ujfalusi
Handle the DMA TX in a similar way as we do for the RX: in the DMA completion callback. Since we are no longer using DMA completion interrupt for the TX we can as wall keep these interrupts disabled, but keep the handler for debug purposes. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren

[PATCH v4 8/9] ARM: OMAP2+: DMA: Add slave map entries for 24xx external request lines

2017-05-18 Thread Peter Ujfalusi
yet supports DT boot. Signed-off-by: Peter Ujfalusi Acked-by: Tony Lindgren --- arch/arm/mach-omap2/dma.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c index e58c13a9bea5..0b77a0176018 100644 --- a/arch/arm/mach

[PATCH v4 6/9] usb: musb: tusb6010_omap: Allocate DMA channels upfront

2017-05-18 Thread Peter Ujfalusi
to lock within the DMAengine API when requesting channel. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 185 +++ 1 file changed, 92 insertions(+), 93 deletions(-) diff --git a/drivers/usb/musb/tusb6010_omap.c b

[PATCH v4 5/9] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-18 Thread Peter Ujfalusi
For the DMA we have ch (channel), dmareq and sync_dev parameters both within the tusb_omap_dma_ch and tusb_omap_dma struct. By creating a common struct the code can be simplified when selecting between the shared or multichannel DMA parameters. Signed-off-by: Peter Ujfalusi Tested-by: Tony

[PATCH v4 3/9] usb: musb: tusb6010: Add MUSB_G_NO_SKB_RESERVE to quirks

2017-05-18 Thread Peter Ujfalusi
When using the g_ncm for networking this flag will make sure that the buffer is aligned to 32bit so the DMA can be used to offload the data movement. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v4 4/9] usb: musb: tusb6010_omap: Use one musb_ep_select call in tusb_omap_dma_program

2017-05-18 Thread Peter Ujfalusi
Having one musb_ep_select() instead the two calls in if/else is the same thing, but makes the code a bit simpler to follow. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH v4 2/9] usb: musb: Add quirk to avoid skb reserve in gadget mode

2017-05-18 Thread Peter Ujfalusi
buffer. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/musb_core.c | 3 +++ drivers/usb/musb/musb_core.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 870da18f5077..87cbd56cc761 100644 --- a

Re: [PATCH] dma: cppi41: delete channel from pending list when stop channel

2018-11-28 Thread Peter Ujfalusi
n the channel, so clearing the pending list is the correct thing to do. With the fixed subject: Reviewed-by: Peter Ujfalusi I have one question: > Fixes: 975faaeb9985 ("dma: cppi41: start tear down only if channel is busy") > Cc: sta...@vger.kernel.org # v3.15+ > Sign

Re: [PATCH] dma: cppi41: delete channel from pending list when stop channel

2018-11-28 Thread Peter Ujfalusi
Hi, On 28/11/2018 13.15, Peter Ujfalusi wrote: forgot to fix up Vinod's email address. > > > On 12/11/2018 17.40, Bin Liu wrote: > > Can you fix up the subject line to: > dmaengine: ti: cppi4: delete channel from pending list when stop channel > >> The driver

Re: [PATCH v1 1/5] drivercore: Revert "deferral race condition fix"

2018-11-12 Thread Peter Ujfalusi
rred probe loop, iow both of the drivers returns -EPROBE_DEFER and they just spin? If both is deferring, how this supposed to work? If we revert 58b116bce13612e5aa6fcd49ecbd4cf8bb59e835, then you might be hitting the very same issue as described by the commit: s/davinci_evm sound.3/dwc3-pci s/davinci-mcasp 4803c000.mcasp/extcon

Re: [PATCH v1 1/5] drivercore: Revert "deferral race condition fix"

2018-11-14 Thread Peter Ujfalusi
Andy, On 2018-11-14 10:45, Andy Shevchenko wrote: > On Wed, Nov 14, 2018 at 2:34 AM Mark Brown wrote: >> >> On Mon, Nov 12, 2018 at 06:11:26PM +0200, Peter Ujfalusi wrote: >> >>> if we revert the commit then the original issue will re-surfaces. afaik >>> it

Re: [PATCH] USB: ehci-omap: Fix deferred probe for phy handling

2018-12-12 Thread Peter Ujfalusi
gt; the phy being on a separate l4 interconnect from EHCI. > > And old kernels would need to be checked for "ehci-phy" property for > this fix to avoid regressions. Tested-by: Peter Ujfalusi > Cc: Alan Stern > Cc: Johan Hovold > Cc: Ladislav Michl > Cc: Peter

Re: [PATCH v3] usb: ehci-omap: Fix deferred probe for phy handling

2018-12-14 Thread Peter Ujfalusi
be required. So, if > devm_usb_get_phy_by_phandle() gives us an error code other > than -ENODEV (no PHY) then error out. > > This fixes USB Ethernet on omap5-uevm if PHY happens to > probe after EHCI thus causing a -EPROBE_DEFER. Thanks, it works. Tested-by: Peter Ujfalusi > Cc: Alan Stern &g

Re: [PATCH] dmaengine: cppi41: Fix cppi41_dma_prep_slave_sg() when idle

2019-10-23 Thread Peter Ujfalusi
Hi Tony, On 10/23/19 6:31 PM, Tony Lindgren wrote: > Yegor Yefremov reported that musb and ftdi > uart can fail for the first open of the uart unless connected using > a hub. > > This is because the first dma call done by musb_ep_program() must wait > if cppi41 is PM runtime suspended. Otherwise

Re: [PATCH] dmaengine: cppi41: Fix cppi41_dma_prep_slave_sg() when idle

2019-10-23 Thread Peter Ujfalusi
On 10/23/19 8:16 PM, Tony Lindgren wrote: > * Peter Ujfalusi [191023 17:04]: >> On 10/23/19 6:31 PM, Tony Lindgren wrote: >>> diff --git a/drivers/dma/ti/cppi41.c b/drivers/dma/ti/cppi41.c >>> --- a/drivers/dma/ti/cppi41.c >>> +++ b/drivers/dma/ti/cppi