[PATCH V2] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-19 Thread Armando Visconti
-by: Armando Visconti Reviewed-by: Sebastian Andrzej Siewior --- This is patch V2, after Sbatian's review. Patch is very simple, but my assumption needs to be cross-verified. This patch has been quickly tested using a DWC3 controller gadget device. Felipe, if you can quicly take a look at it.. Armando

[PATCH V2] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-19 Thread Armando Visconti
-by: Armando Visconti armando.visco...@st.com Reviewed-by: Sebastian Andrzej Siewior bige...@linutronix.de --- This is patch V2, after Sbatian's review. Patch is very simple, but my assumption needs to be cross-verified. This patch has been quickly tested using a DWC3 controller gadget device. Felipe

Re: [PATCH] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-17 Thread Armando Visconti
On 12/17/2012 04:45 PM, Sebastian Andrzej Siewior wrote: On Thu, Dec 13, 2012 at 03:11:19PM +0100, Armando Visconti wrote: In the IN case, since the USB request is allocated only when the source/sink function is started and never freed, the USB ept buffer needs to be inited only

Re: [PATCH] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-17 Thread Armando Visconti
On 12/17/2012 04:45 PM, Sebastian Andrzej Siewior wrote: On Thu, Dec 13, 2012 at 03:11:19PM +0100, Armando Visconti wrote: In the IN case, since the USB request is allocated only when the source/sink function is started and never freed, the USB ept buffer needs to be inited only

[PATCH] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-13 Thread Armando Visconti
In the IN case, since the USB request is allocated only when the source/sink function is started and never freed, the USB ept buffer needs to be inited only at the beginning. This change results into a more performant g_zero module, especially when 'pattern=1' is selected. Signed-off-by: Armando

[PATCH] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-13 Thread Armando Visconti
In the IN case, since the USB request is allocated only when the source/sink function is started and never freed, the USB ept buffer needs to be inited only at the beginning. This change results into a more performant g_zero module, especially when 'pattern=1' is selected. Signed-off-by: Armando

Re: [PATCH] nommu: Enable the strict alignment (CR_A) bit only if ARCH < v6

2012-12-04 Thread Armando Visconti
On 12/03/2012 06:46 PM, Will Deacon wrote: On Mon, Dec 03, 2012 at 05:25:53PM +, Russell King - ARM Linux wrote: On Mon, Dec 03, 2012 at 05:44:11PM +0100, Armando Visconti wrote: On 11/29/2012 12:04 PM, Armando VISCONTI wrote: This patch keeps disabled the strict alignment CP15 bit

Re: [PATCH] nommu: Enable the strict alignment (CR_A) bit only if ARCH v6

2012-12-04 Thread Armando Visconti
On 12/03/2012 06:46 PM, Will Deacon wrote: On Mon, Dec 03, 2012 at 05:25:53PM +, Russell King - ARM Linux wrote: On Mon, Dec 03, 2012 at 05:44:11PM +0100, Armando Visconti wrote: On 11/29/2012 12:04 PM, Armando VISCONTI wrote: This patch keeps disabled the strict alignment CP15 bit

Re: [PATCH] nommu: Enable the strict alignment (CR_A) bit only if ARCH < v6

2012-12-03 Thread Armando Visconti
On 11/29/2012 12:04 PM, Armando VISCONTI wrote: This patch keeps disabled the strict alignment CP15 bit for all armv6 and armv7 processor without the mmu. This behaviour is now same as in the mmu case. Signed-off-by: Armando Visconti --- arch/arm/kernel/head-nommu.S |2 +- 1 files

Re: [PATCH] nommu: Enable the strict alignment (CR_A) bit only if ARCH v6

2012-12-03 Thread Armando Visconti
On 11/29/2012 12:04 PM, Armando VISCONTI wrote: This patch keeps disabled the strict alignment CP15 bit for all armv6 and armv7 processor without the mmu. This behaviour is now same as in the mmu case. Signed-off-by: Armando Viscontiarmando.visco...@st.com --- arch/arm/kernel/head-nommu.S

[PATCH] nommu: Enable the strict alignment (CR_A) bit only if ARCH < v6

2012-11-29 Thread Armando Visconti
This patch keeps disabled the strict alignment CP15 bit for all armv6 and armv7 processor without the mmu. This behaviour is now same as in the mmu case. Signed-off-by: Armando Visconti --- arch/arm/kernel/head-nommu.S |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH] nommu: Enable the strict alignment (CR_A) bit only if ARCH v6

2012-11-29 Thread Armando Visconti
This patch keeps disabled the strict alignment CP15 bit for all armv6 and armv7 processor without the mmu. This behaviour is now same as in the mmu case. Signed-off-by: Armando Visconti armando.visco...@st.com --- arch/arm/kernel/head-nommu.S |2 +- 1 files changed, 1 insertions(+), 1